/* ============================================================
   MEADD Design System - Ministère de l'Environnement
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-primary: #154734;
  --color-primary-light: #2d6b51;
  --color-primary-rgb: 21, 71, 52;
  --color-secondary: #c5a059;
  --color-secondary-rgb: 197, 160, 89;
  --color-text-main: #1f2937;
  --color-text-light: #6b7280;
  --color-bg-light: #f9fafb;
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Merriweather', 'Inter', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --padding-container: 5%;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-base: all 0.3s ease;
}

/* ── Base & Reset ── */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  transition: var(--transition-base);
}

img {
  max-width: 100%;
}

/* ── Utility Classes ── */
.text-gold { color: var(--color-secondary); }
.text-primary-meadd { color: var(--color-primary); }
.bg-primary-meadd { background-color: var(--color-primary); }
.bg-secondary-meadd { background-color: var(--color-secondary); }

/* ── Header Top Bar ── */
.meadd-topbar,
.header-top {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-family: var(--font-main);
}

.meadd-topbar a,
.header-top a {
  color: rgba(255, 255, 255, 0.9);
}

.meadd-topbar a:hover,
.header-top a:hover {
  color: var(--color-secondary);
}

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

/* ── Header & Navigation ── */
.meadd-header,
header#header {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.meadd-header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.meadd-header .logo,
header .logo {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  max-width: 350px;
  flex-shrink: 0;
}

.meadd-header .logo img,
header .logo img {
  height: 65px;
  width: auto;
}

.meadd-header .logo small {
  font-weight: 400;
  font-size: 0.75em;
  color: var(--color-text-light);
  font-family: var(--font-main);
}

/* Nav Links */
.nav-links,
.meadd-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links a,
.meadd-nav a,
#navbar ul a.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active,
.meadd-nav a:hover,
.meadd-nav a.active,
#navbar ul a.nav-link:hover,
#navbar ul a.nav-link.active {
  color: var(--color-primary);
  background: rgba(21, 71, 52, 0.05);
}

/* Nav Dropdown */
#navbar .dropdown ul,
.meadd-nav .dropdown-menu,
.nav-links .dropdown-menu {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 200px;
}

#navbar .dropdown ul a,
.meadd-nav .dropdown-menu a,
.nav-links .dropdown-menu a {
  color: var(--color-text-main);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

#navbar .dropdown ul a:hover,
.meadd-nav .dropdown-menu a:hover,
.nav-links .dropdown-menu a:hover {
  background: rgba(21, 71, 52, 0.05);
  color: var(--color-primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* ── Buttons ── */
.btn-meadd,
.btn-primary-meadd {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid var(--color-primary);
  text-decoration: none;
  font-family: var(--font-main);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-meadd:hover,
.btn-primary-meadd:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-meadd {
  background: transparent;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  border: 2px solid var(--color-primary);
  text-decoration: none;
  font-family: var(--font-main);
  transition: var(--transition-base);
}

.btn-outline-meadd:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Override Bootstrap .btn-primary for MEADD theme */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid var(--color-primary);
  text-decoration: none;
  font-family: var(--font-main);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-gold:hover {
  background: #b08d47;
  color: var(--color-white);
}

/* ── Hero Section ── */
.meadd-hero,
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.meadd-hero .hero-bg,
.hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.meadd-hero .hero-overlay,
.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(21, 71, 52, 0.8));
  z-index: 0;
}

.meadd-hero .hero-content,
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.meadd-hero h1,
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
}

.meadd-hero p,
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons .btn-meadd {
  font-size: 1rem;
}

.hero-buttons .btn-outline-hero {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}

.hero-buttons .btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ── Quick Access Cards ── */
.quick-access {
  margin-top: -4rem;
  position: relative;
  z-index: 10;
  padding-bottom: var(--spacing-lg);
}

.card-grid,
.meadd-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.meadd-card,
.card-grid .card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border-top: 4px solid var(--color-secondary);
  text-align: center;
}

.meadd-card:hover,
.card-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.meadd-card .card-icon,
.card-grid .card .card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.meadd-card h3,
.card-grid .card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.meadd-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.meadd-card .card-link {
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
}

.meadd-card .card-link:hover {
  color: var(--color-primary-light);
}

/* ── Minister / Profile Section ── */
.minister-section {
  padding: var(--spacing-lg) 0;
  background: var(--color-white);
}

.minister-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.minister-content h4 {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--font-main);
}

.minister-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.minister-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.minister-img-wrapper {
  position: relative;
  max-width: 400px;
  margin-left: auto;
}

.minister-img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.minister-img-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-secondary);
  z-index: -1;
  border-radius: 8px;
}

/* ── Section Titles ── */
.section-title,
.meadd-section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
}

.section-title::after,
.meadd-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-secondary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* ── News Cards ── */
.news-section {
  padding: var(--spacing-lg) 0;
  background: #f3f4f6;
}

.news-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-card .news-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.news-card .news-content {
  padding: 1.5rem;
}

.news-card .news-date {
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  font-family: var(--font-main);
}

.news-card .news-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
  font-family: var(--font-heading);
  line-height: 1.4;
}

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

.news-card .news-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.9rem;
}

.news-card .news-link:hover {
  color: var(--color-primary-light);
}

/* ── Breaking News Ticker ── */
.breaking-news {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 0;
  overflow: hidden;
}

.breaking-news .label {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.25rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  white-space: nowrap;
  font-family: var(--font-main);
}

.breaking-news .ticker {
  overflow: hidden;
  flex: 1;
  margin-left: 1rem;
}

.breaking-news a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.breaking-news a:hover {
  color: var(--color-secondary);
}

/* ── Footer ── */
.meadd-footer,
footer#footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 0;
  font-family: var(--font-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4,
.meadd-footer h4,
.meadd-footer .footer-title h3 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.meadd-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-links a:hover,
.meadd-footer a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  font-size: 1.5rem;
}

.footer-social .social-links,
.footer-social-fallback {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0 !important;
}

.footer-social a,
.footer-social-fallback a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
}

.footer-social .social-links a,
.footer-social-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover,
.footer-social-fallback a:hover {
  color: var(--color-secondary);
  padding-left: 0;
  transform: translateY(-2px);
}

.meadd-copyright,
.copyright {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meadd-copyright a {
  color: var(--color-secondary);
}

/* ── Footer Subscribe Form ── */
.meadd-footer .footer-newsletter form {
  display: flex;
  gap: 0.5rem;
}

.meadd-footer .footer-newsletter input[type="email"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  font-family: var(--font-main);
}

.meadd-footer .footer-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.meadd-footer .footer-newsletter button {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.meadd-footer .footer-newsletter button:hover {
  background: #b08d47;
}

/* ── Breadcrumbs ── */
.meadd-breadcrumbs,
.breadcrumbs {
  background: var(--color-bg-light);
  padding: 20px 0;
  min-height: 40px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-size: 0.9rem;
}

.breadcrumbs h2,
.breadcrumbs h1 {
  font-size: 24px;
  font-weight: 300;
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #6c757d;
  content: "/";
}

.breadcrumbs a,
.meadd-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover,
.meadd-breadcrumbs a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}

@media (max-width: 992px) {
  .breadcrumbs h2 {
    margin: 0 0 10px;
  }
}

/* ── Page Cover ── */
.page-cover {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* ── Forms ── */
.meadd-form .form-control,
.form-control {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-family: var(--font-main);
  transition: var(--transition-base);
}

.meadd-form .form-control:focus,
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(21, 71, 52, 0.15);
}

/* ── Cards (general content) ── */
.meadd-content-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-base);
}

.meadd-content-card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Pagination ── */
.pagination .page-link {
  color: var(--color-primary);
  border-color: var(--color-border);
  font-family: var(--font-main);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pagination .page-link:hover {
  background-color: rgba(21, 71, 52, 0.05);
  color: var(--color-primary);
}

/* ── Alerts ── */
.alert {
  border-radius: 8px;
  font-family: var(--font-main);
}

/* ── Topbar Controls ── */
#topbar .controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#topbar .header-dropdown .btn {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
}

#topbar .header-dropdown .btn:hover {
  color: var(--color-secondary);
}

#topbar .header-dropdown img {
  height: 16px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

#topbar .header-dropdown .dropdown-menu {
  background: var(--color-white);
}

#topbar .header-dropdown .dropdown-item {
  color: var(--color-text-main);
}

#topbar .header-dropdown .dropdown-item:hover {
  color: var(--color-primary);
  background: rgba(21, 71, 52, 0.05);
}

#topbar .header-dropdown .dropdown-item img {
  height: 16px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

#topbar .header-search-btn {
  color: rgba(255, 255, 255, 0.9);
}

#topbar .header-search-btn:hover {
  color: var(--color-secondary);
}

/* Appearance Toggle */
.appearance-toggle .checkbox-label {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── WhatsApp Float ── */
.whatsapp_float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition-base);
}

.whatsapp_float:hover {
  transform: scale(1.1);
  color: white;
}

/* ── Back to Top ── */
.back-to-top {
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background: var(--color-primary-light);
  color: white;
}

/* ── Services / Icon Boxes ── */
.services .icon-box {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: white;
  transition: var(--transition-base);
}

.services .icon-box:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.services .icon-box .icon i {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.services .icon-box h2 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.services .icon-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ── Staff / Team ── */
.staff .member {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
}

.staff .member:hover {
  box-shadow: var(--shadow-md);
}

.staff .member h3 {
  color: var(--color-primary);
}

/* ── Countdown Section ── */
.countdown-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.countdown-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.countdown-event-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.countdown-event-date {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.countdown-event-date i {
  margin-right: 0.4rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  min-width: 90px;
  backdrop-filter: blur(4px);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-heading);
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  opacity: 0.8;
}

.btn-countdown-details {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}

.btn-countdown-details:hover {
  background: #fff;
  color: var(--color-primary);
}

/* Header mini countdown — navbar CTA */
.header-countdown {
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem !important;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-links .header-countdown,
.meadd-nav .header-countdown {
  color: var(--color-white) !important;
  background: var(--color-primary) !important;
  border-radius: 6px;
}

/* ── Cabinet Section (Carousel) ── */
.cabinet-section {
  padding: 4rem 0;
  background: var(--color-bg-light);
}

.cabinet-member {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
  text-align: center;
}

.cabinet-member:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cabinet-member-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--color-bg-light);
}

.cabinet-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cabinet-member:hover .cabinet-member-img img {
  transform: scale(1.05);
}

.cabinet-member-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 3rem;
  opacity: 0.3;
}

.cabinet-member-info {
  padding: 1.25rem 1rem;
}

.cabinet-member-info h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.cabinet-member-info p {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin: 0;
}

.cabinet-swiper {
  padding-bottom: 3rem;
}

.cabinet-prev,
.cabinet-next {
  color: var(--color-primary) !important;
}

.cabinet-prev::after,
.cabinet-next::after {
  font-size: 1.2rem !important;
}

.cabinet-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}

.news-swiper {
  padding-bottom: 3rem;
}

.news-prev,
.news-next {
  color: var(--color-primary) !important;
}

.news-prev::after,
.news-next::after {
  font-size: 1.2rem !important;
}

.news-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}

/* ── Events Section ── */
.events-section {
  padding: 4rem 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border-left: 4px solid var(--color-primary);
}

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

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem;
  min-width: 70px;
  text-align: center;
  flex-shrink: 0;
}

.event-day {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-heading);
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.15rem;
}

.event-year {
  font-size: 0.7rem;
  opacity: 0.7;
}

.event-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.event-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s;
}

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

.event-excerpt {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.event-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.event-link:hover {
  color: var(--color-secondary);
}

/* ── Featured Event with Countdown ── */
.event-featured {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary, #1a5276));
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.event-featured-countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.15);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 0.3rem;
}

.event-featured-body {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  align-items: center;
}

.event-featured-body .event-date-badge {
  background: rgba(255, 255, 255, 0.2);
}

.event-featured-body .event-title a {
  color: #fff;
}

.event-featured-body .event-title a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.event-featured-body .event-excerpt {
  color: rgba(255, 255, 255, 0.85);
}

.event-featured-body .event-link {
  color: #fff;
  font-weight: 700;
}

.event-featured-body .event-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 576px) {
  .event-featured-countdown {
    gap: 0.75rem;
    padding: 1rem;
  }
  .countdown-value {
    font-size: 1.5rem;
  }
  .countdown-unit {
    min-width: 55px;
  }
  .event-featured-body {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

/* ── Magazine Section ── */
.magazine-section {
  padding: 4rem 0;
  background: var(--color-surface, #f8f9fa);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.magazine-item {
  text-align: center;
  max-width: 200px;
}

.magazine-cover {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-base);
  margin-bottom: 0.75rem;
}

.magazine-cover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.15));
}

.magazine-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.magazine-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.3;
}

@media (max-width: 576px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ── Sidebar ── */
.sidebar-list .list-group .active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.widget-title {
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ── Cookie Consent ── */
.cookies-accept-box {
  background-color: rgba(21, 71, 52, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* ── Search Overlay ── */
#header-search-box {
  background: var(--color-primary);
}

#header-search-box .close {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 50%;
}

/* ── Content Sections ── */
.section-bg {
  background-color: var(--color-bg-light);
}

.content-row-no-bg {
  padding: var(--spacing-md) 0;
}

/* ── Preloader ── */
#preloader:before {
  border-color: var(--color-primary);
  border-top-color: var(--color-secondary);
}

/* ── Testimonials ── */
.testimonials .testimonial-item {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.testimonials .testimonial-item h3 {
  color: var(--color-primary);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

/* ── Gallery ── */
.gallery .gallery-item {
  border: 3px solid var(--color-white);
  border-radius: 8px;
  overflow: hidden;
}

/* ── Accordion / FAQ ── */
.accordion-button:not(.collapsed) {
  background-color: var(--color-primary);
  color: white;
}

.accordion-item {
  border-color: var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* ── Default Theme Overrides ── */
.top-bar {
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 0;
  font-family: var(--font-main);
  font-size: 0.875rem;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--color-secondary);
}

section.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

section.navigation {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

section.navigation .navbar {
  margin-bottom: 0;
  min-height: auto;
  border: none;
  background: transparent;
}

section.navigation .navbar-nav > li > a {
  color: var(--color-text-main);
  font-family: var(--font-main);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
}

section.navigation .navbar-nav > li > a:hover,
section.navigation .navbar-nav > li.active > a {
  color: var(--color-primary);
  background: rgba(21, 71, 52, 0.05);
}

section.navigation .dropdown-menu {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

/* Default theme footer */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem 0;
  font-family: var(--font-main);
}

.footer h3 {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer .social-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.footer .social-footer a:hover {
  color: var(--color-secondary);
}

.footer-copyright {
  background: rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright a {
  color: var(--color-secondary);
}

/* Default theme main content */
.main-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.column-post {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
}

.column-post:hover {
  box-shadow: var(--shadow-md);
}

.column-post .topic {
  padding: 1rem;
}

.column-post .topic h4 a {
  color: var(--color-text-main);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.column-post .topic h4 a:hover {
  color: var(--color-primary);
}

.column-post .tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: white;
  font-family: var(--font-main);
}

.tag.bg1 { background: var(--color-primary); }
.tag.bg2 { background: var(--color-secondary); }
.tag.bg3 { background: var(--color-primary-light); }

/* Breaking news in default theme */
.breaking-news-slide {
  background: var(--color-bg-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.breaking-news-slide h5 {
  background: var(--color-secondary);
  color: white;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
  font-family: var(--font-main);
  font-weight: 700;
}

.breaking-news-slide .newsslider {
  flex: 1;
  padding: 0 1rem;
  overflow: hidden;
}

.breaking-news-slide .newsslider a {
  color: var(--color-text-main);
  font-size: 0.9rem;
}

.breaking-news-slide .newsslider a:hover {
  color: var(--color-primary);
}

/* Auth buttons in default theme */
.btn-black {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.btn-black:hover {
  background: var(--color-primary-light);
  color: white;
}

/* ── Dark Mode ── */
.dark {
  background: #111827;
  color: #e5e7eb;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: #e5e7eb;
}

.dark .meadd-header,
.dark header#header,
.dark section.header,
.dark section.navigation {
  background: #1f2937;
}

.dark section.navigation {
  border-bottom-color: var(--color-primary);
}

.dark #navbar ul a.nav-link,
.dark .nav-links a,
.dark section.navigation .navbar-nav > li > a {
  color: #e5e7eb;
}

.dark #navbar ul a.nav-link:hover,
.dark #navbar ul a.nav-link.active,
.dark section.navigation .navbar-nav > li > a:hover {
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.dark .meadd-card,
.dark .card-grid .card,
.dark .news-card,
.dark .column-post,
.dark .meadd-content-card {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.dark .meadd-card h3,
.dark .news-card .news-title,
.dark .column-post .topic h4 a {
  color: #e5e7eb;
}

.dark .minister-section {
  background: #1f2937;
}

.dark .news-section {
  background: #111827;
}

.dark .quick-access .card {
  border-top-color: var(--color-secondary);
}

.dark .section-bg,
.dark .meadd-breadcrumbs,
.dark .breadcrumbs {
  background-color: #1f2937;
}

.dark .page-cover {
  opacity: 0.85;
}

.dark .breaking-news-slide {
  background: #1f2937;
}

.dark .breaking-news-slide .newsslider a {
  color: #e5e7eb;
}

.dark .widget-title {
  background: #1f2937;
  color: var(--color-secondary);
}

.dark .form-control {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

.dark .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(21, 71, 52, 0.3);
}

.dark #navbar .dropdown ul,
.dark section.navigation .dropdown-menu,
.dark .nav-links .dropdown-menu {
  background: #1f2937;
  border-color: #374151;
}

.dark #navbar .dropdown ul a,
.dark section.navigation .dropdown-menu a,
.dark .nav-links .dropdown-menu a {
  color: #e5e7eb;
}

.dark .meadd-footer,
.dark footer#footer,
.dark .footer {
  background: #0d1117;
}

.dark .footer-copyright {
  background: rgba(0, 0, 0, 0.3);
}

.dark .accordion-item {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.dark .staff .member {
  background: #1f2937;
}

.dark .countdown-section {
  background: #0f2b1f;
}

.dark .cabinet-section {
  background: #111827;
}

.dark .cabinet-member {
  background: #1f2937;
}

.dark .event-card {
  background: #1f2937;
  border-left-color: var(--color-secondary);
}

.dark .event-featured {
  background: linear-gradient(135deg, #1a3a5c, #0f2744);
}

.dark .event-title a {
  color: #e5e7eb;
}

.dark .event-excerpt {
  color: #9ca3af;
}

.dark .magazine-section {
  background: #111827;
}

.dark .magazine-title {
  color: #e5e7eb;
}

.dark .services .icon-box {
  background: #1f2937;
  border-color: var(--color-primary);
}

.dark .services .icon-box:hover {
  background: var(--color-primary);
}

.dark .list-group-item {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.dark .card {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}

.dark .modal-backdrop {
  background-color: #000;
}

.dark .mobile-nav-toggle {
  color: #e5e7eb;
}

/* ── RTL Support ── */
[dir="rtl"] .minister-layout {
  direction: rtl;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

[dir="rtl"] .widget-title {
  border-left: none;
  border-right: 4px solid var(--color-primary);
}

[dir="rtl"] .breaking-news-slide {
  direction: rtl;
}

[dir="rtl"] .minister-img-wrapper::before {
  left: auto;
  right: -15px;
}

[dir="rtl"] .minister-img-wrapper {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

/* ── Partners Section ── */
.partners-section {
  padding: 3rem 0;
  background: var(--color-bg-light);
}

.partner-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 1rem;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.partner-logo-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-logo-link img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-base);
}

.partner-logo-link:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.dark .partners-section {
  background: #111827;
}

.dark .partner-logo-link {
  background: #1f2937;
  border-color: #374151;
}

/* Videotheque/Phototheque Swiper nav */
.videotheque-prev,
.videotheque-next,
.phototheque-prev,
.phototheque-next {
  color: var(--color-primary) !important;
}

.videotheque-prev::after,
.videotheque-next::after,
.phototheque-prev::after,
.phototheque-next::after {
  font-size: 1.2rem !important;
}

.videotheque-pagination .swiper-pagination-bullet-active,
.phototheque-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}

.videotheque-swiper,
.phototheque-swiper {
  padding-bottom: 3rem;
}

/* ── Cookie Consent Modal ── */
.meadd-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-main);
}

.meadd-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.meadd-cookie-consent__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: min(74vh, 680px);
  overflow: auto;
  background: var(--color-white);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
}

.meadd-cookie-consent__header,
.meadd-cookie-consent__body,
.meadd-cookie-consent__footer {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.meadd-cookie-consent__header {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.meadd-cookie-consent__header-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.meadd-cookie-consent__logo-wrap {
  display: flex;
  justify-content: center;
}

.meadd-cookie-consent__logo {
  width: min(100%, 500px);
  max-height: 110px;
  object-fit: contain;
}

.meadd-cookie-consent__kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--color-primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meadd-cookie-consent__site {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.8vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meadd-cookie-consent__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.meadd-cookie-consent__title {
  margin: 0.8rem 0 0;
  color: #4b5563;
  font-family: var(--font-main);
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  line-height: 1.45;
  font-weight: 500;
}

.meadd-cookie-consent__body {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.meadd-cookie-consent__message {
  margin: 0;
  color: var(--color-text-main);
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.5;
}

.meadd-cookie-consent__list {
  margin: 0.75rem 0 0;
  padding-left: 1.4rem;
  color: #4b5563;
  font-size: clamp(0.88rem, 0.95vw, 1rem);
  line-height: 1.45;
}

.meadd-cookie-consent__list li + li {
  margin-top: 0.05rem;
}

.meadd-cookie-consent__policy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.meadd-cookie-consent__policy:hover {
  color: var(--color-primary-light);
}

.meadd-cookie-consent__footer {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: rgba(249, 250, 251, 0.55);
}

.meadd-cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meadd-cookie-consent__btn {
  min-width: 104px;
  justify-content: center;
}

.meadd-cookie-consent .btn-outline-meadd {
  background: #fef2f2;
  border-color: #f1b3b2;
  color: #9f2f2a;
}

.meadd-cookie-consent .btn-outline-meadd:hover {
  background: #fde3e3;
  border-color: #d77976;
  color: #84231f;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .meadd-header .container {
    flex-wrap: wrap;
  }

  .nav-links,
  .meadd-nav {
    display: none;
  }

  .minister-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .meadd-cookie-consent__header-main {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero h1,
  .meadd-hero h1 {
    font-size: 2rem;
  }

  .meadd-hero,
  .hero {
    min-height: 60vh;
  }

  .quick-access {
    margin-top: 0;
    padding-top: 2rem;
  }

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

  .section-title,
  .meadd-section-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    text-align: center;
  }

  .countdown-timer {
    gap: 0.75rem;
  }

  .countdown-unit {
    min-width: 65px;
    padding: 0.75rem 0.5rem;
  }

  .countdown-number {
    font-size: 1.75rem;
  }

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

  .cabinet-prev,
  .cabinet-next {
    display: none !important;
  }

  .news-prev,
  .news-next {
    display: none !important;
  }

  .videotheque-prev,
  .videotheque-next,
  .phototheque-prev,
  .phototheque-next {
    display: none !important;
  }

  .meadd-cookie-consent {
    padding: 1rem;
  }

  .meadd-cookie-consent__dialog {
    max-height: 88vh;
    border-radius: 10px;
  }

  .meadd-cookie-consent__header,
  .meadd-cookie-consent__body,
  .meadd-cookie-consent__footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .meadd-cookie-consent__header {
    padding-top: 1.15rem;
    padding-bottom: 1rem;
  }

  .meadd-cookie-consent__header-main {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    text-align: center;
  }

  .meadd-cookie-consent__logo {
    width: min(100%, 300px);
    max-height: 80px;
  }

  .meadd-cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .meadd-cookie-consent__btn {
    width: 100%;
  }
}
