/* ===================== PAGE BACKGROUND (FIXED & GUARANTEED) ===================== */
html,
body {
    min-height: 100%;
    background: linear-gradient(
        180deg,
        #f2f7ff 0%,
        #c6ddff 50%,
        #9ec5ff 100%
    ) !important;
}
/* Ensure sections don’t block the gradient */
body > section,
body > div,
.section {
    background-color: transparent !important;
}

/* ===================== HEADER / NAVBAR ===================== */
#header {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    max-height: 100px;
    transition: 0.3s;
}

#nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

#nav ul li {
    margin-left: 20px;
}

#nav ul li a {
    color: #fff;
    font-weight: 600;
    padding: 15px 20px;
    text-transform: uppercase;
    position: relative;
}

#nav ul li a:hover {
    color: #00f0ff;
}

#nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00f0ff;
    transition: 0.3s;
}

#nav ul li a:hover::after {
    width: 100%;
}

/* ===================== ABOUT SECTION ===================== */
#about {
    background: rgba(255, 255, 255, 0.85);
    padding: 60px 20px;
    color: #333;
    border-radius: 20px;
}

#about h2 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

#about p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

#about .section-title {
    text-align: center;
    margin-bottom: 40px;
}

#about .mission-vision {
    margin-top: 40px;
}

#about .mission-vision h3 {
    color: #00a8e8;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ===================== COMPACT HEADER ===================== */
.compact-header {
    background: #0b2c4d;
    padding: 12px 0;
}

.compact-header img {
    max-height: 55px;
}

/* ===================== COURSE CARDS ===================== */
.course-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 12px 26px rgba(60, 100, 160, 0.18);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
    animation: fadeUp 0.6s ease both;
}

.course-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(60, 120, 200, 0.28);
}

.course-head i {
    font-size: 38px;
    color: #0088cc;
    margin-bottom: 10px;
    transition: transform 0.4s ease, color 0.3s ease;
}

.course-box:hover .course-head i {
    transform: scale(1.12) rotate(-2deg);
}

.course-head h4 {
    margin: 8px 0 4px;
    font-weight: 700;
}

.course-head span {
    font-size: 13px;
    color: #666;
}

.course-summary {
    margin: 15px 0;
    font-size: 15px;
}

/* ===================== BUTTON ===================== */
.expand-btn {
    background: linear-gradient(135deg, #00b4ff, #0077cc);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.expand-btn:hover {
    transform: translateY(-1px);
}

.expand-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.expand-btn:hover::after {
    left: 120%;
}

.expand-btn:active {
    transform: scale(0.96);
}

/* ===================== EXPAND DETAILS ===================== */
.course-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s ease, opacity .4s ease;
    margin-top: 15px;
}

.course-box.active .course-details {
    max-height: 520px;
    opacity: 1;
    animation: expandFade 0.45s ease;
}

.course-details ul {
    padding-left: 18px;
}

.course-details li {
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-6px);
    animation: listIn 0.4s ease forwards;
}

/* ===================== FOOTER ===================== */
#footer {
    background: #0b1f33;
    color: #ddd;
    padding: 40px 20px;
    text-align: center;
}

#footer .footer-logo img {
    max-width: 250px;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.footer-nav li a:hover {
    color: #00f0ff;
}

.footer-bottom {
    font-size: 14px;
    color: #aaa;
}

/* ===================== IMAGE CARD ===================== */
.image-box {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border-radius: 18px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-box:hover img {
    transform: scale(1.06);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes listIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .navbar-brand img {
        max-height: 60px;
        margin-bottom: 15px;
    }

    #nav ul {
        flex-direction: column;
        gap: 12px;
    }

    #nav ul li {
        margin-left: 0;
    }

    #nav ul li a {
        padding: 10px 0;
        font-size: 15px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===================== GLOBAL ===================== */
* {
    scroll-behavior: smooth;
}
