/* =====================================================
   Odisha National +2 Science College — Custom Styles
   ===================================================== */

/* ---- Base ---- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100vw;
}

/* ---- Nav Links ---- */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: #1e3a8a;
    background-color: #eff6ff;
}

.nav-link-active {
    color: #1e3a8a;
    font-weight: 600;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #38bdf8;
    border-radius: 2px;
}

/* ---- Mobile Nav Links ---- */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #1e3a8a;
    background-color: #eff6ff;
}

.mobile-nav-active {
    color: #1e3a8a;
    background-color: #eff6ff;
    font-weight: 600;
}

/* ---- Result stat card hover ---- */
.stat-result-card {
    transition: transform 0.25s ease, filter 0.25s ease;
}
.stat-result-card:hover {
    transform: translateY(-6px) scale(1.03);
    filter: brightness(1.15);
    z-index: 10;
    position: relative;
}

/* ---- Hero Collage diagonal background ---- */
.hero-diagonal-bg {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 22px,
        rgba(255, 255, 255, 0.35) 22px,
        rgba(255, 255, 255, 0.35) 24px
    );
}

/* ---- Card Hover Lift ---- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ---- Section Heading Underline ---- */
.section-line {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: #38bdf8;
    border-radius: 2px;
}

/* ---- Stat Counter ---- */
.stat-value {
    font-variant-numeric: tabular-nums;
}

/* ---- FAQ Accordion ---- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 500px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-chevron.rotate {
    transform: rotate(180deg);
}

/* ---- Gallery Image ---- */
.gallery-img {
    transition: transform 0.4s ease;
    overflow: hidden;
}

.gallery-img:hover img {
    transform: scale(1.08);
}

/* ---- Scroll Animations (simple fade-up) ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Notice Badge ---- */
.notice-date {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

/* ---- Star Rating ---- */
.star-filled {
    color: #fbbf24;
}

/* ---- Prospectus Button ---- */
.btn-prospectus {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

.btn-prospectus:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.35);
}

/* ---- Form Focus ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---- Navbar Dropdown ---- */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 144%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 60;
    padding: 0.5rem 0;
    border: 1px solid #e5e7eb;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    rotate: 45deg;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Invisible bridge so hover doesn't break when moving to dropdown */
.nav-dropdown-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.nav-dropdown a:hover {
    color: #1e3a8a;
    background-color: #eff6ff;
    padding-left: 1.5rem;
}

.nav-dropdown a svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    color: #38bdf8;
    flex-shrink: 0;
}

/* ---- WhatsApp Float Button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- Mobile Sidebar Nav Links ---- */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.875rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e2e8f0;
    border-radius: 0.625rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-link-active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8 !important;
    font-weight: 600;
}

/* ---- Mobile Sidebar Thin Scrollbar ---- */
#mobileSidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

#mobileSidebar::-webkit-scrollbar {
    width: 3px;
}

#mobileSidebar::-webkit-scrollbar-track {
    background: transparent;
}

#mobileSidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* ---- Print Styles ---- */
@media print {
    nav, footer, .no-print, .whatsapp-float { display: none !important; }
    body { font-size: 12pt; color: #000; }
}

/* ---- Mobile Hero — separate section handles sizing ---- */
@media (max-width: 767px) {
    .hero-slide {
        background-size: cover;
        background-position: center center;
    }
}

/* ---- Hide scrollbar for horizontal scroll ---- */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
