/**
 * PeakProSys Solutions — Modern Design System & Stylesheet
 * Responsive, polished corporate tech aesthetic
 */

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --secondary: #0f172a;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --light: #f8fafc;
  --light-border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 10px 25px -5px rgba(29, 78, 216, 0.3);
  --transition-base: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* ── Unified Responsive Container System ──────────────────────── */
.container,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1180px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1340px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1480px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1560px;
  }
}

/* Responsive Grid Gutter Safety: prevent negative margins from overflowing on mobile */
@media (max-width: 767.98px) {
  .row {
    --bs-gutter-x: 1.25rem;
  }
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.display-5 {
  font-size: clamp(2rem, 3.4vw + 0.4rem, 2.85rem) !important;
  line-height: 1.2 !important;
}

.display-6 {
  font-size: clamp(1.65rem, 2.6vw + 0.35rem, 2.35rem) !important;
  line-height: 1.25 !important;
}

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

a:hover {
  color: var(--primary-hover);
}

/* ── Utilities & Helper Classes ───────────────────────────────── */
.bg-gradient-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
}

.bg-gradient-subtle {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-padding {
  padding: clamp(48px, 5.5vw, 75px) 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: #93c5fd;
  backdrop-filter: blur(8px);
}

/* ── Top Bar ─────────────────────────────────────────────────── */
.top-bar {
  background-color: #0b1329;
  color: #94a3b8;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #cbd5e1;
}

.top-bar a:hover {
  color: #ffffff;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 0;
  transition: var(--transition-base);
  z-index: 1030;
}

.navbar-custom.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--secondary) !important;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #334155 !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

.dropdown-menu {
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 240px;
  margin-top: 8px;
}

.dropdown-menu-wide {
  min-width: 290px;
}

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #334155;
  transition: var(--transition-base);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  transition: var(--transition-base);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

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

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-glow {
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35);
}

/* ── Hero Section (Light Aesthetic & Carousel) ───────────────── */
.hero-section {
  position: relative;
  background-color: #f8fafc;
  color: var(--text-main);
  padding: clamp(42px, 5.5vh, 68px) 0 clamp(38px, 5vh, 56px);
  overflow: hidden;
  min-height: auto;
}

/* Background Carousel Slides */
.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-bg-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Light overlay ensuring 100% text readability on left side while showcasing right side tech graphics */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.92) 38%,
      rgba(255, 255, 255, 0.60) 62%,
      rgba(255, 255, 255, 0.16) 85%,
      rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

@media (max-width: 992px) {
  .hero-bg-overlay {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(255, 255, 255, 0.82) 100%);
  }
}

/* ── Subtle Futuristic Hero Background Animation ─────────────── */
.hero-animation-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-glow-orb-1 {
  top: -5%;
  right: 12%;
  width: clamp(300px, 36vw, 520px);
  height: clamp(300px, 36vw, 520px);
  background: radial-gradient(circle, rgba(14, 165, 233, 0.20) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 70%);
  filter: blur(50px);
  animation: heroGlowFloat1 20s ease-in-out infinite alternate;
}

.hero-glow-orb-2 {
  bottom: 0;
  right: 32%;
  width: clamp(260px, 30vw, 440px);
  height: clamp(260px, 30vw, 440px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(14, 165, 233, 0.07) 50%, transparent 70%);
  filter: blur(58px);
  animation: heroGlowFloat2 26s ease-in-out infinite alternate;
}

@keyframes heroGlowFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.90;
  }
  50% {
    transform: translate(32px, -24px) scale(1.10);
    opacity: 1;
  }
  100% {
    transform: translate(-22px, 18px) scale(0.95);
    opacity: 0.88;
  }
}

@keyframes heroGlowFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate(-36px, -28px) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate(25px, 22px) scale(0.94);
    opacity: 0.82;
  }
}

.hero-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.98;
}

@media (max-width: 992px) {
  .hero-glow-orb-1,
  .hero-glow-orb-2 {
    filter: blur(38px);
    opacity: 0.78;
  }
  .hero-network-canvas {
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow-orb-1,
  .hero-glow-orb-2 {
    animation: none;
  }
  .hero-network-canvas {
    display: none;
  }
}


.hero-title {
  font-size: clamp(2rem, 4.2vw + 0.4rem, 3.25rem);
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.18;
}

@media (max-width: 992px) {
  .hero-section {
    padding: 50px 0 38px;
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 36px 0 28px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    margin-bottom: 14px;
    line-height: 1.22;
  }
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  color: #334155;
  max-width: 620px;
  margin-bottom: clamp(18px, 2.4vh, 26px);
  line-height: 1.65;
}

@media (max-width: 576px) {
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
}

/* Light-themed Glassmorphism Form Card */
.hero-card-light {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.7);
  position: relative;
  z-index: 5;
}

@media (max-width: 576px) {
  .hero-card-light {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
}

/* Hero Carousel Controls / Indicators */
.hero-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(14px, 2vh, 20px);
}

.hero-carousel-dot {
  height: 6px;
  width: 24px;
  border-radius: 4px;
  background: #cbd5e1;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-carousel-dot.active {
  width: 44px;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.35);
}

.hero-concept-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Stats Strip ─────────────────────────────────────────────── */
.stats-strip {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 2.5vw, 32px) clamp(16px, 2vw, 25px);
  margin-top: -32px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 767.98px) {
  .stats-strip {
    margin-top: -24px;
    padding: 18px 12px;
    border-radius: var(--radius-md);
  }

  .stats-strip .stat-item {
    padding: 10px 4px;
  }

  .stats-strip .col-6:nth-child(1) .stat-item {
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .stats-strip .col-6:nth-child(2) .stat-item {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .stats-strip .col-6:nth-child(3) .stat-item {
    border-right: 1px solid #e2e8f0 !important;
  }

  .stats-strip .col-6:nth-child(4) .stat-item {
    border-right: none !important;
  }

  .stat-number {
    font-size: clamp(1.65rem, 5.5vw, 2.15rem);
  }

  .stat-label {
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

/* ── Modern Cards ────────────────────────────────────────────── */
.card-hover {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.card-hover .mt-auto,
.card-flagship .mt-auto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition-base);
}

.card-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.card-icon.emerald {
  background: #ecfdf5;
  color: #059669;
}

.card-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.card-icon.purple {
  background: #faf5ff;
  color: #9333ea;
}

.card-hover:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
}

/* ── Feature Lists in Cards ─────────────────────────────────── */
.feature-checklist {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  margin-bottom: 20px;
}

.feature-checklist li {
  font-size: 0.88rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.feature-checklist li i {
  color: var(--success);
  margin-top: 3px;
}

/* ── Tech Badges ─────────────────────────────────────────────── */
.tech-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ── Pillar Tabs / Sections ──────────────────────────────────── */
.pillar-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-border);
  background: #ffffff;
  transition: var(--transition-base);
}

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

/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.star-rating {
  color: #f59e0b;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.section-cta {
  width: 100%;
}

.cta-banner {
  background: linear-gradient(135deg, #0b1329 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4.5vw, 55px) clamp(24px, 3.5vw, 45px);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer-main {
  background-color: #0b1120;
  color: #94a3b8;
  padding: clamp(50px, 5.5vw, 75px) 0 30px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

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

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 2px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition-base);
}

.social-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* ── WhatsApp Floating Button ────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-base);
  animation: pulse-green 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── Forms & Input Fields ────────────────────────────────────── */
.form-control,
.form-select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-border);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 6px;
}

/* ── Consultation Modal ──────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  border-bottom: none;
  padding: 24px 30px;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 30px;
}

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  z-index: 1090;
}

/* ── Brand Logo Styling ──────────────────────────────────────── */
.navbar-brand-logo {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: var(--transition-base);
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

/* ── Flagship Course Card & AI Highlight ─────────────────────── */
.card-flagship {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.card-flagship:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.28);
  border-color: #1d4ed8;
}

.card-flagship::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
}

.badge-flagship {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-hero-box {
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 50%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.2), transparent 50%),
    #0a1120;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: clamp(32px, 4vw, 50px) clamp(22px, 3.5vw, 40px);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-right: 6px;
  margin-bottom: 8px;
  transition: var(--transition-base);
}

.ai-pill:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
}

.curriculum-module {
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition-base);
}

.curriculum-module:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

/* ── High-Contrast AI Focus Card (Flagship Section) ────────── */
.ai-focus-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28) !important;
  position: relative;
  overflow: hidden;
}

.ai-focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #10b981);
}

.ai-focus-title {
  color: #0f172a !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.ai-focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 1.1rem;
}

.ai-focus-desc {
  color: #475569 !important;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ai-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.ai-topic-pill i {
  color: #2563eb;
  font-size: 0.85rem;
}

.ai-topic-pill:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.ai-topic-pill.ai-topic-featured {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8 !important;
  font-weight: 700;
}

.ai-topic-pill.ai-topic-featured i {
  color: #0284c7;
}

.ai-curriculum-link {
  color: #2563eb !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.ai-curriculum-link:hover {
  color: #1d4ed8 !important;
  transform: translateX(4px);
}

/* ── Course Pages Hero & Snapshot Card ────────────────────────── */
.course-hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.08), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(37, 99, 235, 0.06), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #edf4fc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 80px 0 60px;
  color: #1e293b;
  overflow: hidden;
}

@media (max-width: 992px) {
  .course-hero-section {
    padding: 55px 0 45px;
  }
}

.course-hero-title {
  font-size: 3rem;
  letter-spacing: -0.025em;
  color: #0f172a !important;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

@media (max-width: 992px) {
  .course-hero-title {
    font-size: 2.25rem;
  }
}

.course-hero-subtitle {
  font-size: 1.15rem;
  color: #334155 !important;
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.course-snapshot-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
  padding: 1.75rem !important;
  position: relative;
  overflow: hidden;
}

.course-snapshot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #10b981);
}

.course-snapshot-title {
  color: #0f172a !important;
  font-size: 1.18rem;
  font-weight: 700;
}

.course-snapshot-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.course-snapshot-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.course-snapshot-list li:last-child {
  border-bottom: none;
}

.course-snapshot-label {
  color: #64748b !important;
  font-weight: 500;
}

.course-snapshot-val {
  color: #0f172a !important;
  font-weight: 700;
  text-align: right;
}

.course-snapshot-val.highlight {
  color: #2563eb !important;
}

/* Fallback for any components using .hero-card */
.hero-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
  padding: 1.75rem !important;
  position: relative;
  overflow: hidden;
  color: #0f172a !important;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #10b981);
}

.hero-card h4,
.hero-card h5 {
  color: #0f172a !important;
}

.hero-card ul li {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #64748b !important;
}

.hero-card ul li strong {
  color: #0f172a !important;
}

/* Curriculum accordions styling */
.curriculum-module .accordion-button {
  color: #0f172a !important;
  font-size: 1.02rem;
  font-weight: 600;
  background-color: #ffffff;
}

.curriculum-module .accordion-button:not(.collapsed) {
  color: #1d4ed8 !important;
  background-color: #eff6ff !important;
  box-shadow: none;
}

.curriculum-module .accordion-body {
  color: #334155 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hover-primary:hover {
  color: #2563eb !important;
}

/* ══════════════════════════════════════════════════════════════
   COMPREHENSIVE CROSS-DEVICE RESPONSIVENESS (ALL SCREENS)
   ══════════════════════════════════════════════════════════════ */

/* ── Mobile Navigation Drawer (< 992px) ───────────────────────── */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 10px 0;
  }

  .navbar-brand-logo {
    height: clamp(34px, 7vw, 44px);
    max-width: clamp(140px, 36vw, 180px);
  }

  .navbar-collapse {
    background: #ffffff;
    margin-top: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-lg);
    padding: 16px 18px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-nav {
    margin-bottom: 14px !important;
  }

  .nav-link {
    padding: 11px 14px !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #1e293b !important;
  }

  .dropdown-menu {
    min-width: 100% !important;
    box-shadow: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    margin-top: 6px;
    margin-bottom: 8px;
  }

  .dropdown-item {
    padding: 9px 12px;
    font-size: 0.92rem;
    white-space: normal;
    border-radius: 6px;
  }

  .navbar-collapse .btn-glow {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.98rem;
    margin-top: 6px;
  }
}

/* ── Hero Call to Actions & Carousel for Small Phones (< 576px) ─ */
@media (max-width: 575.98px) {
  .hero-section .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    gap: 12px !important;
  }

  .hero-section .d-flex.flex-wrap.gap-3 .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
  }

  .hero-carousel-nav {
    gap: 6px;
  }

  .hero-carousel-dot {
    width: 18px;
    height: 5px;
  }

  .hero-carousel-dot.active {
    width: 32px;
  }

  .hero-concept-label {
    font-size: 0.7rem;
  }
}

/* ── Flagship Section & AI Hero Box (< 768px) ─────────────────── */
@media (max-width: 767.98px) {
  .ai-hero-box {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .ai-hero-box h2.display-5 {
    font-size: clamp(1.65rem, 6vw, 2.2rem) !important;
  }

  .ai-focus-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-md) !important;
    margin-top: 10px;
  }

  .ai-topic-pill {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .card-flagship {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .card-hover {
    padding: 22px 18px;
  }

  .cta-banner {
    padding: 35px 22px;
    border-radius: var(--radius-md);
    text-align: center;
  }

  .cta-banner .col-lg-4 {
    text-align: center !important;
    margin-top: 16px;
  }

  .cta-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Card Buttons on Ultra Small Phones (< 480px) ─────────────── */
@media (max-width: 480px) {

  .card-hover .mt-auto.d-flex,
  .card-flagship .mt-auto.d-flex {
    flex-direction: column;
    gap: 10px;
    align-items: stretch !important;
  }

  .card-hover .mt-auto .btn,
  .card-flagship .mt-auto .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Course Details Page & Snapshots (< 768px) ────────────────── */
@media (max-width: 767.98px) {
  .course-hero-section {
    padding: 45px 0 30px;
  }

  .course-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.35rem) !important;
  }

  .course-hero-subtitle {
    font-size: 0.98rem !important;
    margin-bottom: 1.5rem !important;
  }

  .course-snapshot-card {
    padding: 1.25rem !important;
    border-radius: var(--radius-md) !important;
  }

  .course-snapshot-list li {
    flex-wrap: wrap;
    gap: 4px;
    padding: 0.6rem 0;
  }

  .curriculum-module .accordion-button {
    font-size: 0.94rem !important;
    padding: 12px 14px !important;
  }

  .curriculum-module .accordion-body {
    padding: 14px !important;
  }
}

/* ── Forms, Inputs & iOS Zoom Prevention ──────────────────────── */
@media (max-width: 768px) {

  .form-control,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
    /* Prevents auto-zoom on iOS Safari */
    padding: 11px 14px;
  }

  .modal-dialog {
    margin: 12px;
  }

  .modal-header {
    padding: 18px 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

/* ── Footer Responsive Adjustments ────────────────────────────── */
@media (max-width: 767.98px) {
  .footer-main {
    padding: 50px 0 25px;
  }

  .footer-bottom {
    margin-top: 35px;
    padding-top: 18px;
    text-align: center;
    justify-content: center;
  }

  .footer-bottom .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
  }
}

/* ── WhatsApp Floating Button Responsive Adjustments ─────────── */
@media (max-width: 767.98px) {
  .whatsapp-float {
    bottom: 74px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
}

@media (max-width: 400px) {
  .whatsapp-float {
    bottom: 70px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 23px;
  }
}

/* ── Mobile Sticky Quick Action Bar (< 768px) ─────────────────── */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 60px;
    /* Space for sticky bar */
  }

  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
    z-index: 1040;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .mobile-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 6px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
    line-height: 1;
  }

  .mobile-bar-btn.btn-call {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
  }

  .mobile-bar-btn.btn-call:hover {
    background: #e2e8f0;
  }

  .mobile-bar-btn.btn-whatsapp {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
  }

  .mobile-bar-btn.btn-whatsapp:hover {
    background: #d1fae5;
  }

  .mobile-bar-btn.btn-demo {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
    border: none;
  }

  .mobile-bar-btn.btn-demo:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: #ffffff;
  }
}

/* ── Admin Dashboard Responsiveness ──────────────────────────── */
.admin-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.admin-sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 992px) {
  .admin-sidebar {
    width: 270px;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.35);
  }

  .admin-topbar {
    padding: 0 16px;
    height: 60px;
  }

  .admin-content {
    padding: 16px 14px;
  }

  .admin-stat-card {
    padding: 16px;
  }

  .admin-stat-card h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 576px) {
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .admin-card-body {
    padding: 16px 12px;
  }

  .admin-stat-card {
    margin-bottom: 8px;
  }
}

/* Responsive Table Utility */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY STYLES — Public Gallery Page & Homepage Preview
   ═══════════════════════════════════════════════════════════════ */

/* ── Gallery Hero ────────────────────────────────────────────── */
.gallery-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gallery-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.gallery-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
}

/* ── Gallery Filter Buttons ──────────────────────────────────── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.gallery-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.gallery-filter-btn .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(29, 78, 216, 0.12);
  color: inherit;
}

.gallery-filter-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ── Gallery Masonry Grid ────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
}

.gallery-item.hidden {
  display: none;
}

/* ── Gallery Card ────────────────────────────────────────────── */
.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  background: #f1f5f9;
  display: block;
  width: 100%;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.18);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Gallery Overlay ─────────────────────────────────────────── */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

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

.gallery-overlay-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  width: fit-content;
}

.gallery-overlay-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Gallery Lightbox ────────────────────────────────────────── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 85vw;
  max-height: 78vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-img-wrap img {
  max-width: 85vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

.lightbox-caption {
  text-align: center;
  max-width: 600px;
}

.lightbox-caption-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.lightbox-caption-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 16px;
  border-radius: 9999px;
  z-index: 10000;
}

/* ── Gallery Empty State ─────────────────────────────────────── */
.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.gallery-empty i {
  font-size: 3.5rem;
  color: var(--light-border);
  display: block;
  margin-bottom: 16px;
}

/* ── Homepage Gallery Preview Section ────────────────────────── */
.gallery-preview-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: clamp(48px, 5.5vw, 75px) 0;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-preview-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #e2e8f0;
  height: clamp(180px, 18vw, 240px);
}

.gallery-preview-item:first-child {
  grid-column: 1 / 3;
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.gallery-preview-label {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
}

.gallery-view-all-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 78, 216, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  gap: 8px;
  transition: background 0.25s ease;
}

.gallery-view-all-overlay:hover {
  background: rgba(29, 78, 216, 0.92);
}

.gallery-view-all-overlay i {
  font-size: 2rem;
}

/* ── Responsive Gallery ───────────────────────────────────────── */
@media (max-width: 991px) {
  .gallery-grid {
    columns: 2;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gallery-preview-item {
    height: 180px;
  }

  .gallery-preview-item:first-child {
    grid-column: 1 / 3;
    height: 220px;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    columns: 1;
  }

  .gallery-hero {
    padding: 50px 0 35px;
  }

  .gallery-filters {
    gap: 8px;
  }

  .gallery-filter-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-preview-item {
    height: 135px;
    border-radius: 10px;
  }

  .gallery-preview-item:first-child {
    grid-column: 1 / 3;
    height: 175px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* ── Interns Preview Section (Homepage) ────────────────────── */
.interns-preview-section {
  background: #ffffff;
  padding: clamp(48px, 5.5vw, 75px) 0;
}

.intern-preview-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.intern-preview-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
}

.intern-preview-photo {
  aspect-ratio: 1 / 1.05;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
}

.intern-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.intern-preview-card:hover .intern-preview-photo img {
  transform: scale(1.05);
}

.intern-preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 19, 41, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
}

.intern-preview-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.intern-preview-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.intern-preview-role {
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 8px;
}

@media (max-width: 576px) {
  .intern-preview-card {
    border-radius: 12px;
  }

  .intern-preview-body {
    padding: 10px 10px;
  }

  .intern-preview-name {
    font-size: 0.92rem;
  }

  .intern-preview-role {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }

  .intern-preview-badge {
    top: 6px;
    right: 6px;
    font-size: 0.62rem;
    padding: 2px 6px;
  }
}