/* ============================================================
   KARESHIELD ADVISOR — Modern Design System
   Inspired by Petra Insurance, using original brand palette
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --navy: #1B2A4A;
  --navy-light: #243B67;
  --navy-dark: #111D33;
  --red: #D4621A;
  --red-hover: #B85216;
  --red-light: rgba(212, 98, 26, 0.08);

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --light-gray: #EEF1F6;
  --mid-gray: #D1D8E0;
  --text-primary: #1B2A4A;
  --text-secondary: #5A6B7F;
  --text-muted: #8E9AAF;

  /* Accents */
  --cream: #FFF8F0;
  --soft-blue: #EDF2FF;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders & Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(27, 42, 74, 0.04);
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.10);
  --shadow-xl: 0 16px 64px rgba(27, 42, 74, 0.14);
  --shadow-red: 0 4px 20px rgba(212, 98, 26, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);
  --transition-slow: all 0.5s var(--ease);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  max-width: 600px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.text-red {
  color: var(--red);
}

.text-navy {
  color: var(--navy);
}

.text-white {
  color: var(--white);
}

.bg-off-white {
  background: var(--off-white);
}

.bg-navy {
  background: var(--navy);
}

.bg-cream {
  background: var(--cream);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.btn-cta-name {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.5px;
}

.btn-outline-white .btn-cta-name {
  color: rgba(255, 255, 255, 0.6);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--off-white);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown .nav-link::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-premium-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--red);
}

.pay-premium-link:hover {
  background: var(--red);
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ---------- Hero Section (Slideshow) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: block;
  overflow: hidden;
  background: var(--navy);
  padding: 0;
}

.hero-slider {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform, opacity, z-index;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Force Hardware Acceleration */
}

.hero-slider .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 29, 51, 0.5);
  /* Simple uniform dark overlay for clean legibility */
  z-index: 1;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Force Hardware Acceleration */
}

.hero-container {
  position: relative;
  z-index: 10;
  pointer-events: none;
  padding: 120px 0 80px;
  min-height: 100vh;
  /* Match the hero height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertically center */
  align-items: center;
  /* Horizontally center */
  text-align: center;
}

.hero-content {
  max-width: 850px;
  pointer-events: auto;
  margin: 0 auto;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-contact {
  justify-content: center;
}

.hero-contact strong {
  color: var(--white);
}

.hero-contact span {
  color: rgba(255, 255, 255, 0.7);
}

/* Swiper Customize */
.hero-slider .swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.5;
  width: 12px;
  height: 12px;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--red);
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  z-index: 30;
  margin: 0 20px;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: var(--red);
  color: var(--white);
}

/* Responsive Hero */
@media (max-width: 991px) {
  .hero {
    min-height: 85vh;
  }

  .hero-slider .swiper-slide::after {
    background: rgba(11, 22, 42, 0.7);
  }

  .hero-container {
    padding: 100px 0 80px;
  }

  .hero-actions,
  .hero-contact,
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

/* ---------- Mission & Vision Section ---------- */
.mission-vision {
  padding: 80px 0;
  background: var(--white);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mission-vision-card {
  padding: 40px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--red);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.mission-vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.mission-vision-card h3 {
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
}

.mission-vision-card h3 svg {
  color: var(--red);
}

.mission-vision-card p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stats / Counter Section ---------- */
.stats {
  padding: 100px 0;
  background: linear-gradient(145deg, #0b111e 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(212, 98, 26, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(58, 104, 196, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  z-index: 0;
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-card {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 98, 26, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 98, 26, 0.1);
}

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

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.stat-icon {
  width: 76px;
  height: 76px;
  background: rgba(212, 98, 26, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(212, 98, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--red);
  transition: var(--transition-slow);
}

.stat-icon svg {
  width: 32px;
  height: 32px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.stat-unit {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ---------- About Section ---------- */
.about {
  padding: var(--section-padding);
}

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

.about-images {
  position: relative;
}

.about-img-primary {
  width: 85%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: 0;
  width: 55%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid var(--white);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience {
  position: absolute;
  top: 30px;
  right: -10px;
  background: var(--red);
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-red);
  z-index: 2;
}

.about-experience .number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.about-experience .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-content .section-title .dot {
  color: var(--red);
}

.about-text {
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--off-white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--light-gray);
}

.about-highlight svg {
  color: var(--red);
  flex-shrink: 0;
}

/* ---------- Awards Section ---------- */
.awards {
  padding: 80px 0;
  background: var(--off-white);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.award-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.award-icon {
  width: 64px;
  height: 64px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--red);
}

.award-card h4 {
  margin-bottom: 8px;
  color: var(--navy);
}

.award-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ---------- Services Section ---------- */
/* ---------- Services Section ---------- */
.services {
  padding: var(--section-padding);
  background-image: url('assets/images/services-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(247, 249, 252, 0.65);
  /* Soft overlay of off-white to maintain text legibility */
  backdrop-filter: blur(4px);
  /* Very subtle depth of field blur */
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

/* Staggered entrance animations — smooth, refined */
@keyframes serviceCardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.services-grid .service-card:nth-child(1) {
  animation: serviceCardIn 0.5s ease 0.05s both;
}

.services-grid .service-card:nth-child(2) {
  animation: serviceCardIn 0.5s ease 0.12s both;
}

.services-grid .service-card:nth-child(3) {
  animation: serviceCardIn 0.5s ease 0.19s both;
}

.services-grid .service-card:nth-child(4) {
  animation: serviceCardIn 0.5s ease 0.26s both;
}

.services-grid .service-card:nth-child(5) {
  animation: serviceCardIn 0.5s ease 0.33s both;
}

.services-grid .service-card:nth-child(6) {
  animation: serviceCardIn 0.5s ease 0.40s both;
}

.services-grid .service-card:nth-child(7) {
  animation: serviceCardIn 0.5s ease 0.47s both;
}

.services-grid .service-card:nth-child(8) {
  animation: serviceCardIn 0.5s ease 0.54s both;
}

.services-grid .service-card:nth-child(9) {
  animation: serviceCardIn 0.5s ease 0.61s both;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  background: var(--white);
  padding: 28px 32px;
  border-radius: 16px;
  text-align: left;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  border: 1px solid rgba(27, 42, 74, 0.09);
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Left accent bar that grows on hover */
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--red) 0%, #ff6565 100%);
  border-radius: 16px 0 0 16px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  z-index: 0;
}

/* Keep content above accent bar */
.service-icon,
.service-card h5,
.service-card .service-meta,
.service-card .service-arrow {
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
}

.service-card:hover {
  background: var(--red);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(212, 98, 26, 0.25);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover h5 {
  color: var(--white);
}

.service-card:hover .service-meta {
  color: rgba(255, 255, 255, 0.75);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.service-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--red-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  border: 1px solid rgba(212, 98, 26, 0.1);
  transition: all 0.35s ease;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-content {
  flex: 1;
}

.service-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.35s ease;
}

.service-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.35s ease;
}

.service-card .service-arrow {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.35s ease;
  border: 1px solid rgba(27, 42, 74, 0.08);
}

.service-card:hover .service-arrow {
  background: var(--white);
  color: var(--red);
  transform: rotate(-45deg);
  border-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Partners Section ---------- */
.partners {
  padding: 80px 0;
  background: var(--off-white);
}

.layout-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.layout-btn {
  padding: 10px 20px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layout-btn i {
  font-size: 1.1rem;
}

.layout-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.layout-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(0,40,86,0.2);
}

.partners-slider {
  overflow: hidden;
  padding: 20px 0 40px;
  white-space: nowrap;
  position: relative;
  display: none;
}

.partners-slider.active {
  display: block;
}

.partners-slider::before,
.partners-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}

.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-partners 45s linear infinite;
}

.partner-logo {
  flex: 0 0 auto;
  width: 260px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow of scaled logos */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.partner-logo img {
  width: 90%;
  height: 80%; /* Fixed relative height for vertical alignment */
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05) brightness(1.02);
  transition: all 0.4s ease;
  display: block;
}

/* Conservative scale overrides for tiny logos only, ensuring no overflow */
.partner-logo img[src*="motilaloswal"] { transform: scale(1.15); }
.partner-logo img[src*="liberty"] { transform: scale(1.6); } 
.partner-logo img[src*="magma"] { transform: scale(1.1); }

.partner-logo:hover img {
  filter: contrast(1.1) brightness(1.05);
  transform: scale(1.05);
}

/* Partners Grid Layout */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-grid .partner-logo {
  width: 100%;
  height: 120px;
  margin: 0;
  background: white;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 20px;
}

.partners-grid .partner-logo:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border-color: #e2e8f0;
}

.partner-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

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

@media (max-width: 768px) {
  .partner-logo {
    width: 200px;
    margin: 0 20px;
  }

  .partner-logo img {
    max-width: 160px;
    max-height: 70px;
  }
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  padding: var(--section-padding);
  background: var(--cream);
}

.testimonials-slider {
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 50%;
  }
}

.testimonial-inner {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--light-gray);
  height: 100%;
}

.testimonial-quote-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--red);
}

.testimonial-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-author-info h5 {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.testimonial-author-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonials-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: var(--transition);
  background: var(--white);
}

.testimonials-controls button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
  margin: 0 20px;
}

.testimonials-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mid-gray);
  cursor: pointer;
  transition: var(--transition);
}

.testimonials-dots .dot.active {
  background: var(--navy);
  width: 28px;
  border-radius: 5px;
}

/* ---------- CTA Section ---------- */
.cta {
  padding: 80px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 98, 26, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.contact-card {
  background: var(--off-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  border-color: var(--light-gray);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--red);
}

.contact-card h4 {
  margin-bottom: 12px;
  color: var(--navy);
}

.contact-card p {
  font-size: 0.9375rem;
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--red);
}

.map-container {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.35s ease;
}

.footer-social a:hover {
  background: rgba(212, 98, 26, 0.15);
  border-color: rgba(212, 98, 26, 0.4);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 98, 26, 0.15);
}

.footer-col h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer-col ul a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
  padding-left: 4px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .contact-list {
  gap: 8px;
}

.contact-person {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.person-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.person-number {
  font-weight: 500;
  font-size: 0.9375rem;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 3px;
}

.footer-contact-item span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- Page Banner (for sub-pages) ---------- */
.page-banner {
  padding: 160px 0 80px;
  background: linear-gradient(145deg, #050d1a 0%, #0b162a 30%, var(--navy) 60%, #1a3058 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated dot-grid overlay */
.page-banner .container {
  position: relative;
  z-index: 3;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: bannerGridShift 20s linear infinite;
  z-index: 1;
}

/* Glowing scan line */
.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(212, 98, 26, 0.03) 40%,
      rgba(212, 98, 26, 0.08) 50%,
      rgba(212, 98, 26, 0.03) 60%,
      transparent 100%);
  animation: bannerScanLine 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes bannerGridShift {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(28px, 28px);
  }
}

@keyframes bannerScanLine {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Floating orb top-right */
.page-banner h1::before {
  content: '';
  position: fixed;
  pointer-events: none;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 98, 26, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  animation: bannerOrbPulse 8s ease-in-out infinite;
  z-index: 0;
  position: absolute;
}

/* Floating orb bottom-left */
.page-banner .breadcrumb::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(58, 104, 196, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  animation: bannerOrbPulse 10s 2s ease-in-out infinite reverse;
  z-index: 0;
  pointer-events: none;
}

@keyframes bannerOrbPulse {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  33% {
    transform: translate(20px, -20px) scale(1.15);
    opacity: 1;
  }

  66% {
    transform: translate(-15px, 10px) scale(0.9);
    opacity: 0.5;
  }
}

.page-banner h1 {
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
  color: var(--white);
  animation: bannerTitleIn 0.8s ease-out both;
  text-shadow: 0 0 40px rgba(212, 98, 26, 0.15);
  letter-spacing: -0.01em;
}

/* Red accent line with neon glow */
.page-banner h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 18px auto 0;
  border-radius: 2px;
  box-shadow:
    0 0 8px rgba(212, 98, 26, 0.6),
    0 0 20px rgba(212, 98, 26, 0.3),
    0 0 40px rgba(212, 98, 26, 0.1);
  animation: bannerLineIn 0.6s 0.4s ease-out both, bannerLineGlow 3s 1s ease-in-out infinite;
}

@keyframes bannerTitleIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }

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

@keyframes bannerLineIn {
  from {
    opacity: 0;
    width: 0;
  }

  to {
    opacity: 1;
    width: 60px;
  }
}

@keyframes bannerLineGlow {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(212, 98, 26, 0.6), 0 0 20px rgba(212, 98, 26, 0.3);
  }

  50% {
    box-shadow: 0 0 12px rgba(212, 98, 26, 0.8), 0 0 30px rgba(212, 98, 26, 0.5), 0 0 60px rgba(212, 98, 26, 0.15);
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 3;
  animation: bannerTitleIn 0.8s 0.2s ease-out both;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--red);
  text-shadow: 0 0 12px rgba(212, 98, 26, 0.4);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
}

/* ---------- Content Page Layout ---------- */
.content-section {
  padding: var(--section-padding);
}

.content-section .container {
  max-width: 900px;
}

.content-section h2 {
  margin-bottom: 20px;
}

.content-section h3 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.content-section p {
  margin-bottom: 16px;
}

.content-section ul {
  margin: 16px 0;
  padding-left: 0;
}

.content-section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* Sub-page services sidebar */
.services-sidebar {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--light-gray);
}

.services-sidebar h4 {
  margin-bottom: 20px;
  color: var(--navy);
}

.services-sidebar ul li {
  margin-bottom: 4px;
}

.services-sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.services-sidebar ul li a:hover,
.services-sidebar ul li a.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

.services-sidebar ul li a.active {
  color: var(--red);
  font-weight: 600;
}

.services-sidebar ul li a svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}

.service-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

/* ---------- Team Page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--off-white);
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team-card:hover .team-card-img img {
  transform: scale(1.05);
}

.team-card-info {
  padding: 24px;
  text-align: center;
}

.team-card-info h4 {
  margin-bottom: 4px;
  color: var(--navy);
}

.team-card-info span {
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 500;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--mid-gray);
}

.faq-item.active {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  /* Large enough for long answers */
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  width: 100%;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
}

.faq-question .faq-toggle {
  width: 32px;
  height: 32px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  background: var(--red);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}


/* ---------- Gallery ---------- */
.gallery-grid {
  column-count: 3;
  column-gap: 24px;
  margin-top: 48px;
  min-height: 200px;
}

@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(17, 29, 51, 0.9) 0%, rgba(17, 29, 51, 0.4) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

/* ---------- Blog Section ---------- */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 30px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

.blog-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.blog-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--navy);
}

.blog-content h3 a:hover {
  color: var(--red);
}

.blog-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 12px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  transform: translateY(-4px);
}

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

@media (max-width: 1024px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .service-page-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    padding: 100px 32px 32px;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.125rem;
    padding: 12px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 20px;
    min-width: 0;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-dropdown .nav-link::after {
    transition: var(--transition);
  }

  .nav-dropdown.open .nav-link::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .awards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .testimonial-inner {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 24px 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: column;
  }
}

/* ---------- Tax Information Styles ---------- */
.tax-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 0;
}

.tax-section {
  scroll-margin-top: 100px;
}

.tax-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tax-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--mid-gray);
}

.tax-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
}

.tax-table th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tax-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.tax-table tr:last-child td {
  border-bottom: none;
}

.tax-table tr:nth-child(even) {
  background: var(--off-white);
}

.tax-highlight {
  display: inline-block;
  padding: 4px 12px;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tax-feature {
  padding: 30px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  height: 100%;
}

.tax-feature h4 {
  margin-bottom: 12px;
  color: var(--navy);
}

.regime-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.badge-new { background: #e3f2fd; color: #1976d2; }
.badge-old { background: #f1f8e9; color: #388e3c; }

@media (max-width: 768px) {
  .tax-card {
    padding: 24px;
  }
  
  .tax-table th, .tax-table td {
    border-color: var(--mid-gray);
  }
}

/* ---------- Product Brochures Styles ---------- */
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.brochure-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 35px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brochure-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

.brochure-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--off-white);
}

.brochure-icon {
  width: 50px;
  height: 50px;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brochure-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.brochure-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brochure-item {
  margin-bottom: 15px;
}

.brochure-item:last-child {
  margin-bottom: 0;
}

.brochure-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.brochure-link:hover {
  color: var(--red);
  transform: translateX(5px);
}

.brochure-link svg {
  color: var(--navy);
  opacity: 0.6;
  flex-shrink: 0;
}

.brochure-link:hover svg {
  color: var(--red);
  opacity: 1;
}

/* ---------- Calculators Styles ---------- */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  padding: 80px 0;
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.calc-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--mid-gray);
}

.calc-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 20px;
}

.calc-header h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.calc-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.calc-body {
  flex-grow: 1;
}

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

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.calc-input {
  width: 100px;
  padding: 6px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background: var(--off-white);
  color: var(--red);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: right;
  transition: var(--transition);
}

.calc-input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212, 98, 26, 0.1);
}

/* Hide number arrows */
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.calc-range {
  width: 100%;
  height: 6px;
  background: var(--light-gray);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results {
  margin-top: 30px;
  padding: 25px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.calc-result-item {
  text-align: center;
}

.calc-result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  display: block;
}

.calc-result-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.calc-result-main {
  grid-column: span 2;
  border-top: 1px solid var(--light-gray);
  padding-top: 15px;
  margin-top: 5px;
}

.calc-result-main .calc-result-value {
  font-size: 1.75rem;
  color: var(--red);
}

.calc-footer {
  margin-top: 30px;
}

.calc-cta {
  width: 100%;
}

/* ---------- Time Toggle Switches ---------- */
.time-toggle {
  display: inline-flex;
  background: var(--off-white);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid var(--light-gray);
  margin-left: 10px;
}

.time-btn {
  border: none;
  background: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 15px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  text-transform: uppercase;
}

.time-btn.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.time-btn:hover:not(.active) {
  color: var(--red);
}

/* ---------- Delay Cost Highlights ---------- */
.calc-result-delay {
  background: rgba(212, 98, 26, 0.05);
  border: 1px dashed var(--red-light);
}

.calc-result-delay .calc-result-value {
  color: var(--red);
}

.calc-result-delay .calc-result-label {
  color: var(--red-dark);
}

.calc-result-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 15px;
  background: var(--off-white);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.calc-result-info svg {
  color: var(--red);
  flex-shrink: 0;
}

/* ---------- SIP Matrix Table ---------- */
.calc-matrix-container {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--light-gray);
}

.calc-matrix-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  display: block;
}

.calc-matrix-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.calc-matrix-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
}

.calc-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 600px;
  background: var(--white);
}

.calc-matrix-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-matrix-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--light-gray);
  color: var(--text-dark);
}

.calc-matrix-table tr:nth-child(even) {
  background: var(--off-white);
}

.calc-matrix-table tr:hover {
  background: rgba(212, 98, 26, 0.05);
}

.calc-matrix-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
}

.matrix-val {
  font-weight: 500;
  color: var(--navy-light);
}

.matrix-val-high {
  color: var(--red);
  font-weight: 600;
}

/* ---------- SIP Grid Results ---------- */
.calc-results-sip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.calc-matrix-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  background: var(--off-white);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
}

.matrix-control-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

.matrix-mini-input {
  width: 60px;
  padding: 4px 8px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.matrix-mini-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

.matrix-row-custom {
  background: rgba(212, 98, 26, 0.08) !important;
}

.matrix-col-custom {
  background: rgba(26, 35, 126, 0.05);
  font-weight: 600;
}

@media (max-width: 500px) {
  .calc-results-sip {
    grid-template-columns: 1fr;
  }
}


/* ---------- Tabbed Dashboard Styles ---------- */
.calc-dashboard {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 80px 0;
}

.calc-sidebar {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 120px;
  box-shadow: var(--shadow-sm);
}

.calc-sidebar h4 {
  color: var(--navy);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--off-white);
  font-size: 1.25rem;
}

.calc-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-menu-item {
  margin-bottom: 10px;
}

.calc-menu-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.calc-menu-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.calc-menu-link:hover {
  background: var(--off-white);
  color: var(--red);
}

.calc-menu-link.active {
  background: var(--white);
  color: var(--red);
  border-color: var(--red-light);
  box-shadow: 0 4px 15px rgba(212, 98, 26, 0.1);
}

.calc-menu-link.active svg {
  color: var(--red);
}

.calc-content {
  min-height: 600px;
}

.calc-tab-content {
  display: none;
  animation: fadeInDown 0.4s ease forwards;
}

.calc-tab-content.active {
  display: block;
}

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

@media (max-width: 991px) {
  .calc-dashboard {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }

  .calc-sidebar {
    position: static;
    margin-bottom: 30px;
    padding: 15px;
  }

  .calc-menu {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }

  .calc-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }

  .calc-menu-link {
    white-space: nowrap;
    padding: 10px 15px;
  }
}

/* ---------- Gap Analysis Styles ---------- */
.gap-analysis-toggle {
  margin: 15px 0;
  text-align: center;
}

.gap-analysis-section {
  margin: 20px 0;
  padding: 25px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--navy-light);
  animation: fadeIn 0.4s ease forwards;
}

.gap-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.gap-subtitle {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.asset-list-header {
  display: grid;
  grid-template-columns: 1fr 160px 130px 40px; /* Default for Risk */
  gap: 12px;
  padding: 0 12px 10px 12px;
  margin-bottom: 15px;
}

.asset-list-header.asset-grid-6 {
  grid-template-columns: 1fr 140px 120px 80px 140px 40px;
}

.header-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
  padding: 0 2px;
  white-space: nowrap;
}

/* Perfect alignment: Name/Type Left, Values/Results Right */
.asset-grid-6 .header-label:nth-child(3),
.asset-grid-6 .header-label:nth-child(4),
.asset-grid-6 .header-label:nth-child(5),
.asset-grid-7 .header-label:nth-child(3),
.asset-grid-7 .header-label:nth-child(4),
.asset-grid-7 .header-label:nth-child(5),
.asset-grid-7 .header-label:nth-child(6) {
  text-align: right;
}

.dynamic-asset-list {
  margin-bottom: 20px;
}

.dynamic-asset-row {
  display: grid;
  grid-template-columns: 1fr 160px 130px 40px; /* Default for Risk */
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
  background: var(--white);
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  animation: slideInFade 0.4s ease-out forwards;
}

.dynamic-asset-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border-color: var(--navy-light-blue);
}

.asset-grid-6 {
  /* Asset Name | Type | Amount | Return | Projected | Remove */
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr 1.2fr 45px;
  gap: 12px;
  align-items: center;
}

.asset-grid-7 {
  /* Asset Name | Type | Amount | Return | Horizon | Projected | Remove */
  grid-template-columns: 1.5fr 140px 120px 80px 80px 1.2fr 45px;
  gap: 12px;
  align-items: center;
}

.dynamic-asset-row .calc-input {
  background: #f3f4f6 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.dynamic-asset-row .calc-input:focus {
  background: #fff !important;
  border-color: var(--navy) !important;
}

@keyframes slideInFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dynamic-asset-row:hover {
  border-color: var(--navy-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateX(4px);
}

.asset-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.asset-individual-total {
  font-family: var(--font-mono);
  background: var(--off-white);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.03);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.field-label {
  display: none; /* Hidden on desktop, shown on mobile */
}

.btn-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
}

.btn-remove:hover {
  background: #fecaca;
  transform: scale(1.1);
}

.btn-navy-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-navy-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.funding-strategy-section {
  margin: 30px 0;
  padding: 25px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1.5px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
}

.strategic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 15px;
}

.strategic-header .tax-highlight {
  margin: 0;
  font-size: 0.85rem;
}

.funding-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 20px;
  align-items: end;
}

.funding-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  transition: transform 0.2s ease;
}

.funding-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.funding-card.highlighted {
  border: 2px solid var(--red);
  background: rgba(230, 57, 70, 0.02);
  padding: 20px 15px;
}

.funding-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.funding-card.highlighted .funding-label {
  color: var(--red);
}

.funding-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}

.funding-card.highlighted .funding-value {
  font-size: 1.9rem;
}

@media (max-width: 768px) {
  .funding-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.gap-results-panel {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.gap-results-panel .calc-result-item {
  background: var(--white);
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--light-gray);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.gap-results-panel .calc-result-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--mid-gray);
}

.gap-results-panel .calc-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.gap-results-panel .calc-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.gap-results-panel .calc-result-main {
  background: var(--cream);
  border-color: rgba(212, 98, 26, 0.2);
}

.gap-results-panel .calc-result-main .calc-result-label {
  color: var(--navy);
}

.gap-results-panel .calc-result-main .calc-result-value {
  font-size: 1.75rem;
  color: var(--red);
}

.sip-strategy-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 15px 0;
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 500;
}

.sip-strategy-selector select, 
.sip-strategy-selector input {
  padding: 4px 8px !important;
  font-size: 0.9rem !important;
  color: var(--navy) !important;
  border: 1px solid var(--light-gray) !important;
  background: white !important;
  border-radius: 6px !important;
  cursor: pointer;
  outline: none;
  font-weight: 700 !important;
}

.input-with-suffix {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding-right: 8px;
}

.input-with-suffix input {
  border: none !important;
  background: transparent !important;
}

.input-with-suffix .suffix {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.sip-strategy-selector select:hover,
.input-with-suffix:focus-within {
  border-color: var(--navy-light-blue) !important;
}

.duration-badge {
  background: var(--navy);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

#retAddSipContainer, #goalAddSipContainer {
  grid-column: 1 / -1;
  border-top: 1px dashed #cbd5e1 !important;
  text-align: center;
  padding-top: 20px !important;
}

@media (max-width: 768px) {
  .asset-list-header {
    display: none;
  }
  .dynamic-asset-row {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
  }
  .field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
  }
  .dynamic-asset-row .asset-field:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Risk Profiler Styles ---------- */
.risk-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.risk-step.active {
  display: block;
}

.risk-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.risk-card {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--navy);
  background: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  min-height: 90px;
  box-shadow: var(--shadow-sm);
}

.risk-card.selected {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.05);
}

.risk-card input[type="radio"] {
  margin-top: 5px;
  margin-right: 15px;
}

.risk-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.risk-card-content strong {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.risk-card-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.risk-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* ---------- Risk Analysis Matrix Styles ---------- */
.risk-analysis-matrix {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

.risk-analysis-matrix th {
  background: var(--navy);
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-analysis-matrix td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.risk-analysis-matrix tr:last-child td {
  border-bottom: none;
}

.status-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-overweight { background: #fee2e2; color: #ef4444; }
.status-underweight { background: #dcfce7; color: #22c55e; }
.status-balanced { background: #f3f4f6; color: #6b7280; }

.rebalance-action {
  font-weight: 700;
  color: var(--navy);
}

.allocation-bar-wrapper {
  display: flex;
  height: 35px;
  background: var(--off-white);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid var(--light-gray);
}

.alloc-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Allocation Segment Colors */
.alloc-equity { background: #E63946; }
.alloc-eq-mid { background: #F48C06; }
.alloc-eq-small { background: #FFB703; }
.alloc-bonds { background: #457B9D; }
.alloc-lic { background: #1D3557; }
.alloc-gold { background: #A890fe; }

.allocation-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  background: var(--off-white);
  padding: 15px;
  border-radius: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-item span {
  margin-left: auto;
  color: var(--navy);
}

.risk-card:hover {
  border-color: var(--navy-light);
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.risk-card.selected {
  border-color: var(--red);
  background: rgba(212, 98, 26, 0.05);
  box-shadow: 0 4px 15px rgba(212, 98, 26, 0.1);
}

.risk-card.selected .risk-card-content strong {
  color: var(--red);
}

.risk-card input[type="radio"] {
  display: none;
}

.risk-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--light-gray);
  padding-top: 20px;
}

.risk-allocation {
  margin-top: 30px;
  padding: 25px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
}

.allocation-bar-wrapper {
  height: 30px;
  width: 100%;
  background: #eee;
  border-radius: 15px;
  display: flex;
  overflow: hidden;
  margin: 20px 0;
}

.alloc-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  transition: width 0.6s ease;
}

.alloc-equity { background: var(--navy); }
.alloc-eq-mid { background: var(--navy-light); }
.alloc-eq-small { background: #5c6bc0; }
.alloc-bonds { background: var(--red); }
.alloc-lic { background: #00897b; }
.alloc-gold { background: #fbc02d; color: var(--navy); }

.allocation-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  white-space: nowrap;
}

.legend-item span {
  font-weight: 700;
  color: var(--red);
  margin-left: 2px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Sustainability Insight Panel */
.calc-insight-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin: 15px 0 25px 0;
}

.insight-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insight-header i {
  color: #3b82f6;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.insight-item.danger .insight-value {
  color: #ef4444;
}

.compounding-alert {
  background: #fff1f2;
  border-left: 4px solid #f43f5e;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #9f1239;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compounding-alert i {
  color: #f43f5e;
  font-size: 1rem;
}

.insight-item {
  display: flex;
  flex-direction: column;
}

.insight-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.insight-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #334155;
}

.insight-value.surplus {
  color: #22c55e;
}

.insight-item.highlight .insight-label {
  color: #ef4444;
}

.insight-note {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

@media (max-width: 768px) {
  .insight-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.result-toggles {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.result-toggles .btn-sm {
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-toggles .btn.active {
  background: var(--navy);
  color: white;
}

/* ====== HOSPITAL NETWORK ====== */
.hospital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.hospital-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.hospital-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--navy);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hospital-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--navy);
}

.hospital-card:hover::before {
  opacity: 1;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hospital-logo-box {
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.hospital-logo-box img {
  height: 52px; /* Uniform height for visual balance across different logo shapes */
  width: auto;
  max-width: 85%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.hospital-card:hover .hospital-logo-box img {
  transform: scale(1.08); /* Enhanced hover interaction */
}

.hospital-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hospital-link {
  width: 100%;
  display: inline-block;
  padding: 12px 24px;
  background: #f8fafc;
  color: var(--navy);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hospital-link:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.hospital-disclaimer i {
  color: var(--navy);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* ====== EXCLUDED PROVIDERS SECTION ====== */
.excluded-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px dashed #fee2e2;
}

.caution-alert-bold {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff1f2;
  border: 3px solid var(--red);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0 50px;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
  animation: pulse-bold 2s infinite ease-in-out;
}

@keyframes pulse-bold {
  0% { box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15); }
  50% { box-shadow: 0 10px 40px rgba(230, 57, 70, 0.25); }
  100% { box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15); }
}

.caution-icon {
  font-size: 2.5rem;
  color: var(--red);
  flex-shrink: 0;
}

.caution-content h4 {
  color: var(--red);
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.caution-content p {
  color: #7f1d1d;
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 500;
}

.caution-content strong {
  color: var(--red);
  text-decoration: underline;
}

.hospital-grid.secondary {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.hospital-card.warning-border {
  border: 2px solid #fee2e2;
  background: #fffafa;
}

.hospital-card.warning-border:hover {
  border-color: var(--red);
  background: #fff;
}

.hospital-card.warning-border::before {
  background: var(--red);
}

.hospital-link.warning {
  background: #fee2e2;
  color: var(--red);
  border: 2px solid var(--red);
}

.hospital-link.warning:hover {
  background: var(--red);
  color: white;
}

@media (max-width: 768px) {
  .caution-alert-bold {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}