/* =========================================================
   SMANV GROUP — WHITE PREMIUM HYBRID THEME
   Inspired by SampleAK (Header/Sparkles) + Sample1 (Cards)
   ========================================================= */

:root {
  --nav-dark: #ffffff;
  /* White Header */
  --nav-text: #0b2545;
  /* Dark Text */
  --accent: #24c99a;
  /* Teal Accent from SampleAK */
  --bg-page: #ffffff;
  --glass-border: rgba(11, 37, 69, 0.1);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
}

/* GLOBAL RESET */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #0b2545 !important;
  /* Footer Dark Blue to hide overscroll white gap */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: #ffffff;
  color: #12243c;
  overflow-x: hidden;
}

main#content {
  margin-top: 0 !important;
  padding-top: 5px !important;
  flex: 1;
  /* Pushes footer down */
  width: 100%;
  /* Ensure full width */
}

/* =========================================================
   PARTICLES & CURSOR
   ========================================================= */
#particles-js {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: transparent;
  /* Particles will be configured to be Dark in JS */
}

/* Cursor Sparkle (from SampleAK) */
.cursor-spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.8s, transform 0.8s;
  z-index: 9999;
  animation: sparkle-fade 0.8s forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* =========================================================
   NEW HEADER (Dark Gradient Box Style)
   ========================================================= */
#page-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  /* Dark Blue Gradient Background - Richer & Deeper */
  background: linear-gradient(180deg, #020b16 0%, #0b2545 100%);
  color: #ffffff;
  z-index: 1200;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Menu Button Box Shape */
#hamburger {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  width: 90px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* 3D Floating Animation (Similar to Board page) */
@keyframes float-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.overview-visual {
  background: #fff;
  width: 320px;
  height: 320px;
  min-height: 320px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: float-bob 6s ease-in-out infinite;
  /* Continuous floating */
}

.overview-card {
  animation: float-bob 6s ease-in-out infinite;
}

/* Staggered Floating for Overview Cards */
.overview-card:nth-child(1) {
  animation-delay: 0s;
}

.overview-card:nth-child(2) {
  animation-delay: 1.5s;
}

.overview-card:nth-child(3) {
  animation-delay: 1s;
}

.overview-card:nth-child(4) {
  animation-delay: 2.5s;
}

#hamburger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(36, 201, 154, 0.2);
}

.hamburger-inner {
  position: relative;
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-inner span {
  width: 100%;
  height: 2px;
  background: #ffffff !important;
  border-radius: 2px;
  transition: .3s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center;
}

.menu-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

/* Animation: X Transform */
#hamburger[aria-pressed="true"] .hamburger-inner span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#hamburger[aria-pressed="true"] .hamburger-inner span:nth-child(2) {
  opacity: 0;
}

#hamburger[aria-pressed="true"] .hamburger-inner span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Logo Wrapper (White Squircle) */
.logo-wrapper {
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  /* Squircle softer corner */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 52px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  margin-left: 5px;
}

.brand-title {
  font-size: 26px;
  /* Larger Title */
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  /* display: flex to align rolling letter */
  display: flex;
  align-items: baseline;
}

/* ANIMATION: Rolling 'G' */
.rolling-text {
  display: inline-block;
  animation: rollLetter 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transform-origin: center bottom;
  color: #ffffff;
}

@keyframes rollLetter {
  0% {
    transform: rotate(-180deg) translateX(-20px);
    opacity: 0;
  }

  100% {
    transform: rotate(0deg) translateX(0);
    opacity: 1;
  }
}

/* ANIMATION: Subtitle Raise Up */
.brand-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  animation: slideUpFade 0.8s ease-out 0.3s forwards;
  /* Delay to start after G rolls */
  opacity: 0;
  transform: translateY(10px);
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER RESPONSIVE FIXES */
@media (max-width: 768px) {
  .brand-title {
    font-size: 20px;
  }

  .brand-subtitle {
    font-size: 11px;
    white-space: normal;
    max-width: 200px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }

  #page-header {
    padding: 0 15px;
  }

  .logo-wrapper {
    width: 40px;
    height: 40px;
    padding: 4px;
  }

  .logo-img {
    height: 28px;
  }

  #hamburger {
    width: 70px;
    height: 40px;
  }

  .menu-label {
    display: none;
  }

  .brand-title {
    font-size: 18px;
  }
}

/* =========================================================
   DARK GLOW HERO SECTION (Refined: Sky Blue & Tighter)
   ========================================================= */
.hero-glow-section {
  position: relative;
  /* Floating Box Look - Very tight to header (80px body padding + 0px margin) */
  margin: 0px auto 30px auto;
  /* Reduced side gaps */
  width: 96%;
  max-width: 1300px;
  padding: 80px 40px;

  /* Sky Bluish Gradient (Vibrant yet Premium) */
  background: linear-gradient(180deg, #0b2545 0%, #05182d 50%, #000812 100%);

  text-align: center;
  border-radius: 30px;
  /* Semi-round shape */
  box-shadow: 0 20px 50px rgba(10, 80, 120, 0.25);
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.15);
}

.hero-glow-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Blue glow spot */
  background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-glow-title {
  font-size: 48px;
  font-weight: 900;
  color: #00d2ff;
  /* Cyan Blue Glow */
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 210, 255, 0.3);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.hero-glow-subtitle {
  font-size: 18px;
  color: #e0f7fa;
  /* Very light blue */
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}


/* =========================================================
   PREMIUM HERO — GLASS + AURORA (Option 6)
========================================================= */

.hero-premium {
  position: relative;
  height: 480px;
  margin: 20px 0 40px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf5ff, #f2f8ff);
  box-shadow: 0 20px 60px rgba(15, 40, 90, 0.12);
}

/* Aurora animated layers */
.aurora-layer {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(63, 157, 255, 0.45), transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(80, 190, 255, 0.35), transparent 75%);
  filter: blur(80px);
  animation: auroraMove 22s ease-in-out infinite alternate;
  opacity: 0.45;
}

.aurora-2 {
  animation-duration: 28s;
  opacity: 0.57;
}

.aurora-3 {
  animation-duration: 34s;
  opacity: 0.43;
}

@keyframes auroraMove {
  0% {
    transform: translate(-8%, -6%) scale(1);
  }

  50% {
    transform: translate(6%, 8%) scale(1.12);
  }

  100% {
    transform: translate(-5%, 4%) scale(1.05);
  }
}

/* Center glow */
.hero-glow-center {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
      rgba(90, 150, 255, 0.40),
      rgba(90, 150, 255, 0.08) 70%);
  filter: blur(55px);
  z-index: 1;
  opacity: 0.65;
  animation: heroGlowPulse 9s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.72;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.55;
  }
}

/* Glass card */
.hero-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 40px 60px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 80px rgba(20, 40, 90, 0.25);
}

/* Logo inside glass */
.hero-logo {
  width: 160px;
  margin-bottom: 14px;
  animation: logoFloat 5s ease-in-out infinite;
}

/* Text */
.hero-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f2d55;
}

.hero-sub {
  margin-top: 6px;
  font-size: 1rem;
  color: #375a85;
  font-weight: 600;
}

/* Float animation */
@keyframes logoFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Mobile Adjustments */
@media (max-width: 720px) {
  .hero-premium {
    height: 360px;
  }

  .hero-glass {
    padding: 28px 34px;
  }

  .hero-logo {
    width: 120px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-sub {
    font-size: 0.82rem;
  }
}

/* =========================================================
   HERO BEAUTY ENHANCER — LIGHT STREAKS + MOTION
========================================================= */

/* light streak overlay */
.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
  animation: heroLights 8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* subtle glass texture */
.hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://i.ibb.co/VCwp0dS/noise-200.png");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: 22px;
}

/* animation */
@keyframes heroLights {
  0% {
    opacity: 0.25;
    transform: translateX(-20px);
  }

  100% {
    opacity: 0.55;
    transform: translateX(20px);
  }
}

/* =========================================================
   NEW HERO SECTION (OVERRIDES OLD ONE)
   ========================================================= */
/* =========================================================
   HERO (ONLY FOR INDEX)
   ========================================================= */
.hero-animated {
  position: relative;
  height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: url("assets/hero-waves.png") center/cover no-repeat;
  box-shadow: 0 20px 45px rgba(0, 40, 90, 0.15);
  animation: fadeHero 1.8s ease;
}

@keyframes fadeHero {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optional gentle floating effect */
.hero-animated {
  animation: moveBG 18s ease-in-out infinite alternate;
}

@keyframes moveBG {
  from {
    background-position: center top;
  }

  to {
    background-position: center 20px;
  }
}

/* animated highlight shader */
.hero-animated::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0.05) 70%);
  animation: heroGlow 12s infinite linear;
  filter: blur(40px);
}

@keyframes heroGlow {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.08);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hero-center-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 35px 55px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(20, 35, 70, 0.12);
}

.hero-center-box img {
  width: 160px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0d2344;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: #375a7f;
}

/* =========================================================
   3D GLASS HERO SECTION (Premium)
   ========================================================= */
.hero-pro {
  position: relative;
  height: 420px;
  margin-bottom: 40px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #d8edff, #b8dcff, #cae5ff);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

/* SOFT LIGHT RAYS */
.hero-lights {
  position: absolute;
  inset: 0;
  background: url("https://i.ibb.co/yfL3H0X/light-rays.png");
  background-size: cover;
  opacity: 0.32;
  animation: heroLightMove 14s linear infinite;
}

@keyframes heroLightMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-20%);
  }
}

/* WAVES BACKDROP */
.hero-waves {
  position: absolute;
  inset: 0;
  background: url("https://i.ibb.co/Pt0yWMT/wave-soft.png");
  background-size: 200% 100%;
  opacity: 0.35;
  animation: waveSlide 18s linear infinite;
}

@keyframes waveSlide {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -200%;
  }
}

/* 3D GLASS CARD */
/* Unused Big Logo Removed */

/* Footer Color Sync: html background must match footer exactly */
html {
  height: 100%;
  background: #f4f8ff;
  /* Reverted to light theme to avoid 'half blue' */
}

.hero-card-3d {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(6deg) rotateY(-8deg);
  animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
  0% {
    transform: translate(-50%, -50%) rotateX(6deg) rotateY(-8deg);
  }

  50% {
    transform: translate(-50%, -52%) rotateX(8deg) rotateY(-6deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateX(6deg) rotateY(-8deg);
  }
}

/* Frosted glass */
.hero-inner {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.55);
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(20, 35, 70, 0.18);
}

/* Logo */
.hero-logo {
  width: 150px;
  margin-bottom: 18px;
}

/* Text */
.hero-inner h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #09264A;
}

.hero-inner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c4f75;
  margin-top: 6px;
}

/* =========================================================
      ADVANCED 3D HERO — EARTH + AI LINES + 3D LOGO
   ========================================================= */

.hero-pro {
  position: relative;
  height: 480px;
  margin-bottom: 40px;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #d8edff, #b4d9ff, #d3eaff);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10);
}

/* -------------------------------
   A) ROTATING 3D EARTH (CSS Only)
---------------------------------- */
.hero-earth {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  filter: blur(1px);
  opacity: 0.7;
}

.earth-sphere {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: url("https://raw.githubusercontent.com/hjnilsson/country-flags/master/png1000px/earth.png");
  background-size: cover;
  background-position: center;
  animation: rotateEarth 22s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  opacity: 0.85;
}

@keyframes rotateEarth {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -800px 0;
  }
}

/* -------------------------------------
   D) AI ENERGY LINES (Futuristic grid)
-------------------------------------- */
.ai-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.12) 30%,
      rgba(255, 255, 255, 0.02) 60%,
      rgba(255, 255, 255, 0.12) 100%);
  mix-blend-mode: overlay;
  opacity: 0.35;
  animation: aiMove 12s linear infinite;
}

@keyframes aiMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-12%);
  }
}

/* Existing effects (kept) */
.hero-lights {
  position: absolute;
  inset: 0;
  background: url("https://i.ibb.co/yfL3H0X/light-rays.png");
  background-size: cover;
  opacity: 0.33;
  animation: heroLightMove 14s linear infinite;
}

@keyframes heroLightMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-20%);
  }
}

.hero-waves {
  position: absolute;
  inset: 0;
  background: url("https://i.ibb.co/Pt0yWMT/wave-soft.png");
  background-size: 200% 100%;
  opacity: 0.32;
  animation: waveSlide 20s linear infinite;
}

@keyframes waveSlide {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -200%;
  }
}

/* --------------------------------
   E) 3D Floating Glass Logo Card
---------------------------------- */
.hero-card-3d {
  position: absolute;
  left: 60%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-8deg);
  animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
  0% {
    transform: translate(-50%, -50%) rotateX(8deg) rotateY(-8deg);
  }

  50% {
    transform: translate(-50%, -52%) rotateX(10deg) rotateY(-6deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateX(8deg) rotateY(-8deg);
  }
}

.hero-inner {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.55);
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(20, 35, 70, 0.25);
}

.hero-logo {
  width: 150px;
  margin-bottom: 8px;
  /* Reduced from 16px */
}

.hero-inner h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #09264A;
  margin-bottom: 0;
  /* Removed margin entirely */
  line-height: 1.2;
  /* Tighten line height */
}

.hero-inner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #28507A;
  margin-top: 4px;
  /* Minimal gap */
  line-height: 1.4;
}

/* ================================================
   HERO V3 (Glass + Waves + Sphere + Glow)
================================================= */

.hero-v3 {
  position: relative;
  height: 420px;
  background: linear-gradient(180deg, #dff3ff, #cde9ff);
  border-radius: 22px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20, 40, 80, 0.15);
}

/* Glow */
.hero-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 70%);
  animation: pulseGlow 5s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.5
  }

  50% {
    opacity: 0.8
  }
}

/* =========================================================
   UPDATED GLASS CARD (Transparent Glow + Float)
   ========================================================= */

.glass-card {
  position: relative;
  height: 320px;
  /* Taller for better visual */
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  /* High transparency white */
  backdrop-filter: blur(12px);
  /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(36, 201, 154, 0.15);
  /* Teal glow */
  transform-style: preserve-3d;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* FLOAT ANIMATION */
  animation: floatCard 6s ease-in-out infinite;
}

/* Stagger animations */
.glass-card:nth-child(even) {
  animation-delay: 1.5s;
}

.glass-card:nth-child(3n) {
  animation-delay: 3s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.glass-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(36, 201, 154, 0.25);
  /* Stronger glow */
  background: rgba(255, 255, 255, 0.9);
  border-color: #24c99a;
  z-index: 10;
}

/* CARD BACKGROUND IMAGE (Muted for transparency) */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  /* Almost invisible to show glass */
  transition: opacity 0.4s;
}

.glass-card:hover .card-bg {
  opacity: 0.2;
  /* Visible on hover */
}

/* CONTENT */
.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-content h3 {
  margin: 0 0 8px 0;
  color: #0b3a66;
  /* Dark Blue Text */
  font-size: 22px;
  font-weight: 700;
}

.card-content p {
  margin: 0;
  color: #4a6fa5;
  font-size: 15px;
  line-height: 1.6;
}

.card-overlay {
  position: absolute;
  inset: 0;
  /* Gradient to make text readable */
  background: linear-gradient(to top, rgba(9, 24, 48, 0.95) 0%, rgba(9, 24, 48, 0.4) 60%, transparent 100%);
  z-index: 1;
}

.card-content p.muted {
  color: rgba(255, 255, 255, 0.85) !important;
  /* Override global muted if conflict */
}

/* Sidebar Arrow */
.nav-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.menu-btn[aria-expanded="true"] .nav-arrow {
  transform: rotate(90deg);
}

/* =========================================================
   FOOTER (Dark Gradient & Sticky)
   ========================================================= */
#page-footer {
  background: linear-gradient(180deg, #020b16 0%, #0b2545 100%);
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: auto;
  /* ensure it sticks to bottom if flex layout fails */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
  width: 100%;
}

/* =========================================================
   UNIVERSAL HERO TEXT FIXES (Applies to ALL heroes)
   ========================================================= */

/* CONTAINER: Force flex column with zero gap */
.hero-glow-section,
.hero-inner,
.hero-v3 .hero-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
}

/* HEADINGS: Zero bottom margin */
.hero-glow-title,
.hero-inner h1,
.hero-title,
.hero-v3 h1,
section h1 {
  margin-bottom: 0 !important;
  padding-bottom: 5px !important;
  line-height: 1.1 !important;
}

/* SUBTITLES: Zero top margin */
.hero-glow-subtitle,
.hero-inner p,
.hero-subtitle,
.hero-v3 p,
section p.subtitle {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.4 !important;
  opacity: 0.9;
}

/* =========================================================
   PARTNERS PAGE - DYNAMIC GRID & 3D ANIMATION
   ========================================================= */
.partners-section {
  padding: 0 0 20px;
  /* ZERO TOP PADDING, Minimal Bottom */
  max-width: 1200px;
  margin: 0 auto;
  width: 94%;
  perspective: 1200px;
}

/* MAIN GRID */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px 0;
}

/* 3-COLUMN VARIANT FOR BOARD MEMBERS */
.partners-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .partners-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .partners-grid.three-col {
    grid-template-columns: 1fr;
  }
}

/* TYPEWRITER ANIMATION (JS-Driven Width) */
.partner-section-header {
  grid-column: 1 / -1;
  font-size: 32px;
  font-weight: 700;
  color: #0b3a66;
  margin: 15px 0 2px;
  /* Reduced bottom margin */
  text-align: left;
  position: relative;
  padding-left: 20px;
  border-left: 5px solid #4facfe;

  /* Animation Initial State */
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  /* Start width: 0 */
  opacity: 0;
  /* Invisible */
}

/* CLASS TO TRIGGER ANIMATION ON SCROLL */
.partner-section-header.start-typing {
  opacity: 1;
  /* Animate width from 0 to CSS variable */
  animation: typing 2s steps(40, end) forwards;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: var(--typewriter-target, 100%);
  }
}

/* BASE CARD STYLE (Dynamic Float) */
.partner-card {
  position: relative;
  border-radius: 16px;
  /* Tighter radius */
  overflow: hidden;
  min-height: 180px;
  /* Further reduced min-height */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  /* Further reduced padding */
  text-decoration: none;
  cursor: pointer;
  /* Ensure pointer cursor for interaction */

  /* DARK THEME */
  background: #1e2c40;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

  /* 3D FLOATING ANIMATION */
  transform-style: preserve-3d;
  animation: floatCard 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.partner-card:nth-child(odd) {
  animation-delay: 0s;
}

.partner-card:nth-child(even) {
  animation-delay: 2.5s;
}

.partner-card.wide {
  grid-column: span 2;
  min-height: 260px;
  /* Reduced width card height */
}

/* HOVER EFFECT */
.partner-card:hover {
  animation-play-state: paused;
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(79, 172, 254, 0.6);
  z-index: 10;
}

/* BACKGROUNDS */
.partner-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: transform 0.6s ease, opacity 0.3s ease;
  filter: grayscale(20%) sepia(20%) hue-rotate(180deg);
}

.partner-card:hover .partner-card-bg {
  transform: scale(1.1);
  opacity: 0.3;
}

.partner-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 44, 64, 0) 0%, rgba(10, 20, 35, 0.95) 85%);
  z-index: 1;
}

/* CONTENT TEXT */
.partner-card-content {
  position: relative;
  z-index: 2;
  padding-right: 10px;
}

.partner-icon {
  font-size: 26px;
  /* Slightly smaller icon space */
  color: #4facfe;
  margin-bottom: 4px;
  /* Minimal margin */
  display: inline-block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* REMOVED BACKDROP (::before) */

.partner-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLines 2s ease-out forwards, iconFloat 4s ease-in-out infinite alternate;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 2px rgba(79, 172, 254, 0.4));
}

@keyframes drawLines {
  to {
    stroke-dashoffset: 0;
  }
}

/* HOVER: Simple scale */
.partner-card:hover .partner-icon svg {
  transform: scale(1.1);
  stroke: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
  animation: none;
  stroke-dashoffset: 0;
}

.partner-card:hover .partner-icon {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

/* UTILITY: Spin */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ANIMATION: Gentle Float (retained for composite use) */
@keyframes iconFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-3px);
  }
}

/* ANIMATION: Soft Pulse (retained) */
.icon-pulse {
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
  }
}

.partner-card h3 {
  font-size: 22px;
  /* Slightly smaller title */
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  /* Minimal margin */
}

.partner-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 90%;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-card.wide p {
  max-width: 700px;
}

/* CTA "Get in Touch" - CLEAN & TIGHT */
.cta-clean {
  margin-top: 5px;
  /* ZERO GAP from bottom card */
  text-align: left;
  padding-left: 20px;
}

.cta-clean h3 {
  font-size: 32px;
  color: #0b3a66;
  margin-bottom: 5px;
}

.cta-clean p {
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
}

.cta-link-btn {
  font-size: 18px;
  font-weight: 700;
  color: #0b3a66;
  text-decoration: none;
  border-bottom: 2px solid #0b3a66;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.cta-link-btn:hover {
  color: #3388ff;
  border-color: #3388ff;
  padding-left: 10px;
}

/* RESPONSIVE */
/* RESPONSIVE GRID SYSTEM & TYPOGRAPHY */
@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-card.wide {
    grid-column: span 1;
    min-height: auto;
    height: auto;
    aspect-ratio: 16/9;
  }

  .partner-section-header {
    white-space: normal;
    animation: none;
    width: auto;
    opacity: 1;
    display: block;
    font-size: 22px;
  }

  /* Hero & Layout Fixes */
  .hero-glow-section {
    padding: 40px 20px;
    width: 96%;
  }

  .hero-glow-title {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .hero-overview-title {
    font-size: 2.0rem;
  }

  .hero-overview {
    padding: 0 20px;
    flex-direction: column;
    text-align: center;
    height: auto;
    padding-bottom: 60px;
    padding-top: 100px;
    justify-content: center;
  }

  .hero-overview-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
  }

  .hero-overview-content {
    padding-left: 0;
    margin-top: 0;
  }

  .hero-overview-actions {
    justify-content: center;
  }

  .overview-visual {
    width: 280px;
    height: 280px;
    min-height: 280px;
    margin: 0 auto;
    order: -1;
  }
}


/* =========================================================
   CAREERS PAGE - JOB BOARD / NOTIFICATIONS
   ========================================================= */
.job-board-section {
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 20px;
  width: 94%;
}

.job-board-container {
  background: #f8fbff;
  /* Very Light Blue */
  border: 1px solid rgba(11, 58, 102, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.job-board-title {
  font-size: 28px;
  font-weight: 700;
  color: #0b3a66;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* EMPTY STATE */
.job-empty-state {
  padding: 20px 0;
}

.job-empty-icon {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 20px;
  display: block;
}

.job-empty-text {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 10px;
}

.job-empty-sub {
  font-size: 14px;
  color: #94a3b8;
}

/* JOB LIST (When active) */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.job-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.job-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: #4facfe;
}

.job-info h4 {
  margin: 0 0 5px;
  color: #1e293b;
  font-size: 18px;
}

.job-info span {
  font-size: 14px;
  color: #64748b;
  display: inline-block;
  margin-right: 15px;
}

.job-apply-btn {
  background: #0b3a66;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
}

.job-apply-btn:hover {
  background: #4facfe;
}

@media (max-width: 600px) {
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .job-apply-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   BOARD MEMBER CARDS (GMR-Style Vertical Profile)
   ========================================================= */
.board-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  /* Flexible Columns */
  /* Flexible Columns */
  gap: 30px;
  justify-content: center;
  /* Center items if they wrap */
  margin: 40px 0;
}


/* COMPACT HEADER FOR BOARD PAGE */
.board-compact-header {
  background: linear-gradient(135deg, #0f2540 0%, #061526 100%);
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.board-compact-header h1 {
  font-size: 32px;
  color: #ffffff;
  margin: 0 0 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.board-compact-header p {
  font-size: 16px;
  color: #4facfe;
  margin: 0;
  font-weight: 500;
}

/* UPDATED BOARD CARDS (Layout: Passport Size, Glass Gradient, White Panel) */
/* CSS UPDATE: Robust Board Card Layout */
.board-profile-card {
  position: relative;
  height: 100%;
  /* Changed from 410px to 100% for Grid Alignment */
  min-height: 410px;
  /* Maintain minimum size */
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 40%, #eef8ff 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 58, 102, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #dae9f5;
  /* Entrance Animations */
  opacity: 0;
  animation-name: card-enter, card-float;
  animation-duration: 1.0s, 4s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-delay: 0s, 1s;
}

.board-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(11, 58, 102, 0.15);
}

.board-photo-area {
  height: 200px;
  /* Fixed Height for consistency */
  width: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  flex-shrink: 0;
  /* Never shrink */
}

.board-info-panel {
  flex: 1;
  /* Fill remaining space */
  background: #ffffff;
  padding: 20px 15px;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Start from top */
  align-items: flex-start;
  text-align: left;
  border-top: none;
  min-height: 0;
  /* Flexbox overflow fix */
}

.board-btn {
  margin-top: auto;
  /* Push to bottom naturally */
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  /* Ensure button visual alignment */
}

.board-desc {
  display: block !important;
  /* Unhide */
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  line-height: 1.4;
  flex-grow: 1;
  /* allow it to take space */
}

.board-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px;
  color: #000000 !important;
}

.board-designation {
  font-size: 11px;
  color: #444444 !important;
  margin-bottom: auto;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.board-btn {
  display: inline-block;
  padding: 6px 16px;
  background: #4facfe;
  /* Blue Button */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 20px;
  font-size: 11px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
  text-transform: uppercase;
}

.board-btn:hover {
  background: #00f2fe;
  transform: translateY(-2px);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .board-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .board-card-grid {
    grid-template-columns: 1fr;
  }

  .board-profile-card {
    height: auto;
    min-height: 500px;
  }

  .board-photo-area {
    height: 300px;
  }

  .board-info-panel {
    height: auto;
    padding: 30px 20px;
  }
}

/* INTRO & GOVERNANCE STRIPS (Clean White Style) */
.board-intro-strip {
  background: #ffffff;
  /* Clean White */
  border-radius: 12px;
  padding: 30px 40px;
  margin-bottom: 0px;
  /* Reduced gap under page */
  border: 1px solid #dae9f5;
  /* Light Blue Border */
  box-shadow: 0 10px 30px rgba(11, 58, 102, 0.05);
  display: flex;
  align-items: flex-start;
  /* Align to top for better icon flow */
  gap: 25px;
}

/* ANIMATIONS */

/* 1. Staggered Entrance (Slide Up + Fade In) */
@keyframes card-enter {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Continuous 3D Float (Bobbing) */
@keyframes card-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.board-profile-card {
  /* ... existing layout props ... */
  opacity: 0;
  /* Hidden before entrance */

  /* Chain Animations: Enter first (once), then Float (infinite) */
  animation-name: card-enter, card-float;
  animation-duration: 1.5s, 4s;
  /* Slower Entrance */
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  /* Enter ensures opacity stays 1 */

  /* Default Delays (will be overridden by nth-child) */
  animation-delay: 0s, 1s;
  /* Float starts after Enter finishes */
}

/* Staggered Delays for 1st, 2nd, 3rd card */
/* Format: Enter Delay, Float Delay (Enter Delay + 1.5s duration) */
.board-card-grid .board-profile-card:nth-child(1) {
  animation-delay: 0.2s, 1.7s;
}

.board-card-grid .board-profile-card:nth-child(2) {
  animation-delay: 0.9s, 2.4s;
  /* Much slower follow */
}

.board-card-grid .board-profile-card:nth-child(3) {
  animation-delay: 1.6s, 3.1s;
  /* Distinct pause before 3rd */
}

/* Hover Effect: Enhance Shadow (Do NOT transform, avoids conflict with Float) */
.board-profile-card:hover {
  box-shadow: 0 30px 60px rgba(11, 58, 102, 0.25);
  border-color: #4facfe;
  /* No animation property here to avoid resetting the running animations */
}


/* 3. Icon Drawing Animation (Robust) */
@keyframes draw-stroke {
  0% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }

  100% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}

/* Target ALL SVG shapes for drawing */
.board-intro-icon svg :is(path, line, polyline, circle, rect) {
  fill: none !important;
  stroke: #4facfe !important;
  stroke-width: 2px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-stroke 2s ease-out forwards;
}

.board-intro-icon svg {
  width: 28px;
  /* Reduced Size further */
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(79, 172, 254, 0.4));
}

.board-intro-icon {
  filter: none;
  background: transparent;
  padding: 0;
  margin-top: 5px;
}

.board-intro-icon {
  /* ... existing ... */
  filter: drop-shadow(0 4px 8px rgba(79, 172, 254, 0.3));
  /* Stronger Glow */
}

.board-intro-text h2 {
  font-size: 24px;
  color: #0b1a2e;
  /* Black/Dark Blue Text */
  margin: 0 0 8px;
  font-weight: 700;
}

.board-intro-text p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   BOARD PROFILE MODAL (Popup)
   ========================================================= */
.board-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.board-modal-overlay.active {
  display: flex !important;
  opacity: 1;
}

.board-modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid #dae9f5;
  position: relative;
}

.board-modal-overlay.active .board-modal-card {
  transform: translateY(0);
}

/* Modal Header (Dark Blue Strip) */
.board-modal-header {
  background: linear-gradient(135deg, #0f2540 0%, #061526 100%);
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  border-bottom: 3px solid #f5a623;
  /* Gold Accent */
}

.board-modal-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-size: cover;
  background-position: center top;
  border: 2px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.board-modal-titles h2 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 5px;
  font-weight: 700;
  line-height: 1.2;
}

.board-modal-titles p {
  font-size: 14px;
  color: #4facfe;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Close Button */
.board-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 5;
}

.board-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Modal Content (Scrollable Text) */
.board-modal-body {
  padding: 40px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  background: #fcfdfe;
}

.board-modal-body p {
  margin-bottom: 20px;
}

.board-modal-body strong {
  color: #0b2545;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .board-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .board-modal-body {
    padding: 25px;
    font-size: 15px;
  }

  .board-modal-card {
    width: 95%;
    max-height: 90vh;
  }
}

/* =========================================================
   CHATBOT MESSAGES - OVERFLOW FIX
   ========================================================= */
.chat-message {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  max-width: 85%;
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-left-radius: 0;
}

.chat-message.user {
  background: #4facfe;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

/* =========================================================
   NEW DISTINCT HERO: ABOUT US - OVERVIEW (Orbit Concept)
   ========================================================= */
.hero-overview {
  position: relative;
  min-height: calc(100vh - 80px);
  /* Full viewport height minus header */

  /* Seamless Header Blend: Start with #0b2545 to match header bottom */
  background: linear-gradient(180deg, #0b2545 0%, #05182d 50%, #000812 100%);

  border-radius: 0;
  /* No curve to ensure full coverage */

  margin-bottom: 60px;
  margin-top: -5px;
  /* Pull up to cover main padding */

  /* FORCE FULL WIDTH BREAKOUT */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;

  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 5%;
  border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

.hero-overview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/stardust.png");
  /* Subtle grain if available, or just keeping it clean */
  opacity: 0.1;
  pointer-events: none;
}

/* Subtle Tech Grid Background */
.hero-overview::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
}

.hero-overview-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  z-index: 2;
  position: relative;
}

/* LEFT CONTENT */
.hero-overview-content {
  padding-left: 20px;
  margin-top: -30px;
  /* Lift text block slightly for balance */
}

.hero-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #4facfe;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border: 1px solid rgba(79, 172, 254, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.hero-overview-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(0, 210, 255, 0.2);
}

.hero-overview-p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #b0c4de;
  margin-bottom: 30px;
  max-width: 600px;
  font-weight: 300;
}

/* CTAs */
.hero-overview-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-nav {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-nav:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
  transform: translateY(-2px);
  color: #00d2ff;
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.1);
}

.btn-hero-nav i {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.btn-hero-nav:hover i {
  transform: translateX(3px);
}

/* HERO SERVICE ICONS ROW */
.hero-service-icons {
  display: inline-flex;
  gap: 20px;
  margin-left: 15px;
  align-items: center;
  vertical-align: middle;
}

.hero-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-service-item:hover {
  transform: translateY(-5px);
}

.hero-service-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Hover State */
.hero-service-item:hover .hero-service-icon-wrapper {
  background: rgba(0, 210, 255, 0.1);
  border-color: #00d2ff;
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.2);
}

.hero-service-icon-wrapper svg {
  width: 26px;
  height: 26px;
  stroke: #a0b4cc;
  stroke-width: 1.5px;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawLines 2.5s ease-out forwards;
  transition: all 0.3s ease;
}

.hero-service-item:hover .hero-service-icon-wrapper svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
  stroke-dashoffset: 0;
  transform: scale(1.1);
}

.hero-service-label {
  font-size: 11px;
  color: #8da2b6;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  margin-top: 4px;
}

.hero-service-item:hover .hero-service-label {
  color: #00d2ff;
}

@media (max-width: 600px) {
  .hero-service-icons {
    gap: 20px;
    justify-content: flex-start;
    /* Ensure start alignment for scroll/stack */
    flex-wrap: wrap;
    /* Allow wrapping on very small screens if needed */
  }
}

/* New Animation for Bottom Row */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Target specifically the 3rd button (Board) and the icon group */
.hero-overview-actions>a:nth-of-type(3),
.hero-service-icons {
  opacity: 0;
  /* Hidden initially */
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.4s;
  /* Slight delay to follow headline/first row */
}

/* SCROLL INDICATOR */
/* SCROLL INDICATOR */
.hero-scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.hero-scroll-indicator svg {
  color: #ffffff;
  width: 24px;
  height: 24px;
  animation: scrollBounce 2s infinite;
  stroke-width: 3px;
  /* thicker for visibility */
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
  /* stronger glow */
}

.hero-scroll-indicator svg:nth-child(2) {
  margin-top: -16px;
  /* Overlap to create double arrow look */
  animation-delay: 0.15s;
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}


/* RIGHT VISUAL: ORBIT SYSTEM */
.hero-overview-visual {
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

.orbit-system {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  animation: floatGlobule 6s ease-in-out infinite;
}

@keyframes floatGlobule {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Central Core: Container for Three.js Canvas */
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  /* Enlarge by ~35% */
  height: 190px;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;

  from {
    background-position: 0 0;
  }

  to {
    background-position: 100px 0;
  }
}

.orbit-core::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: pulseCore 3s infinite;
}

@keyframes pulseCore {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Rings */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(79, 172, 254, 0.3);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.ring-1 {
  width: 160px;
  height: 160px;
  border-color: rgba(79, 172, 254, 0.2);
  animation: rotateRing1 10s linear infinite;
}

.ring-2 {
  width: 240px;
  height: 240px;
  border-style: dashed;
  animation: rotateRing2 25s linear infinite;
}

.ring-3 {
  width: 340px;
  height: 340px;
  border: 1px dotted rgba(79, 172, 254, 0.15);
  animation: rotateRing3 40s linear infinite;
}

/* Satellites (Dots on Rings) */
.orbit-dot {
  position: absolute;
  top: 50%;
  /* Center vertically to place on ring edge properly via transform */
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff;
}

/* Positioning dots on their rings */
.ring-1 .orbit-dot {
  transform: translateX(80px);
}

/* Radius 80 */
.ring-2 .orbit-dot {
  transform: translateX(-120px) translateY(20px);
  width: 6px;
  height: 6px;
  background: #00d2ff;
}

.ring-3 .orbit-dot {
  transform: translateY(170px);
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

/* Connecting Lines (Simulated via transforms) */
.tech-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.5), transparent);
  width: 200px;
  transform-origin: left center;
  animation: spinLine 8s linear infinite;
}

@keyframes rotateRing1 {
  from {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
  }
}

@keyframes rotateRing2 {
  from {
    transform: translate(-50%, -50%) rotateX(-45deg) rotateY(20deg) rotateZ(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(-45deg) rotateY(20deg) rotateZ(-360deg);
  }
}

@keyframes rotateRing3 {
  from {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg);
  }
}

@keyframes spinLine {
  from {
    transform: rotate(0deg) translateX(-50%);
  }

  to {
    transform: rotate(360deg) translateX(-50%);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-overview-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-overview-content {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-overview-visual {
    height: 300px;
    margin-top: -20px;
  }

  .hero-overview-p {
    margin: 0 auto 30px;
  }

  .hero-overview-actions {
    justify-content: center;
  }

  .hero-overview-title {
    font-size: 2.5rem;
  }
}

/* =========================================================
   GALAXY BACKGROUND & SHOOTING STARS
   ========================================================= */
.hero-galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.stars-static {
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow:
    5vw 15vh #fff, 15vw 45vh #8aaeff, 25vw 10vh #fff,
    35vw 65vh #fff, 45vw 25vh #5f8dc0, 55vw 75vh #fff,
    65vw 35vh #fff, 75vw 85vh #8aaeff, 85vw 15vh #fff,
    95vw 55vh #fff, 10vw 85vh #5f8dc0, 20vw 35vh #fff,
    30vw 95vh #fff, 40vw 55vh #8aaeff, 50vw 15vh #fff,
    60vw 85vh #5f8dc0, 70vw 45vh #fff, 80vw 95vh #8aaeff,
    90vw 25vh #fff, 5vw 45vh #fff, 12vw 5vh #8aaeff,
    98vw 90vh #fff;
  animation: twinkle 5s infinite alternate;
  opacity: 0.5;
}

@keyframes twinkle {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Shooting Stars */
.shooting-star {
  position: absolute;
  top: 0;
  left: -200px;
  /* Start well off-screen left */
  width: 150px;
  /* Longer tail */
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5));
  /* Subtle tail */
  filter: drop-shadow(0 0 2px rgba(0, 210, 255, 0.5));
  transform: rotate(-30deg);
  opacity: 0;
  animation: shootFull 16s linear infinite;
  /* Very slow cycle */
}

/* Randomized delays and positions */
.shooting-star:nth-child(2) {
  top: 15%;
  left: -300px;
  animation-duration: 22s;
  animation-delay: 4s;
}

.shooting-star.delay-1 {
  top: 35%;
  left: -400px;
  animation-duration: 18s;
  animation-delay: 9s;
}

.shooting-star.delay-2 {
  top: 60%;
  left: -250px;
  animation-duration: 25s;
  animation-delay: 15s;
}


/* =========================================================
   OVERVIEW SECTION (Light Theme Refinement)
   ========================================================= */
.overview-section {
  padding: 40px 0;
  background: #ffffff;
  /* Pure White */
  position: relative;
  z-index: 2;
  color: #122034;
  /* Dark corporate grey/black */
}

.overview-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.overview-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0b3a66;
  /* Darker blue for contrast on white */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.overview-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.overview-title {
  font-size: 3rem;
  font-weight: 800;
  /* Bold */
  color: #000000;
  /* Bold Black */
  margin-bottom: 25px;
  line-height: 1.1;
  text-shadow: none;
  /* No glow */
}

.overview-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
  /* Dark Grey for readability */
  font-weight: 400;
}

/* Light Mode Visual Placeholder: Subtle Grid */
.overview-visual {
  height: 300px;
  background-color: #f8f9fa;
  /* Very pale grey */
  background-image:
    linear-gradient(#e9ecef 1px, transparent 1px),
    linear-gradient(90deg, #e9ecef 1px, transparent 1px);
  /* Subtle grid lines */
  background-size: 40px 40px;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.overview-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(79, 172, 254, 0.1), transparent 60%);
}

/* AT A GLANCE PILLARS */
.overview-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 columns on Desktop as requested */
  gap: 20px;
  margin-bottom: 70px;
}

.overview-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  /* Soft grey border */
  border-radius: 12px;
  /* Rounded corners */
  padding: 30px 20px;
  /* Slightly tighter padding for 4-col layout */
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  /* Very subtle shadow */
  text-align: left;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #b0d4f1;
  /* Subtle blue tint on hover */
}

@keyframes svg-draw {
  from {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
  }

  to {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* 3D Logo Flip Animation */
.logo-flip-container {
  perspective: 1000px;
  width: 100%;
  /* Fill foreignObject */
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
}

.logo-flipper {
  transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 769px) {
  .logo-flip-container:hover .logo-flipper {
    transform: rotateY(180deg);
  }
}

@media (max-width: 768px) {
  .logo-flip-container:active .logo-flipper {
    transform: scale(1.1);
  }
}

.logo-front,
.logo-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.logo-front img {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.logo-back {
  transform: rotateY(180deg);
}

.logo-back img {
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.6));
}

.overview-logo-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Safety */
}

.overview-logo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the area */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.overview-visual:hover .overview-logo-hero img {
  transform: scale(1.03);
  filter: drop-shadow(0 15px 30px rgba(0, 123, 255, 0.15));
}



.overview-card i,
.overview-card svg {
  color: #007bff;
  /* SMANV Blue */
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  /* Subtle colored circle background effect */
  background: rgba(0, 123, 255, 0.08);
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
  /* Ensure padding doesn't shrink icon */

  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.overview-card:hover i,
.overview-card:hover svg {
  transform: scale(1.1);
  background: rgba(0, 123, 255, 0.15);
  color: #0056b3;

  /* Trigger drawing on hover */
  animation: svg-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  stroke-dashoffset: 100;
}

.overview-card h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-weight: 700;
}

.overview-card p {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.6;
}

/* DISCOVERY LINKS */
.overview-discovery-header {
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.overview-link-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid transparent;
  /* "Underline or thin black outline pill" - adapting to a clean pill/line hybrid */
  border-bottom: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.overview-link-line i,
.overview-link-line svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
  color: #007bff;
}

/* Typing Animation for Heading */
.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  /* Start/End hidden */
  width: 0;
  vertical-align: bottom;
  max-width: fit-content;
}

/* Triggered Class */
.typewriter-text.start-typing {
  animation:
    typing 2s steps(30, end) forwards;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%;
  }
}


.overview-link-line:hover {
  color: #007bff;
  border-bottom-color: #007bff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
  background: #fff;
  border-radius: 4px;
  /* Slight rounding on hover */
}

.overview-link-line:hover i,
.overview-link-line:hover svg {
  transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .overview-pillars {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 on Tablets/Small Laptops */
  }
}

@media (max-width: 992px) {
  .overview-header-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .overview-pillars {
    grid-template-columns: 1fr;
    /* Stack vertically on mobile */
  }

  .overview-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- RESPONSIVE FIXES (2025-12-19) --- */

/* 1. Prevent Header Brand Wrapping on Tablet/Mobile */
@media (max-width: 1024px) {
  .brand-title {
    white-space: nowrap;
    font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  }
}

/* 2. Improve Content Padding on Small Mobile */
/* 2. Improve Content Padding on Small Mobile */
@media (max-width: 480px) {
  #content>section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- FINAL BRAND VISIBILITY OVERRIDE (2025-12-19) --- */
header .brand-title {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1024px) {
  header .brand-title {
    display: inline-flex !important;
    white-space: nowrap;
    font-size: clamp(1rem, 5vw, 1.25rem);
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* --- FINAL MOBILE HEADER RULE (2025-12-19) --- */
@media (max-width: 480px) {

  /* 1. Reduce Logo Footprint */
  .logo-img {
    max-width: 34px;
    height: auto;
  }

  /* 2. Stabilize Brand Block */
  .brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* 3. Helper Overrides */
  .brand-title {
    display: inline-flex !important;
    white-space: nowrap;
    font-size: clamp(1rem, 5vw, 1.2rem);
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* 4. Make Subtitle Responsive & VISIBLE */
  .brand-subtitle {
    display: block !important;
    font-size: 0.65rem;
    line-height: 1.2;
    opacity: 0.85;
    white-space: normal;
    margin-top: 2px;
  }
}

/* =========================================================
   MOBILE & TABLET TARGETED FIXES (2025-12-19)
   ========================================================= */

/* 1. MEDIA PAGE: Force 2-Column Grid on Mobile */
@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Adjust card content for tight grid */
  .partner-card-content h3 {
    font-size: 0.9rem !important;
    line-height: 1.3;
  }

  .partner-card-content p {
    font-size: 0.75rem !important;
    -webkit-line-clamp: 3;
  }

  .badge {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
  }
}

/* 2. BLOGS PAGE: Insight Bot Mobile Layout */
@media (max-width: 480px) {

  /* Targeted class based on inspection implies standard wide card or specific ID */
  /* Assuming standard partner-card wide used for Insight Bot or similar structure */
  .partner-card.wide.bot-widget-card,
  #bot-feed-container,
  .bot-container {
    padding: 15px !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* Fix Contribute Button Overflow */
  .bot-upload-btn,
  button[onclick="window.openUploadModal()"] {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin-top: 15px !important;
    text-align: center;
    display: block !important;
    transform: none !important;
  }

  /* Fix Filters Overflow */
  .bot-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .bot-filter {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    flex: 1 1 auto;
    text-align: center;
  }
}

/* 3. CAREERS PAGE: Job Card Mobile Stack */
@media (max-width: 480px) {
  .job-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 15px !important;
  }

  .job-info {
    width: 100%;
  }

  .job-meta {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem !important;
  }

  /* Fix Apply Button alignment */
  .job-apply-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    align-self: stretch;
  }

  /* Fix text overflow */
}

/* =========================================================
   CRITICAL MOBILE UX FIXES (Max-Width: 600px)
   Unified Fix for Blogs, Media, Careers
   ========================================================= */
@media (max-width: 600px) {

  /* GLOBAL SAFETY */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html,
  body {
    overflow-x: hidden !important;
  }

  /* 2. BLOGS PAGE FIXES */
  /* Dynamic Containers - FORCE EXPANSION */
  #admin-blogs-container,
  #community-blogs-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 40px !important;
    /* Extra space to protect Bot */
    flex: none !important;
  }

  /* Force stack layout & Disable Masonry/Absolute positioning */
  .partners-grid,
  #admin-blogs-grid,
  #community-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    /* Increased gap */
    height: auto !important;
    width: 100% !important;
  }

  /* Card styling - AGGRESSIVE OVERRIDE */
  .partner-card,
  .partner-card.wide,
  .bot-widget-card {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 25px !important;
    aspect-ratio: auto !important;
    /* CRITICAL FIX for height collapse */

    /* NUKE JS POSITIONING */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    display: block !important;
    /* Ensure they take space */
  }

  /* Insight Bot Specifics */
  .bot-widget-card {
    padding: 15px !important;
    overflow: visible !important;
    /* Let content expand */
    height: auto !important;
    min-height: auto !important;
    display: block !important;
  }

  .bot-feed,
  .bot-interface,
  .bot-content {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .bot-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .bot-upload-btn {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
  }

  .bot-filters {
    flex-wrap: wrap !important;
  }

  .bot-filter {
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  /* Share Your Story Section */
  .cta-clean {
    padding: 20px !important;
    margin-top: 40px !important;
    /* Ensure separation from Bot */
    clear: both !important;
    /* Clear any grid floats */
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }

  .cta-clean div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }

  .cta-link-btn {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }

  /* 3. MEDIA PAGE FIXES */
  /* Force 1 column for live updates */
  .ai-news-container {
    grid-template-columns: 1fr !important;
  }

  .ai-news-item {
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  /* 4. CAREERS PAGE FIXES */
  /* Header Stacking */
  .job-board-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }

  .job-board-title {
    margin-right: 0 !important;
    font-size: 1.6rem !important;
    /* Slightly smaller for mobile */
  }

  .live-indicator {
    font-size: 0.8rem !important;
  }

  /* Job Card fixes */
  .job-item {
    flex-direction: column !important;
    padding: 15px !important;
    height: auto !important;
  }

  .job-info {
    width: 100% !important;
  }

  .job-meta {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Badge/Button fixes */
  .new-badge {
    display: inline-block !important;
    margin-left: 5px !important;
  }

  .job-apply-btn {
    width: 100% !important;
    margin-top: 15px !important;
    text-align: center !important;
  }

  /* Close previous @media (max-width: 600px) block */
}

/* ========================================= */
/* 5. HOMEPAGE & GLOBAL LAYOUT FIXES         */
/* ========================================= */

/* GLOBAL CAREERS FIX (Text Readability) */
.job-description {
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

/* FIX: White Cut / Horizontal Scroll on Homepage - STRICTLY MOBILE (< 602px) */
@media (max-width: 602px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Reset Parent Padding to remove white bars */
  main#content,
  section.hero-overview-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .hero-overview {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 80px 15px 40px 15px !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  .hero-overview-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 0 10px !important;
    /* Safety padding for content */
  }

  /* FIX: Heading Cut-off (Typewriter & General) */
  .typewriter-text {
    white-space: normal !important;
    overflow: visible !important;
    width: auto !important;
    animation: none !important;
    display: block !important;
  }

  .hero-overview-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
  }

  .overview-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }

  .orbit-system {
    transform: scale(0.8);
    margin: 0 auto;
  }

  .hero-overview-visual {
    height: 320px !important;
  }

  .hero-overview-content,
  .overview-text {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* FIX: Careers Mobile Readability (< 480px) */
@media (max-width: 480px) {
  .job-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 25px !important;
    /* Increased Padding */
    gap: 20px !important;
    margin-bottom: 25px !important;
  }

  .job-info {
    width: 100% !important;
  }

  .job-info h4 {
    line-height: 1.4 !important;
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }

  /* Target the now inline-style-free paragraph */
  .job-description {
    margin-top: 15px !important;
    font-size: 1rem !important;
    /* Brighter for dark mode */
    word-break: break-word !important;
  }

  .job-apply-btn {
    margin-top: 20px !important;
    width: 100% !important;
    text-align: center !important;
  }
}

/* FIX: Board Desktop Alignment (Global > 1024px implicity handled by grid default) */
/* Reinforce Flex Logic globally for safety */
.board-profile-card {
  height: 100% !important;
  /* Force Grid Stretch */
  display: flex !important;
  flex-direction: column !important;
}

.board-info-panel {
  flex: 1 1 auto !important;
  /* Grow to fill space */
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure Button is pushed to bottom */
.board-btn {
  margin-top: auto !important;
  align-self: flex-start !important;
}

/* Extra Safety for Very Small Screens */
@media (max-width: 420px) {
  .hero-glow-title {
    font-size: 28px !important;
  }

  .brand-title {
    font-size: 16px !important;
  }
}

/* =========================================================
   LOGO MEANING SECTION
   ========================================================= */
.logo-meaning-section {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 40px;
  background-color: #f8fafc;
  /* Light clean background */
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  /* Subtle shadow for depth */
  border: 1px solid rgba(11, 37, 69, 0.05);
}

/* Background Logo Watermark */
.logo-meaning-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  /* Adjust size as needed */
  height: 300px;
  background-image: url('../smanv-logo-transparent.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  /* Very subtle watermark */
  pointer-events: none;
  filter: grayscale(100%);
  /* Optional: makes it neutral */
}

/* Text Content Container */
.logo-text-content {
  position: relative;
  z-index: 1;
  /* Ensure text is above watermark */
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* Spacing between paragraphs */
}

/* Heading Style Inherited + Custom Margin */
.logo-meaning-section h2.partner-section-header {
  margin-top: 0;
  margin-bottom: 50px;
  font-size: 2.2rem;
  color: #0b2545;
  /* Remove the blue vertical line (border-left) from the requested specific section */
  border-left: none !important;
  padding-left: 0 !important;
  /* Maintain layout for animation */
  display: inline-block;
}

/* Paragraph Text Styling */
.logo-text-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334e6e;
  margin: 0;
  font-weight: 400;
}

/* Typography Enhancements */
.logo-meaning-section strong {
  color: #0b2545;
  font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .logo-meaning-section {
    padding: 40px 25px;
    margin: 40px 15px;
  }

  .logo-meaning-section h2.partner-section-header {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .logo-text-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    /* Better readability on mobile */
  }

  .logo-meaning-section::before {
    width: 200px;
    height: 200px;
  }
}