/* ===========================
   NRLC Website - style.css
   Bootstrap 5 Custom Styles
   =========================== */

:root {
  --navy: #1a3057;
  --gold: #c8932a;
  --light-gold: #d4a843;
  --dark-gold: #a07020;
  --accent-blue: #1e4080;
  --light-bg: #f5f6f8;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  font-size: 14px;
  background: #fff;
}

/* ---- Accessibility Bar ---- */
.access-bar {
  background: #f0f0f0;
  font-size: 12px;
}
.access-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
}
.access-link:hover { color: var(--gold); text-decoration: underline; }

.font-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  padding: 1px 6px;
  color: #333;
  line-height: 1.4;
}
.font-btn.active, .font-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.contrast-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #333;
  padding: 0;
}
.contrast-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.lang-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.lang-link.active-lang { font-weight: 700; color: var(--navy); }
.lang-link:hover { color: var(--gold); }

/* ---- Header ---- */
.site-header { background: #fff; }

.header-gov-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.header-ministry {
  font-size: 12px;
  color: var(--navy);
  line-height: 1.2;
}
.header-satyamev {
  font-size: 11px;
  color: #888;
}

.nrlc-title-main {
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.nrlc-title-sub {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}
.nrlc-title-hindi {
  font-size: 12px;
  color: #555;
}

/* G20 Badge */
.g20-badge {
  background: linear-gradient(135deg, #0061a8, #00a651, #f7941d);
  border-radius: 50%;
  width: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.g20-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.g20-logo-text span { font-size: 14px; vertical-align: super; }
.g20-sub {
  font-size: 6px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.1;
}

/* ---- Navigation ---- */
.main-nav {
  background: var(--navy);
  padding-top: 0;
  padding-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow 0.2s;
}

.main-nav .navbar-nav .nav-link {
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 14px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.show {
  color: var(--gold) !important;
  border-bottom-color: var(--gold);
}

.nav-home {
  background: var(--gold);
  padding: 14px 18px !important;
  border-bottom: 3px solid var(--dark-gold) !important;
}
.nav-home:hover { background: var(--dark-gold); }

.main-nav .dropdown-menu {
  background: var(--navy);
  border: none;
  border-top: 3px solid var(--gold);
  border-radius: 0;
  min-width: 200px;
  margin-top: 0;
}
.main-nav .dropdown-item {
  color: #ddd;
  font-size: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.main-nav .dropdown-item:hover {
  background: rgba(200,147,42,0.2);
  color: var(--gold);
}

.search-nav-btn {
  background: var(--gold);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-nav-btn:hover { background: var(--dark-gold); }

/* ---- Hero ---- */
.hero-section {
  min-height: 480px;
  position: relative;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1587474260584-136574528ed5?w=1400&q=80') center/cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,40,80,0.88) 45%, rgba(20,40,80,0.25) 100%);
  z-index: 1;
}
.hero-section .container-fluid {
  z-index: 2;
}

.hero-subtitle {
  color: #c8d8f0;
  font-size: 22px;
  font-weight: 400;
  font-family: 'Noto Serif', serif;
}
.hero-title {
  font-family: 'Noto Serif', serif;
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}
.hero-desc-main {
  font-size: 18px;
  color: #c8d8f0;
  font-weight: 400;
  margin-top: 4px;
}
.hero-desc-sub {
  font-size: 14px;
  color: #b0c0d8;
  max-width: 440px;
  line-height: 1.7;
}

.btn-hero-primary {
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-hero-primary:hover {
  background: var(--dark-gold);
  border-color: var(--dark-gold);
  color: #fff;
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-hero-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* ---- Services ---- */
.services-section {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}
.service-card {
  border-right: 1px solid #e8e8e8;
  transition: background 0.2s;
  cursor: pointer;
}
.service-card:last-child { border-right: none; }
.service-card:hover, .service-card.active-card {
  background: var(--navy);
}
.service-card:hover .service-title,
.service-card.active-card .service-title,
.service-card:hover .service-desc,
.service-card.active-card .service-desc {
  color: #fff;
}

.service-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.service-icon.sci { background: #f5e9d0; color: var(--gold); }
.service-icon.cons { background: #1a3057; color: #fff; }
.service-icon.train { background: #d4a843; color: #fff; }
.service-icon.lib { background: #1a3057; color: #fff; }
.service-icon.field { background: #f5e9d0; color: var(--gold); }

.service-card:hover .service-icon,
.service-card.active-card .service-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.service-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ---- Welcome Section ---- */
.welcome-section { background: #f7f8fa !important; }

.welcome-title {
  font-family: 'Noto Serif', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}
.text-gold { color: var(--gold); }

.welcome-text {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.info-icon {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}
.info-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.info-value {
  font-size: 12px;
  color: #666;
}

.btn-read-more {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--navy);
  padding: 9px 20px;
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-read-more:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* What's New */
.view-all-link {
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.view-all-link:hover { text-decoration: underline; }

.news-list {
  border-top: 2px solid var(--gold);
}
.news-item {
  padding: 14px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: flex-start;
}
.news-date-box {
  min-width: 52px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 8px 6px;
  flex-shrink: 0;
}
.news-date-box.apr { background: var(--gold); }
.news-day {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.news-month {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.news-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.news-badge {
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  border-radius: 2px;
  padding: 2px 7px;
  margin-top: 4px;
}

/* ---- Gallery ---- */
.gallery-img-wrap {
  overflow: hidden;
  border-radius: 2px;
  height: 160px;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.gallery-img:hover { transform: scale(1.05); }

.gallery-arrow {
  background: var(--navy) !important;
  width: 36px;
  height: 36px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.gallery-arrow.carousel-control-prev { left: -18px; }
.gallery-arrow.carousel-control-next { right: -18px; }
.gallery-arrow:hover { background: var(--gold) !important; }

/* ---- Quick Links ---- */
.quick-link-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: var(--navy);
  transition: all 0.2s;
  min-height: 130px;
}
.quick-link-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200,147,42,0.15);
  color: var(--gold);
}
.ql-icon {
  width: 48px;
  height: 48px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--navy);
}
.quick-link-card:hover .ql-icon { background: var(--gold); color: #fff; }
.ql-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}
.quick-link-card:hover .ql-label { color: var(--gold); }
.ql-label small { font-size: 11px; font-weight: 400; color: #888; display: block; }
.ql-arrow {
  color: var(--gold);
  font-size: 18px;
  margin-top: 4px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #c8d4e8;
}
.footer-heading {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-text {
  font-size: 12.5px;
  color: #bbc8e0;
  line-height: 1.7;
}
.footer-icon {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}
.footer-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 12.5px;
}
.footer-link:hover { text-decoration: underline; }

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li a {
  color: #bbc8e0;
  text-decoration: none;
  font-size: 12.5px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links-list li a:hover { color: var(--gold); }
.footer-links-list li a i { color: var(--gold); }

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.social-btn:hover { opacity: 0.8; }
.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #000; }
.social-btn.yt { background: #ff0000; }
.social-btn.li { background: #0077b5; }
.social-btn.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.visitor-counter {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.visitor-counter span {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  width: 22px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* Digital India Badge */
.digital-india-badge { color: #fff; }
.di-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(#008000 0deg 120deg, #0000ff 120deg 240deg, #ff6600 240deg 360deg);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}
.di-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.di-subtext {
  font-size: 11px;
  color: #bbc8e0;
}

.footer-divider {
  border-color: rgba(255,255,255,0.12);
}
.footer-bottom {
  font-size: 11.5px;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.back-to-top:hover { background: var(--navy); }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 18px; }
  .hero-desc-main { font-size: 15px; }
  .nrlc-title-main { font-size: 15px; }
  .services-section .col { flex: 0 0 50%; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero-section { min-height: 360px; }
  .main-nav .navbar-nav .nav-link { padding: 10px 12px; font-size: 11px; }
  .site-header { padding: 8px 0; }
  .g20-badge { width: 50px; height: 50px; }
  .services-section .col { flex: 0 0 50%; border-right: none; border-bottom: 1px solid #eee; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .services-section .col { flex: 0 0 100%; }
  .gallery-img-wrap { height: 120px; }
}
