/* 
  Gram Panchayat Kaundanyapur - Modern Sacred Design
  Inspired by mythological elegance and contemporary aesthetics
  Theme: Saffron, White, Deep Blue - Vibrant & Spiritual
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700;900&family=Crimson+Text:wght@400;600&display=swap');

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

:root {
  /* Color Palette - Saffron Theme */
  --color-saffron: #e67e22;
  --color-saffron-light: #f39c12;
  --color-saffron-dark: #d35400;
  --color-white: #ffffff;
  --color-cream: #fdfaf5;
  --color-deep-blue: #1a3a52;
  --color-slate: #2c3e50;
  --color-text-dark: #1a1a1a;
  --color-text-light: #666666;
  --color-accent: #e67e22;
  --color-gold: #ffd700;
  --color-border: #e8e8e8;
  
  /* Typography */
  --font-mythology: 'Playfair Display', 'Georgia', serif;
  --font-serif: 'Crimson Text', 'Georgia', serif;
  --font-sans: 'Poppins', 'Segoe UI', 'Roboto', -apple-system, sans-serif;
  
  /* Spacing */
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255, 153, 51, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 5%;
  border-bottom: 3px solid var(--color-saffron);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

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

.logo-symbol {
  font-size: 32px;
  color: var(--color-saffron);
  opacity: 1;
}

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

.logo-text h1 {
  font-family: var(--font-mythology);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-deep-blue);
  letter-spacing: 1px;
}

.logo-text p {
  font-size: 10px;
  color: var(--color-saffron);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 45px;
  align-items: center;
}

/* Dropdown Submenu Styles */
nav ul li.has-submenu {
  position: relative;
}


nav ul li.has-submenu .dropdown-icon {
  font-size: 13px;
  color: var(--color-saffron);
  margin-left: 8px;
  vertical-align: -0.15em;
  position: relative;
  top: 1px;
  transition: color 0.2s;
}
nav ul li.has-submenu > a:hover .dropdown-icon {
  color: var(--color-saffron-dark);
}

nav ul li .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 58, 82, 0.10);
  border-radius: 0 0 8px 8px;
  z-index: 1002;
  padding: 10px 0;
  flex-direction: column;
  gap: 0;
}

nav ul li .submenu li {
  width: 100%;
}

nav ul li .submenu a {
  color: var(--color-text-dark);
  padding: 10px 24px;
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  background: none;
  border: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  position: relative;
}

nav ul li .submenu a:hover {
  background: var(--color-saffron);
  color: #fff;
}

nav ul li.has-submenu:hover > .submenu,
nav ul li.has-submenu:focus-within > .submenu {
  display: flex;
}

@media (max-width: 900px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 2001;
    overflow-y: auto;
  }
  nav.active {
    right: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    text-align: left;
  }
  nav li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  nav a {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
  }
  nav a::after {
    display: none;
  }
  nav ul li.has-submenu .submenu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: none;
    display: none;
  }
  nav ul li.has-submenu.open .submenu {
    display: flex;
  }
  nav ul li .submenu a {
    padding-left: 36px;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 3000;
  }
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 197;
  }
  .mobile-overlay.active {
    display: block;
  }
  .language-switch {
    margin: 20px 20px 0;
    padding: 0;
    border: none;
    justify-content: flex-start;
  }
}


nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

nav a:hover {
  color: var(--color-saffron);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-saffron);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* MSPRA Navigation Highlight */
.mspra-nav-item {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  border-radius: 6px;
  padding: 0 4px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.mspra-nav-link {
  color: white !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mspra-nav-link:hover {
  color: #fff !important;
}

.mspra-nav-link::after {
  background: white !important;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.8), 0 0 30px rgba(230, 126, 34, 0.4);
  }
}

.language-switch {
  display: flex;
  gap: 12px;
  margin-left: 30px;
  padding-left: 30px;
  border-left: 2px solid var(--color-saffron);
}

.language-switch a {
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-switch a.active {
  background: var(--color-saffron);
  color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-deep-blue);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.25) 0%, rgba(26, 58, 82, 0.25) 100%),
              url('../assets/images/kaundanyapur-temple.jpg') center/cover;
  background-attachment: fixed;
  background-size: cover;
  color: var(--color-text-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 800px;
  display: flex;
  flex-direction: column; /* stack hero-container above the scroller */
  align-items: stretch;
  justify-content: center;
}

/* Mobile: reduce large hero footprint and disable fixed bg for better scrolling */
@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 80px; /* allow header space */
    padding-bottom: 20px;
    background-attachment: scroll;
    background-position: center top;
  }

  /* ensure hero container stacks and scroller sits below content */
  .hero .hero-container {
    display: block;
    padding: 0 5%;
  }

  /* Make the hero videos section full-width and placed after hero content */
  .hero .hero-videos-section {
    position: relative;
    margin-top: 12px;
    width: 100%;
    padding: 0 0 14px 0;
    background: transparent; /* avoid covering background */
  }

  .hero .hero-videos-heading {
    padding: 8px 5%;
    margin: 8px 0 6px 0;
    text-align: left;
  }

  .hero .hero-video-scroller {
    padding: 6px 5%;
    margin: 0;
    box-sizing: border-box;
  }

  /* move scroller visually below hero background so it doesn't float at left */
  .hero-video-scroller { overflow-x: auto; }
}

/* Make hero video scroller appear as a full-width row below the hero-container */
.hero .hero-video-scroller {
  flex-basis: 100%;
  width: 100%;
  align-self: stretch;
  margin-top: 10px;
  box-sizing: border-box;
}

.hero .hero-video-scroller .hv-card {
  display: inline-block;
  vertical-align: middle;
}

/* Scroller card styles */
.hero-video-scroller {
  max-width: 1200px;
  margin: 18px auto;
  padding: 6px 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
  
/* Enable smooth snap scrolling for hero videos */
.hero-video-scroller {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero-videos-section {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.6);
}

.hv-card {
  display: inline-block;
  width: 260px;
  margin-right: 12px;
  vertical-align: top;
}

.hv-card { scroll-snap-align: center; }

.hv-thumb {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Mobile optimizations: fewer visible cards, larger tap targets, hide titles */
@media (max-width: 720px) {
  .hero-video-scroller {
    padding: 10px 4%;
    margin: 12px 0;
    max-width: 100%;
  }

  /* show one card per viewport with centered snap */
  .hv-card {
    display: inline-block;
    width: 86%;
    margin-right: 14px;
    vertical-align: top;
  }

  .hv-thumb {
    height: 220px; /* taller preview on mobile */
    border-radius: 10px;
  }

  .hv-title { display: none; }

  /* Make play button slightly larger for touch */
  .hv-play { width: 64px; height: 64px; }

  /* Improve visibility and spacing on very small screens */
  @media (max-width: 420px) {
    .hv-card { width: 92%; }
    .hv-thumb { height: 180px; }
    .hv-play { width: 56px; height: 56px; }
  }
}

.hv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(230,126,34,0.95);
  border: none;
  cursor: pointer;
  color: #fff;
}

.hv-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
}

.hv-title {
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.2;
}

/* Lightbox */
.hv-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.hv-lightbox.active { display: flex; }
.hv-lightbox .hv-iframe-wrapper { width: 90%; max-width: 900px; height: 60vh; }
.hv-lightbox .hv-iframe-wrapper iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* Heading above hero videos */
.hero .hero-videos-heading {
  text-align: left;
  color: var(--color-border);
  font-size: 1.25rem;
  margin: 40px 0 6px;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  padding: 0 5%;
}

/* Contact map styling */
.contact-map {
  max-width: 520px; /* reduce width to fit contact column */
  margin: 12px 0 35px 0; /* align under the address, add margin bottom 35px */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.contact-map iframe {
  width: 100%;
  height: 260px; /* reduce height for better balance */
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .contact-map { max-width: 100%; margin: 12px 0; }
  .contact-map iframe { height: 200px; }
}

@media (max-width: 900px) {
  .hero {
    padding: 90px 4% 40px;
    min-height: 520px;
    align-items: flex-start;
  }
  .hero .hero-left, .hero .hero-right {
    width: 100%;
    flex: none;
    padding: 0 1rem;
  }
  .hero .hero-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    padding: 0 5%;
  }
  .hero .hero-video-scroller { padding: 8px 4%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(255, 153, 51, 0.15) 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  animation: fadeInLeft 1s ease-out;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}

.notifications-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 153, 51, 0.3);
  max-height: 500px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
}

.notifications-title {
  font-size: 1.5rem;
  color: var(--color-deep-blue);
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  border-bottom: 2px solid var(--color-saffron);
  padding-bottom: 0.75rem;
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-saffron) #f0f0f0;
}

.notifications-list::-webkit-scrollbar {
  width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: var(--color-saffron);
  border-radius: 10px;
}

.notification-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--color-saffron);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-date {
  font-size: 0.85rem;
  color: var(--color-saffron);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.notification-content h4 {
  font-size: 1rem;
  color: var(--color-deep-blue);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.notification-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.no-notices {
  text-align: center;
  color: #999;
  padding: 2rem;
  font-style: italic;
}

.view-all-link {
  display: inline-block;
  color: var(--color-deep-blue);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: var(--color-saffron);
  color: white;
  border-radius: 8px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.view-all-link:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: 700;
  opacity: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-family: var(--font-mythology);
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: -2px;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  color: var(--color-saffron);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 17px;
  margin-bottom: 50px;
  opacity: 1;
  line-height: 1.9;
  color: var(--color-white);
  font-weight: 400;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background: var(--color-saffron-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 153, 51, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-saffron);
  border: 2px solid var(--color-saffron);
}

.btn-secondary:hover {
  background: var(--color-saffron);
  color: white;
  transform: translateY(-3px);
}

/* ============================================
   DIVIDER & DECORATION
   ============================================ */

.divider-line {
  width: 60px;
  height: 3px;
  background: var(--color-saffron);
  margin: 30px auto;
  opacity: 0.8;
  border-radius: 2px;
}

.vertical-line {
  width: 2px;
  height: 100px;
  background: linear-gradient(180deg, transparent, var(--color-saffron), transparent);
  margin: 30px auto;
  opacity: 0.5;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 60px 5%;
  /* max-width: 1400px; */
  margin: 0 auto;
  position: relative;
}

section h2 {
  font-family: var(--font-mythology);
  font-size: 36px;
  color: var(--color-deep-blue);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -1px;
}

section .section-subtitle {
  text-align: center;
  color: var(--color-saffron);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 700;
  opacity: 1;
}

section > p {
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-grid:last-child {
  margin-bottom: 0;
}

.about-grid-reverse {
  direction: rtl;
}

.about-grid-reverse > * {
  direction: ltr;
}

.about-content h3 {
  font-family: var(--font-mythology);
  font-size: 40px;
  color: var(--color-deep-blue);
  margin-bottom: 30px;
  line-height: 1.2;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.9;
  font-size: 15px;
}

.about-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(255, 153, 51, 0.15);
  filter: brightness(1.05) contrast(1.1);
}

/* ============================================
   FEATURE BLOCKS (THREE COLUMN)
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 80px 0;
}

.feature-block {
  text-align: center;
  padding: 50px 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-top: 4px solid transparent;
  position: relative;
}

.feature-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-saffron);
  border-radius: 2px;
}

.feature-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 153, 51, 0.15);
}

.feature-block h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--color-deep-blue);
  margin-bottom: 15px;
  margin-top: 15px;
  font-weight: 600;
}

.feature-block p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================
   OFFICIALS SECTION
   ============================================ */

/* Officials Section - Ministers Section */
.officials-ministers-section {
  margin: 60px 0 80px 0;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.05), rgba(26, 58, 82, 0.05));
  border-radius: 20px;
  border: 2px solid var(--color-saffron);
}

.ministers-section-title {
  font-size: 32px;
  color: var(--color-deep-blue);
  text-align: center;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ministers-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-deep-blue), var(--color-saffron));
  border-radius: 2px;
}

/* Officials Section - Ministers (Larger Display) */
.officials-ministers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  padding: 20px 0;
}

.official-minister-item {
  text-align: center;
  flex: 0 1 auto;
  max-width: 280px;
  transition: var(--transition);
}

.official-minister-item:hover {
  transform: translateY(-12px);
}

.official-minister-image-wrapper {
  margin-bottom: 30px;
  position: relative;
  width: 200px;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
}

.official-minister-image-wrapper .official-circle-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-saffron);
  box-shadow: 0 12px 35px rgba(230, 126, 34, 0.3);
  transition: all 0.3s ease;
}

.official-minister-image-wrapper .official-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--color-saffron);
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: white;
  box-shadow: 0 12px 35px rgba(230, 126, 34, 0.3);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.official-minister-item:hover .official-circle-image,
.official-minister-item:hover .official-initials {
  border-color: var(--color-deep-blue);
  box-shadow: 0 16px 45px rgba(26, 58, 82, 0.4);
  transform: scale(1.08);
}

/* Officials Category Titles */
.officials-category {
  margin: 60px 0 40px 0;
}

.category-title {
  font-size: 28px;
  color: var(--color-deep-blue);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-deep-blue));
  border-radius: 2px;
}

/* Officials Section - Regular Display */
.officials-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: 30px;
  padding: 20px 0;
}

.official-item {
  text-align: center;
  flex: 0 1 auto;
  max-width: 220px;
  transition: var(--transition);
}

.official-item:hover {
  transform: translateY(-10px);
}

.official-image-wrapper {
  margin-bottom: 25px;
  position: relative;
  width: 160px;
  height: 160px;
  margin-left: auto;
  margin-right: auto;
}

.official-circle-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-saffron);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.25);
  transition: all 0.3s ease;
}

.official-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--color-saffron);
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.25);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.official-item:hover .official-circle-image,
.official-item:hover .official-initials {
  border-color: var(--color-deep-blue);
  box-shadow: 0 12px 35px rgba(26, 58, 82, 0.3);
  transform: scale(1.05);
}

.official-info {
  padding: 0 10px;
}

.official-info h3 {
  color: var(--color-deep-blue);
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.official-position {
  color: var(--color-saffron);
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.official-description {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
}

.official-description.truncated {
  max-height: 320px;
  overflow: hidden;
  position: relative;
}

.description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

.read-more-btn {
  background: var(--color-saffron);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-btn:hover {
  background: var(--color-deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.3);
}

.official-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.official-contact span {
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Official Modal Styles */
.official-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.official-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.official-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.official-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-saffron);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.official-modal-close:hover {
  background: var(--color-deep-blue);
  transform: rotate(90deg);
}

.official-modal-header {
  display: flex;
  gap: 30px;
  padding: 40px 40px 30px 40px;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
}

.official-modal-image-wrapper {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  position: relative;
}

.official-modal-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-saffron);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.official-modal-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--color-saffron);
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-light) 100%);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.official-modal-header-text {
  flex: 1;
}

.official-modal-header-text h2 {
  font-size: 28px;
  color: var(--color-deep-blue);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.modal-position {
  color: var(--color-saffron);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.official-modal-body {
  padding: 30px 40px 40px 40px;
}

.modal-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 25px;
}

.modal-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid var(--color-saffron);
}

.modal-contact span {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

/* About Modal Specific Styles */
.about-modal-content {
  max-width: 850px;
  width: 95%;
}

.about-modal-header {
  padding: 30px 40px 20px;
  border-bottom: 2px solid #f0f0f0;
}

.about-modal-header h2 {
  color: var(--color-primary);
  font-size: 28px;
  margin: 0;
}

.about-modal-body {
  padding: 30px 40px;
  max-height: 70vh;
  overflow-y: auto;
}

.about-modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-modal-text {
  line-height: 1.8;
  font-size: 15px;
  color: var(--color-text);
}

.about-modal-text p {
  margin-bottom: 15px;
}

/* Truncation styles for about section */
.about-text-content.truncated {
  max-height: 500px;
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: var(--color-text-light);
  line-height: 1.9;
  font-size: 15px;
}

.about-text-content {
  position: relative;
}

.content-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), #ffffff);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   EVENTS SECTION
   ============================================ */

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-left: 5px solid var(--color-saffron);
}

.event-card:hover {
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.15);
  transform: translateY(-4px);
}

.event-card-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 16px;
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-saffron) 0%, #d35400 100%);
  border-radius: 8px;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.event-day {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.event-month {
  font-size: 11px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

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

.event-card-header h3 {
  margin: 0 0 8px 0;
  color: var(--color-deep-blue);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.3;
}

.event-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.event-location {
  font-size: 12px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-category {
  display: inline-block;
  padding: 4px 10px;
  background: #f5f5f5;
  color: var(--color-saffron);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-description {
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex: 1;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.event-time {
  font-size: 12px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--color-saffron);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.event-btn:hover {
  background: #d35400;
  transform: translateX(2px);
}

/* ============================================
   STORIES SECTION (Gallery Post Style)
   ============================================ */

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

.story-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.story-card:hover {
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.12);
  transform: translateY(-4px);
  border-color: var(--color-saffron);
}

/* Media Gallery Container */
.story-card-media-gallery {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-light) 100%);
  display: grid;
  gap: 2px;
  overflow: hidden;
}

/* Gallery with multiple items */
.story-card-media-gallery.multi-item {
  grid-template-columns: repeat(2, 1fr);
}

.story-card-media-gallery.three-item {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.story-card-media-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.story-card-media-item:first-child.three-item-first {
  grid-row: span 2;
  aspect-ratio: auto;
}

.story-card-media-item img,
.story-card-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-card-media-item img,
.story-card:hover .story-card-media-item video {
  transform: scale(1.05);
}

/* Media count badge */
.story-card-media-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(26, 26, 26, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

/* Post Content Container */
.story-card-overlay {
  position: static;
  background: white;
  padding: 16px;
  color: var(--color-text-dark);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-card-overlay h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-deep-blue);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-overlay p {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Instagram-like footer with date and engagement */
.story-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-saffron-light));
}

/* ============================================
   SERVICES SECTION
   ============================================ */

/* Section Container */
.services-section {
  margin-bottom: 60px;
}

.services-section:last-child {
  margin-bottom: 0;
}

.services-section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--color-deep-blue);
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-saffron);
  position: relative;
  font-weight: 700;
}

.services-section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--color-deep-blue);
}

/* Service Cards Grid */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* Modern Service Card */
.service-card-modern {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(230, 126, 34, 0.2);
  border-color: var(--color-saffron);
}

/* Certificate Card Style (Highlighted) */
.service-card-modern.certificate-card {
  border: 3px solid var(--color-saffron);
  background: linear-gradient(135deg, #ffffff 0%, #fdfaf5 100%);
}

.service-card-modern.certificate-card:hover {
  box-shadow: 0 12px 40px rgba(230, 126, 34, 0.3);
  transform: translateY(-10px) scale(1.02);
}

/* Card Image */
.service-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-light) 100%);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card-modern:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--color-saffron);
}

/* Card Body */
.service-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.service-card-icon-large {
  font-size: 48px;
  flex-shrink: 0;
}

.service-card-header h4 {
  color: var(--color-deep-blue);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.service-card-desc {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Detail Sections */
.service-detail-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid var(--color-saffron);
}

.service-detail-label {
  display: block;
  color: var(--color-deep-blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-detail-content {
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.6;
}

/* HTML Content Styling inside service details */
.service-detail-content ul,
.service-detail-content ol {
  margin: 10px 0;
  padding-left: 20px;
}

.service-detail-content li {
  margin: 6px 0;
  color: var(--color-text-light);
  line-height: 1.6;
}

.service-detail-content p {
  margin: 8px 0;
  color: var(--color-text-light);
}

.service-detail-content strong {
  color: var(--color-deep-blue);
  font-weight: 600;
}

.service-detail-content a {
  color: var(--color-saffron);
  text-decoration: underline;
}

.service-card-desc ul,
.service-card-desc ol {
  margin: 10px 0;
  padding-left: 20px;
}

.service-card-desc li {
  margin: 6px 0;
  color: var(--color-text-light);
  line-height: 1.6;
}

.service-card-desc p {
  margin: 8px 0;
}

/* Card Meta Information */
.service-card-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.service-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-meta-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.service-meta-item div {
  flex: 1;
}

.service-meta-item strong {
  display: block;
  color: var(--color-deep-blue);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.service-meta-item span {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.4;
}

/* Card Footer */
.service-card-footer {
  margin-top: auto;
  padding-top: 20px;
}

.service-download-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-saffron);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.service-download-btn:hover {
  background: var(--color-deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 58, 82, 0.3);
}

/* Old Service Card Styles (Kept for compatibility) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 60px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  border-left: 4px solid var(--color-saffron);
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.1);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 32px;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 126, 34, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.service-card h3 {
  color: var(--color-deep-blue);
  margin: 0 0 4px 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design for Service Cards */
@media (max-width: 768px) {
  .service-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-section {
    margin-bottom: 40px;
  }
  
  .services-section-title {
    font-size: 22px;
  }
  
  .service-card-image {
    height: 180px;
  }
  
  .service-card-body {
    padding: 20px;
  }
  
  .service-card-header h4 {
    font-size: 18px;
  }
  
  .service-card-icon-large {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .service-cards-grid {
    gap: 16px;
  }
  
  .service-card-badge {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .service-card-body {
    padding: 16px;
  }
  
  .service-detail-section {
    padding: 12px;
  }
  
  .service-download-btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ============================================
   DEMOGRAPHICS SECTION
   ============================================ */

.demographics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.demographics-section-title {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-deep-blue);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.demographics-section-title .icon {
  font-size: 32px;
}

.demographic-stat-box {
  background: white;
  border-radius: 16px;
  padding: 35px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.08);
  border: 2px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: calc(25% - 19px);
  min-width: 220px;
}

.demographic-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-saffron-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.demographic-stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(230, 126, 34, 0.15);
  border-color: var(--color-saffron);
}

.demographic-stat-box:hover::before {
  transform: scaleX(1);
}

.demographic-stat-box.total-box {
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-dark) 100%);
  border-color: var(--color-saffron-dark);
  box-shadow: 0 8px 30px rgba(230, 126, 34, 0.25);
}

.demographic-stat-box.total-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(230, 126, 34, 0.35);
}

.demographic-stat-box.total-box .stat-number {
  color: white;
  font-size: 3.5rem;
}

.demographic-stat-box.total-box .stat-title {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-saffron);
  line-height: 1.2;
  margin-bottom: 12px;
  display: block;
  letter-spacing: -1px;
}

.stat-title {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .demographic-stat-box {
    width: calc(33.333% - 17px);
    min-width: 200px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .demographic-stat-box.total-box .stat-number {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem;
  }

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

  .notifications-card {
    max-height: 400px;
  }

  .demographics-grid {
    gap: 15px;
    margin: 30px auto 0;
  }

  .demographic-stat-box {
    width: calc(50% - 8px);
    min-width: 150px;
  }

  .demographics-section-title {
    font-size: 20px;
    gap: 8px;
  }

  .demographics-section-title .icon {
    font-size: 24px;
  }

  .demographic-stat-box {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .demographic-stat-box.total-box .stat-number {
    font-size: 2.3rem;
  }

  .stat-title {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .demographics-grid {
    gap: 12px;
  }

  .demographic-stat-box {
    width: calc(50% - 6px);
    min-width: 140px;
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .demographic-stat-box.total-box .stat-number {
    font-size: 2.1rem;
  }

  .stat-title {
    font-size: 10px;
  }
}

/* ============================================
   NOTICES SECTION
   ============================================ */

.notices-list {
  max-width: 900px;
  margin: 60px auto 0;
}

.notice-item {
  background: white;
  padding: 35px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-left: 5px solid var(--color-saffron);
  opacity: 1;
}

.notice-item:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(255, 153, 51, 0.15);
}

.notice-date {
  color: var(--color-saffron);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.notice-item h3 {
  color: var(--color-deep-blue);
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.notice-item p {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 14px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: flex-start;
}

.contact-info {
  background: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
  color: var(--color-deep-blue);
  margin-bottom: 40px;
  font-family: var(--font-mythology);
  font-size: 28px;
  font-weight: 700;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.contact-item-icon {
  font-size: 32px;
  color: var(--color-saffron);
  min-width: 32px;
  opacity: 1;
}

.contact-item-content h4 {
  color: var(--color-deep-blue);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item-content p {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.6;
}

.contact-form {
  background: white;
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ============================================
   TAX PAYMENT SECTION
   ============================================ */

.tax-payment-container {
  max-width: 1000px;
  margin: 40px auto 0;
}

.qr-code-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-code-section h3 {
  color: var(--color-deep-blue);
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--color-saffron);
}

.qr-code-box {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 30px;
}

.qr-upi-id {
  margin-top: 15px;
  font-size: 16px;
  color: #666;
}

.qr-upi-id strong {
  color: var(--color-saffron);
  font-size: 18px;
}

.payment-steps {
  background: #fff8f0;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid var(--color-saffron);
}

.payment-steps h4 {
  color: var(--color-deep-blue);
  margin-bottom: 15px;
  font-size: 18px;
}

.payment-steps ol {
  margin: 0;
  padding-left: 20px;
}

.payment-steps li {
  margin: 10px 0;
  color: #555;
  line-height: 1.6;
}

/* Tax Payment Modal */
.tax-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tax-modal-content {
  background: white;
  max-width: 600px;
  width: 100%;
  margin: auto;
  border-radius: 15px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.tax-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  font-weight: 300;
}

.tax-modal-close:hover {
  color: #e74c3c;
}

.tax-payment-form {
  margin-top: 20px;
}

.tax-payment-form .form-group {
  margin-bottom: 20px;
}

.tax-payment-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-deep-blue);
  font-weight: 600;
  font-size: 14px;
}

.tax-payment-form input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--color-border);
  background: #f8f9fa;
}

.tax-payment-form small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 12px;
}

.form-note {
  margin-top: 20px;
  padding: 15px;
  background: #e3f2fd;
  border-radius: 8px;
  font-size: 13px;
  color: #1565c0;
  line-height: 1.6;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-weight: 600;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

@media (max-width: 968px) {
  .qr-code-section {
    padding: 30px 20px;
  }

  .tax-modal-content {
    padding: 30px 20px;
    max-height: 85vh;
  }

  .tax-payment-form input,
  .tax-payment-form select,
  .tax-payment-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

.contact-form h3 {
  color: var(--color-deep-blue);
  margin-bottom: 30px;
  font-family: var(--font-mythology);
  font-size: 28px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-deep-blue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
  background: var(--color-cream);
  color: var(--color-text-dark);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
  background: white;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--color-deep-blue);
  color: white;
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 50px;
}

footer h3 {
  font-family: var(--font-mythology);
  margin-bottom: 25px;
  color: var(--color-saffron);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

footer ul a:hover {
  color: var(--color-saffron);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .header-container {
    gap: 30px;
  }

  nav ul {
    gap: 30px;
  }

  section {
    padding: 80px 5%;
  }

  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 50px;
  }

  section h2 {
    font-size: 44px;
  }

  .hero-title {
    font-size: 56px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 5%;
  }

  .header-container {
    gap: 15px;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 3000;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 3001;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    text-align: left;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  nav a {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
  }

  nav a::after {
    display: none;
  }

  .language-switch {
    margin: 20px 20px 0;
    padding: 0;
    border: none;
    justify-content: flex-start;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 197;
  }

  .mobile-overlay.active {
    display: block;
  }

  .hero {
    min-height: 500px;
    padding: 80px 5%;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-description {
    font-size: 15px;
  }

  /* Hero Videos scroller */
  .hero-videos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .hv-btn {
    background: rgba(26,58,82,0.06);
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
  }

  .hv-viewport {
    overflow: hidden;
    flex: 1 1 auto;
  }

  .hv-list {
    display: flex;
    gap: 12px;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .hv-item {
    min-width: 240px;
    max-width: 240px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(26,58,82,0.06);
    overflow: hidden;
    text-align: center;
  }

  .hv-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hv-play {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
  }

  .hv-caption {
    padding: 10px;
    font-size: 13px;
    color: var(--color-text-light);
  }

  @media (max-width: 900px) {
    .hv-item { min-width: 180px; max-width: 180px; }
    .hv-thumb { height: 110px; }
  }

  section {
    padding: 60px 5%;
  }

  section h2 {
    font-size: 36px;
  }

  .official-modal-content {
    margin: 20px;
    max-width: 100%;
  }

  .official-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px 20px 20px;
  }

  .official-modal-image-wrapper {
    width: 120px;
    height: 120px;
  }

  .official-modal-header-text h2 {
    font-size: 22px;
  }

  .modal-position {
    font-size: 12px;
  }

  .official-modal-body {
    padding: 20px;
  }

  .modal-description {
    font-size: 14px;
  }

  .modal-contact {
    flex-direction: column;
    gap: 10px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content h3 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .officials-ministers-section {
    padding: 30px 20px;
    margin: 40px 0 60px 0;
  }

  .ministers-section-title {
    font-size: 24px;
    margin-bottom: 35px;
    padding-bottom: 15px;
  }

  .ministers-section-title::after {
    width: 100px;
    height: 3px;
  }

  .officials-ministers {
    gap: 50px;
  }

  .official-minister-item {
    max-width: 240px;
  }

  .official-minister-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .official-minister-image-wrapper .official-initials {
    font-size: 52px;
  }

  .category-title {
    font-size: 24px;
  }

  .officials-container {
    gap: 40px;
  }

  .official-item {
    max-width: 180px;
  }

  .official-image-wrapper {
    width: 140px;
    height: 140px;
  }

  .official-info h3 {
    font-size: 16px;
  }

  .events-grid,
  .stories-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 50px 5% 30px;
  }

  .footer-grid {
    gap: 40px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

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

.opacity-low {
  opacity: 0.7;
}

.spacing-large {
  margin-top: 60px;
  margin-bottom: 60px;
}