/* ============================================================
   HEADER STYLES — Modern Assam School Theme
   Color Palette: Deep Forest #0d3b2e, Muga Gold #c9a227,
   Tea Green #2d6a4f, Gamosa Red #d62828, Ivory #fefae0
   ============================================================ */

/* ===== GLOBAL RESET ===== */
html, body { margin: 0 !important; padding: 0 !important; }

/* ===== FULLY STICKY HEADER ===== */
.header-sticky-part {
    position: fixed !important; top: 0 !important; left: 0; right: 0;
    z-index: 1040; box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

/* ===== TOP CONTACT BAR ===== */
.contact-bar {
    background: linear-gradient(90deg, #0d3b2e 0%, #1a5c45 100%);
    color: rgba(255,255,255,0.9); padding: 7px 0;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2px;
    border-bottom: 2px solid #c9a227;
}
.contact-bar .contact-left span { margin-right: 22px; }
.contact-bar .contact-left i { color: #c9a227; }
.follow-label { font-weight: 600; color: rgba(255,255,255,0.7); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.social-icons { display: flex; gap: 5px; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255,255,255,0.1); color: #fff;
    font-size: 0.72rem; transition: all 0.3s; text-decoration: none;
}
.social-icons a:hover { background: #c9a227; color: #0d3b2e; transform: translateY(-2px); }

/* ===== LOGO BAR ===== */
.main-header-bar { background: #fff; border-bottom: none; }
.school-logo { height: 62px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.school-logo-placeholder {
    width: 62px; height: 62px; border-radius: 14px;
    background: linear-gradient(135deg, #0d3b2e, #2d6a4f);
    display: flex; align-items: center; justify-content: center;
    color: #c9a227; font-size: 1.6rem;
}
.school-name {
    font-family: 'Inter', sans-serif; font-weight: 900;
    color: #0d3b2e; font-size: 1.45rem; letter-spacing: 0.3px;
    line-height: 1.2;
}
.school-tagline { color: #666; font-size: 0.78rem; font-weight: 500; }
.btn-login {
    background: linear-gradient(135deg, #0d3b2e, #2d6a4f);
    color: #fff !important; border: none; padding: 9px 24px;
    border-radius: 10px; font-weight: 700; font-size: 0.82rem;
    transition: all 0.3s; text-decoration: none;
    box-shadow: 0 3px 12px rgba(13,59,46,0.25);
}
.btn-login:hover { background: linear-gradient(135deg, #c9a227, #dab83a); color: #0d3b2e !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,0.35); }

/* ===== MAIN NAVIGATION ===== */
.site-navbar {
    background: linear-gradient(135deg, #0d3b2e 0%, #164a38 50%, #1a5c45 100%);
    padding: 0; border-bottom: 3px solid rgba(201,162,39,0.3);
}
.site-navbar .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 600; font-size: 0.84rem;
    padding: 14px 16px !important;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px; letter-spacing: 0.2px;
    position: relative;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    border-bottom-color: #c9a227;
}
.site-navbar .dropdown-menu {
    border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px; border-top: 3px solid #c9a227; padding: 6px 0;
    background: #fff;
}
.site-navbar .dropdown-item {
    padding: 10px 20px; font-size: 0.85rem;
    font-weight: 500; transition: all 0.2s; border-radius: 0;
}
.site-navbar .dropdown-item:hover { background: #0d3b2e; color: #fff; }
.site-navbar .navbar-toggler { border: 2px solid rgba(201,162,39,0.6); padding: 5px 12px; border-radius: 8px; }
.site-navbar .navbar-toggler-icon { filter: invert(1); }

/* SEDO Test Button — highlighted nav link */
.sedo-test-btn {
    background: linear-gradient(135deg, #ff6f00, #ff8f00) !important;
    color: #fff !important; border-radius: 6px !important;
    margin: 6px 4px !important; padding: 8px 16px !important;
    font-weight: 700 !important; font-size: 0.82rem !important;
    animation: sedoPulse 2s ease-in-out infinite;
    border-bottom: none !important;
}
.sedo-test-btn:hover { background: linear-gradient(135deg, #e65100, #ff6f00) !important; transform: scale(1.05); }
@keyframes sedoPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,143,0,0.4);} 50%{box-shadow:0 0 12px 4px rgba(255,143,0,0.2);} }

/* ===== NAVBAR LOGIN BUTTON ===== */
.btn-nav-login {
    background: linear-gradient(135deg, #c9a227, #dab83a);
    color: #0d3b2e !important; border: none; padding: 8px 20px;
    border-radius: 8px; font-weight: 700; font-size: 0.8rem;
    transition: all 0.3s; text-decoration: none; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(201,162,39,0.3);
}
.btn-nav-login:hover { background: linear-gradient(135deg, #dab83a, #e8cc55); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,162,39,0.4); }

/* ===== RESPONSIVE — TABLET (max-width: 991px) ===== */
@media (max-width: 991px) {
    .btn-login { font-size: 0.75rem; padding: 7px 16px; }
    .site-navbar .navbar-collapse { background: #0d3b2e; border-radius: 0 0 12px 12px; padding: 8px 0 12px; margin-top: 4px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
    .site-navbar .nav-link { padding: 11px 18px !important; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 0; border-bottom-color: rgba(255,255,255,0.06) !important; }
    .site-navbar .nav-link:last-child { border-bottom: none; }
    .site-navbar .dropdown-menu { background: rgba(255,255,255,0.05); border-radius: 0; border-top: none; box-shadow: none; padding: 0 0 0 16px; }
    .site-navbar .dropdown-item { color: rgba(255,255,255,0.8); padding: 9px 18px; font-size: 0.82rem; }
    .site-navbar .dropdown-item:hover { background: rgba(201,162,39,0.15); color: #c9a227; }
    .btn-nav-login { display: block; text-align: center; margin: 10px 16px 4px; padding: 10px; font-size: 0.85rem; border-radius: 10px; }
}

/* ===== RESPONSIVE — MOBILE (max-width: 767px) ===== */
@media (max-width: 767px) {
    .contact-bar { padding: 5px 0; font-size: 0.72rem; }
    .contact-bar .contact-right { display: none !important; }
    .contact-bar .contact-left span:nth-child(n+2) { display: none; }
    .main-header-bar .container { padding: 6px 12px !important; }
    .school-logo { height: 42px; }
    .school-logo-placeholder { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 10px; }
    .school-name { font-size: 0.95rem !important; line-height: 1.15; }
    .school-tagline { font-size: 0.65rem; display: block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .site-navbar { padding: 0 4px; }
    .site-navbar .navbar-toggler { padding: 4px 10px; font-size: 0.9rem; }
}

/* ===== RESPONSIVE — SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .contact-bar { padding: 4px 0; font-size: 0.68rem; }
    .main-header-bar .container { padding: 4px 8px !important; gap: 6px !important; }
    .school-logo, .school-logo-placeholder { height: 36px; width: auto; }
    .school-logo-placeholder { width: 36px; height: 36px; font-size: 1rem; border-radius: 8px; }
    .school-name { font-size: 0.82rem !important; }
    .school-tagline { font-size: 0.58rem; max-width: 160px; }
    .site-navbar .nav-link { font-size: 0.8rem; padding: 10px 14px !important; }
    .btn-nav-login { font-size: 0.82rem; padding: 9px; margin: 8px 12px 4px; }
}

/* ===== WHATSAPP FLOATING CHAT WIDGET ===== */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: 'Inter', sans-serif; }
.wa-fab {
    width: 58px; height: 58px; border-radius: 16px;
    background: #25d366; color: #fff; border: none;
    font-size: 1.7rem; display: flex; align-items: center;
    justify-content: center; cursor: pointer;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s; animation: wa-pulse 2s infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}
.wa-chat-box {
    position: absolute; bottom: 68px; right: 0; width: 340px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    animation: wa-slide-up 0.3s ease;
}
@keyframes wa-slide-up { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.wa-chat-header {
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: #fff; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.wa-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.wa-close { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; padding: 4px; }
.wa-close:hover { opacity: 1; }
.wa-chat-body { background: #e5ddd5; padding: 20px 16px; min-height: 120px; }
.wa-bubble {
    background: #fff; border-radius: 0 10px 10px 10px;
    padding: 10px 14px; font-size: 0.85rem; line-height: 1.5;
    position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.08); max-width: 85%;
}
.wa-bubble::before {
    content: ''; position: absolute; top: 0; left: -8px;
    border-width: 0 8px 8px 0; border-style: solid;
    border-color: transparent #fff transparent transparent;
}
.wa-time { display: block; text-align: right; font-size: 0.65rem; color: #999; margin-top: 4px; }
.wa-chat-footer { background: #f0f0f0; padding: 10px 12px; }
.wa-chat-footer input { border-radius: 20px; border: 1px solid #ddd; font-size: 0.85rem; }
.wa-chat-footer .btn { border-radius: 50%; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; }
@media (max-width: 480px) {
    .wa-chat-box { width: 290px; right: -10px; }
    .wa-float { bottom: 16px; right: 16px; }
    .wa-fab { width: 50px; height: 50px; font-size: 1.5rem; }
}
