/* ==========================================================================
   Namdar Hasan Mushrif Official Portal - Main CSS (No Tailwind)
   ========================================================================== */

/* Google Fonts Import: Inter (Latin) & Mukta (Devanagari/Marathi) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Mukta:wght@400;500;600;700;800&display=swap');

/* Modern View Transitions for Smooth Page Changing */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  /* Color Palette - Light Theme */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: rgba(255, 255, 255, 0.95);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverted: #ffffff;

  /* Primary Brand: Royal Amber / Saffron Heritage */
  --primary-amber: #d97706;
  --primary-amber-dark: #b45309;
  --primary-amber-light: #fef3c7;
  --primary-amber-border: #fde68a;
  --amber-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --amber-soft-gradient: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);

  /* Accent Colors */
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-blue: #2563eb;
  --accent-blue-light: #eff6ff;
  --accent-purple: #7c3aed;
  --accent-rose: #e11d48;
  --accent-rose-light: #fff1f2;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #d97706;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-amber: 0 8px 20px -4px rgba(217, 119, 6, 0.25);

  /* Border Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-marathi: 'Mukta', 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Header Height */
  --header-height: 72px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Marathi Text Styling */
.font-marathi {
  font-family: var(--font-marathi);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section Wrapper */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

/* Brand Identity (Name & Designation) */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-title {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary-amber-dark);
  font-family: var(--font-marathi);
  margin-top: 1px;
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.85rem;
  }
  .brand-title {
    font-size: 0.675rem;
  }
}

/* Desktop Segmented Capsule Navigation (Retained Dark Theme Buttons) */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 0.25rem;
  }

  .nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0.7rem;
    border-radius: 0;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
  }

  .nav-link:hover {
    color: var(--primary-amber-dark);
    background: transparent;
    border-bottom-color: var(--primary-amber-border);
  }

  .nav-link.active {
    background: transparent;
    color: var(--primary-amber-dark);
    font-weight: 700;
    border-bottom-color: var(--primary-amber);
    box-shadow: none;
  }
}

/* Header Actions: Social Links, Language Switcher & Hamburger */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Navbar & Global Social Links (Real Brand Logos & Colors) */
.nav-social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nav-social-link svg {
  display: block;
  transition: transform 0.25s ease;
}

/* 1. Instagram Icon */
.nav-social-link.nav-social-insta {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
  border: none;
  box-shadow: none;
}
.nav-social-link.nav-social-insta svg {
  fill: #ffffff;
}
.nav-social-link.nav-social-insta:hover {
  transform: translateY(-1px);
  opacity: 0.85;
  box-shadow: none;
}

/* 2. Facebook Icon */
.nav-social-link.nav-social-fb {
  background: #1877F2;
  color: #ffffff;
  border: none;
  box-shadow: none;
}
.nav-social-link.nav-social-fb svg {
  fill: #ffffff;
}
.nav-social-link.nav-social-fb:hover {
  background: #1565d8;
  transform: translateY(-1px);
  box-shadow: none;
}

/* 3. X (Twitter) Icon */
.nav-social-link.nav-social-x {
  background: #0f172a;
  color: #ffffff;
  border: none;
  box-shadow: none;
}
.nav-social-link.nav-social-x svg {
  fill: #ffffff;
}
.nav-social-link.nav-social-x:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: none;
}

@media (max-width: 640px) {
  .header-actions .nav-social-links {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  .desktop-nav {
    gap: 0.1rem;
    padding: 0.25rem 0.3rem;
  }
  .nav-link {
    font-size: 0.76rem;
    padding: 0.35rem 0.55rem;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .nav-social-link {
    width: 32px;
    height: 32px;
  }
}

/* Drawer Social Media Section */
.drawer-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.drawer-social-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.drawer-social-links .nav-social-link {
  width: 40px;
  height: 40px;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: #0f172a;
  border: 1px solid #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transition: all var(--transition-fast);
  min-height: 38px;
}

.lang-toggle-btn:hover {
  background: #1e293b;
  border-color: #d97706;
  color: #fbbf24;
}

.lang-toggle-btn svg {
  color: #fbbf24;
  flex-shrink: 0;
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  background: #0f172a;
  color: #f8fafc;
  transition: all var(--transition-fast);
}

.menu-toggle-btn:hover {
  background: #1e293b;
  color: #fbbf24;
  border-color: #d97706;
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 999;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
}

.drawer-nav {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-amber-light);
  color: var(--primary-amber-dark);
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

/* ==========================================================================
   Page Header Strip / Breadcrumb Bar
   ========================================================================== */
.page-header-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
}

.page-header-strip .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-amber-light);
  color: var(--primary-amber-dark);
  border: 1px solid var(--primary-amber-border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-header-strip h1 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .page-header-strip h1 {
    font-size: 2.25rem;
  }
}

.page-header-strip p.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 750px;
}

.page-header-strip p.marathi-tag {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-amber);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Section Header (Single Page)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.section-header .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-amber-light);
  color: var(--primary-amber-dark);
  border: 1px solid var(--primary-amber-border);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.35rem;
  }
}

.section-header p.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-header p.marathi-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-amber);
  margin-top: 0.35rem;
}

/* Alternate Section Background */
.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-top {
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav-list a:hover {
  color: var(--primary-amber);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact-item svg {
  color: var(--primary-amber);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: #ffffff;
  border-color: var(--primary-amber);
  color: var(--primary-amber);
}


/* ==========================================================================
   Marquee News Ticker Bar
   ========================================================================== */
.marquee-ticker-container {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-top: 1px solid rgba(245, 158, 11, 0.35);
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 40;
  margin-top: 0;
}

.marquee-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  font-size: 0.78125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
  flex-shrink: 0;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.site-marquee {
  flex-grow: 1;
  padding: 0.45rem 0;
  color: #f1f5f9;
  font-weight: 500;
}

.site-marquee span {
  display: inline-block;
  padding: 0 0.5rem;
}

.marquee-sep {
  color: #f59e0b;
  font-weight: 800;
  margin: 0 0.75rem;
}

/* ==========================================================================
   Namdar Hasan Mushrif Official Portal - Components CSS (No Tailwind)
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* ==========================================================================
   Hero Section (Dark Cinematic Theme with Looping Grassroots Background Slides)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  background-color: #0f172a;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4.75rem 0 3rem;
  }
}

/* Background Carousel & Image Slides */
.hero-bg-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1), transform 7s ease-out;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.15) brightness(1.08) contrast(1.02);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 16, 30, 0.58) 0%,
    rgba(15, 23, 42, 0.38) 45%,
    rgba(15, 23, 42, 0.12) 100%
  );
  z-index: 1;
}

@media (max-width: 1023px) {
  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 16, 30, 0.65) 0%,
      rgba(15, 23, 42, 0.45) 50%,
      rgba(15, 23, 42, 0.22) 100%
    );
  }
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.18;
  z-index: 2;
}

/* Main Layout & Foreground (2-Column Desktop Grid: Content & Official Portrait) */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3.5rem;
    align-items: flex-start;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Badges */
.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-amber-glow {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.badge-emerald-live {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Calligraphy Logo Badge Plate */
.hero-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 300px;
  height: 300px;
  aspect-ratio: 1 / 1;
  padding: 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(245, 158, 11, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative
  ;

}

.hero-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.55), 0 0 32px rgba(245, 158, 11, 0.3);
}

.hero-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-logo-box {
    width: 120px;
    height: 120px;
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-logo-box {
    width: 100px;
    height: 100px;
    padding: 0.5rem;
    border-radius: 16px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Designation with Gold Accent */
.hero-designation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fef3c7;
  font-family: var(--font-marathi);
  line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.8);
}

.designation-bar {
  width: 4px;
  height: 24px;
  background: var(--amber-gradient);
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Bio Text */
.hero-bio {
  font-size: 1.05rem;
  color: #f8fafc;
  line-height: 1.7;
  max-width: 630px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.75);
}

/* Actions Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--transition-normal);
  min-height: 46px;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45), 0 0 14px rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.6);
}

.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* Dark Hero Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 0.95rem 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-box:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25);
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 0.25rem;
}

/* Hero Portrait Card (Shifted Upward to align parallel with top logo & text) */
.hero-image-card {
  position: relative;
  max-width: 380px;
  width: 100%;
  margin: 0.25rem auto 0;
  align-self: flex-start;
  z-index: 5;
}

@media (max-width: 1023px) {
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-image-card {
    margin: 0 auto 1.5rem;
    max-width: 320px;
  }
}

.hero-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.65), 0 0 35px rgba(245, 158, 11, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.55);
  aspect-ratio: 4/5;
  background: #ffffff;
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(1.02) contrast(1.02);
  transition: transform 0.5s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

.hero-portrait-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(10, 16, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.portrait-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--amber-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.portrait-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.portrait-badge-text strong {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 700;
}

.portrait-badge-text span {
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* Hero Bottom Carousel Status Bar */
.hero-bottom-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slide-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem 0.45rem 0.8rem;
  font-size: 0.825rem;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.caption-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.caption-title {
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-dot {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  width: 48px;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
}

/* ==========================================================================
   Portals Explore Grid (Homepage)
   ========================================================================== */
.portals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-amber-border);
  box-shadow: var(--shadow-lg);
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.portal-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-amber-light);
  color: var(--primary-amber-dark);
}

.portal-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.portal-card p.marathi-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-amber);
  margin-bottom: 0.5rem;
}

.portal-card p.description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.portal-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-amber-dark);
}

/* ==========================================================================
   Gallery & Lightbox
   ========================================================================== */
.gallery-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.gallery-filters-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn,
.gallery-filter-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover,
.gallery-filter-btn:hover {
  background: transparent;
  color: var(--primary-amber);
  border-bottom-color: var(--primary-amber-border);
}

.filter-btn.active,
.gallery-filter-btn.active {
  background: transparent;
  color: var(--primary-amber-dark);
  border-bottom-color: var(--primary-amber);
  box-shadow: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.gallery-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.gallery-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e2e8f0;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-card:hover .gallery-card-img-wrap img {
  transform: scale(1.05);
}

.insta-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.gallery-category-pill {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-amber-dark);
  font-size: 0.7rem;
  font-weight: 800;
  border: none;
  box-shadow: none;
}

.gallery-card-content {
  padding: 0.75rem 0.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.gallery-card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.gallery-card-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-amber);
  margin-top: auto;
}

/* ==========================================================================
   Modals & Lightbox (Strict Background Scroll Lock)
   ========================================================================== */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-wrapper.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 1001;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #f1f5f9;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.modal-img-col {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.modal-img-col img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.modal-details-col {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.modal-caption-box {
  background: var(--primary-amber-light);
  border: 1px solid var(--primary-amber-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.5;
  font-style: italic;
}

.modal-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-lg);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-top: auto;
}

.modal-insta-link:hover {
  background: #1e293b;
}

/* Video Modal */
.video-modal-container {
  max-width: 800px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
}

.video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-body {
  padding: 1.25rem 1.5rem;
}

/* ==========================================================================
   News Video Cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #fca5a5;
}

.news-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #0f172a;
}

.news-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.news-card:hover .play-overlay {
  background: rgba(15, 23, 42, 0.5);
}

.play-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
  transition: transform var(--transition-fast);
}

.news-card:hover .play-btn-circle {
  transform: scale(1.1);
}

.video-duration-tag {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.4rem;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.news-card-summary {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.watch-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: auto;
}

/* ==========================================================================
   Ministerial Portfolios Interactive Tabs
   ========================================================================== */
.portfolio-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .portfolio-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-nav-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.portfolio-nav-item {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.75rem 0.5rem;
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-nav-item:hover {
  border-bottom-color: var(--primary-amber);
  background: transparent;
}

.portfolio-nav-item.active {
  border-bottom-color: var(--primary-amber);
  background: transparent;
  box-shadow: none;
  outline: none;
}

.portfolio-nav-item h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.portfolio-nav-item p.marathi {
  font-size: 0.75rem;
  color: var(--primary-amber);
  font-weight: 700;
  margin-top: 0.25rem;
}

.portfolio-detail-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  box-shadow: none;
  border-top: 1px solid var(--border-subtle);
}

.initiatives-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.initiative-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  background: transparent;
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--primary-amber-border);
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
}

.initiative-item .check-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Institutions Cards
   ========================================================================== */
.institutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .institutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.inst-card {
  background: transparent;
  border: none;
  border-left: 3px solid var(--primary-amber-border);
  border-radius: 0;
  padding: 1rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  transition: all var(--transition-normal);
}

.inst-card:hover {
  transform: none;
  border-left-color: var(--primary-amber);
  box-shadow: none;
}

.inst-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.inst-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.inst-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.inst-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Milestone Timeline
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-amber), var(--accent-blue), var(--accent-emerald));
  border-radius: 2px;
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2.5rem;
    text-align: right;
  }

  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2.5rem;
    text-align: left;
  }
}

.timeline-node {
  position: absolute;
  left: 11px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 4px solid var(--primary-amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
  z-index: 5;
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-node {
    left: auto;
    right: -10px;
  }

  .timeline-item:nth-child(even) .timeline-node {
    left: -10px;
  }
}

.timeline-card {
  margin-left: 48px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

@media (min-width: 768px) {
  .timeline-card {
    margin-left: 0;
  }
}

.timeline-year-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-amber-light);
  color: var(--primary-amber-dark);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Citizen Redressal Desk & Form
   ========================================================================== */
.form-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  background: #f8fafc;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--primary-amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.success-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.tracking-token-box {
  background: var(--bg-subtle);
  border: 2px dashed var(--primary-amber);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.tracking-token-box .token {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-amber-dark);
}

/* ==========================================================================
   Responsive Grid Layouts & Mobile Optimization
   ========================================================================== */

/* About Section Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 3rem;
  }
}

/* Directory Record Card */
.dir-card-wrap {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 50%, #eff6ff 100%);
  border: 1px solid var(--primary-amber-border);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .dir-card-wrap {
    padding: 2rem;
    margin-bottom: 2.5rem;
  }
}

.dir-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .dir-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
  }
}

/* Constituency Section Grid */
.constituency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .constituency-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Contact Section Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
  }
}

/* Comprehensive Mobile Screen Optimizations (< 767px) */
@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .section-header p.subtitle,
  .section-header p.marathi-tag {
    font-size: 0.85rem;
  }

  /* Prevent oversized inline headings & containers on mobile */
  .dir-card-wrap h3,
  .form-container h3,
  .portfolio-detail-card h3 {
    font-size: 1.2rem !important;
  }

  .form-container,
  .portfolio-detail-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-xl) !important;
  }

  .inst-card {
    padding: 0.85rem 0 0.85rem 1rem;
  }

  /* Portfolio switcher tabs grid on mobile */
  .portfolio-nav-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem !important;
    margin-bottom: 1.25rem !important;
  }

  .portfolio-nav-item {
    padding: 0.5rem 0.4rem !important;
  }

  .portfolio-nav-item h4 {
    font-size: 0.78rem !important;
  }

  .portfolio-nav-item p.marathi {
    font-size: 0.7rem !important;
  }

  /* Mobile Hero Adjustments */
  .hero-section {
    padding: 1.75rem 0 1.5rem;
  }

  .hero-logo-box {
    width: 95px !important;
    height: 95px !important;
    padding: 0.5rem !important;
  }

  .hero-brand-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .hero-designation {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero-bio {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .hero-image-card {
    max-width: 260px !important;
    margin: 0.75rem auto 1rem !important;
  }

  .hero-bottom-bar {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
  }

  /* Mobile Timeline Adjustments */
  .timeline-wrapper {
    padding: 0.25rem 0;
  }

  .timeline-item {
    padding-left: 2.25rem;
    margin-bottom: 1.5rem;
  }

  .timeline-node {
    width: 14px;
    height: 14px;
    left: 14px;
  }

  .timeline-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
  }

  .timeline-card h3 {
    font-size: 0.95rem;
  }

  .timeline-card p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* Footer on Mobile */
  .site-footer .footer-top {
    padding: 2rem 0 1.25rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

/* Extra Small Screens (< 420px) */
@media (max-width: 419px) {
  .section-header h2 {
    font-size: 1.35rem;
  }

  .portfolio-nav-grid {
    grid-template-columns: 1fr !important;
  }
}
