/* ==========================================================================
   CSC SEVA KENDRA - OFFICIAL DIGITAL INDIA PORTAL THEME
   Colors: Primary Blue (#0B5ED7 / #052652), Saffron (#FF7A00), Green (#00A651)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --csc-blue: #0B5ED7;
  --csc-dark-blue: #052652;
  --csc-navy: #06152d;
  --csc-orange: #FF7A00;
  --csc-green: #00A651;
  --csc-bg-light: #f6f9fc;
  --csc-card-bg: #ffffff;
  --csc-text: #212529;
  --csc-muted: #6c757d;
  --csc-border: #e2e8f0;

  --csc-radius-sm: 8px;
  --csc-radius-md: 14px;
  --csc-radius-lg: 20px;
  --csc-radius-pill: 50px;

  --csc-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --csc-shadow-md: 0 6px 20px rgba(11, 94, 215, 0.08);
  --csc-shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
}

[data-bs-theme="dark"] {
  --csc-bg-light: #0a1120;
  --csc-card-bg: #121c30;
  --csc-text: #f8fafc;
  --csc-muted: #94a3b8;
  --csc-border: rgba(255,255,255,0.1);
  --csc-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --csc-shadow-md: 0 6px 20px rgba(0,0,0,0.4);
}

/* Reset & Global */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  background-color: var(--csc-bg-light);
  color: var(--csc-text);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--csc-card-bg);
  z-index: 99999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-spinner {
  width: 50px; height: 50px;
  border: 4px solid rgba(11, 94, 215, 0.15);
  border-top: 4px solid var(--csc-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Top Bar */
.top-bar {
  background-color: #052652;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.4rem 0;
}
.top-bar a { color: #cbd5e1; }
.top-bar a:hover { color: var(--csc-orange); }

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1.25rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.social-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #fff;
  transition: all 0.25s ease;
}
.social-icon:hover {
  background: var(--csc-orange);
  transform: translateY(-2px);
}

/* Main Header Navbar */
.main-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  z-index: 1030;
}
[data-bs-theme="dark"] .main-header {
  background: #121c30;
  border-bottom: 1px solid var(--csc-border);
}

.main-header.sticky-nav {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #052652;
}
[data-bs-theme="dark"] .brand-title { color: #ffffff; }

.brand-title span.blue { color: var(--csc-blue); }
.brand-title span.green { color: var(--csc-green); }

.nav-link {
  font-weight: 600;
  color: var(--csc-text) !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--csc-radius-sm);
  transition: all 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--csc-blue) !important;
  background: rgba(11, 94, 215, 0.06);
}

/* Buttons */
.btn-csc-blue {
  background: var(--csc-blue);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: var(--csc-radius-pill);
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.btn-csc-blue:hover {
  background: #084298;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 94, 215, 0.4);
}

.btn-csc-yellow {
  background: #ffc107;
  color: #000000 !important;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: var(--csc-radius-pill);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.btn-csc-yellow:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

.btn-csc-outline-blue {
  background: transparent;
  color: var(--csc-blue) !important;
  border: 2px solid var(--csc-blue);
  font-weight: 700;
  padding: 0.5rem 1.3rem;
  border-radius: var(--csc-radius-pill);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.btn-csc-outline-blue:hover {
  background: var(--csc-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Hero Banner Section */
.hero-banner-section {
  position: relative;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #f0f4f9 0%, #e8f0fe 100%);
  overflow: hidden;
}
[data-bs-theme="dark"] .hero-banner-section {
  background: linear-gradient(135deg, #091322 0%, #0d1b32 100%);
}

.hero-tag {
  color: var(--csc-orange);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #052652;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
[data-bs-theme="dark"] .hero-heading { color: #ffffff; }

.hero-heading span.blue { color: var(--csc-blue); }
.hero-heading span.green { color: var(--csc-green); }

.hero-subheading {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #334155;
  margin-bottom: 1.25rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
[data-bs-theme="dark"] .hero-subheading { color: #cbd5e1; }

.hero-checks-wrapper {
  margin-bottom: 1.75rem;
}
.hero-checks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}
.hero-checks-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.hero-checks-list li i {
  color: var(--csc-green);
  font-size: 1.15rem;
}

/* Hero Image Card Without Extra Background Container */
.hero-operator-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-operator-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--csc-radius-lg);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
  transition: all 0.3s ease;
}
.hero-operator-card img:hover {
  transform: scale(1.02);
}

.digital-india-hero-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--csc-radius-pill);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 5;
}
.digital-india-hero-badge img {
  height: 32px;
  width: auto;
  filter: none !important;
  border-radius: 0 !important;
}

/* Feature Bar Row (4 Cards) */
.feature-bar-section {
  margin-top: -1.75rem;
  position: relative;
  z-index: 10;
}

.feature-pill-card {
  background: #ffffff;
  border-radius: var(--csc-radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--csc-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
  height: 100%;
}
[data-bs-theme="dark"] .feature-pill-card {
  background: #121c30;
}
.feature-pill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(11, 94, 215, 0.12);
}

.feature-pill-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
}
.feature-pill-icon.blue { background: #0B5ED7; }
.feature-pill-icon.green { background: #00A651; }
.feature-pill-icon.orange { background: #FF7A00; }
.feature-pill-icon.purple { background: #8f12fd; }

.feature-pill-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--csc-text);
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.feature-pill-desc {
  font-size: 0.8rem;
  color: var(--csc-muted);
  margin-bottom: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Section Title */
.main-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.main-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 900;
  color: #052652;
  margin-bottom: 0.35rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
[data-bs-theme="dark"] .main-section-title { color: #ffffff; }

.main-section-subtitle {
  color: var(--csc-muted);
  font-size: 0.95rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Services Grid Cards */
.services-grid-section {
  padding: 4rem 0;
}

.service-box-card {
  background: #ffffff;
  border-radius: var(--csc-radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  border: 1px solid var(--csc-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
[data-bs-theme="dark"] .service-box-card {
  background: #121c30;
}

.service-box-card:hover {
  transform: translateY(-5px);
  border-color: var(--csc-blue);
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.12);
}

.service-box-icon {
  width: 58px; height: 58px;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.service-box-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-box-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--csc-text);
  margin-bottom: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* 4 Colored Info Banner Cards */
.info-banner-card {
  border-radius: var(--csc-radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.info-banner-card.green { background: #e6f7ef; border: 1px solid #b3e6cd; color: #004d26; }
.info-banner-card.blue { background: #e8f1fd; border: 1px solid #b3d1fb; color: #052652; }
.info-banner-card.orange { background: #fff4e6; border: 1px solid #ffe0b3; color: #663100; }
.info-banner-card.pink { background: #ffebee; border: 1px solid #ffcdd2; color: #7f0000; }

[data-bs-theme="dark"] .info-banner-card.green { background: #072e1c; border-color: #0d5434; color: #a3e9c7; }
[data-bs-theme="dark"] .info-banner-card.blue { background: #0c2345; border-color: #17427f; color: #a8cdfc; }
[data-bs-theme="dark"] .info-banner-card.orange { background: #331a00; border-color: #663300; color: #ffd699; }
[data-bs-theme="dark"] .info-banner-card.pink { background: #330009; border-color: #660012; color: #ff99aa; }

.info-banner-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
.info-banner-desc {
  font-size: 0.88rem;
  opacity: 0.9;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Statistics Bar */
.statistics-blue-bar {
  background: var(--csc-blue);
  color: #ffffff;
  padding: 3rem 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.15rem;
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* 3-Column Highlights Section */
.highlight-column-card {
  background: #ffffff;
  border-radius: var(--csc-radius-md);
  padding: 1.5rem;
  border: 1px solid var(--csc-border);
  height: 100%;
}
[data-bs-theme="dark"] .highlight-column-card { background: #121c30; }

.center-spotlight-card {
  background: linear-gradient(135deg, #052652 0%, #0B5ED7 100%);
  color: #ffffff;
  border-radius: var(--csc-radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Reviews Slider */
.review-card {
  background: #ffffff;
  border-radius: var(--csc-radius-md);
  padding: 1.5rem;
  border: 1px solid var(--csc-border);
  height: 100%;
  box-shadow: var(--csc-shadow-sm);
}
[data-bs-theme="dark"] .review-card { background: #121c30; }

/* Partners Bar */
.partners-bar-section {
  padding: 2rem 0;
  background: #ffffff;
  border-top: 1px solid var(--csc-border);
  border-bottom: 1px solid var(--csc-border);
}
[data-bs-theme="dark"] .partners-bar-section { background: #0a1120; }

.partner-logo-box img {
  max-height: 44px;
  width: auto;
  filter: grayscale(20%);
  transition: all 0.25s ease;
}
.partner-logo-box img:hover {
  filter: grayscale(0%);
  transform: scale(1.06);
}

/* Footer */
footer {
  background: #06152d;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.88rem;
}
footer h6 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
}
footer a { color: #cbd5e1; }
footer a:hover { color: var(--csc-orange); }

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li {
  margin-bottom: 0.55rem;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.82rem;
}

/* Scroll To Top */
.scroll-to-top {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--csc-blue);
  color: #fff; border: none;
  box-shadow: 0 4px 15px rgba(11,94,215,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease; z-index: 1000;
}
.scroll-to-top.active { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--csc-orange); transform: translateY(-3px); }

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 991.98px) {

  /* HIDE HERO IMAGE ON MOBILE & TABLET */
  .hero-operator-col,
  .hero-operator-card {
    display: none !important;
  }

  /* CENTER ALIGN HERO CONTENT ON MOBILE */
  .hero-banner-section {
    text-align: center !important;
    padding: 2.25rem 0 1.75rem;
  }

  .hero-tag {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-heading {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.75rem);
  }

  .hero-subheading {
    text-align: center;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }

  .hero-checks-wrapper {
    text-align: center;
  }

  .hero-checks-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto 1.5rem;
  }

  .hero-action-btns {
    justify-content: center !important;
  }

  /* MOBILE NAVBAR DESIGN & CENTERING */
  .brand-logo-img {
    height: 38px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .navbar-collapse {
    background: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: var(--csc-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin-top: 0.75rem;
    border: 1px solid var(--csc-border);
    text-align: center;
  }

  [data-bs-theme="dark"] .navbar-collapse {
    background: #121c30;
  }

  .navbar-nav {
    align-items: center;
    gap: 0.35rem;
  }

  .nav-link {
    justify-content: center;
    width: 100%;
    padding: 0.65rem 1rem !important;
    font-size: 0.98rem;
  }

  .mobile-nav-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
  }

  .mobile-nav-btn-container .btn-csc-blue {
    width: 100%;
    max-width: 280px;
    padding: 0.65rem 1.25rem;
  }

  .feature-bar-section {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    font-size: 0.75rem;
  }
  .top-info-item {
    margin-right: 0.6rem;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-logo-img {
    height: 32px;
  }
  .btn-csc-blue, .btn-csc-outline-blue {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}
