/* ==============================================================
   DVRS ACADEMICS PAGE STYLESHEET (100% Dynamic Content)
   Diganta Vikas Residential School, Baripada
   ============================================================== */

:root {
    --dvrs-blue: #0A1B3F;
    --dvrs-blue-dark: #071530;
    --dvrs-blue-light: #163673;
    --dvrs-red: #E60000;
    --dvrs-gold: #fbbc05;
    --dvrs-bg-soft: #f8fafc;
    --dvrs-text-dark: #1e293b;
    --dvrs-text-muted: #64748b;
    --dvrs-border: #e2e8f0;
}

/* Base Smooth Scrolling & Anchor Offset */
html {
    scroll-behavior: smooth;
}

.academic-section-anchor {
    scroll-margin-top: 110px;
}

/* Dynamic Top Banner Header (Same design style & height as contact-banner) */
.academics-banner {
    background: linear-gradient(135deg, #0A1B3F 0%, #003060 100%);
    color: #fff;
    position: relative;
    padding: 55px 0 50px 0;
}

.academics-banner nav[aria-label="breadcrumb"] {
    display: block;
    margin-bottom: 8px;
}

.academics-banner .breadcrumb {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    list-style: none !important;
}

.academics-banner .breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}

.academics-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    transition: color 0.2s ease;
}

.academics-banner .breadcrumb-item a:hover {
    color: #ffffff !important;
}

.academics-banner .breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.academics-banner .breadcrumb-item+.breadcrumb-item::before {
    content: '/' !important;
    color: rgba(255, 255, 255, 0.45) !important;
    padding: 0 8px !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fbbc05;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Quick Jump Sticky Navigation */
.academics-subnav {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(10, 27, 63, 0.08);
    border-bottom: 1px solid var(--dvrs-border);
    position: sticky;
    top: 85px;
    z-index: 1010;
}

.academics-nav-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.academics-nav-pills::-webkit-scrollbar {
    display: none;
}

.nav-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dvrs-blue);
    background: #f1f5f9;
    border-radius: 30px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-pill-btn i {
    font-size: 0.85rem;
    color: var(--dvrs-red);
    transition: color 0.25s ease;
}

.nav-pill-btn:hover,
.nav-pill-btn.active {
    background: var(--dvrs-blue);
    color: #ffffff !important;
    border-color: var(--dvrs-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(10, 27, 63, 0.15);
}

.nav-pill-btn:hover i,
.nav-pill-btn.active i {
    color: #fbbc05;
}

.nav-pill-btn.btn-cta-pill {
    background: #fff0f0;
    color: var(--dvrs-red) !important;
    border-color: #ffd6d6;
}

.nav-pill-btn.btn-cta-pill:hover {
    background: var(--dvrs-red);
    color: #ffffff !important;
    border-color: var(--dvrs-red);
}

/* Dynamic Academic Program Detail Cards */
.program-detail-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--dvrs-border);
    box-shadow: 0 8px 30px rgba(10, 27, 63, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-detail-card:hover {
    box-shadow: 0 15px 40px rgba(10, 27, 63, 0.1);
}

.program-card-header {
    padding: 20px 28px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.program-detail-body {
    padding: 30px 28px;
}

.program-img-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(10, 27, 63, 0.12);
}

.program-img-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-detail-card:hover .program-img-wrapper img {
    transform: scale(1.03);
}

.program-img-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(10, 27, 63, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-check-item i {
    color: var(--dvrs-red);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-check-item span {
    font-size: 0.96rem;
    color: #334155;
    line-height: 1.55;
}

/* Target Hash Highlight Animation */
@keyframes targetHighlight {
    0% {
        box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.4), 0 15px 40px rgba(10, 27, 63, 0.15);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(230, 0, 0, 0.6), 0 15px 40px rgba(10, 27, 63, 0.2);
    }

    100% {
        box-shadow: 0 8px 30px rgba(10, 27, 63, 0.05);
    }
}

.target-glow {
    animation: targetHighlight 2.5s ease-out;
}

/* Dynamic Academic CTA Banner & Buttons */
.academic-cta-section {
    background: linear-gradient(135deg, #0A1B3F 0%, #003060 100%);
    border-radius: 16px;
    padding: 38px 40px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(10, 27, 63, 0.12);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(251, 188, 5, 0.15);
    border: 1px solid rgba(251, 188, 5, 0.4);
    color: #fbbc05;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-buttons-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Primary CTA Button: Apply for Admission */
.btn-cta-apply {
    background: #E60000;
    color: #ffffff !important;
    border: 2px solid #E60000;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.35);
    white-space: nowrap;
}

.btn-cta-apply:hover {
    background: #c80000;
    border-color: #c80000;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 0, 0, 0.45);
}

/* Secondary CTA Button: Download Prospectus */
.btn-cta-prospectus {
    background: #ffffff;
    color: #0A1B3F !important;
    border: 2px solid #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-cta-prospectus:hover {
    background: #f1f5f9;
    color: #0A1B3F !important;
    border-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-cta-prospectus i {
    color: #E60000;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .academics-banner {
        padding: 40px 0 45px;
    }

    .academics-subnav {
        top: 70px;
    }

    .program-img-wrapper img {
        height: 260px;
        margin-bottom: 25px;
    }

    .academic-cta-section {
        padding: 30px 20px;
        text-align: center;
    }

    .cta-desc {
        margin-bottom: 20px;
    }

    .cta-buttons-wrap {
        display: flex !important;
        justify-content: center !important;
    }
}

@media (max-width: 575px) {
    .cta-title {
        font-size: 1.4rem;
    }

    .cta-buttons-wrap {
        flex-direction: column !important;
        width: 100%;
    }

    .btn-cta-apply,
    .btn-cta-prospectus {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}