/*
Theme Name: Daulearn CMS (Bobekzhai)
Theme URI: https://ziz.kz
Author: ziz.kz
Author URI: https://ziz.kz
Description: Custom, high-security White Label theme developed for government kindergarten "Bobekzhai" (renamed to Daulearn CMS). Built on clean layout with ACF Pro Flexible Content architecture.
Version: 1.0.0
Text Domain: daulearn
Tags: clean, custom, kindergarten, white-label, government, high-security
*/


/* 1. Global Reset & Variables */
:root {
  --primary-color: #0288d1; /* Deep Sky Blue - Kazakh Flag themed / Educational */
  --primary-light: #e1f5fe;
  --primary-dark: #01579b;
  --secondary-color: #fbc02d; /* Warm Sunny Yellow */
  --secondary-light: #fff9c4;
  --accent-green: #4caf50; /* Sprout Green */
  --accent-orange: #ff9800;
  --text-dark: #1c3144; /* Main readable text color */
  --text-muted: #5c6f84;
  --bg-light: #f4f8fb; /* Soft background */
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --max-width: 1350px;

  /* Default Fonts */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Nunito", sans-serif;

  /* Accessibility Defaults */
  --font-multiplier: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: calc(1rem * var(--font-multiplier));
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-normal);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 2. Accessibility Impairment Panel & Styles */
.accessibility-panel {
  display: none;
  background-color: #1a2e40;
  color: var(--bg-white);
  padding: 16px 0;
  border-bottom: 3px solid var(--secondary-color);
  z-index: 1100;
  position: relative;
}

.panel-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-acc {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-acc:hover,
.btn-acc.active {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-color: var(--secondary-color);
}

.btn-theme {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn-theme-default {
  background-color: var(--primary-color);
  border-color: var(--bg-white);
}

.btn-theme-bw {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

.btn-theme-invert {
  background-color: #000000;
  color: #ffff00;
  border-color: #ffff00;
}

.btn-theme.active {
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.btn-close-panel {
  background: transparent;
  border: none;
  color: var(--bg-white);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-close-panel:hover {
  color: var(--secondary-color);
}

/* Accessibility state classes (applied to body / html) */
body.font-large {
  --font-multiplier: 1.2;
}

body.font-xlarge {
  --font-multiplier: 1.4;
}

/* Monochrome High Contrast Theme */
body.theme-bw {
  background-color: #ffffff !important;
  background-image: none !important;
  background: #ffffff !important;
  color: #000000 !important;
}

body.theme-bw *,
body.theme-bw::before,
body.theme-bw::after,
body.theme-bw *::before,
body.theme-bw *::after {
  background-color: #ffffff !important;
  background-image: none !important;
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.theme-bw input,
body.theme-bw textarea,
body.theme-bw select,
body.theme-bw button,
body.theme-bw .btn,
body.theme-bw .top-bar,
body.theme-bw .accessibility-panel,
body.theme-bw .btn-acc {
  background-color: #ffffff !important;
  background-image: none !important;
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}

body.theme-bw .btn-theme-bw {
  background-color: #000000 !important;
  background-image: none !important;
  background: #000000 !important;
  color: #ffffff !important;
}

body.theme-bw .shape-fill {
  fill: #ffffff !important;
}

/* Inverted Dark Theme */
body.theme-invert {
  background-color: #000000 !important;
  background-image: none !important;
  background: #000000 !important;
  color: #ffff00 !important;
}

body.theme-invert *,
body.theme-invert::before,
body.theme-invert::after,
body.theme-invert *::before,
body.theme-invert *::after {
  background-color: #000000 !important;
  background-image: none !important;
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.theme-invert input,
body.theme-invert textarea,
body.theme-invert select,
body.theme-invert button,
body.theme-invert .btn,
body.theme-invert .top-bar,
body.theme-invert .accessibility-panel,
body.theme-invert .btn-acc {
  background-color: #000000 !important;
  background-image: none !important;
  background: #000000 !important;
  border: 2px solid #ffff00 !important;
  color: #ffff00 !important;
}

body.theme-invert .btn-theme-invert {
  background-color: #ffff00 !important;
  background-image: none !important;
  background: #ffff00 !important;
  color: #000000 !important;
}

body.theme-invert .shape-fill {
  fill: #000000 !important;
}

/* Hide images setting */
body.images-hidden img,
body.images-hidden iframe,
body.images-hidden .decoration-circle,
body.images-hidden svg:not(.sun-logo-svg) {
  display: none !important;
}

/* 3. Top Utility Bar */
.top-bar {
  background-color: #014e73;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.state-links {
  display: flex;
  gap: 20px;
}

.state-links a {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.state-links a:hover {
  color: var(--secondary-color);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-accessibility {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-accessibility:hover {
  color: var(--secondary-color);
}

.lang-selector {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-btn.active {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-color: var(--secondary-color);
}

/* 4. Main Header & Navigation */
.main-header {
  background-color: var(--bg-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sun-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sun-logo-svg .sun-rays {
  transform-origin: 50px 50px;
  animation: rotateSun 25s linear infinite;
}

@keyframes rotateSun {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-menu ul {
  display: flex;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-contacts .phone-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 50px;
}

.header-contacts .phone-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1050;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  padding: 30px 24px;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  display: block;
  padding: 5px 0;
}

.drawer-link:hover {
  color: var(--primary-color);
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.drawer-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.drawer-socials {
  display: flex;
  gap: 16px;
}

.drawer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.drawer-socials a:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.drawer-overlay.open {
  display: block;
}

/* 5. Hero Section */
.hero {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-white);
  transform: rotate(2deg);
  transition: transform var(--transition-normal);
}

.image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--bg-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.circle-1 {
  width: 150px;
  height: 150px;
  background-color: var(--secondary-color);
  opacity: 0.3;
  top: -40px;
  right: -40px;
}

.circle-2 {
  width: 250px;
  height: 250px;
  background-color: var(--accent-green);
  opacity: 0.2;
  bottom: -60px;
  left: -60px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.hero-wave .shape-fill {
  fill: var(--bg-light);
}

/* 6. Section Header Template */
.section-header {
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.3rem;
  color: var(--primary-dark);
}

.header-divider {
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 7. About Section */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.about-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-intro {
  border-top-color: var(--primary-color);
}

.card-details {
  border-top-color: var(--accent-green);
}

.card-facts {
  border-top-color: var(--secondary-color);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--primary-color);
  display: inline-flex;
}

.card-intro .card-icon {
  color: var(--primary-color);
}
.card-details .card-icon {
  color: var(--accent-green);
}
.card-facts .card-icon {
  color: var(--secondary-color);
}

.about-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.about-card p {
  color: var(--text-muted);
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* Legal Info Box */
.legal-info-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.legal-info-header {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 20px 30px;
}

.legal-info-header h4 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bg-white);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 30px;
  gap: 24px;
}

.legal-item {
  display: flex;
  flex-direction: column;
}

.legal-item.full-width {
  grid-column: span 2;
}

.legal-item .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.legal-item .val {
  font-weight: 600;
  color: var(--text-dark);
}

/* 8. State Information Section (President Quote & Badges) */
.state-section {
  background-color: #eceff1;
  padding: 80px 0;
}

.president-grid {
  margin-bottom: 50px;
}

.president-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 320px 1fr;
}

.president-img-col {
  position: relative;
  background-color: #014e73;
}

.president-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.president-info-col {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: block;
}

.president-info-col blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
}

.quote-icon-start {
  opacity: 0.15;
  font-size: 2rem;
  margin-right: 8px;
  vertical-align: top;
  color: var(--primary-color);
}

.quote-icon-end {
  opacity: 0.15;
  font-size: 2rem;
  margin-left: 8px;
  vertical-align: bottom;
  color: var(--primary-color);
}

.author-block {
  margin-bottom: 30px;
}

.president-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.president-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-akorda {
  background-color: #014e73;
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-akorda:hover {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.portals-title-wrap {
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
  padding-left: 16px;
}

.portals-title-wrap h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

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

.portal-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  height: 100%;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.portal-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.portal-body h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.portal-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 9. Director's Corner Section */
.director-section {
  padding: 80px 0;
}

.director-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 350px 1fr;
  overflow: hidden;
}

.director-info-col {
  background-color: #f8fafc;
  padding: 40px 30px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.director-img-container {
  position: relative;
  margin-bottom: 24px;
  width: 200px;
  height: 200px;
}

.director-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-white);
  box-shadow: var(--shadow-md);
}

.director-label {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-green);
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.director-name {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.director-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 30px;
}

.director-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.director-message-col {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-heading {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

.message-content p {
  margin-bottom: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

.signature {
  margin-top: 30px;
  font-size: 1rem;
  border-left: 3px solid var(--accent-green);
  padding-left: 14px;
}

/* 10. Parents Section (Tabs) */
.parents-section {
  background-color: #edf4f9;
  padding: 80px 0;
}

.tabs-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  padding: 20px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: rgba(2, 136, 209, 0.03);
}

.tab-btn.active {
  color: var(--primary-color);
  background-color: var(--bg-white);
  border-bottom: 4px solid var(--primary-color);
}

.tabs-content {
  padding: 48px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.tab-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Timeline Layout */
.routine-timeline {
  position: relative;
  padding-left: 30px;
}

.routine-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 5px;
  width: 2.5px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.15);
}

.timeline-item .time {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Documents Grid */
.docs-required-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.doc-req-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.doc-req-card .number {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(2, 136, 209, 0.05);
  line-height: 1;
}

.doc-req-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.doc-req-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.alert-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.alert-warning {
  background-color: #fff3e0;
  border-left: 4px solid var(--accent-orange);
  color: #e65100;
}

.alert-warning i {
  font-size: 1.4rem;
}

/* Menu info layout */
.menu-info-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.menu-standards-col h4,
.menu-sample-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.standards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.standards-list li {
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.standards-list i {
  color: var(--accent-green);
  font-size: 1.2rem;
  margin-top: 2px;
}

.sample-menu-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meal-block {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.meal-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meal-time {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meal-desc {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* 11. Documents Section */
.documents-section {
  padding: 80px 0;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
}

.doc-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.doc-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.doc-icon {
  font-size: 2.8rem;
  color: #ef5350; /* PDF red color */
  display: flex;
  align-items: center;
}

.doc-card:nth-child(4) .doc-icon {
  color: #42a5f5; /* Word blue color */
}

.doc-info {
  flex-grow: 1;
}

.doc-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.doc-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.doc-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-download {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.btn-download:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* 12. Contacts Section */
.contacts-section {
  background-color: #f8fafc;
  padding: 80px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto 60px;
}

.contact-info-col h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
}

.contact-detail-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.detail-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.detail-body p,
.detail-body a {
  color: var(--text-muted);
  font-weight: 600;
}

.detail-body a:hover {
  color: var(--primary-color);
}

.social-links-wrap {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--bg-white) !important;
}

.social-link.facebook {
  background-color: #3b5998;
}

.social-link.facebook:hover {
  background-color: #2d4373;
}

.social-link.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link.instagram:hover {
  opacity: 0.9;
}

/* Map frame box */
.map-wrapper-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.map-header {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 20px 30px;
}

.map-header h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-container {
  line-height: 0;
}

/* 13. Footer Styles */
.main-footer {
  background-color: #112233;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.footer-logo .logo-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bg-white);
  letter-spacing: 1px;
}

.footer-logo .logo-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2.5px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--bg-white);
  transform: translateX(4px);
}

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

.contact-list li {
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
}

.contact-list i {
  color: var(--secondary-color);
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.7);
}

.contact-list a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  background-color: #0b1622;
  padding: 30px 0;
  font-size: 0.8rem;
}

.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copy-text {
  margin: 0;
}

.developer-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
}

/* 14. Responsive Breakpoints */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .president-card {
    grid-template-columns: 280px 1fr;
  }

  .president-info-col {
    padding: 32px;
  }

  .director-card {
    grid-template-columns: 300px 1fr;
  }

  .director-message-col {
    padding: 40px;
  }
}

@media (max-width: 1100px) {
  .top-bar {
    display: none; /* Hide top utility bar to preserve screen space on tablets/mobiles */
  }

  .nav-menu,
  .header-contacts {
    display: none; /* Switch to hamburger layout */
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }

  .gov-badge {
    margin-bottom: 16px;
  }

  .hero-meta-grid {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-container {
    order: -1; /* Place image on top on mobile */
    margin-bottom: 20px;
  }

  .image-wrapper {
    max-width: 450px;
  }

  .president-card {
    grid-template-columns: 1fr;
  }

  .president-img-col {
    height: 350px;
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-info-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .menu-info-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-item.full-width {
    grid-column: span 1;
  }

  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-btn {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .tab-btn.active {
    border-bottom: none;
    border-left: 4px solid var(--primary-color);
  }

  .tabs-content {
    padding: 24px 16px;
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    padding: 16px 20px;
    gap: 16px;
  }

  .form-wrapper {
    padding: 24px 16px;
  }

  .portals-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. News Page Styles
   ========================================================================== */
.news-hero {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.news-hero h1 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.news-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.news-layout {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr;
  gap: 40px;
  padding: 60px 0 80px;
}

.news-posts-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-grid-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.news-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 136, 209, 0.3);
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--primary-light);
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.05);
}

.news-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

/* Category colors */
.cat-advice {
  background-color: var(--accent-orange);
}
.cat-education {
  background-color: var(--primary-color);
}
.cat-health {
  background-color: var(--accent-green);
}
.cat-events {
  background-color: #ef5350;
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--text-dark);
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.news-read-more {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.news-read-more:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* Sidebar Widgets */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Search widget */
.search-form {
  display: flex;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  overflow: hidden;
  background-color: var(--bg-light);
  transition: border-color var(--transition-fast);
}

.search-form:focus-within {
  border-color: var(--primary-color);
}

.search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
}

.search-button {
  background: transparent;
  border: none;
  padding: 0 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-button:hover {
  color: var(--primary-color);
}

/* Categories widget */
.category-list li {
  margin-bottom: 12px;
}

.category-list li:last-child {
  margin-bottom: 0;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: all var(--transition-fast);
}

.category-link:hover,
.category-link.active {
  color: var(--primary-color);
  padding-left: 6px;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-light);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 20px;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.category-link:hover .category-count,
.category-link.active .category-count {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* Contact sidebar widget */
.widget-cta {
  background: linear-gradient(135deg, #01579b 0%, #0288d1 100%);
  color: var(--bg-white);
  border: none;
  text-align: center;
  padding: 30px 24px;
}

.widget-cta h3 {
  color: var(--bg-white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.widget-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.widget-cta .btn {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border: none;
  width: 100%;
}

.widget-cta .btn:hover {
  background-color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Single News Details Styling */
.news-single-hero {
  padding: 30px 0 20px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.news-breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-breadcrumbs a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-breadcrumbs a:hover {
  color: var(--primary-dark);
}

.news-breadcrumbs i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.news-breadcrumbs span.active {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

@media (max-width: 576px) {
  .news-breadcrumbs span.active {
    max-width: 150px;
  }
}

.news-single-content-wrap {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .news-single-content-wrap {
    padding: 24px;
  }
}

.news-single-header {
  margin-bottom: 24px;
}

.news-single-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 16px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .news-single-title {
    font-size: 1.6rem;
  }
}

.news-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.news-single-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-single-media {
  margin-bottom: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-single-media img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.news-single-body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.news-single-body-text p {
  margin-bottom: 20px;
}

.news-single-body-text blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  background-color: var(--bg-light);
  margin: 28px 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-single-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
}

.btn-back-to-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.btn-back-to-news:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
  transform: translateX(-4px);
}

/* Empty State */
.news-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.news-empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.news-empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.news-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Overrides for News */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .news-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .widget-cta {
    grid-column: span 2;
  }
}

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

  .news-sidebar {
    grid-template-columns: 1fr;
  }

  .widget-cta {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .news-hero h1 {
    font-size: 2.2rem;
  }
}
