﻿/* =============================================================================
   TN GOVT TREASURIES - PREMIUM PORTAL THEME
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Roboto+Condensed:wght@700&display=swap");

:root {
  /* Brand Colors */
  --gov-primary: #1a3c6e;
  /* Deep Official Blue */
  --gov-primary-dark: #122a4d;
  --gov-secondary: #b92b27;
  /* Alert/Action Red */
  --gov-gold: #c5a059;
  /* Premium Accent */
  --gov-gold-light: #f4ebd0;

  /* UI Colors */
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --border-color: #e9ecef;

  /* Spacing */
  --section-spacing: 5rem;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-serif: "Merriweather", serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #f4f6f9;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--gov-primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* =============================================================================
   UTILITIES & ANIMATIONS
   ============================================================================= */
.text-justify {
  text-align: justify;
}

.fw-medium {
  font-weight: 500;
}

.fw-bold {
  font-weight: 700;
}

.text-gov-primary {
  color: var(--gov-primary) !important;
}

.bg-gov-primary {
  background-color: var(--gov-primary) !important;
}

.text-gold {
  color: var(--gov-gold) !important;
}

.bg-gold-light {
  background-color: var(--gov-gold-light);
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gov-gold);
  border-radius: 2px;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Premium Easing & Durations */
:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --anim-slow: 1.2s;
  --anim-md: 0.8s;
  --anim-fast: 0.4s;
}

/* Scroll Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity var(--anim-slow) var(--ease-premium),
    transform var(--anim-slow) var(--ease-premium);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--anim-slow) var(--ease-premium),
    transform var(--anim-slow) var(--ease-premium);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--anim-slow) var(--ease-premium),
    transform var(--anim-slow) var(--ease-premium);
}

.reveal-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ==============================
   ACCESSIBILITY TOOLBAR STYLES
   ============================== */

/* Container for toolbar controls */
.accessibility-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* Font size buttons */
.font-size-btn {
  background: var(--gov-gold-light);
  border: 1px solid var(--gov-gold);
  color: var(--gov-primary);
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--anim-fast) var(--ease-premium),
    color var(--anim-fast) var(--ease-premium);
}

.font-size-btn:hover {
  background: var(--gov-gold);
  color: #fff;
}

/* Language switcher */
.language-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  background: var(--gov-gold-light);
  border: 1px solid var(--gov-gold);
  color: var(--gov-primary);
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: background var(--anim-fast) var(--ease-premium),
    color var(--anim-fast) var(--ease-premium);
}

.lang-toggle:hover {
  background: var(--gov-gold);
  color: #fff;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 100px;
}

.lang-dropdown .lang-option {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--anim-fast) var(--ease-premium);
}

.lang-dropdown .lang-option:hover {
  background: var(--gov-gold-light);
}

/* Contrast toggle */
.contrast-toggle {
  background: var(--gov-gold-light);
  border: 1px solid var(--gov-gold);
  color: var(--gov-primary);
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--anim-fast) var(--ease-premium),
    color var(--anim-fast) var(--ease-premium);
}

.contrast-toggle:hover {
  background: var(--gov-gold);
  color: #fff;
}

/* High contrast mode */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a,
body.high-contrast .nav-link {
  color: #ff0 !important;
}

body.high-contrast .nav-link:hover,
body.high-contrast .nav-link.active {
  color: #0ff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Hover gold effect for toolbar links */
.hover-gold {
  transition: color var(--anim-fast) var(--ease-premium);
}

.hover-gold:hover {
  color: var(--gov-gold) !important;
}

/* ARIA live region hidden but visible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scale In Animation */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--anim-md) var(--ease-premium),
    transform var(--anim-md) var(--ease-premium);
}

.scale-in.reveal-visible {
  opacity: 1;
  transform: scale(1);
}

/* =============================================================================
   LEGACY TOP BAR (PRESERVED)
   ============================================================================= */
.legacy-top-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  border-bottom: 1px solid #dae1e7;
  font-size: 0.85rem;
}

.legacy-top-bar img.logo {
  height: 55px;
}


/* =============================================================================
   CREATIVE RESPONSIVE NAVBAR WITH PREMIUM EFFECTS
   ============================================================================= */

/* Main Navbar Container */
#mainNavbar {
  background: linear-gradient(
    135deg,
    rgba(26, 60, 110, 0.98) 0%,
    rgba(18, 42, 77, 0.98) 50%,
    rgba(26, 60, 110, 0.98) 100%
  );
  background-size: 200% 200%;
  animation: gradientFlow 15s ease infinite;
  border-top: none;
  box-shadow: 0 8px 32px rgba(26, 60, 110, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#mainNavbar.sticky-top {
  animation: slideDown 0.5s var(--ease-premium);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Menu Toggle Button */
.custom-toggler {
  border: 2px solid var(--gov-gold);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  background: rgba(197, 160, 89, 0.1);
  transition: all 0.3s ease;
}

.custom-toggler:hover {
  background: rgba(197, 160, 89, 0.2);
  transform: scale(1.05);
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(197, 160, 89, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.toggler-text {
  color: var(--gov-gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Navigation Links Container */
.navbar-nav {
  gap: 0.5rem;
}

/* Individual Navigation Links */
.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.75rem 1.2rem !important;
  margin: 0.3rem 0.2rem;
  position: relative;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

/* Nav Link Icon Styles */
.nav-link i:first-child {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* Hover State for Nav Links */
.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--gov-gold) 0%, #d4a373 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px) scale(1.05);
}

.nav-link:hover i:first-child {
  transform: rotate(360deg) scale(1.2);
}

/* Glow Effect on Hover */
.nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.nav-link:hover::before {
  width: 300px;
  height: 300px;
}

/* =============================================================================
   CREATIVE DROPDOWN MENU STYLES
   ============================================================================= */

/* Dropdown Toggle Specific Styles */
.dropdown-toggle {
  position: relative;
}

/* Hide Bootstrap Default Arrow */
.navbar-nav .dropdown-toggle::after {
  display: none;
}

/* Custom Dropdown Icon */
.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: auto;
}

/* Rotate Icon When Dropdown is Open */
.nav-item.dropdown.show .dropdown-icon,
.nav-item.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Parent Hover State */
.nav-item.dropdown:hover .nav-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--gov-gold) 0%, #d4a373 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* Dropdown Menu Container - Modern Glassmorphism */
.navbar-nav .dropdown-menu.modern-dropdown {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(197, 160, 89, 0.3);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(26, 60, 110, 0.25);
  padding: 0.8rem 0;
  min-width: 260px;
  animation: dropdownSlideIn 0.4s var(--ease-premium);
  overflow: hidden;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dropdown Items */
.navbar-nav .dropdown-item {
  padding: 0.85rem 1.5rem;
  color: var(--gov-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-premium);
  border-left: 4px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Dropdown Item Icon Styles */
.dropdown-item i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--gov-primary);
  transition: all 0.3s ease;
}

/* Dropdown Item Hover Effect */
.navbar-nav .dropdown-item:hover {
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.15) 0%, rgba(197, 160, 89, 0.05) 100%);
  color: var(--gov-primary-dark);
  border-left-color: var(--gov-gold);
  padding-left: 2rem;
  transform: translateX(8px);
}

.navbar-nav .dropdown-item:hover i {
  color: var(--gov-gold);
  transform: scale(1.3) rotate(10deg);
}

/* Dropdown Item Active State */
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
  background: linear-gradient(90deg, rgba(26, 60, 110, 0.12) 0%, rgba(26, 60, 110, 0.05) 100%);
  color: var(--gov-primary);
  border-left-color: var(--gov-primary);
}

/* Dropdown Divider if needed */
.navbar-nav .dropdown-divider {
  border-top: 2px solid rgba(197, 160, 89, 0.2);
  margin: 0.5rem 0;
}

/* Hover to show dropdown on desktop */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* =============================================================================
   RESPONSIVE MOBILE STYLES
   ============================================================================= */

@media (max-width: 991px) {
  /* Mobile Navbar */
  #mainNavbar {
    padding: 0.5rem 0;
  }

  .navbar-collapse {
    background: rgba(26, 60, 110, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .nav-link {
    width: 100%;
    margin: 0.3rem 0;
    padding: 1rem 1.2rem !important;
    justify-content: flex-start;
  }

  /* Mobile Dropdown Menu */
  .dropdown-menu.modern-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    margin-left: 1rem;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.95) !important;
    border-left-color: transparent !important;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gov-gold) !important;
    border-left-color: var(--gov-gold) !important;
  }

  .dropdown-item i {
    color: rgba(255, 255, 255, 0.8);
  }

  .dropdown-item:hover i {
    color: var(--gov-gold);
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 0.85rem 1rem !important;
  }

  .dropdown-item {
    font-size: 0.9rem;
    padding: 0.75rem 1.2rem;
  }
}


/* =============================================================================
   HERO & ANNOUNCEMENTS
   ============================================================================= */
.hero-section {
  background: linear-gradient(180deg, #fff 0%, #f4f6f9 100%);
  padding: 3rem 0;
}

.featured-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--gov-primary);
  color: white;
}

.featured-card img {
  transition: opacity 0.3s;
}

.featured-card:hover img {
  opacity: 0.6;
}

.news-ticker-wrap {
  background: var(--gov-primary-dark);
  color: white;
  font-size: 0.9rem;
  overflow: hidden;
  height: 50px;
  /* Increased height for better fit */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.ticker-title {
  background: linear-gradient(90deg, #f44336 0%, #ff5722 100%);
  padding: 0 40px 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.1;
  font-size: 0.95rem;
  text-transform: capitalize;
  z-index: 2;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
  min-width: 140px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ticker-content {
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  padding-left: 20px;
  display: inline-block;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.announcement-list .list-group-item {
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.announcement-list .list-group-item:hover {
  background-color: var(--bg-light);
  border-left-color: var(--gov-primary);
}

.date-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f0f2f5;
  color: #8c98a5;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Custom Scrollbar for Announcement List */
.announcement-list::-webkit-scrollbar {
  width: 6px;
}

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

.announcement-list::-webkit-scrollbar-thumb {
  background: #e9c46a;
  /* Gold color from image */
  border-radius: 10px;
}

.announcement-list::-webkit-scrollbar-thumb:hover {
  background: #d4a373;
}

/* View Archive Button Styling */
.btn-view-archive {
  background-color: #34495e;
  /* Exact dark blue from image */
  color: white !important;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-view-archive:hover {
  background-color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: 1rem;
  margin-left: 15%;
}

/* =============================================================================
   KEY STATISTICS
   ============================================================================= */
/* =============================================================================
   KEY STATISTICS - ANIMATED PREMIUM BACKGROUND
   ============================================================================= */
.stats-section {
  position: relative;
  background: linear-gradient(-45deg, #1a3c6e, #122a4d, #1a3c6e, #0e3f70);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 6rem 0;
  overflow: hidden;
}

/* Animated Background Shapes */
.stats-section::before,
.stats-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(197, 160, 89, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 1;
  animation: floatBlobs 20s infinite alternate;
}

.stats-section::before {
  top: -100px;
  left: -100px;
}

.stats-section::after {
  bottom: -100px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(100px, 50px) scale(1.2);
  }
}

.stat-card {
  text-align: center;
  padding: 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.5s var(--ease-premium);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.govt-subtitle {
  color: #212529;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.2px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gov-gold);
}

.stat-label {
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* =============================================================================
   SERVICES & PENSIONERS
   ============================================================================= */
.service-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--gov-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s var(--ease-premium);
  border: 1px solid #e9ecef;
}

/* =============================================================================
   TREASURY NETWORK - EXECUTIVE CARDS
   ============================================================================= */
.card.hover-premium {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  overflow: hidden;
  /* Ensure gradient doesn't spill */
  z-index: 1;
  /* Stacking context */
}

/* Executive Dark Hover Effect */
.card.hover-premium:hover {
  background: linear-gradient(
    135deg,
    var(--gov-primary) 0%,
    var(--gov-primary-dark) 100%
  );
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 60, 110, 0.25) !important;
}

.card.hover-premium:hover h5,
.card.hover-premium:hover p,
.card.hover-premium:hover a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card.hover-premium:hover a i {
  color: var(--gov-gold) !important;
  transform: translateX(5px);
}

/* Icon Box Inversion */
.card.hover-premium .service-icon-box {
  background: #f0f4f8;
  /* Soft blue-grey default */
  color: var(--gov-primary);
  border: 1px solid #e1e8ed;
}

.card.hover-premium:hover .service-icon-box {
  background: rgba(255, 255, 255, 0.1);
  /* Glassy effect on dark bg */
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--gov-gold);
  transform: rotateY(180deg) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card.hover-premium:hover .service-icon-box i {
  transform: rotateY(-180deg);
  /* Counter flip */
}

.card:hover .service-icon-box {
  background: var(--gov-primary);
  color: var(--gov-gold);
  /* Gold icon on blue bg */
  transform: rotateY(180deg) scale(1.1);
  border-color: var(--gov-primary);
  box-shadow: 0 5px 15px rgba(26, 60, 110, 0.2);
}

.card:hover .service-icon-box i {
  transform: rotateY(-180deg);
  /* Counter-rotate icon so it stays readable if needed, or flips */
}

/* =============================================================================
   PENSIONER'S CORNER - PLATINUM & GOLD
   ============================================================================= */
.pensioner-corner {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  /* Platinum Gradient */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle gold accent line */
.pensioner-corner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gov-gold);
}

.pension-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  /* Glassy */
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  border-radius: 50px;
  /* Pill Shape */
  font-weight: 600;
  color: var(--gov-primary-dark);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy */
  backdrop-filter: blur(5px);
}

.pension-link i {
  font-size: 1.2rem;
  min-width: 40px;
  color: var(--gov-secondary);
  transition: transform 0.4s ease;
}

.pension-link:hover {
  background: #ffffff;
  color: var(--gov-primary);
  border-color: var(--gov-gold);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.25);
  /* Gold Glow */
}

.pension-link:hover i {
  color: var(--gov-gold);
  transform: scale(1.3) rotate(15deg);
}

/* Remove old pseudo-elements if any conflicts */
.pension-link::before {
  display: none;
}

/* =============================================================================
   TABS & DOCUMENTS
   ============================================================================= */
.nav-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
  color: var(--gov-primary);
  border-bottom-color: var(--gov-primary);
  background: transparent;
}

/* Document Tabs (Official Documents Section) */
/* =============================================================================
   DOCUMENTS - SOLID TACTILE TABS
   ============================================================================= */
.doc-tabs {
  border-bottom: none;
  gap: 10px;
}

.doc-link {
  color: var(--text-muted);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 30px;
  /* Solid Pill */
  padding: 0.75rem 1.5rem;
  background: #f1f3f5;
  transition: all 0.3s ease;
}

.doc-link:hover {
  background: #e9ecef;
  color: var(--gov-primary);
}

.doc-link.active {
  color: #ffffff;
  background: var(--gov-primary);
  /* Solid Blue */
  border-color: var(--gov-primary);
  box-shadow: 0 4px 10px rgba(26, 60, 110, 0.3);
}

/* Tab Animation */
.tab-pane.active {
  animation: gentleSlideUp 0.6s var(--ease-premium);
}

@keyframes gentleSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* File Card Look for Items */
.document-item {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid #f1f3f5;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.document-item:hover {
  border-color: var(--gov-primary);
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  /* Keep white for contrast */
  border-left: 5px solid var(--gov-primary);
  /* Thick accent */
}

.doc-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  /* Soft Red BG for PDF */
  color: #dc3545;
  border-radius: 10px;
  font-size: 1.4rem;
  margin-right: 1.2rem;
  transition: transform 0.3s ease;
}

.document-item:hover .doc-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.main-footer {
  background-color: #1e2125;
  color: #adb5bd;
  font-size: 0.9rem;
  padding-top: 4rem;
}

.footer-heading {
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.dept-title {
  color: #0e3f70;
  /* Exact Government Deep Blue */
  font-family: "Roboto Condensed", sans-serif;
  /* Tall, condensed font */
  font-size: 2.4rem;
  /* Slightly larger to match image scale */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
  text-transform: none;
  /* Ensure no forced casing */
}

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

.footer-links a {
  color: #adb5bd;
}

.footer-links a:hover {
  color: var(--gov-gold);
  padding-left: 5px;
  text-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
}

.footer-bottom {
  background: #111;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid #2c3034;
}

/* =============================================================================
   HEADER SPECIFIC STYLES
   ============================================================================= */
.header-title-text {
  font-family: "Roboto Condensed", sans-serif;
  color: #0e3f70 !important;
  /* Exact Deep Blue */
  font-weight: 700;
  font-size: 1.5rem;
  /* Prominent size */
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .header-title-text {
    font-size: 1.5rem;
  }
}
