/* ── PREMIUM COLOR TOKENS ───────────────────────────────────────── */
:root {
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    --cn-bg-base:      #f9fafb;
    --cn-bg-alt:       #f3f4f6;
    --cn-ink:            #1c1a24;
    --cn-ink-soft:       #55515e;
    --cn-surface:        rgba(255, 255, 255, 0.88);
    --cn-surface-solid:  #ffffff;
    --cn-border:         rgba(28, 26, 36, 0.08);
    --cn-accent-1:       #f97316;
    --cn-accent-2:       #ec4899;
    --cn-accent-3:       #8b5cf6;
    --cn-gradient:       linear-gradient(135deg, var(--cn-accent-1), var(--cn-accent-2));
    --cn-gradient-3:     linear-gradient(135deg, var(--cn-accent-1), var(--cn-accent-2), var(--cn-accent-3));
    --cn-shadow-sm:      0 2px 10px rgba(28, 26, 36, 0.05);
    --cn-shadow-md:      0 12px 32px rgba(28, 26, 36, 0.08);
    --cn-shadow-lg:      0 24px 64px rgba(28, 26, 36, 0.12);
    --cn-shadow-accent:  0 14px 36px rgba(249, 115, 22, 0.18);
}

/* Screen-reader-only utility for accessible labels that shouldn't be visible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
   NOTE: `body` rules are intentionally still global (there is only
   one <body> per page, so this can't "leak" between components).
*/
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--cn-ink);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    background-color: #f9fafb;
    background-image: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/*
   FIX #1 — was: `img, svg, video, iframe { max-width: 100%; }`
   max-width: 100% on every image is harmless (it's a very common,
   safe global reset), so this one stays global. The dangerous rule
   was the *max-height* clamp below — that one is now scoped.
*/
img, svg, video, iframe { max-width: 100%; }

/* Gradient text utility */
.cn-num-grad {
    background: var(--cn-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Section-level surfaces */
#mainContent .w-80.bg-white.rounded-xl.shadow-sm,
#mainContent #courseWise, #mainContent #cityWise,
#mainContent .plan-modal-box, #mainContent #careerPopup,
#mainContent .testimonial-modal-content,
#mainContent .stat-card, #mainContent .testi-card-premium {
    background: var(--cn-surface) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cn-border) !important;
    box-shadow: var(--cn-shadow-md) !important;
}

#mainContent .mobile-slider a.block,
#mainContent .bg-white.rounded-2xl.shadow-sm {
    background: var(--cn-surface-solid) !important;
    border: 1px solid var(--cn-border);
}

#mainContent .hero-btn-primary,
#mainContent .hero-btn-offer,
#mainContent .plan-register-btn {
    box-shadow: var(--cn-shadow-accent) !important;
}

/*
   FIX #2 — was a bare `h1, h2, h3, .popup-item-title, .plan-name`
   selector. That reached into enquiry.php's modals (e.g. the
   "Important Notifications" <h3>) even though those elements
   already had their own Tailwind text-color utility, because it's
   fragile to rely on specificity alone. Scoped to #mainContent,
   since enquiry.php's modals render outside <main id="mainContent">.
*/
#mainContent h1,
#mainContent h2,
#mainContent h3,
#mainContent .popup-item-title,
#mainContent .plan-name { color: var(--cn-ink); }

#mainContent .text-gray-600,
#mainContent .text-gray-500 { color: var(--cn-ink-soft) !important; }

/* On-brand slider dots */
#mainContent .bg-blue-500 { background: var(--cn-gradient) !important; }
#mainContent .bg-gray-300 { background: #e4dfd6 !important; }

/* ── POPUP STYLES ────────────────────────────────────────────── */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 12, 0.55);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(6px);
    animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#overlay.show {
    display: block;
}

#careerPopup {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--cn-shadow-lg);
    width: 92%;
    max-width: 560px;
    max-height: 85vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

#careerPopup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.popup-header {
    background: var(--cn-gradient);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.popup-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    margin: 0;
}

.popup-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    background: #fafbfc;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-tab {
    flex: 1;
    min-width: 100px;
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    font-size: var(--text-sm);
    color: #94a3b8;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    min-height: 44px;
}

.popup-tab.active {
    color: #f97316;
    border-bottom-color: #f97316;
    background: #fff7ed;
}

.popup-tab i {
    margin-right: 8px;
    font-size: var(--text-sm);
}

.popup-body {
    padding: 8px 0;
    max-height: 340px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-body::-webkit-scrollbar {
    width: 5px;
}

.popup-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.popup-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
}

.popup-item:hover {
    background: #f8fafc;
}

.popup-item:active {
    background: #fff7ed;
    transform: scale(0.98);
}

.popup-item-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fef3c7;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 14px;
}

.popup-item-title {
    flex: 1;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.4;
}

.popup-item-arrow {
    color: #cbd5e1;
    font-size: var(--text-lg);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.popup-item:hover .popup-item-arrow {
    color: #f97316;
    transform: translateX(4px);
}

.popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #64748b;
}

.popup-loading i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #f97316;
}

.popup-loading p {
    font-size: var(--text-base);
    margin: 0;
}

.popup-empty {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.popup-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.popup-empty p {
    font-size: var(--text-base);
    margin: 0;
}

/* ── RESPONSIVE POPUP ────────────────────────────────────────── */
@media (max-width: 768px) {
    #careerPopup {
        width: 95%;
        max-width: 440px;
        max-height: 80vh;
        border-radius: 16px;
    }

    .popup-header {
        padding: 16px 20px;
    }

    .popup-header h3 {
        font-size: var(--text-lg);
    }

    .popup-header p {
        font-size: var(--text-xs);
    }

    .popup-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .popup-tab {
        font-size: var(--text-xs);
        padding: 12px 8px;
        min-width: 80px;
    }

    .popup-tab i {
        font-size: var(--text-xs);
        margin-right: 6px;
    }

    .popup-item {
        padding: 12px 16px;
        min-height: 48px;
    }

    .popup-item-number {
        width: 26px;
        height: 26px;
        font-size: var(--text-xs);
        margin-right: 12px;
    }

    .popup-item-title {
        font-size: var(--text-sm);
    }

    .popup-body {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    #careerPopup {
        width: 97%;
        max-width: 380px;
        max-height: 75vh;
        border-radius: 14px;
    }

    .popup-header {
        padding: 14px 16px;
    }

    .popup-header h3 {
        font-size: var(--text-base);
    }

    .popup-header p {
        font-size: 0.65rem;
    }

    .popup-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .popup-tab {
        font-size: 0.65rem;
        padding: 10px 6px;
        min-width: 65px;
    }

    .popup-tab i {
        font-size: 0.6rem;
        margin-right: 4px;
    }

    .popup-item {
        padding: 10px 12px;
        min-height: 44px;
    }

    .popup-item-number {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
        margin-right: 10px;
    }

    .popup-item-title {
        font-size: var(--text-sm);
    }

    .popup-body {
        max-height: 240px;
    }
}

@media (max-width: 340px) {
    #careerPopup, .plan-modal-box, .testimonial-modal-content {
        width: 94vw !important;
        max-width: 94vw !important;
    }
}

/* ── TESTIMONIAL MODAL ───────────────────────────────────────── */
#testimonialModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(20, 16, 12, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#testimonialModal.active {
    opacity: 1;
    visibility: visible;
}
.testimonial-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    box-shadow: var(--cn-shadow-lg);
}
#testimonialModal.active .testimonial-modal-content {
    transform: scale(1);
    opacity: 1;
}
.tm-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    border: none;
}
.tm-close-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}
.tm-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.tm-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.tm-body p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: #334155;
}
@media (max-width: 640px) {
    .tm-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    .tm-body {
        padding: 1.25rem;
    }
    .tm-body p {
        font-size: var(--text-sm);
    }
}

/* ── MARQUEE ──────────────────────────────────────────────────── */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: linear-gradient(to right, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 16px;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
}

.marquee-content:hover,
.marquee-content:focus-within {
    animation-play-state: paused;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── PARTNERS MARQUEE ────────────────────────────────────────── */
.partners-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.partners-marquee-content {
    display: flex;
    animation: partnersMarquee 60s linear infinite;
    width: max-content;
}
.partners-marquee-content:focus-within {
    animation-play-state: paused;
}
@keyframes partnersMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* ── HERO SECTION ────────────────────────────────────────────── */
.hero-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 9999px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #ea580c;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.hero-badge i {
    font-size: var(--text-sm);
}

.hero-title {
    font-size: clamp(1.5rem, 6vw, 3rem) !important;
    font-weight: 800;
    line-height: 1.15;
    color: var(--cn-ink);
    margin: 0;
    letter-spacing: -0.025em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title-accent {
    background: var(--cn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem) !important;
    line-height: 1.7;
    color: var(--cn-ink-soft);
    max-width: 100% !important;
    margin: 0;
}

.hero-description strong {
    color: var(--cn-ink);
    font-weight: 600;
}

@media (min-width: 1280px) {
    .hero-title { font-size: var(--text-5xl) !important; }
    .hero-description { font-size: var(--text-lg) !important; max-width: 480px !important; }
}

.hero-price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.hero-price-currency {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #f97316;
}

.hero-price-value {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #f97316;
    line-height: 1;
    background: var(--cn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-price-label {
    font-size: var(--text-base);
    color: #64748b;
    font-weight: 500;
}

.hero-price-note {
    font-size: var(--text-sm);
    color: #64748b;
    margin: 0;
    margin-top: -0.25rem;
}

/* ── HERO BUTTONS ────────────────────────────────────────────── */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.hero-btn i {
    font-size: var(--text-base);
}

.hero-btn-primary {
    background: var(--cn-gradient);
    color: white;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4) !important;
}

.hero-btn-secondary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.hero-btn-tertiary {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.hero-btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.hero-btn-medical {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.hero-btn-medical:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.hero-btn-outline {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-btn-outline:hover {
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.12);
}

.hero-btn-outline-medical {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-btn-outline-medical:hover {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.hero-btn-offer {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 0.875rem 1.75rem;
    font-size: var(--text-base);
    min-height: 52px;
}

.hero-btn-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4) !important;
}

.hero-btn:active {
    transform: scale(0.96);
}

/* ── HERO IMAGE ───────────────────────────────────────────────── */
.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.10) 0%, transparent 70%);
    filter: blur(50px);
    animation: heroGlowPulse 5s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-height: 400px !important;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.10));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover {
    transform: scale(1.02) rotate(-0.5deg);
}

/* ── FLOATING CARDS ──────────────────────────────────────────── */
.hero-float-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #475569;
    border: 1px solid rgba(241, 245, 249, 0.8);
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-float-card i {
    color: #f97316;
    font-size: var(--text-base);
}

.hero-float-card-1 {
    top: 5%;
    right: -5%;
    animation-delay: 0s;
}

.hero-float-card-2 {
    bottom: 10%;
    left: -5%;
    animation-delay: 1.5s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── SLIDER ARROWS ───────────────────────────────────────────── */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
}

.hero-slider-arrow:hover {
    background: var(--cn-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.hero-slider-arrow-prev { left: 20px; }
.hero-slider-arrow-next { right: 20px; }

/* ── DOTS ────────────────────────────────────────────────────── */
.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    border: 2px solid transparent;
    min-height: 0 !important;
    transform-origin: left center;
    padding: 0;
}

.hero-dot.active {
    background: var(--cn-gradient);
    transform: scaleX(3.2);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

.hero-dot:hover:not(.active) {
    background: #64748b;
    transform: scale(1.3);
}

/* ── CLICK FEEDBACK ──────────────────────────────────────────── */
.btn-click-feedback {
    animation: btnClickPop 0.3s ease-out;
}

@keyframes btnClickPop {
    0% { transform: scale(1); }
    30% { transform: scale(0.92); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.hero-slider-arrow.btn-click-feedback {
    animation: heroArrowClickPop 0.3s ease-out;
}
@keyframes heroArrowClickPop {
    0%   { transform: translateY(-50%) scale(1); }
    30%  { transform: translateY(-50%) scale(0.92); }
    60%  { transform: translateY(-50%) scale(1.04); }
    100% { transform: translateY(-50%) scale(1); }
}

#testimonialPrevBtn.btn-click-feedback,
#testimonialNextBtn.btn-click-feedback {
    animation: testimonialArrowClickPop 0.3s ease-out;
}
@keyframes testimonialArrowClickPop {
    0%   { transform: translateY(-50%) scale(1); }
    30%  { transform: translateY(-50%) scale(0.92); }
    60%  { transform: translateY(-50%) scale(1.04); }
    100% { transform: translateY(-50%) scale(1); }
}

.hero-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── TESTIMONIAL NAV BUTTONS ─────────────────────────────────── */
#testimonialPrevBtn,
#testimonialNextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
#testimonialPrevBtn:hover,
#testimonialNextBtn:hover {
    background: #f97316;
    border-color: #f97316;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}
#testimonialPrevBtn:hover i,
#testimonialNextBtn:hover i {
    color: white;
}
#testimonialPrevBtn:active,
#testimonialNextBtn:active {
    transform: translateY(-50%) scale(0.92);
}
#testimonialPrevBtn { left: 4px; }
#testimonialNextBtn { right: 4px; }
#testimonialPrevBtn i,
#testimonialNextBtn i { font-size: 1rem; color: #64748b; transition: color 0.3s ease; }

/* ── MOBILE SLIDER ───────────────────────────────────────────── */
.mobile-slider-container { position: relative; overflow: hidden; }
.mobile-slider { display: flex; transition: transform 0.5s ease-in-out; }
.mobile-slider > div { min-width: 100%; box-sizing: border-box; }

/* ── SLIDER ARROWS ───────────────────────────────────────────── */
.slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(20, 16, 12, 0.82);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}
.slider-arrow i { color: white; font-size: 1rem; }
.slider-arrow:hover { background: var(--cn-gradient); transform: translateY(-50%) scale(1.08); }
.slider-arrow:active { transform: translateY(-50%) scale(0.92); }

.slider-arrow-desktop {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20, 16, 12, 0.82);
    backdrop-filter: blur(4px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}
.slider-arrow-desktop i { font-size: 0.875rem; }
.slider-arrow-desktop:hover { background: var(--cn-gradient); transform: translateY(-50%) scale(1.08); }
.slider-arrow-desktop:active { transform: translateY(-50%) scale(0.92); }

/* ── VIDEO ───────────────────────────────────────────────────── */
.videos-carousel-container { position: relative; }
.video-container { position: relative; background: #000; border-radius: 12px; overflow: hidden; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-text-col {
        padding-right: 0;
        order: 2;
        align-items: center;
    }
    .hero-image-col {
        order: 1;
    }
    .hero-image-wrapper {
        max-width: 380px;
    }
    .hero-image {
        max-height: 300px !important;
    }
    .hero-float-card {
        display: none;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-slider-arrow {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .hero-slider-arrow-prev { left: 12px; }
    .hero-slider-arrow-next { right: 12px; }
    .hero-dots {
        bottom: 20px;
        padding: 6px 14px;
        gap: 8px;
    }
    .hero-btn {
        padding: 0.65rem 1.25rem;
        font-size: var(--text-sm);
        min-height: 44px;
    }
}

@media (max-width: 767px) {
    .hero-slide-inner {
        padding: 1.25rem 0.75rem 3.5rem;
    }
    .hero-content-grid {
        gap: 1rem;
    }
    .hero-text-col {
        gap: 0.75rem;
    }
    .hero-description {
        line-height: 1.6;
        padding: 0 0.25rem;
    }
    .hero-badge {
        font-size: var(--text-xs);
        padding: 0.3rem 0.7rem;
    }
    .hero-badge i {
        font-size: var(--text-xs);
    }
    .hero-image-wrapper {
        max-width: 100%;
        aspect-ratio: auto;
    }
    .hero-image {
        max-height: 200px !important;
        object-fit: cover;
        border-radius: 12px;
        width: 100%;
    }
    .hero-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        overflow-x: auto !important;
        padding: 0.25rem 0.05rem !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .hero-buttons::-webkit-scrollbar {
        display: none !important;
    }
    .hero-btn {
        flex: 0 0 auto !important;
        padding: 0.5rem 0.9rem !important;
        font-size: var(--text-sm) !important;
        border-radius: 8px !important;
        gap: 0.35rem !important;
        white-space: nowrap !important;
        min-height: 44px !important;
        min-width: auto !important;
        width: auto !important;
    }
    .hero-btn i {
        font-size: var(--text-sm) !important;
    }
    .hero-btn-offer {
        padding: 0.5rem 1rem !important;
        font-size: var(--text-sm) !important;
        min-height: 44px !important;
    }
    .hero-price-value {
        font-size: var(--text-2xl);
    }
    .hero-price-currency {
        font-size: var(--text-lg);
    }
    .hero-price-label {
        font-size: var(--text-sm);
    }
    .hero-price-note {
        font-size: var(--text-xs);
    }
    .hero-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.875rem;
    }
    .hero-slider-arrow-prev { left: 4px; }
    .hero-slider-arrow-next { right: 4px; }
    .hero-dots {
        bottom: 12px;
        padding: 4px 10px;
        gap: 6px;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    .hero-dot.active {
        transform: scaleX(2.75);
    }
    .marquee-content {
        animation: marquee 25s linear infinite;
    }
    .marquee-content a {
        margin: 0 0.5rem !important;
        padding: 0.35rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
    .partners-marquee-content {
        animation: partnersMarquee 25s linear infinite;
    }
    #testimonialPrevBtn, #testimonialNextBtn {
        width: 36px;
        height: 36px;
    }
    #testimonialPrevBtn i, #testimonialNextBtn i {
        font-size: 0.875rem;
    }
    #testimonialPrevBtn { left: 2px; }
    #testimonialNextBtn { right: 2px; }
}

@media (max-width: 480px) {
    .hero-image {
        max-height: 170px !important;
    }
    .hero-btn {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.75rem !important;
        min-height: 40px !important;
    }
    .hero-btn i {
        font-size: 0.75rem !important;
    }
    .hero-btn-offer {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.78rem !important;
        min-height: 42px !important;
    }
    .hero-slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .hero-slider-arrow-prev { left: 6px !important; }
    .hero-slider-arrow-next { right: 6px !important; }
    .hero-dots {
        padding: 4px 8px;
        gap: 5px;
    }
    .hero-dot {
        width: 7px;
        height: 7px;
    }
    .hero-dot.active {
        transform: scaleX(2.3);
    }
    .hero-price-value {
        font-size: var(--text-xl);
    }
    .hero-price-currency {
        font-size: var(--text-base);
    }
    .marquee-content a {
        margin: 0 0.35rem !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.65rem !important;
    }

    /*
       FIX #3 — was a bare, unscoped list:
         button, a.hero-btn, .popup-tab, .plan-tab-btn,
         #testimonialPrevBtn, #testimonialNextBtn { min-height: 40px; }
       The bare `button` selector hit EVERY <button> on the page at
       <=480px, including enquiry.php's submit button, its close
       button, and the notification popup's close button — all of
       which live outside <main id="mainContent">. Scoped to
       #mainContent so it only affects this page's own components.
    */
    #mainContent button,
    #mainContent a.hero-btn,
    #mainContent .popup-tab,
    #mainContent .plan-tab-btn,
    #testimonialPrevBtn, #testimonialNextBtn {
        min-height: 40px;
    }
}

@media (max-width: 380px) {
    .hero-image {
        max-height: 140px !important;
    }
    .hero-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.68rem !important;
        min-height: 38px !important;
        gap: 0.2rem !important;
    }
    .hero-btn i {
        font-size: 0.68rem !important;
    }
    .hero-btn-offer {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.72rem !important;
        min-height: 40px !important;
    }
    .hero-slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .hero-dot {
        width: 6px;
        height: 6px;
    }
    .hero-dot.active {
        transform: scaleX(2.3);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-slide-inner {
        padding: 0.5rem 1rem 2.5rem;
    }
    .hero-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .hero-text-col {
        order: 1;
        align-items: flex-start;
        text-align: left;
        gap: 0.4rem;
    }
    .hero-image-col {
        order: 2;
    }
    .hero-description {
        font-size: var(--text-sm) !important;
    }
    .hero-image-wrapper {
        max-width: 180px;
    }
    .hero-image {
        max-height: 130px !important;
        object-fit: contain;
    }
    .hero-buttons {
        flex-wrap: nowrap !important;
        gap: 0.3rem;
        justify-content: flex-start;
    }
    .hero-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.65rem !important;
        min-height: 34px !important;
    }
    .hero-slider-arrow {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
    .hero-dots {
        bottom: 8px;
        padding: 3px 8px;
        gap: 4px;
    }
    .hero-dot {
        width: 6px;
        height: 6px;
    }
    .hero-dot.active {
        transform: scaleX(2.3);
    }
}

@media (max-width: 900px) and (max-height: 700px) {
    .hero-slider-container { min-height: 380px !important; }
    .hero-image { max-height: 160px !important; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-slider-track {
        transition: none !important;
    }
    .hero-image-glow, .hero-float-card, .hero-badge-offer {
        animation: none !important;
    }
    .hero-btn:hover, .hero-slider-arrow:hover {
        transform: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-content, .partners-marquee-content {
        animation: none !important;
    }
}

/* ── TOUCH DEVICES ───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .hero-btn:hover {
        transform: none !important;
    }
    .hero-slider-arrow:hover {
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.95);
        color: #475569;
        border-color: rgba(226, 232, 240, 0.8);
    }
}

/* ── VIDEO RESPONSIVE ────────────────────────────────────────── */
.videos-carousel-container .video-container,
.videos-carousel-container #player {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
}
@media (min-width: 1024px) {
    .video-container { height: 480px; }
    .videos-carousel-container #player { height: 480px !important; }
}
@media (max-width: 767px) {
    .video-container { height: 280px !important; }
    .videos-carousel-container #player { height: auto !important; min-height: 220px; }
    .videos-carousel-container iframe { height: 220px !important; }
}
@media (max-width: 480px) {
    .video-container { height: 220px !important; }
    .videos-carousel-container iframe { height: 180px !important; }
    .videos-carousel-container button.absolute {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }
}

/*
   FIX #4 — was a bare `img { max-height: 250px; object-fit: contain; }`.
   This is the rule most likely to have squashed images inside
   enquiry.php's notification popup (which don't share index.php's
   .hero-image / .partner-logo-item classes). Scoped to #mainContent
   so enquiry.php's own images are governed only by its own
   .notif-single-image / .notif-marquee-img classes.
*/
#mainContent img { max-height: 250px; object-fit: contain; }
.res button { width: 100%; text-align: center; }
.whitespace-nowrap { white-space: nowrap; }
.gradient-overlay-left, .gradient-overlay-right {
    position: absolute; top: 0; bottom: 0; width: 40px; z-index: 10; pointer-events: none;
}
.gradient-overlay-left  { left: 0;  background: linear-gradient(to right, var(--cn-bg-base), transparent); }
.gradient-overlay-right { right: 0; background: linear-gradient(to left,  var(--cn-bg-base), transparent); }
.scrollbar-hide::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar { display: none; }
.scrollbar-hide, .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── TESTIMONIAL ──────────────────────────────────────────────── */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testimonial-card { max-height: 420px; }
.read-more-btn {
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all 0.2s ease;
}
.read-more-btn i {
    transition: transform 0.2s ease;
}
.read-more-btn:hover i {
    transform: translateX(4px);
}
.testimonial-scroll-area::-webkit-scrollbar { width: 4px; }
.testimonial-scroll-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}
.testimonial-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #f97316;
}
.testimonial-dot:hover {
    background: #9ca3af;
}

/* ── PLAN GATE MODAL ─────────────────────────────────────────── */
#planGateModal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(20, 16, 12, 0.62);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#planGateModal.active {
    opacity: 1;
    visibility: visible;
}
.plan-modal-box {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    box-shadow: var(--cn-shadow-lg);
}
#planGateModal.active .plan-modal-box {
    transform: scale(1);
    opacity: 1;
}
.plan-modal-box::-webkit-scrollbar { width: 4px; }
.plan-modal-box::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.plan-modal-header {
    background: var(--cn-gradient);
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.plan-modal-close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.plan-modal-close:hover { background: rgba(255,255,255,0.35); }

.plan-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f1f5f9;
    padding: 0 1.5rem;
    margin-top: 1.25rem;
    overflow-x: auto;
}
.plan-tab-btn {
    padding: 0.6rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border-top: none; border-left: none; border-right: none;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    min-height: 44px;
}
.plan-tab-btn.active {
    color: #f97316;
    border-bottom-color: #f97316;
}
.plan-tab-btn[data-stream="Aptitude"].active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}
.plan-tab-content { display: none; padding: 1.25rem 1.5rem 1.5rem; }
.plan-tab-content.active { display: block; }

.plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.875rem;
    transition: all 0.25s ease;
    background: #fff;
}
.plan-card:last-child { margin-bottom: 0; }
.plan-card:hover {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 8px 24px rgba(249,115,22,0.08);
    transform: translateY(-2px);
}
#planTab-Aptitude .plan-card:hover {
    border-color: #7c3aed;
    background: #faf5ff;
    box-shadow: 0 8px 24px rgba(124,58,237,0.08);
}
.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.plan-name { font-size: var(--text-base); font-weight: 800; }
.plan-price { font-size: var(--text-base); font-weight: 800; color: #f97316; }
#planTab-Aptitude .plan-price { color: #7c3aed; }

.plan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    margin-bottom: 0.75rem;
    list-style: none;
    padding: 0;
}
.plan-features li {
    font-size: var(--text-sm);
    color: #475569;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}
.plan-features li::before {
    content: '✓';
    position: absolute; left: 0;
    color: #10b981; font-weight: bold;
}
#planTab-Aptitude .plan-features li strong {
    color: #0f172a;
}
.plan-register-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--cn-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    min-height: 44px;
}
#planTab-Aptitude .plan-register-btn {
    background: linear-gradient(to right, #7c3aed, #a855f7);
}
.plan-register-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.25);
}
#planTab-Aptitude .plan-register-btn:hover {
    box-shadow: 0 8px 24px rgba(124,58,237,0.25);
}
.plan-upgrade-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: var(--text-sm);
    color: #c2410c;
    text-align: center;
    line-height: 1.5;
}
#planTab-Aptitude .plan-upgrade-note {
    background: #faf5ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

@media (max-width: 480px) {
    .plan-modal-header {
        padding: 1.25rem 1.25rem;
    }
    .plan-modal-header h3 {
        font-size: var(--text-lg);
    }
    .plan-tab-btn {
        font-size: var(--text-xs);
        padding: 0.5rem 0.75rem;
    }
    .plan-card {
        padding: 0.75rem 1rem;
    }
    .plan-name { font-size: var(--text-sm); }
    .plan-price { font-size: var(--text-sm); }
    .plan-features li {
        font-size: var(--text-xs);
        padding-left: 0.875rem;
    }
    .plan-register-btn {
        font-size: var(--text-xs);
        padding: 0.5rem 0.75rem;
    }
    .plan-upgrade-note {
        font-size: var(--text-xs);
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 360px) {
    .plan-modal-header h3 { font-size: 0.9rem !important; }
    .plan-features li { font-size: 0.65rem !important; }
}

/* ── SLIDER ARROWS — TOUCH TARGETS ──────────────────────────── */
@media (max-width: 640px) {
    .slider-arrow, .slider-arrow-desktop {
        width: 36px !important;
        height: 36px !important;
    }
    .slider-arrow i, .slider-arrow-desktop i {
        font-size: 0.85rem !important;
    }
}

/* ===================================================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS — ALL DEVICES
   =================================================================== */

video, iframe { max-width: 100%; }

.max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

section { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }

.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-slider-container { min-height: 540px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-slider-container { min-height: 480px; }
}
@media (max-width: 767px) and (min-width: 481px) {
    .hero-slider-container { min-height: 440px; }
}
@media (max-width: 480px) {
    .hero-slider-container { min-height: 420px; }
}
@media (max-width: 380px) {
    .hero-slider-container { min-height: 400px; }
}

/* ── EXPLORE SECTIONS — DESKTOP SLIDERS GRID ────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .hidden.md\:flex.gap-6.justify-center.flex-wrap {
        gap: 1rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .hidden.md\:flex.gap-6.justify-center.flex-wrap > div {
        width: calc(50% - 0.5rem) !important;
        min-height: 480px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hidden.md\:flex.gap-6.justify-center.flex-wrap > div {
        width: calc(33.333% - 1rem) !important;
    }
}

@media (min-width: 1280px) {
    .hidden.md\:flex.gap-6.justify-center.flex-wrap > div {
        width: 320px !important;
        max-width: 340px;
    }
}

/* ── MOBILE SLIDER CARD — BETTER FIT ────────────────────────── */
@media (max-width: 640px) {
   
    .mobile-slider a.block {
        margin: 0 0.5rem !important;
        padding: 1.25rem !important;
        height: 360px !important;
    }
    .mobile-slider a.block img {
        height: 8rem !important;
    }
    .mobile-slider a.block p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 380px) {
    .mobile-slider a.block {
        padding: 1rem !important;
        height: 320px !important;
    }
    .mobile-slider a.block img {
        height: 6.5rem !important;
    }
}

@media (max-width: 640px) {
    .mobile-prev, .mobile-next {
        width: 38px !important;
        height: 38px !important;
    }
}

/* ── TOP TO EXPLORE — BUTTONS & SELECTORS ───────────────────── */
@media (max-width: 640px) {
    .flex.justify-center.items-center.flex-wrap.gap-3.sm\:gap-4 {
        gap: 0.5rem !important;
    }
    .flex.justify-center.items-center.flex-wrap.gap-3.sm\:gap-4 > button {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.6rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 640px) {
    #courseWise .grid.md\:grid-cols-2,
    #cityWise .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    #courseWise, #cityWise {
        padding: 1.25rem !important;
    }
    #courseWise select, #cityWise select {
        padding: 0.7rem !important;
        font-size: 0.85rem !important;
    }
    #courseWise button, #cityWise button {
        width: 100%;
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ── OUR SERVICES — RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
    .container.mx-auto.px-4.py-12 > .relative.flex.flex-col {
        padding: 1.25rem !important;
        gap: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    .container.mx-auto.px-4.py-12 > .relative.flex.flex-col h3.absolute {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.6rem !important;
    }
    .container.mx-auto.px-4.py-12 > .relative.flex.flex-col img {
        max-height: 200px;
    }
}

/* ── SUCCESS STATS — BETTER MOBILE GRID ─────────────────────── */
@media (max-width: 480px) {
    .max-w-6xl.mx-auto .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .max-w-6xl.mx-auto .text-center.group .text-5xl {
        font-size: 2.25rem !important;
    }
}

/* ── TESTIMONIALS — CAROUSEL CARD WIDTHS ────────────────────── */
@media (max-width: 640px) {
    #carouselTrack > div {
        width: 100% !important;
    }
    #carouselTrack > div .bg-white.rounded-2xl {
        padding: 1.25rem !important;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    #carouselTrack > div {
        width: 320px !important;
    }
}

@media (max-width: 640px) {
    #testimonialPrevBtn, #testimonialNextBtn {
        width: 36px !important;
        height: 36px !important;
    }
    .overflow-hidden.px-8.md\:px-12 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* ── TESTIMONIAL MODAL — BETTER SMALL SCREEN ────────────────── */
@media (max-width: 480px) {
    .testimonial-modal-content {
        border-radius: 16px !important;
        max-height: 90vh !important;
    }
    .tm-header {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }
    .tm-header img {
        width: 68px !important;
        height: 68px !important;
    }
    .tm-header h3 {
        font-size: 1rem !important;
    }
    .tm-body {
        padding: 1rem !important;
    }
    .tm-body p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
}

/* ── PARTNERS MARQUEE — LOGO SIZING ─────────────────────────── */
@media (max-width: 640px) {
    .partners-marquee-content .partner-logo-item {
        width: 110px !important;
        height: 110px !important;
        padding: 0.5rem !important;
    }
}

@media (max-width: 380px) {
    .partners-marquee-content .partner-logo-item {
        width: 90px !important;
        height: 90px !important;
    }
}

/* ── CAREER POPUP — EXTRA SMALL SCREENS ─────────────────────── */
@media (max-width: 380px) {
    #careerPopup {
        width: 96% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
    }
    .popup-header {
        padding: 12px 14px !important;
    }
    .popup-header h3 {
        font-size: 0.9rem !important;
    }
    .popup-header p {
        font-size: 0.6rem !important;
    }
    .popup-close {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.8rem !important;
    }
    .popup-tab {
        font-size: 0.6rem !important;
        padding: 8px 4px !important;
        min-width: 55px !important;
    }
    .popup-item {
        padding: 8px 10px !important;
        min-height: 40px !important;
    }
    .popup-item-number {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.55rem !important;
        margin-right: 8px !important;
    }
    .popup-item-title {
        font-size: 0.75rem !important;
    }
    .popup-body {
        max-height: 220px !important;
    }
}

/* ── GENERIC TYPOGRAPHY — FLUID SCALING ─────────────────────── */
#mainContent h1 { font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.2; }
#mainContent h2 { font-size: clamp(1.25rem, 3vw, 2.25rem); line-height: 1.3; }
#mainContent h3 { font-size: clamp(1.125rem, 2.5vw, 1.875rem); line-height: 1.35; }

.text-3xl.md\:text-4xl, .text-3xl.sm\:text-4xl.md\:text-5xl {
    font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
    line-height: 1.25 !important;
    word-wrap: break-word;
}

/* ── TABLET OPTIMIZATIONS (768-1023) ────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    section.py-12, .container.mx-auto.py-12, .py-8.md\:py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .text-5xl.md\:text-6xl.lg\:text-7xl {
        font-size: 3.5rem !important;
    }
}

/* ── DESKTOP OPTIMIZATIONS (1280+) ──────────────────────────── */
@media (min-width: 1280px) {
    .max-w-7xl { max-width: 1280px; }
    .hero-slide-inner { max-width: 1280px; }
}

/* ── PRINT-FRIENDLY ──────────────────────────────────────────── */
@media print {
    .hero-wrapper, .marquee-container, .partners-marquee-container,
    .hero-slider-arrow, .hero-dots, .mobile-slider-container,
    .slider-arrow, .slider-arrow-desktop, #testimonialPrevBtn, #testimonialNextBtn,
    #careerPopup, #overlay, #planGateModal, #testimonialModal,
    #hoverModal, #mobileModal {
        display: none !important;
    }
    body { background: white !important; color: black !important; }
    section { padding: 1rem 0 !important; }
}

/* ── FOCUS VISIBLE (ACCESSIBILITY) ──────────────────────────── */
/* Kept global on purpose — a consistent focus ring across the whole
   site (including enquiry.php's inputs/buttons) is desired behavior,
   not a leak. If you want enquiry.php to keep its own focus style,
   scope this to #mainContent *:focus-visible instead. */
*:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── SAFE AREA — NOTCH DEVICES ──────────────────────────────── */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .hero-slide-inner {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ── PARTNER LOGO IMAGE FIX ─────────────────────────────────── */
.partner-logo-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.hero-image, .partner-logo-item img, .mobile-slider img, .testimonial-modal-content img {
    max-height: none !important;
}

/* ── SERVICES IMAGE MAX-HEIGHT FIX ──────────────────────────── */
.container.mx-auto.px-4.py-12 img {
    max-height: 280px;
}
@media (max-width: 640px) {
    .container.mx-auto.px-4.py-12 img {
        max-height: 200px !important;
    }
}

/* ── ACCESSIBILITY: SKIP TO CONTENT ─────────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f97316;
    color: white;
    padding: 8px 16px;
    z-index: 99999;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ── EXPLORE SECTION HEADER ─────────────────────────────────── */
@media (max-width: 640px) {
    .max-w-7xl.mx-auto.px-4.py-12 .text-center.mb-10 {
        margin-bottom: 1.5rem !important;
    }
    .max-w-7xl.mx-auto.px-4.py-12 .text-center h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .max-w-7xl.mx-auto.px-4.py-12 .text-center h3 {
        font-size: 0.95rem !important;
    }
    .max-w-7xl.mx-auto.px-4.py-12 .text-center p {
        font-size: 0.8rem !important;
    }
}

/* ── FOOTER PADDING (when included) ─────────────────────────── */
@media (max-width: 640px) {
    footer { padding: 2rem 1rem !important; }
}

/* ── SCROLLBAR STYLING — DESKTOP ONLY ───────────────────────── */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    ::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 5px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
    background: rgba(249, 115, 22, 0.25);
    color: #1e293b;
}

/* ── STUDENT TESTIMONIALS - PREMIUM RESPONSIVE ────────── */
@keyframes testiScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes testiFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testi-scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: testiScroll 90s linear infinite;
    will-change: transform;
}

.testi-scroll-track:hover {
    animation-play-state: paused;
}

.testi-card-premium {
    width: 360px;
    min-width: 300px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}

.testi-card-premium h4        { font-size: 1.05rem; font-weight: 700; color: #111827; }
.testi-card-premium .text-sm  { font-size: 0.85rem; color: #f97316; }
.testi-card-premium p.text-gray-600 { font-size: 0.9rem; line-height: 1.65; color: #4b5563; }
.testi-read-btn                { font-size: 0.8rem; }
.testi-star                    { font-size: 0.8rem; }
.testi-quote-mark              { font-size: 4.5rem; }
.testi-avatar-ring             { width: 56px; height: 56px; }

.testi-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
}

.testi-card-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(249,115,22,0.12), 0 0 0 1px rgba(249,115,22,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.testi-quote-mark {
    position: absolute;
    top: 16px; right: 24px;
    color: rgba(249,115,22,0.06);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.testi-avatar-ring {
    position: relative;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    flex-shrink: 0;
}

.testi-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    display: block;
}

.testi-star.filled { color: #fbbf24; }
.testi-star.empty { color: #e5e7eb; }

.testi-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-weight: 600;
    color: #ea580c;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    min-height: 36px;
}

.testi-read-btn:hover {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(249,115,22,0.25);
}

.testi-read-btn:hover svg {
    transform: translateX(3px);
}

.testi-read-btn svg {
    transition: transform 0.3s ease;
}

.testi-fade-mask {
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    overflow: hidden;
}

.testi-avatar-ring img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .testi-card-premium {
        width: 320px;
        min-width: 300px;
        padding: 22px;
        border-radius: 20px;
    }
    .testi-scroll-track {
        gap: 18px;
        animation-duration: 100s;
    }
}

@media (max-width: 480px) {
    .testi-card-premium {
        width: 300px;
        min-width: 280px;
        padding: 20px;
        border-radius: 18px;
    }
    .testi-quote-mark {
        font-size: 3.5rem;
        top: 12px;
        right: 16px;
    }
    .testi-scroll-track {
        gap: 14px;
        animation-duration: 110s;
    }
    .testi-avatar-ring {
        width: 50px;
        height: 50px;
    }
    .testi-card-premium h4 {
        font-size: 0.95rem;
    }
    .testi-card-premium .text-sm {
        font-size: 0.78rem;
    }
    .testi-card-premium p.text-gray-600 {
        font-size: 0.85rem;
        line-height: 1.55;
    }
    .testi-read-btn {
        padding: 6px 14px;
        font-size: 0.72rem;
        min-height: 36px;
    }
}

@media (max-width: 380px) {
    .testi-card-premium {
        width: 270px;
        min-width: 250px;
        padding: 18px;
        border-radius: 16px;
    }
    .testi-quote-mark {
        font-size: 3rem;
        top: 10px;
        right: 14px;
    }
    .testi-scroll-track {
        gap: 12px;
        animation-duration: 120s;
    }
    .testi-avatar-ring {
        width: 44px;
        height: 44px;
    }
    .testi-card-premium h4 {
        font-size: 0.88rem;
    }
    .testi-card-premium .text-sm {
        font-size: 0.72rem;
    }
    .testi-card-premium p.text-gray-600 {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    .testi-read-btn {
        padding: 5px 12px;
        font-size: 0.68rem;
        min-height: 34px;
    }
    .testi-star {
        font-size: 0.72rem;
    }
}

@media (max-width: 360px) {
    .testi-fade-mask {
        mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    }
}

@keyframes statFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(249,115,22,0.1), 0 0 0 1px rgba(249,115,22,0.06);
}
.stat-card:hover .stat-border {
    animation: borderSpin 3s linear infinite;
}
@keyframes borderSpin {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ── NOTICE CAROUSEL ─────────────────────────────────────────── */
.notice-carousel-wrapper {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(28, 26, 36, 0.08);
}

.notice-carousel-header {
    background: linear-gradient(135deg, #f97316, #ec4899);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-carousel-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-pulse-dot {
    position: relative;
    display: inline-flex;
    width: 9px;
    height: 9px;
}

.notice-pulse-dot .dot {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #34d399;
    border-radius: 50%;
}

.notice-pulse-dot .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #34d399;
    border-radius: 50%;
    animation: noticePulseRing 2s ease-out infinite;
}

@keyframes noticePulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.notice-carousel-header h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.notice-live-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    padding: 3px 12px;
    border-radius: 9999px;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.notice-progress-bar {
    height: 3px;
    background: #fff1e6;
}

.notice-progress-bar .fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    width: 0%;
    transition: width 0.1s linear;
}

.notice-progress-bar.paused .fill {
    transition: none;
}

.notice-carousel-body {
    position: relative;
    padding: 20px 0 16px;
    background: #fafbfc;
}

.notice-carousel-viewport {
    overflow: hidden;
    padding: 0 56px;
}

.notice-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.notice-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(28, 26, 36, 0.08);
    box-shadow: 0 2px 10px rgba(28, 26, 36, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f97316;
    transition: all 0.2s ease;
}

.notice-carousel-arrow:hover {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.18);
}

.notice-carousel-arrow:active {
    transform: translateY(-50%) scale(0.93);
}

.notice-carousel-arrow.left { left: 10px; }
.notice-carousel-arrow.right { right: 10px; }
.notice-carousel-arrow svg { width: 16px; height: 16px; }

/* ── Notice Card ── */
.notice-card {
    flex-shrink: 0;
    width: 300px;
    min-height: 180px;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(28, 26, 36, 0.08);

    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(28, 26, 36, 0.08);
    border-color: #fdba74;
}



.notice-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.notice-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.notice-course-badge {
    background: #fff7ed;
    color: #ea580c;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.notice-date-badge {
    color: #55515e;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

.notice-date-badge::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2355515e' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.notice-new-badge {
    background: #ef4444;
    color: white;
    padding: 1px 8px;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    white-space: nowrap;
    animation: noticeBlink 1.5s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes noticeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.notice-card-subject {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1c1a24;
    line-height: 1.6;
    word-break: break-word;
    flex: 1;
    display: block;
    overflow: visible;
}

.notice-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.notice-card-footer .view-link {
    color: #f97316;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.notice-card:hover .view-link { gap: 8px; }

.notice-card-footer .view-link svg {
    width: 12px;
    height: 12px;
}

.notice-card-index {
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 500;
}

/* ── Carousel Dots ── */
.notice-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 56px;
    margin-top: 14px;
}

.notice-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
    padding: 0;
    min-height: 0 !important;
    transform-origin: left center;
}

.notice-carousel-dot.active {
    background: linear-gradient(135deg, #f97316, #ec4899);
    transform: scaleX(3.1);
    border-radius: 6px;
}

.notice-carousel-dot:hover:not(.active) {
    background: #fdba74;
    transform: scale(1.2);
}

/* ── Notice Footer ── */
.notice-carousel-footer {
    background: #fafbfc;
    padding: 12px 24px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.notice-carousel-footer a {
    color: #f97316;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.notice-carousel-footer a:hover { color: #1c1a24; }

.notice-carousel-footer a::after {
    content: "→";
    transition: transform 0.2s ease;
}

.notice-carousel-footer a:hover::after {
    transform: translateX(4px);
}

/* ── Loading / Empty ── */
.notice-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 36px 20px;
    color: #64748b;
    font-size: 0.875rem;
    gap: 10px;
}

.notice-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: noticeSpin 0.8s linear infinite;
}

@keyframes noticeSpin { to { transform: rotate(360deg); } }

.notice-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    color: #64748b;
    font-size: 0.875rem;
    gap: 6px;
}

/* ── Notice Carousel Responsive ── */

/* Tablet and small desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .notice-card {
        width: 280px;
        min-height: 200px;
    }
    .notice-carousel-viewport {
        padding: 0 48px;
    }
    .notice-carousel-dots {
        padding: 0 48px;
    }
    .notice-carousel-arrow {
        width: 34px;
        height: 34px;
    }
    .notice-carousel-arrow svg {
        width: 14px;
        height: 14px;
    }
}

/* Mobile (up to 768px) - Shows 1 card at a time with full text */
@media (max-width: 768px) {
    .notice-carousel-viewport {
        padding: 0 30px !important;
    }
    
    .notice-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 260px !important;
    }
    
    .notice-carousel-track {
        gap: 12px !important;
    }
    
    .notice-carousel-arrow {
        width: 32px !important;
        height: 32px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .notice-carousel-arrow.left {
        left: 4px !important;
    }
    
    .notice-carousel-arrow.right {
        right: 4px !important;
    }
    
    .notice-carousel-arrow svg {
        width: 13px !important;
        height: 13px !important;
    }
    
    .notice-card-body {
        padding: 14px 16px 16px !important;
        min-height: 200px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .notice-card-subject {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        flex: 1 !important;
        margin: 6px 0 !important;
        display: block !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
    
    .notice-card-tags {
        margin-bottom: 4px !important;
    }
    
    .notice-carousel-dots {
        padding: 0 30px !important;
        gap: 5px !important;
        margin-top: 12px !important;
    }
    
    .notice-carousel-dot {
        width: 7px !important;
        height: 7px !important;
    }
    
    .notice-carousel-dot.active {
        transform: scaleX(2.85) !important;
    }
    
    .notice-carousel-header {
        padding: 12px 16px !important;
    }
    
    .notice-carousel-header h3 {
        font-size: 0.85rem !important;
    }
    
    .notice-live-badge {
        font-size: 0.55rem !important;
        padding: 2px 10px !important;
    }
    
    .notice-carousel-footer {
        padding: 10px 16px !important;
    }
    
    .notice-carousel-footer a {
        font-size: 0.75rem !important;
    }
    
    .notice-course-badge {
        font-size: 0.6rem !important;
        padding: 2px 10px !important;
    }
    
    .notice-date-badge {
        font-size: 0.6rem !important;
    }
    
    .notice-new-badge {
        font-size: 0.55rem !important;
        padding: 1px 8px !important;
    }
    
    .notice-card-footer .view-link {
        font-size: 0.65rem !important;
    }
    
    .notice-card-index {
        font-size: 0.6rem !important;
    }
    
    .notice-carousel-body {
        padding: 14px 0 12px !important;
    }
    
    .notice-card-top-bar {
        height: 5px !important;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .notice-carousel-viewport {
        padding: 0 24px !important;
    }
    
    .notice-card {
        min-height: 280px !important;
    }
    
    .notice-card-body {
        padding: 16px 14px 14px !important;
        min-height: 220px !important;
    }
    
    .notice-card-subject {
        font-size: 0.92rem !important;
        line-height: 1.7 !important;
        display: block !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
    
    .notice-carousel-arrow {
        width: 28px !important;
        height: 28px !important;
    }
    
    .notice-carousel-arrow.left {
        left: 2px !important;
    }
    
    .notice-carousel-arrow.right {
        right: 2px !important;
    }
    
    .notice-carousel-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .notice-carousel-header h3 {
        font-size: 0.75rem !important;
    }
    
    .notice-carousel-dots {
        padding: 0 24px !important;
        gap: 4px !important;
        margin-top: 10px !important;
    }
    
    .notice-carousel-dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .notice-carousel-dot.active {
        transform: scaleX(2.6) !important;
    }
    
    .notice-pulse-dot .dot,
    .notice-pulse-dot .pulse {
        width: 7px !important;
        height: 7px !important;
    }
    
    .notice-course-badge {
        font-size: 0.62rem !important;
        padding: 2px 10px !important;
    }
    
    .notice-date-badge {
        font-size: 0.62rem !important;
    }
    
    .notice-card-footer .view-link {
        font-size: 0.68rem !important;
    }
}

/* Extra Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .notice-carousel-viewport {
        padding: 0 18px !important;
    }
    
    .notice-card {
        min-height: 300px !important;
    }
    
    .notice-card-body {
        padding: 14px 12px 12px !important;
        min-height: 240px !important;
    }
    
    .notice-card-subject {
        font-size: 0.88rem !important;
        line-height: 1.65 !important;
        display: block !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
    
    .notice-carousel-arrow {
        width: 24px !important;
        height: 24px !important;
    }
    
    .notice-carousel-arrow.left {
        left: 1px !important;
    }
    
    .notice-carousel-arrow.right {
        right: 1px !important;
    }
    
    .notice-carousel-arrow svg {
        width: 10px !important;
        height: 10px !important;
    }
    
    .notice-carousel-header h3 {
        font-size: 0.65rem !important;
    }
    
    .notice-carousel-dots {
        padding: 0 18px !important;
        gap: 3px !important;
        margin-top: 8px !important;
    }
    
    .notice-carousel-dot {
        width: 5px !important;
        height: 5px !important;
    }
    
    .notice-carousel-dot.active {
        transform: scaleX(2.6) !important;
    }
    
    .notice-pulse-dot .dot,
    .notice-pulse-dot .pulse {
        width: 6px !important;
        height: 6px !important;
    }
    
    .notice-course-badge {
        font-size: 0.58rem !important;
        padding: 1px 8px !important;
    }
    
    .notice-date-badge {
        font-size: 0.58rem !important;
    }
    
    .notice-new-badge {
        font-size: 0.5rem !important;
        padding: 0px 6px !important;
    }
    
    .notice-card-footer .view-link {
        font-size: 0.62rem !important;
    }
    
    .notice-card-index {
        font-size: 0.55rem !important;
    }
}

/* Ensure cards have proper flex layout */
.notice-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

.notice-card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.notice-card-subject {
    flex: 1 !important;
    word-break: break-word !important;
}

.notice-card-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}