/*
Theme Name: Mektep211 Theme
Template: astra
Description: Child theme - school site style matching mektep211.edu.kz
Version: 2.0.0
Text Domain: mektep211
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --blue-dark:   #1a5276;
  --blue-main:   #1f618d;
  --blue-light:  #2e86c1;
  --gold:        #f0b429;
  --gold-hover:  #e67e22;
  --white:       #ffffff;
  --gray-light:  #f4f6f7;
  --gray-border: #d5d8dc;
  --text-dark:   #1c2833;
  --text-mid:    #515a5a;
  --sidebar-w:   260px;
  --content-max: 1200px;
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text-dark); background: var(--gray-light); font-size: 15px; line-height: 1.6; }
a { color: var(--blue-main); text-decoration: none; }
a:hover { color: var(--gold-hover); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container-wide {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

/* Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-logo img,
.site-logo svg { width: 60px; height: auto; }

.site-logo-placeholder svg { display: block; }

.site-title-wrap .site-label {
  display: block;
  font-size: 10px;
  color: var(--blue-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-title-wrap .site-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  max-width: 380px;
}

/* Header right */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.header-top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.accessibility-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mid);
}

.accessibility-link:hover { color: var(--blue-main); }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-switcher .lang-link,
.lang-switcher a {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  transition: all 0.2s;
}

.lang-switcher .lang-link:hover,
.lang-switcher a:hover,
.lang-switcher .lang-link.active,
.lang-switcher .current-lang a {
  color: var(--gold) !important;
  background: none;
}

/* Search form — icon button */
.header-search .search-form { display: flex; }

.search-wrap {
  display: flex;
  border: 1.5px solid var(--gray-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-wrap:focus-within { border-color: var(--blue-light); }

.header-search .search-field {
  padding: 6px 12px;
  border: none;
  font-size: 13px;
  width: 180px;
  outline: none;
  background: var(--white);
}

.header-search .search-submit {
  padding: 6px 12px;
  background: var(--blue-main);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.header-search .search-submit:hover { background: var(--blue-dark); }

/* Welcome banner */
.header-welcome {
  background: var(--blue-main);
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
  text-align: right;
}

/* =============================================
   MAIN NAVIGATION
   ============================================= */
.main-navigation {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  border-bottom: 3px solid var(--blue-light);
}

.main-navigation .container-wide { padding-top: 0; padding-bottom: 0; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--gold);
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

/* Dropdown */
.nav-menu .menu-item-has-children { position: relative; }

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--blue-light);
  min-width: 220px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  z-index: 999;
}

.nav-menu .menu-item-has-children:hover .sub-menu { display: block; }

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dark);
  font-size: 13px;
  border-bottom: 1px solid var(--gray-border);
  transition: all 0.2s;
}

.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu li a:hover { background: var(--gray-light); color: var(--blue-main); padding-left: 24px; }

/* =============================================
   TWO-COLUMN LAYOUT
   ============================================= */
.content-columns {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Sidebar — override Astra's #secondary { width:100% } */
#secondary.sidebar-area,
.sidebar-area {
  width: var(--sidebar-w) !important;
  max-width: var(--sidebar-w) !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

/* Main content — override Astra's #primary { width:100% } */
#primary.site-main,
.site-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Sidebar category menu */
.sidebar-nav-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.sidebar-menu-list {
  margin: 0;
  padding: 0;
}

.sidebar-menu-list li {
  border-bottom: 1px solid var(--gray-border);
}

.sidebar-menu-list li:last-child { border-bottom: none; }

.sidebar-menu-list li a {
  display: block;
  padding: 11px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.18s;
}

.sidebar-menu-list li a:hover,
.sidebar-menu-list li.current-menu-item a {
  color: var(--blue-main);
  background: var(--gray-light);
  padding-left: 22px;
}

/* Sidebar widgets */
.sidebar-area .widget {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.sidebar-area .widget-title {
  background: var(--blue-main);
  color: var(--white);
  font-size: 13px;
  padding: 10px 16px;
  margin: 0;
}

.sidebar-area .widget ul li {
  border-bottom: 1px solid var(--gray-border);
  padding: 8px 16px;
  font-size: 13px;
}

.sidebar-area .widget ul li a { color: var(--text-dark); }
.sidebar-area .widget ul li a:hover { color: var(--blue-main); }

/* Main content area */
.site-main {
  flex: 1;
  min-width: 0;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--gray-light);
  border-radius: 3px;
}

.breadcrumb ul { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.breadcrumb li { display: flex; align-items: center; }

.breadcrumb li + li::before { content: '/'; margin-right: 4px; color: var(--text-mid); }

.breadcrumb a { color: var(--blue-main); }

/* =============================================
   HOMEPAGE — HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.hero-slides { position: relative; height: 340px; }

.hero-slide {
  position: absolute;
  inset: 0;
  background: var(--blue-dark) center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,60,0.72) 0%, rgba(10,30,60,0.15) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px 36px;
}

.hero-text { z-index: 2; }

.hero-greeting {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  letter-spacing: 2px;
  margin: 0 0 6px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover { background: rgba(255,255,255,0.35); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.dot.active { background: var(--gold); transform: scale(1.3); }

/* =============================================
   QUICK LINKS SECTION
   ============================================= */
.quick-links-section {
  margin: 18px 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  text-decoration: none;
}

.quick-link-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); color: var(--white); }

.quick-link-1 { background: linear-gradient(135deg, #1a5276, #2e86c1); }
.quick-link-2 { background: linear-gradient(135deg, #117a65, #1abc9c); }
.quick-link-3 { background: linear-gradient(135deg, #6c3483, #9b59b6); }
.quick-link-4 { background: linear-gradient(135deg, #b7950b, #f0b429); }
.quick-link-5 { background: linear-gradient(135deg, #922b21, #e74c3c); }
.quick-link-6 { background: linear-gradient(135deg, #1a5276, #148f77); }

.ql-icon { font-size: 28px; line-height: 1; }
.ql-label { line-height: 1.3; }

/* =============================================
   ABOUT + VIDEO SECTION
   ============================================= */
.about-video-section { margin-bottom: 32px; }

.about-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-text-block {
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.about-text-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* =============================================
   HOMEPAGE — shared
   ============================================= */
.home-section { margin-bottom: 32px; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  border-left: 4px solid var(--gold);
  padding: 9px 16px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-main) 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }

.news-thumb a { display: block; overflow: hidden; }
.news-thumb img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.3s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }

/* Герб-заглушка вместо отсутствующего фото */
.news-thumb-default {
  background: linear-gradient(135deg, #eaf2fb, #d6eaf8);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}
.news-thumb-default a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.news-thumb-default img { width: auto; height: 90px; object-fit: contain; opacity: 0.55; }

.news-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }

.news-date {
  font-size: 11px;
  color: var(--blue-light);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-title { font-size: 14px; margin-bottom: 8px; line-height: 1.45; flex: 1; }
.news-title a { color: var(--text-dark); }
.news-title a:hover { color: var(--blue-main); }

.news-excerpt { font-size: 12.5px; color: var(--text-mid); }

.section-more { text-align: center; margin-top: 20px; }

/* =============================================
   PARTNERS CAROUSEL
   ============================================= */
.partners-section { margin-bottom: 32px; }

.partners-carousel-wrap {
  overflow: hidden;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 14px 0;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  will-change: transform;
}

.partner-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.partner-logo:hover { opacity: 1; }

.partner-logo img {
  height: 52px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 0.2s;
}

.partner-logo:hover img { filter: none; }

/* =============================================
   ASTRA OVERRIDES — remove white separate-container box
   ============================================= */
.ast-separate-container #content.site-content,
.ast-separate-container .ast-container,
.ast-separate-container #primary .site-main,
.ast-separate-container .entry-content-wrap {
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ast-separate-container article.single-post,
.ast-separate-container article.single-page {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}
/* Prevent Astra from adding extra inner padding on containers */
.ast-plain-container .site-content > .ast-container,
.ast-plain-container .site-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =============================================
   POST / PAGE CONTENT
   ============================================= */
.single-page, .single-post {
  background: var(--white);
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.entry-header { margin-bottom: 20px; }

.entry-title {
  font-size: 1.4rem;
  color: var(--blue-dark);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  margin-top: 12px;
  line-height: 1.3;
}

.entry-meta {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.entry-meta a { color: var(--blue-light); }

.meta-sep { color: var(--gray-border); }

.entry-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

.entry-content p { margin-bottom: 14px; }
.entry-content h2, .entry-content h3 { color: var(--blue-dark); margin: 20px 0 10px; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.entry-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 14px; }
.entry-content img { border-radius: 4px; margin: 10px 0; }
.entry-content a { color: var(--blue-main); text-decoration: underline; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.entry-content table th {
  background: var(--blue-main);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
}

.entry-content table td {
  padding: 8px 12px;
  border: 1px solid var(--gray-border);
}

.entry-content table tr:nth-child(even) td { background: var(--gray-light); }

.post-thumbnail { margin-bottom: 20px; }
.post-thumbnail img { width: 100%; border-radius: 6px; max-height: 400px; object-fit: cover; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
  font-size: 13px;
}

.post-navigation a { color: var(--blue-main); }
.post-navigation a:hover { color: var(--gold-hover); }

/* =============================================
   ARCHIVE / LIST
   ============================================= */
.archive-header {
  margin-bottom: 24px;
}

.archive-title {
  font-size: 1.5rem;
  color: var(--blue-dark);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}

.posts-list { display: flex; flex-direction: column; gap: 16px; }

.entry-card {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--blue-light);
  display: flex;
  gap: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.entry-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }

.entry-thumbnail { flex-shrink: 0; width: 160px; }
.entry-thumbnail img { width: 100%; height: 120px; object-fit: cover; display: block; }

.entry-thumbnail-default {
  background: linear-gradient(135deg, #eaf2fb, #d6eaf8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-thumbnail-default a { display: flex; align-items: center; justify-content: center; width: 100%; height: 120px; }
.entry-thumbnail-default img { width: auto; height: 70px; object-fit: contain; opacity: 0.5; }

.entry-body { padding: 14px 16px 14px 0; flex: 1; }

.entry-meta { font-size: 12px; color: var(--text-mid); margin-bottom: 6px; }
.entry-meta a { color: var(--blue-light); }

.entry-card .entry-title { font-size: 1rem; margin: 0 0 8px; padding: 0; border: none; color: var(--text-dark); }
.entry-card .entry-title a { color: var(--text-dark); }
.entry-card .entry-title a:hover { color: var(--blue-main); }

.entry-excerpt { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; }

/* =============================================
   BUTTONS
   ============================================= */
.read-more, .btn-primary {
  display: inline-block;
  padding: 7px 20px;
  background: var(--blue-main);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.read-more:hover, .btn-primary:hover { background: var(--blue-dark); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-dark);
}

.page-numbers:hover, .page-numbers.current {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a252f;
  color: rgba(255,255,255,0.75);
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-title {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer p { font-size: 13px; line-height: 1.6; }

.site-footer ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  line-height: 1.5;
}
.site-footer ul li:last-child { border-bottom: none; }

.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  background: #111;
  padding: 12px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =============================================
   SEARCH RESULTS
   ============================================= */
.search-no-results h1, .search-results h1 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

/* =============================================
   SIDEBAR WIDGETS — DIRECTOR / PRESIDENT
   ============================================= */
.widget-director,
.widget-president,
.widget-symbols {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.widget-director .widget-header,
.widget-president .widget-header,
.widget-symbols .widget-header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main));
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 14px;
}

.director-photo,
.president-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 200px;
}

.director-info,
.president-info {
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

.director-name,
.president-name {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 13px;
  margin-bottom: 2px;
}

.director-title,
.president-title {
  color: var(--text-mid);
  font-size: 11.5px;
  margin-bottom: 10px;
}

.btn-virtual-reception {
  display: block;
  text-align: center;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--blue-dark) !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-virtual-reception:hover { background: var(--gold-hover); color: var(--white) !important; }

.symbols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
}

.symbol-item { text-align: center; }
.symbol-item img { height: 60px; width: auto; object-fit: contain; border-radius: 3px; }
.symbol-item span { display: block; font-size: 10px; color: var(--text-mid); margin-top: 4px; }

/* =============================================
   HEADER — modern gradient
   ============================================= */
.header-welcome {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-main) 60%, var(--blue-light) 100%);
}

.main-navigation {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-main) 100%);
  border-top: none;
  border-bottom: 3px solid var(--gold);
}

.main-navigation .container-wide { padding-top: 0; padding-bottom: 0; }

.nav-menu > li > a {
  color: rgba(255,255,255,0.88);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--gold);
  background: rgba(0,0,0,0.15);
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after {
  background: var(--gold);
  bottom: 0;
}

.nav-menu .sub-menu {
  border-top: 3px solid var(--gold);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
  .about-video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .content-columns { flex-direction: column; }
  .sidebar-area,
  #secondary.sidebar-area { width: 100% !important; max-width: 100% !important; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; }
  .site-title-wrap .site-name { font-size: 12px; max-width: 260px; }
  .header-search .search-field { width: 160px; }
  .hero-slides { height: 260px; }
  .hero-greeting { font-size: 1.6rem; }
}

@media (max-width: 600px) {
  .nav-menu { flex-direction: column; }
  .nav-menu .sub-menu { position: static; box-shadow: none; border: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .entry-card { flex-direction: column; }
  .entry-thumbnail { width: 100%; }
  .entry-thumbnail img { height: 200px; }
  .header-right { align-items: flex-start; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slides { height: 200px; }
  .hero-greeting { font-size: 1.2rem; }
  .hero-sub { font-size: 13px; }
  .slider-arrow { width: 32px; height: 32px; font-size: 14px; }
}

/* =============================================
   POLYLANG language switcher overrides
   ============================================= */
.lang-switcher .pll-parent-menu-item { display: none; }
.lang-switcher ul.pll-language-switcher { display: flex; gap: 4px; margin: 0; list-style: none; }
.lang-switcher ul.pll-language-switcher li a { color: var(--blue-dark); font-weight: 600; font-size: 13px; }
.lang-switcher ul.pll-language-switcher li.current-lang a { color: var(--gold); }
