/* ==========================================================================
   PREMIUM REDESIGN — v4.0 Design Enhancement Layer
   Blue / Indigo / Navy aesthetic inspired by creative-agency + SaaS references
   Applied ON TOP of existing style.css — no removal of business logic
   ========================================================================== */

/* --------------------------------------------------------------------------
   PHASE 1 — DESIGN TOKEN OVERRIDES & ENHANCEMENTS
   -------------------------------------------------------------------------- */
:root {
    /* Primary palette — deeper, richer navy-to-indigo */
    --pr-navy: #071A3D;
    --pr-deep: #0B2A66;
    --pr-blue: #1455D9;
    --pr-azure: #3B82F6;
    --pr-indigo: #4F46E5;
    --pr-violet: #7C3AED;
    --pr-violet-soft: #8B5CF6;

    /* Gradient presets */
    --pr-grad-hero: linear-gradient(135deg, #071A3D 0%, #0B2A66 40%, #1455D9 100%);
    --pr-grad-blue: linear-gradient(135deg, #1455D9 0%, #4F46E5 100%);
    --pr-grad-vivid: linear-gradient(135deg, #3B82F6 0%, #7C3AED 100%);
    --pr-grad-section: linear-gradient(135deg, #0B1026 0%, #0B2A66 100%);
    --pr-grad-cta: linear-gradient(135deg, #1455D9 0%, #7C3AED 100%);

    /* Surfaces */
    --pr-light: #F7F9FC;
    --pr-white: #FFFFFF;

    /* Text */
    --pr-text-dark: #0F172A;
    --pr-text-mid: #334155;
    --pr-text-muted: #64748B;

    /* Glass */
    --pr-glass-bg: rgba(255, 255, 255, 0.10);
    --pr-glass-border: rgba(255, 255, 255, 0.18);
    --pr-glass-dark: rgba(7, 26, 61, 0.75);

    /* Shadows */
    --pr-shadow-card: 0 4px 24px rgba(7, 26, 61, 0.08);
    --pr-shadow-hover: 0 12px 40px rgba(20, 85, 217, 0.20);
    --pr-shadow-glow: 0 0 40px rgba(79, 70, 229, 0.30);

    /* Override primary button to blue/indigo */
    --primary: #1455D9;
    --primary-light: #3B82F6;
    --primary-color: #1455D9;
    --primary-hover: #3B82F6;
}

/* --------------------------------------------------------------------------
   PHASE 2 — GLOBAL BASE IMPROVEMENTS
   -------------------------------------------------------------------------- */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Improved focus ring for accessibility */
:focus-visible {
    outline: 2px solid var(--pr-azure);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   PHASE 3 — BUTTON SYSTEM OVERHAUL
   Primary: Blue/Indigo gradient (replacing orange)
   Secondary: Blue solid
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-cta,
.btn-tangerine {
    background: var(--pr-grad-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(20, 85, 217, 0.35) !important;
    font-weight: 700;
    border: none !important;
    border-radius: var(--radius-full) !important;
}

.btn-primary:hover,
.btn-cta:hover,
.btn-tangerine:hover {
    background: var(--pr-grad-vivid) !important;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.50) !important;
    transform: translateY(-3px) !important;
}

/* Apply button on internship cards */
.apply-btn {
    background: var(--pr-grad-blue) !important;
    box-shadow: 0 4px 14px rgba(20, 85, 217, 0.28) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.apply-btn:hover {
    background: var(--pr-grad-vivid) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45) !important;
    transform: translateY(-2px) !important;
}

/* btn-secondary also gets blue/indigo treatment */
.btn-secondary,
.btn-blue {
    background: transparent !important;
    color: var(--pr-blue) !important;
    border: 2px solid var(--pr-blue) !important;
    box-shadow: none !important;
}

.btn-secondary:hover,
.btn-blue:hover {
    background: rgba(20, 85, 217, 0.08) !important;
    border-color: var(--pr-indigo) !important;
    color: var(--pr-indigo) !important;
    box-shadow: 0 4px 16px rgba(20, 85, 217, 0.18) !important;
    transform: translateY(-2px) !important;
}

/* Dark theme: secondary stays readable */
.dark-theme .btn-secondary,
.dark-theme .btn-blue {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.dark-theme .btn-secondary:hover,
.dark-theme .btn-blue:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   PHASE 5 — HERO SECTION (LIGHT MODE INTEGRATED & DARK MODE PRESERVED)
   -------------------------------------------------------------------------- */
.hero {
    min-height: 88vh;
    padding-top: 110px;
    padding-bottom: 84px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 75% 15%, rgba(37, 99, 235, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 15% 45%, rgba(124, 58, 237, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
        #F8FAFC !important;
    color: #071A3D !important;
    display: flex;
    align-items: center;
    transition: background 0.35s ease;
}

/* Subtle high-tech grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(7, 26, 61, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 26, 61, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 30%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid !important;
    grid-template-columns: 1.15fr 0.95fr !important;
    align-items: center !important;
    gap: 56px !important;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 620px !important;
    text-align: left;
}

/* Small Eyebrow */
.hero-badge,
.hero .badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563EB !important;
    border: 1px solid rgba(37, 99, 235, 0.22) !important;
    padding: 7px 18px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    margin-bottom: 22px !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.10) !important;
}

/* Very Large Headline */
.hero h1 {
    font-size: clamp(2.8rem, 5.2vw, 4.6rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
    color: #071A3D !important;
    margin-bottom: 20px !important;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #1455D9 0%, #4F46E5 60%, #7C3AED 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Supporting Description */
.hero p,
.hero .hero-desc {
    font-size: 1.15rem !important;
    line-height: 1.72 !important;
    color: #475467 !important;
    margin-bottom: 34px !important;
    max-width: 530px !important;
}

/* Hero CTA Buttons */
.hero-buttons {
    display: flex !important;
    align-items: center;
    gap: 16px !important;
    margin-bottom: 28px !important;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%) !important;
    color: #FFFFFF !important;
    padding: 14px 34px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 1.02rem !important;
    border: none !important;
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.45) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #7C3AED 100%) !important;
    box-shadow: 0 8px 36px rgba(79, 70, 229, 0.60) !important;
    transform: translateY(-3px) !important;
}

.hero-buttons .btn-secondary {
    background: #FFFFFF !important;
    color: #071A3D !important;
    padding: 14px 28px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 1.02rem !important;
    border: 1.5px solid rgba(7, 26, 61, 0.15) !important;
    box-shadow: 0 2px 8px rgba(7, 26, 61, 0.04) !important;
    transition: all 0.3s ease !important;
}

.hero-buttons .btn-secondary:hover {
    background: #FFFFFF !important;
    border-color: #2563EB !important;
    color: #2563EB !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12) !important;
}

/* Social proof trust bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    color: #475467 !important;
    font-weight: 500;
}

.hero-avatar-stack {
    display: flex;
    align-items: center;
}

.hero-avatar-stack span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #F8FAFC;
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.hero-avatar-stack span:first-child {
    margin-left: 0;
}

.hero-avatar-stack span:nth-child(1) {
    background: #3B82F6;
}

.hero-avatar-stack span:nth-child(2) {
    background: #8B5CF6;
}

.hero-avatar-stack span:nth-child(3) {
    background: #10B981;
}

.hero-avatar-stack span:nth-child(4) {
    background: #EC4899;
}

/* DARK THEME HERO OVERRIDES (Preserve exact dark navy atmosphere) */
.dark-theme .hero {
    background:
        radial-gradient(ellipse 70% 60% at 78% 22%, rgba(37, 99, 235, 0.38) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 14% 48%, rgba(124, 58, 237, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(6, 182, 212, 0.18) 0%, transparent 60%),
        #071A3D !important;
    color: #FFFFFF !important;
}

.dark-theme .hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.dark-theme .hero-atmosphere {
    background:
        radial-gradient(circle at 75% 30%, rgba(59, 130, 246, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(124, 58, 237, 0.14) 0%, transparent 50%);
}

.dark-theme .hero-badge,
.dark-theme .hero .badge {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93C5FD !important;
    border-color: rgba(147, 197, 253, 0.32) !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.25) !important;
}

.dark-theme .hero h1 {
    color: #FFFFFF !important;
}

.dark-theme .hero h1 .gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #38BDF8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.dark-theme .hero p,
.dark-theme .hero .hero-desc {
    color: rgba(255, 255, 255, 0.82) !important;
}

.dark-theme .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: none !important;
}

.dark-theme .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.dark-theme .hero-trust-bar {
    color: rgba(255, 255, 255, 0.76) !important;
}

.dark-theme .hero-avatar-stack span {
    border: 2px solid #071A3D;
}

/* Social proof trust bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 500;
}

.hero-avatar-stack {
    display: flex;
    align-items: center;
}

.hero-avatar-stack span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #071A3D;
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.hero-avatar-stack span:first-child {
    margin-left: 0;
}

.hero-avatar-stack span:nth-child(1) {
    background: #3B82F6;
}

.hero-avatar-stack span:nth-child(2) {
    background: #8B5CF6;
}

.hero-avatar-stack span:nth-child(3) {
    background: #10B981;
}

.hero-avatar-stack span:nth-child(4) {
    background: #EC4899;
}

/* Right Column: Layered 3D Showcase Composition */
.hero-image-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.hero-showcase-container {
    position: relative;
    width: 100%;
    max-width: 480px;
}

/* Ambient 3D Glowing Backdrop */
.hero-showcase-glow {
    position: absolute;
    inset: -24px;
    background: radial-gradient(circle at 60% 40%, rgba(79, 70, 229, 0.45) 0%, rgba(37, 99, 235, 0.28) 50%, transparent 75%);
    filter: blur(44px);
    z-index: 0;
    pointer-events: none;
}

/* Main Glass Window Card */
.hero-showcase-card {
    position: relative;
    z-index: 1;
    background: rgba(11, 22, 48, 0.82);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    padding: 26px;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    color: #FFFFFF;
}

/* Window Header Bar */
.showcase-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-window-dots {
    display: flex;
    gap: 6px;
}

.showcase-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #EF4444;
}

.dot-yellow {
    background: #F59E0B;
}

.dot-green {
    background: #10B981;
}

.showcase-cohort-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.30);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

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

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* Code Snippet / Milestone Box */
.showcase-code-box {
    background: rgba(3, 7, 18, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 14px 16px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #E2E8F0;
}

.code-keyword {
    color: #F472B6;
}

.code-class {
    color: #60A5FA;
}

.code-prop {
    color: #38BDF8;
}

.code-string {
    color: #A7F3D0;
}

/* Milestone Progress */
.showcase-progress-wrap {
    margin-bottom: 18px;
}

.showcase-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 8px;
}

.showcase-progress-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.showcase-progress-fill {
    width: 78%;
    height: 100%;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* Domain Pill Tags */
.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-tag {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

/* Floating Layered Badges */
.hero-floating-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(7, 26, 61, 0.10);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(7, 26, 61, 0.08);
    color: #071A3D;
    transition: transform 0.3s ease;
}

.hero-floating-badge:hover {
    transform: translateY(-4px);
}

.badge-top-left {
    top: -24px;
    left: -28px;
}

.badge-bottom-right {
    bottom: -24px;
    right: -24px;
}

.badge-top-left i {
    font-size: 1.4rem;
    color: #2563EB;
    background: rgba(37, 99, 235, 0.10);
    padding: 8px;
    border-radius: 12px;
}

.badge-bottom-right i {
    font-size: 1.4rem;
    color: #D97706;
    background: rgba(245, 158, 11, 0.12);
    padding: 8px;
    border-radius: 12px;
}

.badge-text-group {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #071A3D;
    line-height: 1.2;
}

.badge-subtitle {
    font-size: 0.70rem;
    font-weight: 500;
    color: #64748B;
}

.dark-theme .hero-floating-badge {
    background: rgba(11, 22, 48, 0.90);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    color: #FFFFFF;
}

.dark-theme .badge-title {
    color: #FFFFFF;
}

.dark-theme .badge-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.dark-theme .badge-top-left i {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.16);
}

.dark-theme .badge-bottom-right i {
    color: #FBBF24;
    background: rgba(251, 191, 36, 0.16);
}

/* --------------------------------------------------------------------------
   PHASE 6 — ABOUT SECTION: EDITORIAL AGENCY LAYOUT
   Crisp Light Introduction Surface (Section 2 Visual Rhythm)
   -------------------------------------------------------------------------- */
.about {
    background: #FFFFFF !important;
    padding: 96px 0 !important;
    position: relative;
    color: var(--pr-text-dark);
}

.dark-theme .about {
    background: #0B1026 !important;
    color: #FFFFFF;
}

.about-highlight-learn {
    background: var(--pr-grad-vivid) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.about-underline-fill {
    background: var(--pr-grad-blue);
}

.about-tab-btn.active,
.about-tab-btn:hover {
    color: var(--pr-blue);
}

.about-tab-indicator {
    background: var(--pr-grad-blue);
}

.about-features .feature-item {
    background: rgba(20, 85, 217, 0.06);
    border-color: rgba(20, 85, 217, 0.16);
    color: var(--pr-blue);
}

.about-features .feature-item:hover {
    background: rgba(20, 85, 217, 0.12);
    border-color: var(--pr-blue);
    box-shadow: 0 4px 16px rgba(20, 85, 217, 0.14);
}

/* Secondary Feature Cards Row (Editorial Agency Style) */
.about-feature-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-top: 48px !important;
}

.about-feature-card {
    padding: 30px 24px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(7, 26, 61, 0.08) !important;
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(7, 26, 61, 0.05) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.dark-theme .about-feature-card {
    background: #0D1E3A !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.about-feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 36px rgba(20, 85, 217, 0.14) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.about-feature-card:hover .about-feature-icon {
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.about-feature-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #071A3D;
    margin-bottom: 10px;
}

.dark-theme .about-feature-card h4 {
    color: #FFFFFF;
}

.about-feature-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475467;
}

.dark-theme .about-feature-card p {
    color: rgba(255, 255, 255, 0.70);
}


/* --------------------------------------------------------------------------
   PHASE 8 — DYNAMIC COURSE SKELETONS & CLEAN CARDS UPGRADE
   Light surface, elevated clean solid cards, crisp price hierarchy
   -------------------------------------------------------------------------- */
.course-skeleton-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 22px 24px 20px !important;
    border: 1px solid rgba(7, 26, 61, 0.08) !important;
    box-shadow: 0 4px 22px rgba(7, 26, 61, 0.06) !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dark-theme .course-skeleton-card {
    background: #0D1E3A !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.skeleton-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.10);
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skeleton-title {
    width: 65%;
    height: 22px;
    border-radius: 8px;
    background: rgba(7, 26, 61, 0.08);
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.dark-theme .skeleton-title {
    background: rgba(255, 255, 255, 0.10);
}

.skeleton-line {
    width: 90%;
    height: 13px;
    border-radius: 6px;
    background: rgba(7, 26, 61, 0.06);
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.dark-theme .skeleton-line {
    background: rgba(255, 255, 255, 0.06);
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(7, 26, 61, 0.06);
}

.skeleton-price {
    width: 70px;
    height: 24px;
    border-radius: 6px;
    background: rgba(7, 26, 61, 0.08);
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.dark-theme .skeleton-price {
    background: rgba(255, 255, 255, 0.10);
}

.skeleton-btn {
    width: 110px;
    height: 42px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.16);
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

@keyframes skeletonPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.28;
    }
}

.internships {
    background: #F8FAFC !important;
    padding: 96px 0 !important;
    position: relative;
}

.dark-theme .internships {
    background: #071328 !important;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    color: var(--pr-navy);
}

.dark-theme .section-header h2 {
    color: #FFFFFF;
}

.section-header h2 .gradient-text {
    background: var(--pr-grad-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.internships .container {
    max-width: 1240px !important;
}

.internships-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 34px !important;
    width: 100% !important;
}

.service-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-radius: 26px !important;
    padding: 36px 30px 32px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    position: relative;
    overflow: hidden;
}

.internship-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(7, 26, 61, 0.08) !important;
    border-radius: 20px !important;
    padding: 22px 24px 20px !important;
    box-shadow: 0 4px 22px rgba(7, 26, 61, 0.06) !important;
    position: relative;
    overflow: hidden;
    min-height: 0 !important;
}

.dark-theme .internship-card {
    background: #0D1E3A !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

.dark-theme .service-card {
    background: #0B1730 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.internship-card:hover {
    border-color: rgba(37, 99, 235, 0.28) !important;
    box-shadow: 0 16px 44px rgba(20, 85, 217, 0.18) !important;
}

.internship-card:hover:not(.tilt-active) {
    transform: translateY(-8px);
}

.dark-theme .internship-card:hover {
    border-color: rgba(79, 70, 229, 0.40) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55) !important;
}

.internship-card:hover::before {
    opacity: 1 !important;
}

.internship-card .card-icon {
    border-radius: 14px !important;
    width: 50px !important;
    height: 50px !important;
    margin: 0 0 12px 0 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10) !important;
}

.internship-card .card-icon i {
    font-size: 1.45rem !important;
}

.card-icon {
    border-radius: 18px !important;
    width: 66px !important;
    height: 66px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.internship-card h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #071A3D !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
}

.dark-theme .internship-card h3 {
    color: #FFFFFF !important;
}

.internship-card .card-list {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-grow: 1 !important;
}

.internship-card .card-list li {
    font-size: 0.88rem !important;
    color: #475467 !important;
    margin-bottom: 7px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.35 !important;
}

.internship-card .card-list li:last-child {
    margin-bottom: 0 !important;
}

.dark-theme .internship-card .card-list li {
    color: rgba(255, 255, 255, 0.75) !important;
}

.internship-card .card-list li i {
    color: #2563EB !important;
    background: rgba(37, 99, 235, 0.08) !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
}

.internship-card:hover .card-list li i {
    background: rgba(37, 99, 235, 0.16) !important;
    color: #4F46E5 !important;
}

.internship-card .card-footer-action {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-top: 14px !important;
    margin-top: auto !important;
    border-top: 1px solid rgba(7, 26, 61, 0.06) !important;
}

.dark-theme .internship-card .card-footer-action {
    border-top-color: rgba(255, 255, 255, 0.07) !important;
}

.internship-card .card-price-wrapper {
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.internship-card .price-old {
    font-size: 0.85rem !important;
    color: #94A3B8 !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
    margin-right: 4px !important;
}

.internship-card .price-current {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #2563EB !important;
    letter-spacing: -0.03em !important;
}

.dark-theme .internship-card .price-current {
    color: #38BDF8 !important;
}

.internship-card .apply-btn {
    flex: 0 0 auto !important;
    padding: 8px 18px !important;
    height: 38px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   PHASE 9 — HIGH-IMPACT FINAL CTA / CONTACT SECTION
   Dark Navy/Indigo Gradient Card (Section 8 Visual Rhythm)
   -------------------------------------------------------------------------- */
.contact {
    background: #F8FAFC !important;
    padding: 100px 0 !important;
    position: relative;
}

.dark-theme .contact {
    background: #071328 !important;
}

/* Light mode contact card (CTA & Verify Certificate card) */
.contact-card,
.glass-card.contact-card {
    background: #FFFFFF !important;
    color: #071A3D !important;
    border: 1px solid rgba(7, 26, 61, 0.08) !important;
    border-radius: 32px !important;
    padding: 56px 48px !important;
    box-shadow: 0 16px 48px rgba(7, 26, 61, 0.06) !important;
    max-width: 820px !important;
    margin: 0 auto;
}

.contact-card h2,
.glass-card.contact-card h2 {
    color: #071A3D !important;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem) !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 14px !important;
}

.contact-card h2 .gradient-text,
.glass-card.contact-card h2 .gradient-text {
    background: var(--pr-grad-blue) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.contact-card p,
.glass-card.contact-card p {
    color: #475467 !important;
    font-size: 1.10rem !important;
    line-height: 1.65 !important;
    margin-bottom: 36px !important;
}

.contact-card .form-group label,
.glass-card.contact-card .form-group label {
    color: #1E293B !important;
    font-weight: 600;
}

.contact-card .form-group input,
.contact-card .form-group textarea,
.glass-card.contact-card .form-group input,
.glass-card.contact-card .form-group textarea {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(7, 26, 61, 0.14) !important;
    color: #071A3D !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 0.98rem !important;
    transition: all 0.2s ease;
}

.contact-card .form-group input::placeholder,
.contact-card .form-group textarea::placeholder,
.glass-card.contact-card .form-group input::placeholder,
.glass-card.contact-card .form-group textarea::placeholder {
    color: #94A3B8 !important;
}

.contact-card .form-group input:focus,
.contact-card .form-group textarea:focus,
.glass-card.contact-card .form-group input:focus,
.glass-card.contact-card .form-group textarea:focus {
    background: #FFFFFF !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.contact-card button[type="submit"],
.glass-card.contact-card button[type="submit"] {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%) !important;
    color: #FFFFFF !important;
    border-radius: 14px !important;
    padding: 16px 28px !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.40) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.28s ease !important;
}

.contact-card button[type="submit"]:hover,
.glass-card.contact-card button[type="submit"]:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%) !important;
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* Dark mode contact card: Preserved dark navy/indigo gradient & light text */
.dark-theme .contact-card,
.dark-theme .glass-card.contact-card {
    background:
        radial-gradient(ellipse 80% 60% at 85% 15%, rgba(59, 130, 246, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 85%, rgba(124, 58, 237, 0.24) 0%, transparent 50%),
        #071A3D !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        0 24px 70px rgba(7, 26, 61, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.dark-theme .contact-card h2,
.dark-theme .glass-card.contact-card h2 {
    color: #FFFFFF !important;
}

.dark-theme .contact-card h2 .gradient-text,
.dark-theme .glass-card.contact-card h2 .gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.dark-theme .contact-card p,
.dark-theme .glass-card.contact-card p {
    color: rgba(255, 255, 255, 0.80) !important;
}

.dark-theme .contact-card .form-group label,
.dark-theme .glass-card.contact-card .form-group label {
    color: rgba(255, 255, 255, 0.90) !important;
}

.dark-theme .contact-card .form-group input,
.dark-theme .contact-card .form-group textarea,
.dark-theme .glass-card.contact-card .form-group input,
.dark-theme .glass-card.contact-card .form-group textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
}

.dark-theme .contact-card .form-group input::placeholder,
.dark-theme .contact-card .form-group textarea::placeholder,
.dark-theme .glass-card.contact-card .form-group input::placeholder,
.dark-theme .glass-card.contact-card .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.50) !important;
}

.dark-theme .contact-card .form-group input:focus,
.dark-theme .contact-card .form-group textarea:focus,
.dark-theme .glass-card.contact-card .form-group input:focus,
.dark-theme .glass-card.contact-card .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}

/* Certificate Section & Verification Results */
.verify-section {
    background: #F8FAFC !important;
}

.dark-theme .verify-section {
    background: #071328 !important;
}

.verify-details-list {
    background: #F8FAFC !important;
    border: 1px solid rgba(7, 26, 61, 0.08) !important;
}

.dark-theme .verify-details-list {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.verify-detail-item {
    border-bottom: 1px solid rgba(7, 26, 61, 0.08) !important;
}

.dark-theme .verify-detail-item {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.detail-label {
    color: #475467 !important;
}

.dark-theme .detail-label {
    color: rgba(255, 255, 255, 0.70) !important;
}

.detail-value {
    color: #071A3D !important;
}

.dark-theme .detail-value {
    color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   PHASE 10 — FOOTER REDESIGN (Reference-Based Editorial Tech Design)
   Full theme adaptation: Deep Navy Dark Mode & Refined Light Mode
   Enhanced Typography & High-Legibility Contrast (Issue 1 & 2)
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    padding: 60px 0 36px !important;
    margin-top: 50px !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Light Theme Footer (Default when not .dark-theme) */
body:not(.dark-theme) .footer {
    background: #F8FAFC !important;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 70%), #F8FAFC !important;
    border-top: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body:not(.dark-theme) .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), transparent);
}

body:not(.dark-theme) .footer-watermark {
    color: rgba(15, 23, 42, 0.032);
}

body:not(.dark-theme) .footer-tagline {
    color: #334155 !important;
}

body:not(.dark-theme) .footer-divider {
    background: rgba(15, 23, 42, 0.10);
}

body:not(.dark-theme) .footer-col h4 {
    color: #0F172A !important;
}

body:not(.dark-theme) .footer-col ul a,
body:not(.dark-theme) .footer-col .contact-info li,
body:not(.dark-theme) .footer-col .contact-info a {
    color: #334155 !important;
}

body:not(.dark-theme) .footer-col ul a:hover,
body:not(.dark-theme) .footer-col .contact-info a:hover {
    color: #1455D9 !important;
}

body:not(.dark-theme) .footer-bottom-copy p {
    color: #64748B !important;
}

body:not(.dark-theme) .social-links a {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Dark Theme Footer */
body.dark-theme .footer,
.dark-theme .footer {
    background: #050B18 !important;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 65%), #050B18 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

body.dark-theme .footer::before,
.dark-theme .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

body.dark-theme .footer-watermark,
.dark-theme .footer-watermark {
    color: rgba(255, 255, 255, 0.032);
}

body.dark-theme .footer-tagline,
.dark-theme .footer-tagline {
    color: #E2E8F0 !important;
}

body.dark-theme .footer-divider,
.dark-theme .footer-divider {
    background: rgba(255, 255, 255, 0.10);
}

body.dark-theme .footer-col h4,
.dark-theme .footer-col h4 {
    color: #FFFFFF !important;
}

body.dark-theme .footer-col ul a,
body.dark-theme .footer-col .contact-info li,
body.dark-theme .footer-col .contact-info a,
.dark-theme .footer-col ul a,
.dark-theme .footer-col .contact-info li,
.dark-theme .footer-col .contact-info a {
    color: #CBD5E1 !important;
}

body.dark-theme .footer-col ul a:hover,
body.dark-theme .footer-col .contact-info a:hover,
.dark-theme .footer-col ul a:hover,
.dark-theme .footer-col .contact-info a:hover {
    color: #60A5FA !important;
}

body.dark-theme .footer-bottom-copy p,
.dark-theme .footer-bottom-copy p {
    color: #94A3B8 !important;
}

body.dark-theme .social-links a,
.dark-theme .social-links a {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #E2E8F0 !important;
}

/* Watermark */
footer.footer,
.footer {
    position: relative !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3.8rem, 14vw, 10.5rem);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
    font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
    max-width: 100%;
    overflow: hidden;
}

/* Content Wrapper */
.footer-content-wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Top Intro Tagline — Guidelines: 16–18px, line-height 1.6–1.8 */
.footer-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 0 12px;
}

.footer-tagline {
    font-size: 1.0625rem !important;
    line-height: 1.75 !important;
    margin: 0;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
}

/* Dividers */
.footer-divider {
    height: 1px;
    width: 100%;
    border: none;
    margin: 0;
}

/* 4-Column Navigation Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    gap: 32px;
    padding: 44px 0;
    box-sizing: border-box;
}

/* Column Headings — Guidelines: 17–19px, font-weight 700 */
.footer-col h4 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin: 0 0 20px 0 !important;
}

.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.footer-col ul li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer Navigation & Legal Links — Guidelines: 15–17px, font-weight 500, line-height ~1.8–2.0 */
.footer-col ul a {
    font-size: 1.025rem !important;
    font-weight: 500 !important;
    line-height: 1.85 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.footer-col ul a:hover {
    transform: translateX(4px) !important;
}

/* Contact Column specifics — Guidelines: 15–16px, readable */
.footer-col .contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.footer-col .contact-info li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

.footer-col .contact-info a {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.footer-col .contact-info a:hover {
    transform: translateX(4px) !important;
}

.footer-col .contact-info i {
    color: #38BDF8 !important;
    font-size: 1.25rem !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

body:not(.dark-theme) .footer-col .contact-info i {
    color: #1455D9 !important;
}

#kgw-footer-prefs-link {
    color: #38BDF8 !important;
    cursor: pointer;
    font-weight: 500 !important;
}

body:not(.dark-theme) #kgw-footer-prefs-link {
    color: #1455D9 !important;
}

/* Bottom Row */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    gap: 20px;
    box-sizing: border-box;
}

.footer-bottom-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-bottom-brand .logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.footer-bottom-brand .logo-main {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
    font-size: 1.25rem;
}

body:not(.dark-theme) .footer-bottom-brand .logo-main {
    background: linear-gradient(135deg, #1455D9 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.footer-bottom-brand .logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

body:not(.dark-theme) .footer-bottom-brand .logo-sub {
    color: #475569;
}

/* Copyright text — Guidelines: 14–15px, clearly readable */
.footer-bottom-copy p {
    margin: 0;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    text-align: center;
    line-height: 1.6;
}

.footer-bottom-socials .social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.social-links a:hover {
    background: linear-gradient(135deg, #1455D9 0%, #4F46E5 100%) !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(20, 85, 217, 0.38) !important;
}

/* Floating "How it Works" button footer evasion transition */
.floating-bubble {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), left 0.4s ease !important;
}

.floating-bubble.footer-hidden,
body.footer-visible .floating-bubble {
    opacity: 0 !important;
    transform: translateY(15px) !important;
    pointer-events: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 34px !important;
        padding: 38px 0 !important;
    }

    .footer-bottom-row {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .footer-bottom-copy {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .hero-showcase-container {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-showcase-glow {
        inset: 0 !important;
        max-width: 100% !important;
        filter: blur(20px) !important;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 44px 0 40px !important;
    }

    .footer-intro {
        margin-bottom: 24px;
    }

    .footer-tagline {
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 30px 0 !important;
    }

    /* Mobile Headings: ~16–18px */
    .footer-col h4 {
        font-size: 1.0625rem !important;
        margin-bottom: 16px !important;
    }

    /* Mobile Links: ~15–16px */
    .footer-col ul a,
    .footer-col .contact-info li,
    .footer-col .contact-info a {
        font-size: 0.975rem !important;
        line-height: 1.8 !important;
    }

    .footer-bottom-copy p {
        font-size: 0.875rem !important;
    }

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

    .footer-bottom-brand,
    .footer-bottom-copy,
    .footer-bottom-socials {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-watermark {
        font-size: clamp(1.8rem, 12vw, 3.2rem) !important;
        letter-spacing: 0.08em !important;
        max-width: 95% !important;
        overflow: hidden !important;
    }
}

/* --------------------------------------------------------------------------
   PHASE 11 — AUTH PAGE PREMIUM REDESIGN (Reference 1 — Deep Blue Glassmorphism)
   -------------------------------------------------------------------------- */
body:has(.auth-bg) .mesh-gradient {
    background:
        radial-gradient(at 0% 0%, rgba(20, 85, 217, 0.55) 0, transparent 45%),
        radial-gradient(at 100% 0%, rgba(79, 70, 229, 0.45) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(20, 85, 217, 0.30) 0, transparent 50%);
}

.auth-bg {
    background: linear-gradient(145deg, #071A3D 0%, #0B2A66 45%, #1455D9 100%) !important;
}

/* Floating orbs — animated 3D shape effect */
.glass-orb {
    filter: blur(60px) !important;
}

.orb-1 {
    width: 500px !important;
    height: 500px !important;
    background: rgba(79, 70, 229, 0.38) !important;
    top: -150px !important;
    right: -100px !important;
}

.orb-2 {
    width: 380px !important;
    height: 380px !important;
    background: rgba(20, 85, 217, 0.32) !important;
    bottom: -80px !important;
    left: -80px !important;
}

.orb-3 {
    width: 280px !important;
    height: 280px !important;
    background: rgba(139, 92, 246, 0.28) !important;
    top: 35% !important;
    left: 25% !important;
}

/* Auth container — premium frosted glass card */
.auth-container {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.60) !important;
    border-radius: 28px !important;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
    max-width: 820px;
}

.dark-theme .auth-container {
    background: rgba(7, 26, 61, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.60) !important;
}

/* Auth forms */
.auth-wrapper form h1 {
    font-size: 1.9rem;
    font-weight: 900;
    background: var(--pr-grad-vivid) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 8px;
}

.dark-theme .auth-wrapper form h1 {
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 60%, #38BDF8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 10px rgba(96, 165, 250, 0.3));
}

.auth-wrapper form {
    background: var(--form-bg, #FFFFFF) !important;
}

.dark-theme .auth-wrapper form {
    background: linear-gradient(180deg, #090E1A 0%, #060913 100%) !important;
}

/* Input groups */
.input-group {
    background: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 14px !important;
    margin: 9px 0 !important;
}

.input-group:focus-within {
    border-color: #2563EB !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.dark-theme .input-group {
    background: rgba(30, 41, 59, 0.75) !important;
    border: 1.5px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.dark-theme .input-group:focus-within {
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.dark-theme .input-group i {
    color: #60A5FA !important;
}

.dark-theme .input-group input {
    color: #F8FAFC !important;
}

.dark-theme .input-group input::placeholder {
    color: #94A3B8 !important;
}

/* Auth button */
.auth-btn {
    background: var(--pr-grad-blue) !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    box-shadow: 0 8px 24px rgba(20, 85, 217, 0.40) !important;
    letter-spacing: 0.04em !important;
}

.auth-btn:hover {
    background: var(--pr-grad-vivid) !important;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* Overlay panel */
/* Note: Overlay gradient styling is defined in css/auth.css for theme-specific contrast */

.ghost-btn {
    border-color: rgba(255, 255, 255, 0.50) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   PHASE 12 — GRADIENT TEXT SYSTEM
   -------------------------------------------------------------------------- */
.gradient-text {
    background: var(--pr-grad-vivid) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* --------------------------------------------------------------------------
   PHASE 13 — GLASS CARD SYSTEM UPGRADE
   -------------------------------------------------------------------------- */
.glass-card {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(7, 26, 61, 0.07) !important;
    border-radius: 22px !important;
    box-shadow: var(--pr-shadow-card) !important;
}

.dark-theme .glass-card {
    background: rgba(11, 42, 102, 0.40) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.40) !important;
}

/* --------------------------------------------------------------------------
   PHASE 14 — SCROLL TO TOP & FLOATING BUBBLE
   -------------------------------------------------------------------------- */
#scroll-top {
    background: var(--pr-grad-blue) !important;
    box-shadow: 0 4px 20px rgba(20, 85, 217, 0.45) !important;
}

#scroll-top:hover {
    box-shadow: 0 8px 32px rgba(20, 85, 217, 0.65) !important;
}

.floating-bubble {
    background: var(--pr-grad-blue) !important;
    box-shadow: 0 8px 28px rgba(20, 85, 217, 0.40) !important;
}

/* --------------------------------------------------------------------------
   PHASE 15 — BADGE SYSTEM
   -------------------------------------------------------------------------- */
.badge {
    background: rgba(20, 85, 217, 0.08) !important;
    color: var(--pr-blue) !important;
    border-color: rgba(20, 85, 217, 0.22) !important;
    font-weight: 800 !important;
}

/* --------------------------------------------------------------------------
   PHASE 16 — RESPONSIVE ADJUSTMENTS & ZERO OVERFLOW GUARANTEE
   Tested for 360px, 375px, 390px, 414px, 768px, 1024px, 1280px, 1440px
   -------------------------------------------------------------------------- */
html,
body {
    max-width: 100%;
}

/* Mobile containment — prevent layout overflow without hiding overflow on body */
@media (max-width: 768px) {

    /* Hide fixed-size decorative orbs that bleed past viewport */
    .glass-orb,
    .orb-1,
    .orb-2,
    .orb-3 {
        display: none !important;
    }

    /* Auth hero: contains orbs safely */
    .auth-hero-bg {
        overflow: hidden !important;
        position: relative !important;
    }

    /* Hero showcase: no overflow bleed */
    .hero-showcase-container {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Footer: contains watermark */
    .footer {
        overflow: hidden !important;
        position: relative !important;
    }
}

@media (max-width: 1200px) {
    .hero-container {
        gap: 36px !important;
    }

    .hero-showcase-container {
        max-width: 440px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 48px !important;
    }

    .hero-content {
        max-width: 680px !important;
        margin: 0 auto !important;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 5vw, 3.2rem) !important;
    }

    .hero p,
    .hero .hero-desc {
        margin: 0 auto 28px !important;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-trust-bar {
        justify-content: center !important;
    }

    .hero-showcase-container {
        margin: 16px auto 0 !important;
        max-width: 440px !important;
    }


    .about-feature-strip {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .internships-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px !important;
    }
}

@media (max-width: 640px) {
    .internships-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .internship-card {
        padding: 20px 20px 16px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.6rem) !important;
        letter-spacing: -0.03em !important;
    }

    .hero p,
    .hero .hero-desc {
        font-size: 1.02rem !important;
        margin-bottom: 24px !important;
    }

    .hero-floating-badge {
        padding: 8px 12px !important;
        border-radius: 14px !important;
    }

    .badge-top-left {
        top: -16px !important;
        left: -10px !important;
    }

    .badge-bottom-right {
        bottom: -16px !important;
        right: -10px !important;
    }

    .badge-title {
        font-size: 0.78rem !important;
    }

    .badge-subtitle {
        font-size: 0.65rem !important;
    }

    .hero-showcase-card {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .showcase-code-box {
        font-size: 0.76rem !important;
        padding: 10px 12px !important;
    }

    .section-header h2 {
        font-size: clamp(1.7rem, 5vw, 2.2rem) !important;
    }

    .auth-container {
        border-radius: 20px !important;
        margin: 16px !important;
    }

    .footer-container {
        gap: 28px !important;
    }

    .contact-card {
        padding: 36px 22px !important;
        border-radius: 24px !important;
    }

    .contact-card h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 640px) {

    .badge-top-left,
    .badge-bottom-right {
        position: static !important;
        margin: 10px 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 90px !important;
        padding-bottom: 50px !important;
    }

    .hero h1 {
        font-size: 1.85rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }


    .hero-showcase-container {
        max-width: 100% !important;
    }

    .badge-top-left,
    .badge-bottom-right {
        position: static !important;
        margin: 8px 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .auth-wrapper {
        padding: 90px 12px 30px !important;
    }

    .contact-card {
        padding: 28px 18px !important;
    }
}

/* --------------------------------------------------------------------------
   REUSABLE DECORATIVE BACKGROUND SYSTEM (Requirement 12)
   -------------------------------------------------------------------------- */
.bg-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.glow-blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
}

.glow-indigo {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.30) 0%, transparent 70%);
}

.glow-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
}

.bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.40);
    box-shadow: 0 10px 32px rgba(7, 26, 61, 0.08);
}

.dark-theme .glass-panel {
    background: rgba(11, 22, 48, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   PHASE 17 — PREFERS-REDUCED-MOTION SAFETY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .glass-orb,
    .orb-1,
    .orb-2,
    .orb-3 {
        animation: none !important;
    }
}

/* --------------------------------------------------------------------------
   PHASE 18 — MISCELLANEOUS POLISH
   -------------------------------------------------------------------------- */

/* Preloader spinner */
.loader {
    border-top-color: var(--pr-blue) !important;
}

.loader::after {
    border-bottom-color: var(--pr-violet) !important;
}

/* Profile link in nav */
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--pr-grad-blue);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(20, 85, 217, 0.28);
}

.profile-link:hover {
    background: var(--pr-grad-vivid);
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-2px);
    color: #fff !important;
}


/* Toast system */
.toast {
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Section transitions */
.internships,
.about,
.contact {
    transition: background 0.35s ease;
}

/* Ambassador banner */
.ambassador-banner-link {
    background: rgba(16, 185, 129, 0.07) !important;
    border-color: rgba(16, 185, 129, 0.22) !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    transition: all 0.28s ease !important;
}

.ambassador-banner-link:hover {
    background: rgba(16, 185, 129, 0.13) !important;
    border-color: rgba(16, 185, 129, 0.40) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.20) !important;
}

/* Section separator utility */
.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 85, 217, 0.15), transparent);
    margin: 0;
    border: none;
}

/* Dark mode section separator */
.dark-theme .section-separator {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* ==========================================================================
   PHASE — PREMIUM INTERACTIVE CARD TILT SYSTEM
   CSS side: will-change hint + transition smoothing for JS-driven tilt
   ========================================================================== */

/* 3D perspective context on the grid containers */
.internships-grid,
.services-grid {
    perspective: 1200px;
}

/* Tilt-ready cards: promote to own compositing layer */
.internship-card,
.service-card {
    will-change: transform;
    transform-style: preserve-3d;
    /* Override any existing transition to include 3D transforms smoothly */
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease !important;
}

/* When JS is actively tracking pointer, snap back is handled by JS removing inline style */
.internship-card.tilt-active,
.service-card.tilt-active {
    transition: transform 0.08s linear,
        box-shadow 0.08s linear,
        border-color 0.25s ease !important;
}

/* Hover shadow enhancement (works alongside JS tilt) */
.internship-card:hover {
    box-shadow: 0 20px 50px rgba(20, 85, 217, 0.16), 0 8px 20px rgba(7, 26, 61, 0.10) !important;
}

.service-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
}

.dark-theme .internship-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.50), 0 8px 24px rgba(0, 0, 0, 0.30) !important;
}

.dark-theme .service-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.50) !important;
    border-color: rgba(96, 165, 250, 0.30) !important;
}

/* Respect reduced motion: disable tilt entirely */
@media (prefers-reduced-motion: reduce) {

    .internship-card,
    .service-card {
        transform: none !important;
        will-change: auto !important;
        transform-style: flat !important;
        transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
}