/* UI csbardar.md – CSS simplu, fără conflicte WordPress */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif !important;
  background: #fafafa !important;
  color: #333 !important;
  margin: 0 !important;
  line-height: 1.6;
}

a { color: #013CA6; text-decoration: none; transition: color .15s; }
a:hover { color: #024AD0; }

img { max-width: 100%; height: auto; display: block; }

/* ── WordPress reset ── */
.wp-site-blocks {
  padding: 0 !important;
  max-width: none !important;
}

.wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.alignfull { width: 100%; max-width: none; }

.cs-page-width,
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── Header principal ── */
.cs-header-main {
  background: #fff !important;
  border-bottom: 1px solid #eee;
  padding: 16px 0 !important;
}

.cs-header-main > .alignwide {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cs-header-brand {
  display: flex !important;
  align-items: center;
  gap: 14px;
}

.cs-logo img,
.cs-header-brand .custom-logo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px;
  object-fit: cover;
}

.cs-site-title,
.cs-header-main .wp-block-site-title {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.cs-site-title a,
.cs-header-main .wp-block-site-title a {
  color: #013CA6 !important;
  text-decoration: none !important;
}

.cs-header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.cs-header-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #888;
}

.cs-header-icon .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 18px;
  flex-shrink: 0;
}

.cs-header-icon strong,
.cs-header-icon a {
  font-size: 14px;
  font-weight: 600;
  color: #013CA6 !important;
}

/* ── Navigare (HTML simplu – fără bug-uri WP Navigation block) ── */
.cs-header-nav {
  background: #013CA6 !important;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(1, 60, 166, .25);
}

.cs-header-nav > .alignwide {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.cs-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-nav-menu > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.cs-nav-menu > ul > li {
  position: relative;
}

.cs-nav-menu > ul > li > a {
  display: block;
  padding: 14px 16px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.cs-nav-menu > ul > li:hover > a,
.cs-nav-menu > ul > li:focus-within > a {
  background: rgba(255, 255, 255, .1);
  color: #fff !important;
}

.cs-nav-menu > ul > li:hover,
.cs-nav-menu > ul > li:focus-within {
  z-index: 20;
}

/* Submeniu */
.cs-nav-menu .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  padding: 6px 0;
  z-index: 30;
}

.cs-nav-menu li:hover > .sub,
.cs-nav-menu li:focus-within > .sub {
  display: block;
}

.cs-nav-menu .sub a {
  display: block;
  padding: 10px 16px;
  color: #333 !important;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
  white-space: normal;
  line-height: 1.4;
}

.cs-nav-menu .sub a:hover {
  background: #f5f9ff;
  color: #013CA6 !important;
}

@media (max-width: 781px) {
  .cs-nav-menu > ul {
    flex-direction: column;
  }

  .cs-nav-menu > ul > li > a {
    white-space: normal;
  }

  .cs-nav-menu .sub {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, .15);
    padding: 0;
    min-width: 0;
  }

  .cs-nav-menu .sub a {
    color: #fff !important;
    padding-left: 28px;
  }

  .cs-nav-menu li:hover > .sub,
  .cs-nav-menu li:focus-within > .sub {
    display: block;
  }
}

/* ── Hero ── */
.cs-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: #013CA6;
}

.cs-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}

.cs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #fff;
}

.cs-hero-inner h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff !important;
  max-width: 700px;
}

.cs-hero-inner p {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
  line-height: 1.6;
}

.cs-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: #013CA6 !important;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transition: transform .15s, box-shadow .15s;
}

.cs-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  color: #013CA6 !important;
}

/* ── Casete rapide ── */
.cs-home-boxes {
  background: #f5f9ff !important;
  padding: 48px 0 !important;
}

.cs-boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cs-box {
  background: #fff;
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(1, 60, 166, .08);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none !important;
  display: block;
}

.cs-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(1, 60, 166, .15);
}

.cs-box .fa {
  font-size: 36px;
  color: #013CA6;
  margin-bottom: 14px;
  display: block;
}

.cs-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

@media (max-width: 900px) {
  .cs-boxes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cs-boxes-grid { grid-template-columns: 1fr; }
}

/* ── Noutăți ── */
.cs-news-section {
  padding: 48px 0 !important;
  background: #fff !important;
}

.cs-news-section .section-title {
  text-align: center;
  margin-bottom: 32px;
}

.cs-news-section .section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.cs-news-section .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  transition: box-shadow .2s;
}

.cs-news-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.cs-news-card .wp-block-post-featured-image img,
.cs-news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cs-news-body {
  padding: 20px !important;
}

.cs-news-date {
  font-size: 13px !important;
  color: #888 !important;
  margin-bottom: 8px !important;
  display: block;
}

.cs-news-card h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
  line-height: 1.35 !important;
}

.cs-news-card h3 a {
  color: #333 !important;
  text-decoration: none !important;
}

.cs-news-card h3 a:hover {
  color: #013CA6 !important;
}

.cs-news-card .wp-block-post-excerpt,
.cs-news-card p {
  font-size: 14px !important;
  color: #666 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.wp-block-post-excerpt__more-link {
  display: inline-block !important;
  padding: 8px 20px !important;
  background: #013CA6 !important;
  color: #fff !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin-top: 12px !important;
}

.wp-block-post-excerpt__more-link:hover {
  background: #024AD0 !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .cs-news-section .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cs-news-section .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* ── Contacte acasă ── */
.cs-home-contacts {
  background: #f4f4f4 !important;
  padding: 48px 0 !important;
}

.cs-home-contacts .contacts-title {
  text-align: center;
  margin-bottom: 32px;
}

.cs-home-contacts .contacts-title p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.cs-home-contacts .contacts-title h2 {
  font-size: 28px;
  color: #333;
  margin: 6px 0 0;
  font-weight: 700;
}

.cs-contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.cs-home-contacts .cs-header-icon .icon-circle {
  background: #013CA6;
  color: #fff;
  width: 56px;
  height: 56px;
  font-size: 22px;
}

@media (max-width: 768px) {
  .cs-contacts-grid { grid-template-columns: 1fr; }
}

/* ── Pagini interioare ── */
.cs-page-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 32px 0;
}

.cs-page-header h1 {
  margin: 0 !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #013CA6 !important;
}

.wp-block-post-content {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 32px 20px 48px !important;
}

.wp-block-post-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1em;
}

.wp-block-post-content h2 {
  font-size: 1.4rem;
  color: #333;
  margin: 2em 0 .75em;
}

.wp-block-media-text {
  margin-bottom: 2rem !important;
  padding: 0 !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06) !important;
}

.wp-block-media-text__media img {
  border-radius: 0 !important;
}

.wp-block-media-text__content {
  padding: 24px !important;
}

.wp-block-pullquote {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-pullquote blockquote {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #555 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-block-pullquote cite {
  font-size: .9rem !important;
  color: #013CA6 !important;
  font-weight: 600 !important;
  font-style: normal !important;
  margin-top: 12px;
  display: block;
}

.wp-block-file {
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  margin: 16px 0;
}

.wp-block-file .wp-block-file__button {
  background: #013CA6 !important;
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
}

/* ── Footer ── */
.cs-footer {
  background: #2d3748 !important;
  color: #cbd5e0 !important;
  padding: 40px 0 24px !important;
}

.cs-footer h5,
.cs-footer .wp-block-heading {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 0 12px !important;
}

.cs-footer-title,
.cs-footer .wp-block-site-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}

.cs-footer-title a,
.cs-footer .wp-block-site-title a {
  color: #fff !important;
}

.cs-footer-text {
  font-size: 14px !important;
  color: #a0aec0 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.cs-footer-text a {
  color: #e2e8f0 !important;
}

.cs-footer-text a:hover {
  color: #fff !important;
}

.cs-footer-copy {
  text-align: center;
  font-size: 12px !important;
  color: #718096 !important;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 32px !important;
  padding-top: 20px !important;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cs-footer .alignwide {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cs-footer .wp-block-columns {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

.cs-footer .wp-block-column {
  flex: 1;
  min-width: 200px;
}
