/* --- CSS VARIABLES FOR PREMIUM BRAND VIBE --- */
:root {
    --bg-dark: #090b11;
    --card-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-glow: rgba(59, 130, 246, 0.4);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- AMBIENT GLOW EFFECTS --- */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.glow-1 { top: -100px; left: -50px; background: #3b82f6; }
.glow-2 { bottom: 10%px; right: -50px; background: #8b5cf6; }

/* --- APP CONTAINER --- */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 100px 20px; /* bottom padding ensures menu spacing */
}

/* --- HEADER --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 40px;
}
.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.brand-name span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 1.5s infinite;
}

/* --- HERO SECTION LAYOUT --- */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    min-height: calc(80vh - 100px);
}

/* LEFT SIDE - GLASS FORM */
.glass-form-card {
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.glass-form-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.glass-form-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-group {
    margin-bottom: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}
.btn-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* RIGHT SIDE - CONTENT */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.trust-badge {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    width: max-content;
}
.main-tagline {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}
.hero-features {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.feat-item i {
    color: #3b82f6;
}

/* --- BOTTOM MODERN APP MENU BAR --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 22, 36, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 10px 30px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}
.nav-item i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.nav-item:hover, .nav-item.active {
    color: #3b82f6;
}
.nav-item:hover i {
    transform: translateY(-2px);
}

/* --- EXCLUSIVE DROPUP STYLING --- */
.dropup-menu {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f1624;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 8px;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.dropup-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropup-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}
.dropup-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #3b82f6;
}

/* --- ANIMATIONS & RESPONSIVE LAYOUT --- */
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-left { order: 2; }
    .hero-right { order: 1; align-items: center; }
    .main-tagline { font-size: 2.3rem; }
    .bottom-nav-bar {
        width: 90%;
        bottom: 15px;
        padding: 10px 15px;
        gap: 10px;
        justify-content: space-around;
    }
}
@media (max-width: 480px) {
    .form-row { flex-direction: column; gap: 0; }
    .glass-form-card { padding: 20px; }
}





/* --- YOUTUBE COURSES TILES --- */
.yt-courses-section {
    margin-top: 80px;
    padding: 20px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.sub-title {
    color: #ef4444; /* YouTube Red Accent */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* GRID LAYOUT */
.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ULTRA PREMIUM GLASS-TILES */
.yt-card {
    background: var(--card-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.yt-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.1);
}

.thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #020617;
    overflow: hidden;
}
.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.yt-card:hover .yt-thumb {
    transform: scale(1.05);
}

/* PLAY OVERLAY BUTTON */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 55px;
    height: 55px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}
.yt-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 🔴 LIVE BADGE DESIGN */
.live-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}
.pulse-dot-live {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

/* CARD DETAILS */
.yt-card-body {
    padding: 20px;
}
.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-glass);
    padding-top: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.video-meta i {
    color: #a855f7;
}

/* PLACEHOLDER / BLANK DUMMY CARD */
.dummy-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, #0f172a, #1e293b);
}

/* --- PREMIUM COURSES SECTION --- */
.premium-courses-section {
    margin-top: 100px;
    margin-bottom: 50px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.course-card {
    background: var(--card-glass);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: #a855f7;
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.course-banner {
    position: relative;
    height: 200px;
    background: #0f172a;
}

.course-banner img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
}

.cat-tag {
    position: absolute; top: 15px; left: 15px;
    background: rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem; font-weight: 700; color: #d8b4fe;
}

.off-tag {
    position: absolute; top: 15px; right: 15px;
    background: #ef4444; color: #fff;
    padding: 4px 10px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 800;
}

.course-details { padding: 25px; }

.course-details h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }

.course-details p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }

.course-features-list {
    display: flex; gap: 15px; margin-bottom: 25px;
}

.course-features-list span {
    font-size: 0.75rem; color: #10b981; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
}

.course-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border-glass); padding-top: 20px;
}

.price-box { display: flex; flex-direction: column; }

.d-price { font-size: 1.5rem; font-weight: 800; color: #fff; }

.o-price { font-size: 0.85rem; text-decoration: line-through; color: var(--text-secondary); }

.enroll-btn {
    background: var(--primary-gradient);
    color: #fff; text-decoration: none;
    padding: 12px 22px; border-radius: 15px;
    font-size: 0.9rem; font-weight: 700;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
}

.dummy-course-img {
    width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;
    font-size: 3.5rem; color: rgba(255,255,255,0.05); background: linear-gradient(45deg, #1e293b, #0f172a);
}

/* --- ABOUT SECTION STYLES --- */
.about-section {
    padding: 80px 0;
    margin-top: 50px;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text-dynamic {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 20px;
    white-space: pre-wrap; /* Taaki admin panel ke line-breaks yahan dikhein */
}

.about-stats-mini {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
}

.stat-mini-item h3 {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-mini-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.about-visual {
    background: var(--card-glass);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
    text-align: center;
}

.visual-card i {
    font-size: 3.5rem;
    color: #3b82f6;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.visual-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.visual-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-stats-mini { justify-content: center; }
    .sub-title { justify-content: center !important; }
}

/* Header Box Setup */
.logo-box {
    display: flex;
    align-items: center; /* Vertical centering */
    gap: 15px; /* Logo aur Text ke beech gap */
}

/* Bada aur Clean Circle Logo */
.logo-circle {
    width: 55px; /* Size bada diya */
    height: 55px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0; /* Logo dabega nahi */
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text on Right Side */
.brand-name-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-name-text span {
    color: #3b82f6;
}

/* Blinking Green Dot Effect */
.live-status-pill {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #fff;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981; /* Green color */
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}


/* --- Floating Header Layout Fix --- */

.header-inner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    padding: 10px 25px;
    
    /* 👉 CHANGES HERE: Purane dono margins ko hamesha ke liye zero kiya */
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    /* Yahi wo magic lines hain jo Live Panel ko Right me bhenjengi */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%; /* Puri width lega strip ki */
    
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- PREMIUM GLOW BUBBLE HUB DESIGN --- */

.subject-hub-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}


/* =========================================================
   👉 PREMIUM KERANEXT STYLE FRAMING GRID (EQUAL CORNER GAPS)
   ========================================================= */

.app-container {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    
    /* Poore page par top, right, aur left se exact 24px ka equal gap lockdown */
    padding: 24px 24px 0 24px !important; 
    
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-header-strip {
    width: 100%;
    margin-top: 0 !important; 
    
    /* Header strip ke theek niche aur Form ke top border ke beech ka mathematical gap */
    margin-bottom: 24px !important; 
    box-sizing: border-box;
}

.hero-section {
    margin-top: 0 !important; /* Top space ab header strip ka bottom margin handle karega */
}

/* --- MOBILE RESPONSIVE TUNING --- */
@media (max-width: 768px) {
    .app-container {
        padding: 12px 12px 0 12px !important; /* Mobile par automatic gaps adjust ho jayenge */
    }
    .main-header-strip {
        margin-bottom: 15px !important;
    }
}

.hub-header {
    margin-bottom: 50px;
}
.hub-sub {
    color: #3b82f6;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}
.hub-title {
    font-size: 2.3rem;
    color: #fff;
    margin: 0;
}

/* Flex layout that wraps cleanly on mobile like a beautiful organic cluster */
.bubble-matrix-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Base Bubble Structure */
.glow-bubble {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bubble-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-align: center;
}

.bubble-inner i {
    font-size: 1.8rem;
    transition: 0.3s;
}

.bubble-inner span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* --- DYNAMIC TRANSITION KEYFRAMES (The Popup/Pulse Engine) --- */
@keyframes bubblePopup {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* Assigning independent offsets so bubbles popup one after another natively */
.b-poly { 
    animation: bubblePopup 4s ease-in-out infinite; 
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.b-poly i { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

.b-academic { 
    animation: bubblePopup 4.5s ease-in-out infinite 0.5s; 
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}
.b-academic i { color: #a855f7; text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); }

.b-boards { 
    animation: bubblePopup 3.8s ease-in-out infinite 1.2s; 
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}
.b-boards i { color: #ec4899; text-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }

.b-science { 
    animation: bubblePopup 5s ease-in-out infinite 0.2s; 
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}
.b-science i { color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }

.b-math { 
    animation: bubblePopup 4.2s ease-in-out infinite 0.8s; 
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}
.b-math i { color: #f59e0b; text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }

.b-test { 
    animation: bubblePopup 4.7s ease-in-out infinite 1.5s; 
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}
.b-test i { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }

/* --- PREMIUM INTERACTIVE HOVER STATE --- */
.glow-bubble:hover {
    transform: scale(1.15) !important;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}
/* Active color halos matching individual borders on hover */
.b-poly:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.4); }
.b-academic:hover { box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); }
.b-boards:hover { box-shadow: 0 0 30px rgba(236, 72, 153, 0.4); }
.b-science:hover { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
.b-math:hover { box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
.b-test:hover { box-shadow: 0 0 30px rgba(239, 68, 68, 0.4); }


/* --- RESPONSIVE SCALING ENGINE --- */
@media (max-width: 600px) {
    .glow-bubble {
        width: 110px;
        height: 110px;
    }
    .bubble-inner i {
        font-size: 1.4rem;
    }
    .bubble-inner span {
        font-size: 0.75rem;
    }
    .hub-title {
        font-size: 1.8rem;
    }
    .bubble-matrix-container {
        gap: 15px;
    }
}

/* --- PREMIUM HEADER GLOWING SOCIAL BUTTONS --- */

.header-actions-hub {
    display: flex;
    align-items: center;
}

/* Sleek Round Header Buttons matching the brand shape */
.head-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Brand Default Colors & Halos */
.head-social-btn.h-whatsapp { color: #25d366; border-color: rgba(37, 211, 102, 0.15); }
.head-social-btn.h-instagram { color: #e1306c; border-color: rgba(225, 48, 108, 0.15); }
.head-social-btn.h-linkedin { color: #0077b5; border-color: rgba(0, 119, 181, 0.15); }
.head-social-btn.h-youtube { color: #ff0000; border-color: rgba(255, 0, 0, 0.15); }

/* --- HOVER GLOW EFFECTS (Same premium physics as contact page) --- */
.head-social-btn:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

.head-social-btn.h-whatsapp:hover { 
    background: #25d366; 
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6); 
}
.head-social-btn.h-instagram:hover { 
    background: #e1306c; 
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.6); 
}
.head-social-btn.h-linkedin:hover { 
    background: #0077b5; 
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.6); 
}
.head-social-btn.h-youtube:hover { 
    background: #ff0000; 
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6); 
}

/* Mobile Responsive Optimization for Header Strip */
@media (max-width: 650px) {
    .head-social-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .header-actions-hub {
        gap: 8px !important;
    }
    .live-status-pill {
        display: none; /* Mobile par clean space ke liye hide krna best h */
    }
}


/* --- EXTRA PREMIUM FLOATING ACTION BUBBLES IN HEADER --- */

.head-action-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    color: #fff !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Brand Bases & Micro Halos */
.trigger-whatsapp {
    background: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
    animation: headerBubblePopup 3.5s ease-in-out infinite; /* Continuous popup float */
}

.trigger-call {
    background: #2563eb; /* Pro Clean Blue Theme tone */
    border: 1px solid rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
    animation: headerBubblePopup 3.5s ease-in-out infinite 0.6s; /* Offset delayed timeline */
}

/* --- THE ORGANIC POPUP/PULSE KEYFRAMES ENGINE --- */
@keyframes headerBubblePopup {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.12); filter: brightness(1.25); box-shadow: 0 0 20px currentcolor; }
    100% { transform: scale(1); filter: brightness(1); }
}

/* Hover Physics Overrides */
.trigger-whatsapp:hover {
    transform: scale(1.22) !important;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8) !important;
    z-index: 5;
}
.trigger-call:hover {
    transform: scale(1.22) !important;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8) !important;
    z-index: 5;
}

/* Responsive Handler */
@media (max-width: 650px) {
    .head-action-bubble {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* --- GLOBAL HEADER ISOLATION FRAMEWORK (KERANEXT CORNER FIX) --- */

.global-header-wrapper {
    width: 100%;
    /* Har page par browser ki top wall aur side walls se exact 24px ka perfect padding frame */
    padding: 24px 24px 0 24px !important; 
    box-sizing: border-box;
    display: block;
}

/* Mobile responsive compact auto-shifting */
@media (max-width: 768px) {
    .global-header-wrapper {
        padding: 12px 12px 0 12px !important;
    }
}


/* =========================================================
   👉 GLOBAL PREMIUM DARK THEME DROPDOWN SELECTOR FIX
   ========================================================= */

/* Sabhi select elements ka base dropdown native look smooth karne ke liye */
select {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.3s ease;
}

/* Form ya input line focus background */
select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) !important;
}

/* 👉 JAD SE KHATAM: Dropped options list wrapper targeting desktop browsers */
select option {
    background-color: #0b1329 !important; /* Premium Navy Dark color jo input box se match hoga */
    color: #ffffff !important;           /* Text color ab har browser pr crystal clear white dikhega */
    padding: 14px !important;
    font-size: 0.95rem !important;
}

/* Kuch modern browsers native hover states disabled rakhte hain, unke liye selected fallback styling */
select option:checked,
select option:hover {
    background: linear-gradient(90deg, #3b82f6, #2563eb) !important; /* Blue active strip indicator */
    color: #ffffff !important;
}