/* admission.css - World-Class Ultra-Aesthetic Styles for GAI Admission Page */

::selection {
    background: #00aeef;
    color: white;
}

:root {
    --brand-cyan: #00aeef;
    --brand-magenta: #ec008c;
    --brand-purple: #8b5cf6;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --brand-indigo: #6366f1;
}

body {
    background-color: #ffffff !important;
    color: #0f172a;
    font-family: 'Anek Bangla', 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.65;
}

/* Background Subtle Grid Pattern */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
}

/* Base Ticker styling */
.header-ticker {
    overflow: hidden;
    background: linear-gradient(90deg, #0099db 0%, #00aeef 50%, #0099db 100%) !important;
    height: 52px !important;
    box-shadow: 0 4px 25px rgba(0, 174, 239, 0.25);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    font-family: 'Anek Bangla', 'Inter', sans-serif !important;
}

.header-ticker .ticker-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding-left: 0.75rem;
    padding-right: 0.5rem;
}

.header-ticker .ticker-badge {
    background: #ffffff !important;
    color: #00aeef !important;
    font-weight: 800;
    font-size: 12px !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-right: 0.75rem;
    user-select: none;
    line-height: 1 !important;
    align-self: center !important;
}

.header-ticker .ticker-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #00aeef;
    border-radius: 50%;
    animation: tickerPulse 1.5s infinite;
}

@keyframes tickerPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.header-ticker .ticker-scroll-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-ticker .ticker-track {
    position: absolute;
    white-space: nowrap !important;
    will-change: transform;
    animation: siteTicker 24s linear infinite !important;
    font-family: inherit;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.01em;
}

@media (min-width: 768px) {
    .header-ticker .ticker-container {
        padding-left: 1.5rem;
    }
    .header-ticker .ticker-badge {
        font-size: 13px !important;
        padding: 6px 16px !important;
    }
}

@keyframes siteTicker {
    0% { transform: translate3d(100vw, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Anek Bangla', 'Inter', sans-serif !important;
    line-height: 1.35;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-badge {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Premium Card Tokens */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.75rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03), 0 20px 40px -15px rgba(0, 174, 239, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.premium-card:hover {
    border-color: rgba(0, 174, 239, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 174, 239, 0.18), 0 35px 70px -20px rgba(0, 0, 0, 0.07);
}

/* Subject Mark Distribution Cards */
.mark-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.4rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

@media (min-width: 640px) {
    .mark-card {
        border-radius: 1.75rem;
        padding: 1.65rem;
    }
}

.mark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    opacity: 0.9;
    transition: height 0.3s ease;
}

.mark-card:hover::before {
    height: 7px;
    opacity: 1;
}

.mark-card.mark-card-cyan::before { background: linear-gradient(90deg, #00aeef, #38bdf8); }
.mark-card.mark-card-purple::before { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.mark-card.mark-card-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.mark-card.mark-card-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.mark-card.mark-card-magenta::before { background: linear-gradient(90deg, #ec008c, #f43f5e); }
.mark-card.mark-card-indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.mark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 174, 239, 0.18);
}

.mark-card.mark-card-cyan:hover { border-color: #00aeef; }
.mark-card.mark-card-purple:hover { border-color: #8b5cf6; }
.mark-card.mark-card-emerald:hover { border-color: #10b981; }
.mark-card.mark-card-amber:hover { border-color: #f59e0b; }
.mark-card.mark-card-magenta:hover { border-color: #ec008c; }
.mark-card.mark-card-indigo:hover { border-color: #6366f1; }

/* Progress bar inside mark card */
.mark-progress-bg {
    height: 8px;
    border-radius: 9999px;
    background-color: #f1f5f9;
    overflow: hidden;
    padding: 1px;
}

.mark-progress-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================
   SLEEK ROADMAP SYSTEM (MODERN, INTUITIVE & UN-SQUISHED)
   =================================================== */

/* Horizontal Phase Nav Bar */
.phase-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phase-nav-bar::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .phase-nav-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding-bottom: 0.25rem;
    }
}

.phase-nav-pill {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .phase-nav-pill {
        border-radius: 1.25rem;
        padding: 0.85rem 1.15rem;
        justify-content: flex-start;
    }
}

.phase-nav-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 174, 239, 0.18);
    border-color: #00aeef;
}

.phase-nav-pill .pill-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}

/* Phase Container Card */
.phase-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.15rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03), 0 10px 25px -10px rgba(0, 174, 239, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

@media (min-width: 1024px) {
    .phase-card {
        border-radius: 1.5rem;
        padding: 1.25rem;
    }
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.15rem;
    right: 1.15rem;
    height: 4px;
    border-radius: 0 0 8px 8px;
    opacity: 0.95;
}

@media (min-width: 1024px) {
    .phase-card::before {
        left: 1.25rem;
        right: 1.25rem;
        height: 4px;
    }
}

.phase-card.phase-theme-brand::before,
.phase-card.phase-theme-cyan::before { background: linear-gradient(90deg, #00aeef, #38bdf8); }
.phase-card.phase-theme-purple::before { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.phase-card.phase-theme-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.phase-card.phase-theme-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.phase-card:hover {
    border-color: rgba(0, 174, 239, 0.45);
    box-shadow: 0 16px 35px -10px rgba(0, 174, 239, 0.12);
    transform: translateY(-3px);
}

/* Timeline Step Row — Stacked card layout with clear vertical hierarchy */
.timeline-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.75rem 0.85rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
}

.timeline-step:hover {
    border-color: rgba(0, 174, 239, 0.4);
    background: #fafcff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.07);
}

/* Date Pill — Clean responsive badge */
.date-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

/* Anchor Offset for Fixed Navbar & Ticker */
#phase-1, #phase-2, #phase-3, #phase-4,
#calculator-section, #marks-section, 
#departments-section, #eligibility-section, 
#schedule-section, #portals-section, #faq-section {
    scroll-margin-top: 130px;
}

.date-pill i {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.timeline-step:hover .date-pill {
    border-color: currentColor;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Info Box */
.phase-info-box {
    border-radius: 1.15rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

@media (min-width: 1024px) {
    .phase-info-box {
        border-radius: 1.25rem;
        padding: 0.85rem 1.25rem;
        min-height: 74px;
    }
}

/* FAQ Category Filter Chips */
.faq-chip {
    user-select: none;
    cursor: pointer;
}

.faq-chip.active {
    background-color: #00aeef !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.35);
}

/* Toast Notification */
#site-toast {
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

#site-toast.show {
    display: flex !important;
    transform: translate(-50%, 0);
    opacity: 1;
}

/* Calculator Form Controls */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

#calc-exam-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00aeef;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.6);
    transition: transform 0.15s ease;
}
#calc-exam-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Calculator Dynamic Feedback Box */
#calc-feedback-box {
    display: block !important;
}

#calc-feedback-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    user-select: none;
}

#calc-feedback-badge svg,
#calc-feedback-badge i {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

#calc-feedback-text {
    display: block !important;
    word-break: break-word !important;
}

/* FAQ Styling */
.faq-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: rgba(0, 174, 239, 0.45);
    box-shadow: 0 12px 30px -6px rgba(0, 174, 239, 0.12);
}

.faq-answer-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-container.open {
    max-height: 600px;
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 640px) {
    .float-whatsapp {
        bottom: 32px;
        right: 32px;
    }
}

.float-whatsapp:hover {
    transform: scale(1.12) rotate(6deg);
}

/* ==========================================================
   Universal Smooth Scroll Reveal & Entrance Animations
   ========================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.scroll-reveal-left {
    transform: translateX(-24px);
}

.scroll-reveal.scroll-reveal-right {
    transform: translateX(24px);
}

.scroll-reveal.scroll-reveal-scale {
    transform: scale(0.96) translateY(16px);
}

.scroll-reveal.active {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Stagger delays */
.delay-75 { transition-delay: 75ms !important; }
.delay-100 { transition-delay: 100ms !important; }
.delay-150 { transition-delay: 150ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-250 { transition-delay: 250ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* ==========================================================
   Permanent Mobile Scroll & Movement Lag Elimination (120 FPS)
   ========================================================== */
@media (max-width: 768px) {
    /* 1. Eliminate compositor layer bloat & animation jank */
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    /* 2. Turn off expensive GPU backdrop-filter blur shaders during scroll */
    *,
    *::before,
    *::after {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* 3. Hide heavy 100px+ gaussian blur glow orbs on mobile screen */
    .blur-\[140px\],
    .blur-\[100px\],
    .blur-3xl,
    .blur-2xl {
        display: none !important;
    }

    /* 4. Disable continuous ping animations on fixed elements */
    .animate-ping {
        animation: none !important;
        display: none !important;
    }

    /* 5. Native buttery touch momentum scrolling */
    html, body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto !important;
    }

    /* 6. Lightweight optimized shadows on mobile */
    .phase-card,
    .faq-item,
    .timeline-step,
    .tie-step,
    .ledger-table-wrap,
    .quota-card,
    .comparison-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    }
}

/* ==========================================================
   New Policy UI Components (Zero Lag, Hardware Accelerated)
   ========================================================== */

/* Quick Jump Sticky Navigation Strip */
.quick-jump-nav-wrap {
    position: sticky;
    top: 52px;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.quick-jump-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.6rem 0;
    white-space: nowrap;
}

.quick-jump-scroll::-webkit-scrollbar {
    display: none;
}

.quick-jump-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-decoration: none;
}

.quick-jump-pill:hover,
.quick-jump-pill.active {
    color: #ffffff;
    background: #00aeef;
    border-color: #00aeef;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
    transform: translateY(-1px);
}

/* Tie-Breaker Priority Step Ladder */
.tie-ladder {
    position: relative;
}

.tie-ladder::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 1.75rem;
    width: 3px;
    background: linear-gradient(180deg, #00aeef 0%, #8b5cf6 50%, #10b981 100%);
    border-radius: 9999px;
}

@media (max-width: 640px) {
    .tie-ladder::before {
        left: 1.25rem;
    }
}

.tie-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    transition: all 0.25s ease;
}

.tie-step:hover {
    border-color: #00aeef;
    transform: translateX(4px);
    box-shadow: 0 8px 25px -5px rgba(0, 174, 239, 0.08);
}

.tie-step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
}

/* Confirmation Fee Ledger Receipt */
.ledger-table-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.ledger-row:hover {
    background: #f8fafc;
}

.ledger-row.total-row {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

/* Technology Pills Grid */
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
}

.tech-pill:hover {
    border-color: #00aeef;
    background: #f0f9ff;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.1);
}

/* Auto Migration Visual Indicator */
.migration-badge-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.migration-flow-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.migration-flow-card:hover {
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.08);
}