:root {
    --bs-primary: #06163c;
    --bs-primary-rgb: 6, 22, 60;
    --bs-secondary: #4ea3d8;
    --bs-secondary-rgb: 78, 163, 216;
    --bs-warning: #e8be34;
    --bs-warning-rgb: 232, 190, 52;
    --brand-accent-light: #f9e58a;
    --bs-body-bg: #f5f7fb;
    --bs-body-color: #0b1220;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.top-strip {
    background: var(--bs-primary);
    color: #fff;
    font-size: 0.85rem;
}

.main-nav {
    background: #fff;
}

.main-nav .nav-link {
    color: var(--bs-primary);
    font-weight: 500;
}

.main-nav .nav-link.active {
    color: var(--bs-secondary);
}

.nav-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.hero {
    background: linear-gradient(130deg, rgba(6, 22, 60, 0.95), rgba(78, 163, 216, 0.9));
    color: #fff;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(232, 190, 52, 0.55) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 25%, rgba(249, 229, 138, 0.5) 0 2px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(232, 190, 52, 0.45) 0 2px, transparent 3px);
    pointer-events: none;
}

.hero::after {
    content: "x² + y² = r²   E = mc²   F = ma   a² + b² = c²   H₂O   NaCl";
    position: absolute;
    left: -2rem;
    right: -2rem;
    bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 1.3vw, 0.95rem);
    color: rgba(255, 255, 255, 0.14);
    white-space: nowrap;
    transform: rotate(-2deg);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hero-stats .stat-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.8rem;
    padding: 0.75rem 0.8rem;
    text-align: center;
}

.hero-stats .stat-value {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-visual {
    width: min(340px, 90%);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(232, 190, 52, 0.25), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(249, 229, 138, 0.22), transparent 55%);
}

.hero img {
    max-width: 210px;
}

.section-title {
    color: var(--bs-primary);
}

.event-item {
    border-left: 4px solid var(--bs-warning);
}

.feature-strip {
    background: var(--bs-warning);
    border-radius: 0.8rem;
    padding: 0.8rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.6rem;
}

.course-card-modern {
    background: #fff;
    border: 1px solid #dde3ef;
    border-radius: 0.6rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-media {
    height: 190px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.course-media img.course-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

.course-media .course-instructor {
    position: absolute;
    left: 0.8rem;
    bottom: -1.85rem; /* moved down 4px from -0.65 */
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.94);
    color: #06163c;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 22, 60, 0.18);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0.25rem 0.7rem rgba(0,0,0,0.15);
    margin: 0;
}

.course-instructor-blue {
    background: #06163c;
    color: #fff;
    border-color: #06163c;
}

.course-instructor-blue {
    background: #06163c;
    color: #fff;
    border-color: #06163c;
}

.course-instructor img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #fff;
}

.course-instructor .course-instructor-name {
    color: inherit;
    font-weight: 700;
}

.c-bg-1 {
    background-image: linear-gradient(120deg, #d8b470, #f1e7b8);
}

.c-bg-2 {
    background-image: linear-gradient(120deg, #b38460, #e8b09f);
}

.c-bg-3 {
    background-image: linear-gradient(120deg, #8db1db, #d1e4f7);
}

.c-bg-4 {
    background-image: linear-gradient(120deg, #80b6a5, #cae8df);
}

.c-bg-5 {
    background-image: linear-gradient(120deg, #9a8ed6, #e2dcff);
}

.c-bg-6 {
    background-image: linear-gradient(120deg, #94a3b8, #dce6f2);
}

.course-price {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--bs-warning);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

.course-price-free {
    background: var(--bs-primary);
}

.course-instructor {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin: -18px 1rem 0.75rem;
    background: var(--bs-warning);
    color: #fff;
    padding: 0.15rem 0.8rem 0.15rem 0.15rem;
    border-radius: 999px;
    border: 2px solid var(--bs-warning);
    font-weight: 700;
    font-size: 0.9rem;
}

.course-instructor-blue {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.course-instructor img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #fff;
}

.course-content {
    padding-top: 2.4rem;
    padding-right: 1rem;
    padding-bottom: 1.25rem;
    padding-left: 1rem;
}


.course-meta-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    color: #5a6373;
}

.course-meta-list li {
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 1.2rem;
}

.course-meta-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: 700;
}

.card-hover:hover {
    transform: translateY(-4px);
    transition: 0.2s ease-in-out;
}

.badge-brand {
    background-color: var(--brand-accent-light);
    color: var(--bs-primary);
}

.contact-panel {
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1rem rgba(11, 18, 32, 0.08);
}

.page-hero {
    background: #f2e8df;
    border-radius: 1rem;
}

.about-visual {
    max-width: 280px;
    border-radius: 1rem;
}

.contact-form-wrap {
    max-width: 820px;
}

.faculty-card {
    background: #fff;
    border: 1px solid #dce2ee;
    border-radius: 0.8rem;
}

.faculty-avatar {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
}

.promo-banner {
    background: #e9ded3;
    border-radius: 0.8rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: "";
    position: absolute;
    right: 2.5rem;
    top: 50%;
    width: 74px;
    height: 74px;
    background: rgba(78, 163, 216, 0.95);
    transform: translateY(-50%) rotate(-28deg);
}

.promo-banner::after {
    content: "";
    position: absolute;
    right: 0.85rem;
    top: 22%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #d960e3;
    transform: rotate(20deg);
}

.promo-avatar-wrap {
    min-width: 104px;
}

.promo-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bs-warning);
    background: #fff;
}

.promo-content {
    max-width: 560px;
}

.promo-title {
    font-size: clamp(1.1rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #1d1d26;
}

.site-footer {
    background: #050f2d;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 0.6rem;
    }

    .main-nav .nav-link {
        padding: 0.5rem 0.2rem;
    }

    .hero {
        border-radius: 0.9rem;
    }

    .hero::after {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        bottom: 0.4rem;
    }
}

@media (max-width: 767.98px) {
    .top-strip {
        font-size: 0.76rem;
        line-height: 1.35;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .nav-logo {
        width: 52px;
        height: 52px;
    }

    .hero img {
        max-width: 168px;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
    }

    .hero-stats .stat-pill {
        padding: 0.6rem 0.5rem;
    }

    .hero-stats .stat-value {
        font-size: 0.95rem;
    }

    .hero-stats .stat-label {
        font-size: 0.74rem;
    }

    .course-media {
        height: 170px;
    }

    .course-instructor {
        font-size: 0.82rem;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .course-instructor img {
        width: 38px;
        height: 38px;
    }



    .course-meta-list li {
        font-size: 0.92rem;
    }

    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 5rem;
    }

    .promo-banner::before {
        right: 0.9rem;
        width: 58px;
        height: 58px;
    }

    .promo-banner::after {
        right: -0.1rem;
    }

    .site-footer .col-lg-4,
    .site-footer .col-lg-2 {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-stats .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero::after {
        display: none;
    }

    .feature-strip {
        padding: 0.55rem;
    }

    .promo-avatar {
        width: 88px;
        height: 88px;
        border-width: 5px;
    }

    .promo-title {
        font-size: 1.3rem;
    }
}
