/* ==========================================================================
   COUNSELYA - Education Platform MVP
   Enhanced Graphics & Animations
   ========================================================================== */

/* CSS Variables - Enhanced */
:root {
    --primary-color: #22819A;      /* Deep Teal */
    --primary-light: #48A3B8;     /* Lighter Teal */
    --primary-dark: #1A5E70;      /* Darker Teal */
    --primary-gradient: linear-gradient(135deg, #22819A 0%, #90C2E7 100%);
    
    --secondary-color: #90C2E7;    /* Light Blue */
    --secondary-gradient: linear-gradient(135deg, #90C2E7 0%, #CDD4DD 100%);
    
    --accent-color: #CDD4DD;       /* Grey Blue */
    --accent-gradient: linear-gradient(135deg, #CDD4DD 0%, #90C2E7 100%);
    
    --background: #FEF7F8;         /* Cream Surface */
    --surface: #ffffff;
    --surface-hover: #F0F4F7;
    
    --text-primary: #1A3A4A;       /* Deep Navy Teal */
    --text-secondary: #587C8A;
    --text-muted: #8EA7B4;
    
    --border-color: #CDD4DD;
    
    --shadow-sm: 0 1px 2px rgba(26, 58, 74, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 58, 74, 0.1), 0 2px 4px -2px rgba(26, 58, 74, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(26, 58, 74, 0.1), 0 4px 6px -4px rgba(26, 58, 74, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(26, 58, 74, 0.1), 0 8px 10px -6px rgba(26, 58, 74, 0.1);
    --shadow-glow: 0 0 40px rgba(34, 129, 154, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Image Reset for Chrome/Flexbox Safety */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
    min-height: 4rem;
    flex-wrap: nowrap;
}

/* Force consistency for header container across all pages */
.header .container {
    max-width: 1280px !important;
}

.logo {
    font-size: 1.25rem;
    font-weight: 710;
    color: #CDD4DD !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary-color);
    margin-left: 0.3em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* User Menu & Dropdown */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.user-menu-toggle:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-gradient);
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    animation: scaleIn 0.2s ease;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--primary-color);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ==========================================================================
   BUTTONS - Enhanced Graphics
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.5;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 129, 154, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 129, 154, 0.5);
}

.btn-primary:focus-visible {
    outline-color: rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-secondary:focus-visible {
    outline-color: rgba(37, 99, 235, 0.5);
}

.btn-success {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-success:focus-visible {
    outline-color: rgba(16, 185, 129, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline:focus-visible {
    outline-color: rgba(37, 99, 235, 0.5);
}

.btn-live {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-live:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6);
}

.btn-live:focus-visible {
    outline-color: rgba(220, 38, 38, 0.6);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(220, 38, 38, 0.7);
    }
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

/* Icon adjustments for buttons */
.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}

.btn-lg svg {
    width: 20px;
    height: 20px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

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

/* Animated Background Gradient - REPLACED WITH VIDEO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    /* Remove padding to let video fill properly */
    text-align: center;
    background: #000;
}

/* Remove any potential pseudo-elements that might cause "mixing" */
.hero::before,
.hero::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
    filter: brightness(0.7);
    /* Slightly darker for better text contrast */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to ensure text readability without obscuring video */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

/* Hurdle Buttons */
.hurdle-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.hurdle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.hurdle-icon {
    font-size: 1.5rem;
}

.hurdle-text {
    flex: 1;
    font-weight: 500;
}

.hurdle-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #6ee7b7;
}

.hurdle-btn:hover .hurdle-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
}

.hero-stat-item {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-sep {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .hurdle-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .hurdle-icon {
        font-size: 1.25rem;
    }

    .hero-stats-row {
        flex-direction: column;
        background: transparent;
        backdrop-filter: none;
        border: none;
        gap: 1rem;
        border-radius: 0;
    }

    .hero-stat-sep {
        display: none;
    }

    .hero-stat-item {
        background: rgba(15, 23, 42, 0.6);
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}


@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.badge-success {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.badge-info {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.badge-neutral {
    background: var(--surface-hover);
    color: var(--text-secondary);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--surface-hover);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.tag-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* ==========================================================================
   CARDS - Enhanced Graphics
   ========================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

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

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card-body {
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Counsellor Card - Ultra Enhanced */
.counsellor-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.counsellor-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.counsellor-card:hover::before {
    opacity: 0.3;
}

.counsellor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-spring);
}

.counsellor-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 4s linear infinite;
}

.counsellor-card:hover .counsellor-avatar {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.6);
}

.counsellor-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.counsellor-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.counsellor-meta svg {
    width: 16px;
    height: 16px;
}

/* University Card - Ultra Enhanced */
.university-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.university-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed, #ec4899);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.university-card:hover::before {
    opacity: 0.3;
}

.university-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-spring);
}

.university-card:hover .university-logo {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.6);
}

.university-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--primary-color);
}

/* Podcast Card - Ultra Enhanced */
.podcast-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.podcast-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #CDD4DD, #334155, #475569);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.podcast-card:hover::before {
    opacity: 0.5;
}

.podcast-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #CDD4DD 0%, #334155 50%, #475569 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
    transition: all var(--transition-spring);
}

.podcast-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.4), rgba(236, 72, 153, 0.4));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.podcast-card:hover .podcast-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.5);
}

.podcast-card:hover .podcast-thumbnail::before {
    opacity: 1;
}

.podcast-thumbnail svg {
    width: 56px;
    height: 56px;
    color: white;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-spring);
}

.podcast-card:hover .podcast-thumbnail svg {
    transform: scale(1.2);
}

.podcast-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   FILTERS - Ultra Enhanced
   ========================================================================== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    width: fit-content;
}

.filter-select {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.filter-search {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 300px;
    flex: 1.5;
    position: relative;
}

.filter-search::before {
    content: '';
    position: absolute;
    left: 1rem;
    bottom: 0.875rem;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.search-input:hover {
    border-color: var(--primary-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   GRIDS
   ========================================================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

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

/* ==========================================================================
   DISCLAIMER & TRUST - Ultra Enhanced
   ========================================================================== */
.disclaimer {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.disclaimer svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.disclaimer-text {
    font-size: 1rem;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}

.trust-banner {
    background: linear-gradient(135deg, #CDD4DD 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.trust-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

.trust-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite reverse;
}

.trust-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.trust-banner-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-banner-text {
    color: #94a3b8;
    margin: 0;
    font-size: 1.125rem;
}

/* ==========================================================================
   FOOTER - Ultra Enhanced
   ========================================================================== */
/* ==========================================================================
   PREMIUM FOOTER - GOD TIER
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #FEF7F8 0%, #CDD4DD 50%, #FEF7F8 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    color: #94a3b8;
}

/* Subtle glow effect at top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.25fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-brand strong {
    color: #e2e8f0;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    border-color: transparent;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #94a3b8;
}

/* Newsletter Input Focus State */
.footer-newsletter input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        max-width: 100%;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-links a:hover {
        transform: translateX(0);
        /* Disable shift on mobile for better touch */
    }

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

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}



/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */
.detail-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.detail-breadcrumb a {
    color: var(--text-secondary);
}

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

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.detail-meta-item svg {
    width: 18px;
    height: 18px;
}

.fee-breakdown {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.fee-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.fee-label {
    color: var(--text-secondary);
}

.fee-value {
    font-weight: 600;
    color: var(--text-primary);
}

.fee-value.highlight {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

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

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

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group,
    .filter-search {
        min-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .detail-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    .grid-5,
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .card {
        padding: 1rem;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ==========================================================================
   P0 FEATURES - NEW ADDITIONS
   ========================================================================== */

/* Sticky Counselor Card - P0 Feature */
.sticky-counselor {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.875rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sticky-counselor:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.sticky-counselor .counselor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
}

.sticky-counselor .counselor-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sticky-counselor .counselor-info strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #CDD4DD;
    line-height: 1.2;
}

.sticky-counselor .counselor-info span {
    font-size: 0.75rem;
    color: #64748b;
}

.sticky-counselor .status.online {
    color: var(--primary-color);
    font-size: 0.6875rem;
    font-weight: 600;
}

.sticky-counselor .btn {
    white-space: nowrap;
}

/* Mobile - Single Sticky CTA Only */
@media (max-width: 768px) {
    .sticky-counselor {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
        justify-content: flex-start;
        padding: 0.75rem 1.25rem;
    }

    .sticky-counselor .counselor-info span:not(.status) {
        display: none;
    }

    .sticky-counselor .btn {
        margin-left: auto;
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    /* Hide other floating CTAs on mobile */
    .floating-cta,
    .mobile-cta-bar,
    .live-status {
        display: none !important;
    }
}

/* Guided Entry Modal - P0 Feature */
.guided-entry-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guided-entry-modal.active {
    opacity: 1;
    visibility: visible;
}

.guided-entry-content {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.guided-entry-modal.active .guided-entry-content {
    transform: scale(1);
}

.guided-entry-content .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.guided-entry-content .close-btn:hover {
    background: #e2e8f0;
    color: #CDD4DD;
}

.guided-entry-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.guided-entry-content>p {
    color: #64748b;
    margin-bottom: 2rem;
}

.guided-entry-content .step p {
    font-weight: 600;
    color: #CDD4DD;
    margin-bottom: 1rem;
}

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #CDD4DD;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-icon {
    font-size: 1.25rem;
}

.guided-entry-content .hidden {
    display: none;
}

.guided-entry-content #result h3 {
    margin-bottom: 1.5rem;
}

.guided-entry-content #result {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#filtered-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

#filtered-results .result-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Decision Meter - P1 Feature */
.decision-meter {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

.decision-meter h4 {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.meter-item {
    margin-bottom: 1rem;
}

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

.meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.meter-label span:last-child {
    font-weight: 600;
    color: #CDD4DD;
}

.meter-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.meter-disclaimer {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1rem;
    font-style: italic;
}

/* Fee Explain Mode - P1 Feature */
.fee-explain-mode {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.fee-total {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.fee-total:hover {
    background: #f8fafc;
}

.fee-total .fee-label {
    font-size: 0.875rem;
    color: #64748b;
}

.fee-total .fee-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #CDD4DD;
}

.fee-total .fee-value.highlight {
    color: var(--primary-color);
}

.breakdown-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.fee-breakdown {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.fee-breakdown.hidden {
    display: none;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9375rem;
    color: #64748b;
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-item.total {
    font-weight: 600;
    color: #CDD4DD;
    font-size: 1rem;
    padding-top: 1rem;
}

.affinity-check {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.affinity-check p {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.affinity-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Problem-Based Filters - P2 Feature */
.problem-based-filters {
    margin-bottom: 2rem;
}

.problem-based-filters>p {
    font-weight: 600;
    color: #CDD4DD;
    margin-bottom: 1rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    background: white;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* Language Toggle - P1 Feature */
.language-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
    margin-right: 1rem;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    border: none;
    background: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: #CDD4DD;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Micro Trust Signals - P2 Feature */
.trust-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.trust-badge {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f8fafc;
    border-radius: 100px;
}

/* Comparison Tray */
.compare-tray {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--primary-color);
}

.compare-tray.active {
    transform: translateX(-50%) translateY(0);
}

.roi-message {
    font-weight: 600;
    color: #CDD4DD;
    font-size: 0.875rem;
}

.whatsapp-cta {
    background: #25d366;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.whatsapp-cta:hover {
    transform: scale(1.05);
}

/* Mobile Bottom Safe Area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sticky-counselor {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   3D REALITY CHECK SECTION (Background Mode)
   ========================================================================== */
.reality-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* 3D Visuals as Backgrounds */
.bg-3d-visual {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.05;
    /* Start very subtle */
    filter: grayscale(100%);
}

.trap-bg {
    left: -80px;
    bottom: -60px;
    height: 140%;
    transform: rotate(-15deg);
}

.solution-bg {
    right: -60px;
    top: -40px;
    height: 140%;
    transform: rotate(15deg);
}

/* Hover States - Reveal the 3D Magic */
.reality-card:hover .trap-bg {
    transform: rotate(-5deg) scale(1.1) translateX(20px);
    opacity: 0.25;
    filter: grayscale(0%) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.reality-card:hover .solution-bg {
    transform: rotate(5deg) scale(1.1) translateX(-20px);
    opacity: 0.3;
    filter: grayscale(0%) drop-shadow(0 20px 40px rgba(16, 185, 129, 0.3));
}

/* Card Styling to support overlays */
.reality-card {
    display: flex;
    background: #CDD4DD;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    /* Important to clip the large 3D images */
    transition: all 0.3s ease;
}

.reality-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-side {
    flex: 1;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    /* Improve text readability over images */
    transition: all 0.3s ease;
}

/* Glass effect for text readability */
.card-side::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(15, 23, 42, 0.6);
    /* Dark tint */
    backdrop-filter: blur(0px);
    /* Performance: Only blur on hover if needed, or keep 0 */
    transition: all 0.3s ease;
}

.reality-card:hover .card-side::before {
    background: rgba(15, 23, 42, 0.4);
    /* Lighter on hover to show image better */
}

/* VS Badge */
.vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #FEF7F8;
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #94a3b8;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Typography & Lists from original design */
.side-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-side h4 {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.trap-text,
.solution-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.trap-text {
    color: #fca5a5;
}

.solution-text {
    color: #6ee7b7;
}

.trap-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.trap-list li,
.solution-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.trap-list li::before {
    content: '✖';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-size: 0.8rem;
    top: 4px;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9rem;
    top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .reality-card {
        flex-direction: column;
    }

    .vs-badge {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: -1.5rem auto -1.5rem;
    }

    .trap-bg,
    .solution-bg {
        transform: rotate(0);
        width: 100%;
        height: auto;
        opacity: 0.1;
    }
}

/* ==========================================================================
   3D VISUAL GALLERY
   ========================================================================== */
.visual-gallery-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Grid Template for Desktop: 3 up, 2 down */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 400px 400px;
}

.gallery-item {
    position: relative;
    height: 100%;
    width: 100%;
}

.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

/* Second Row: 2 items spanning the width centered? Or just 2 columns */
/* Let's make them span 1.5 columns each if using 3 columns total */
.item-4 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

/* Wait, 3 columns. 4 and 5 need to fill. */
/* Better approach: Nested grid or flex for row 2? Or spanned columns. */

/* Let's try a 6-column grid for flexibility */
.visual-gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 400px 400px;
}

.item-1 {
    grid-column: 1 / 3;
    grid-row: 1;
}

.item-2 {
    grid-column: 3 / 5;
    grid-row: 1;
}

.item-3 {
    grid-column: 5 / 7;
    grid-row: 1;
}

.item-4 {
    grid-column: 1 / 4;
    grid-row: 2;
}

.item-5 {
    grid-column: 4 / 7;
    grid-row: 2;
}


.gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.gallery-card img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.solution-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
    .visual-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        grid-column: span 1;
        grid-row: auto;
    }

    .gallery-item {
        height: 350px;
    }
}

/* 3D Hero Canvas */
#bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    background-color: #FEF7F8;
    /* Background removed - using video background only */
    min-height: 100vh;
}

/* Ensure hero content sits above the canvas */
.hero .container {
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but buttons need pointer-events: auto */
}

.hero .container * {
    pointer-events: auto;
    /* Re-enable clicks for buttons/text */
}

/* ==========================================================================
   CORE PROBLEM SECTION - Redesign
   ========================================================================== */
.problem-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    min-height: 500px;
}

/* Market Side (The Problem) */
.market-side {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ef4444;
    padding: 4rem 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.market-side h3 {
    color: #f87171;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
}

.market-side .side-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

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

.market-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #d1d5db;
    font-size: 1.15rem;
    opacity: 0.9;
    font-weight: 500;
}

.market-list li::before {
    content: "❌";
    font-size: 1rem;
    flex-shrink: 0;
}

/* Student Side (The Solution) */
.student-side {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    color: #60a5fa;
    padding: 4rem 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.student-side h3 {
    color: #60a5fa;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
}

.student-side .side-subtitle {
    color: #bae6fd;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

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

.student-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e0f2fe;
    font-size: 1.15rem;
    font-weight: 600;
}

.student-list li::before {
    content: "✅";
    font-size: 1rem;
    flex-shrink: 0;
}

/* VS Badge */
.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #FEF7F8;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .market-side,
    .student-side {
        padding: 3rem 2rem;
        border: none;
    }

    .market-side {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .vs-badge {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* ============================================================================
   EDTECH TRAP ROADMAP (Anti-Marketing)
   ============================================================================ */
.trap-roadmap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto 4rem;
    position: relative;
}

.trap-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    position: relative;
    border-left: 2px dashed rgba(255, 255, 255, 0.2);
    margin-left: 2rem;
}

.trap-step.dead-end {
    border-left: none;
}

.trap-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 2;
}

.trap-content {
    background: rgba(25, 25, 25, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    transition: transform 0.3s;
}

.trap-content:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(248, 113, 113, 0.3);
}

.trap-content h4 {
    color: #f87171;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.trap-sub {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.trap-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    font-style: italic;
}

.trap-reveal {
    background: rgba(220, 38, 38, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.trap-rescue {
    text-align: center;
    background: rgba(30, 41, 59, 0.5);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.trap-rescue h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Pulse Animation for Rescue Button */
.pulse-animation {
    animation: pulse-glow 2s infinite;
}

@media (min-width: 768px) {
    .trap-roadmap {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .trap-step {
        border-left: none;
        margin-left: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .trap-step:nth-child(odd) {
        text-align: right;
        align-items: flex-end;
    }

    .trap-step:nth-child(even) {
        text-align: left;
        align-items: flex-start;
        margin-top: 6rem;
        /* Stagger effect */
    }

    /* Override connector lines for desktop S-curve if needed, 
       but for simplicity/robustness, we'll keep it clean grid on desktop */
    .trap-connector {
        display: none;
        /* Hide manual connectors on desktop for grid layout */
    }
}

/* ============================================================================
   REALITY STORIES CAROUSEL (Emotional Connection)
   ============================================================================ */
.reality-carousel {
    scrollbar-width: none;
    /* Firefox */
}

.reality-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.reality-card {
    background: #CDD4DD;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
    width: 350px;
    flex-shrink: 0;
}

.reality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(248, 113, 113, 0.4);
}

.reality-visual {
    height: 220px;
    width: 100%;
    position: relative;
    background: #FEF7F8;
}

/* Split Screen Style */
.split-screen {
    display: flex;
}

.split-side {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.split-side.left {
    border-right: 1px solid white;
}

.split-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 700;
}

/* Comic Strip Style */
.comic-strip {
    display: flex;
}

.comic-panel {
    width: 100%;
    height: 100%;
    border-right: 2px solid #000;
}

/* Victim Card Style */
.victim-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.victim-photo {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.reality-content {
    padding: 1.5rem;
}

.reality-content h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reality-quote {
    color: #cbd5e1;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-audio-play {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f87171;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-audio-play:hover {
    background: #f87171;
    color: white;
    border-color: #f87171;
}

/* ============================================================================
   SALES DICTIONARY (Decoder)
   ============================================================================ */
/* ============================================================================
   SALES DICTIONARY (Decoder Widget)
   ============================================================================ */
.decoder-widget {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(248, 113, 113, 0.3);
}

.decoder-interface {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Container */
.decoder-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #334155;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.decoder-input-container:focus-within {
    border-color: #f87171;
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.2);
}

.input-icon {
    font-size: 1.5rem;
    padding-left: 1rem;
    opacity: 0.7;
}

#sales-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    color: white;
    font-family: 'Courier New', monospace;
    outline: none;
}

.btn-decode {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-decode:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
}

/* Output Area */
.decoder-output {
    background: #000;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 120px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.collecting-data {
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.scan-line {
    width: 20px;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: scan 1s infinite linear;
}

@keyframes scan {
    0% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 40px;
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 0;
        transform: translateX(20px);
    }
}

.truth-label {
    color: #ef4444;
    /* Red */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.truth-text {
    font-size: 1.25rem;
    color: #fca5a5;
    line-height: 1.5;
}

/* Glitch Animation for Text */
.glitched-text.glitching {
    animation: textGlitch 0.3s infinite;
}

@keyframes textGlitch {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    20% {
        opacity: 0.8;
        transform: translateX(-2px);
    }

    40% {
        opacity: 1;
        transform: translateX(2px);
    }

    60% {
        opacity: 0.9;
        transform: translateX(-1px);
    }

    80% {
        opacity: 1;
        transform: translateX(1px);
    }

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

/* Prompts */
.decoder-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.prompt-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.prompt-chip:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    color: white;
}

/* =========================================
   NEW UNIVERSITY CARD DESIGN (StudentGrad Style)
   ========================================= */
.university-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

/* Header: Logo + Flag */
.ucard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.ucard-logo img {
    height: 40px;
    object-fit: contain;
    max-width: 120px;
}

.ucard-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.ucard-flag img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 2px;
}

/* Title */
.ucard-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    background: #eff6ff;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0;
}

/* Info Grid (2 Columns) */
.ucard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ucard-info-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.ucard-label {
    font-size: 0.8rem;
    color: var(--primary-light);
    /* Blue label */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ucard-value {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

/* Detail Rows (Full Width) */
.ucard-detail-row {
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
    text-align: center;
}

.ucard-detail-label {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ucard-detail-value {
    font-size: 0.9rem;
    color: #475569;
}

/* Checkbox overlay override */
.compare-checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* View Details Button Styled to match */
.ucard-action {
    margin-top: auto;
}

.btn-view-details {
    width: 100%;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

/* ============================================================================
   SECTION 2: ALUMNI FEED (The Bridge)
   ============================================================================ */
#alumni-feed {
    position: relative;
    z-index: 10;
}

/* 1. Stories Rail */
.stories-rail {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.stories-rail::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.story-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.story-circle-wrapper:hover {
    transform: scale(1.1);
}

.story-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    /* Instagram Gradient */
    position: relative;
}

.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid white;
    /* Gap between ring and image */
    object-fit: cover;
}

.story-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

/* 2. Feed Scroll Container */
.feed-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 5% 4rem;
    /* Bottom padding for shadow */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.feed-scroll-container::-webkit-scrollbar {
    display: none;
}

.feed-card {
    min-width: 320px;
    max-width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.feed-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    /* Blue glow on hover */
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: #CDD4DD;
}

.feed-role {
    font-size: 0.8rem;
    color: #64748b;
}

.feed-media {
    height: 320px;
    /* Square-ish aspect ratio */
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.feed-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    cursor: pointer;
}

.feed-card:hover .play-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   UX IMPROVEMENTS (Sticky Counselor, Guided Entry, Language)
   ========================================================================== */

/* 1. Sticky Counselor Card */
.sticky-counselor {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: slideInRight 0.5s ease-out 1s backwards;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-counselor:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.counselor-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    position: relative;
    /* Ensure avatar matches JS content */
    display: flex;
}

.counselor-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
}

.counselor-info {
    flex: 1;
}

.counselor-info strong {
    display: block;
    color: #CDD4DD;
    font-size: 0.95rem;
    line-height: 1.2;
}

.counselor-info span {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.counselor-info .status {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2px;
}

/* 2. Guided Entry Modal */
.guided-entry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.guided-entry-modal.active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.guided-entry-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.guided-entry-modal.active .guided-entry-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ef4444;
}

.step-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.option-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
    transform: translateY(-2px);
}

.option-btn svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.option-btn span {
    display: block;
    font-weight: 600;
    color: #CDD4DD;
}

/* 3. Language Toggle */
.language-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    margin-left: 1rem;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .sticky-counselor {
        display: none !important; /* Hide redundant counselor card on mobile to avoid overlap with sticky footer */
    }

    .ai-control-btn {
        bottom: 100px; /* Float above the sticky mobile footer */
        right: 1rem;
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .guided-entry-content {
        padding: 1.5rem;
    }

    .step-options {
        grid-template-columns: 1fr;
    }
}