/* ============================================
   Suryoday Group of College — Refined Palette
   Eye-friendly: muted tones, warm not harsh
   ============================================ */

:root {
    --primary:   #C4581C;   /* muted burnt-orange */
    --secondary: #E09830;   /* warm amber-gold    */
    --dark:      #7A3220;   /* deep warm brown    */
    --maroon:    #6B2B2B;   /* softer maroon      */
    --cream:     #FDF6EF;   /* warm off-white     */
    --muted:     #9B5E45;   /* mid-tone accent    */
    --text-body: #3D2B1F;   /* warm dark for text */
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    overscroll-behavior-x: none; /* prevent horizontal bounce/shift */
    color: var(--text-body);
}

/* Prevent 3D carousel from causing horizontal scroll on mobile */
#sStage {
    touch-action: pan-y;
}

/* Prevent horizontal overflow from non-hero sections */
section:not(.hero-gradient) {
    max-width: 100%;
    overflow-x: hidden;
}

/* ── Hero Gradient ── soft layered, not stark */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #3B1A1A 0%,
        #5C2820 35%,
        #8B3A22 70%,
        #A84E28 100%
    );
}

/* ── Section title underline ── */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 10px auto 0;
    opacity: 0.8;
}

/* ── Course card hover ── */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(196, 88, 28, 0.12);
}

/* ── Stat card gradient ── muted, not full-blast orange */
.stat-card {
    background: linear-gradient(135deg, #6B2B2B, #9B4020);
}

/* ── Form focus ── */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(196, 88, 28, 0.12);
}

/* ── WhatsApp float ── */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: pulse 2.5s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0   rgba(37,211,102,0.45); }
    50%      { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ── Scroll-to-top ── */
#scrollTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}
#scrollTop.show { opacity: 1; }

/* ── Alerts ── */
.alert-success {
    background: #ecfdf5;
    border-left: 4px solid #059669;
    color: #065f46;
}
.alert-error {
    background: #fff1f0;
    border-left: 4px solid #e04545;
    color: #7f1d1d;
}

/* ── Top info bar — soften ── */
.topbar-bg { background-color: #3B1A1A; }

/* ── Section bg alternates — warm cream instead of gray ── */
.bg-section-alt { background-color: #FDF6EF; }

/* ── Course card refined hover ── */
.course-card {
    position: relative;
    overflow: hidden;
}
.course-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.course-card:hover::after {
    transform: scaleX(1);
}

/* ── Select option dark text for enquiry form ── */
select option {
    background: #1a1a1a;
    color: #fff;
}

/* ── Mobile: smaller carousel ── */
@media (max-width: 639px) {
    #sStage { height: 440px !important; }
    .s-phone {
        width: 160px !important;
        height: 350px !important;
    }
    #sCarousel {
        width: 160px !important;
        height: 350px !important;
        margin-bottom: 20px !important;
    }
    .hero-gradient .grid { gap: 0.5rem; }
}

/* ── Volume button hover ── */
.s-vol-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.35) !important;
    transform: scale(1.1);
}
.s-vol-btn:active {
    transform: scale(0.95);
}

/* ── Mobile nav smooth toggle ── */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
}
#mobileMenu:not(.hidden) {
    max-height: 500px;
}

/* ── Fix horizontal overflow on all devices ── */
main, .max-w-7xl, .max-w-5xl, .max-w-4xl {
    overflow-x: hidden;
}

/* ── Footer mobile spacing ── */
@media (max-width: 639px) {
    footer .grid { gap: 2rem; }
}

