/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
    --primary: #1a3a6c;
    --accent: #f4b400;
    --dark: #111;
    --gray: #6c757d;
    --light: #f6f7fb;
}

/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fff;
    color: #222;
    line-height: 1.6;
}

a {
    text-decoration: none
}

/* =====================================================
   HEADER
===================================================== */
.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 6px 25px rgba(0, 0, 0, .08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo img {
    height: 55px
}

.main-nav a {
    margin: 0 16px;
    color: #222;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary)
}

.btn-login {
    background: var(--primary);
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
}

/* MOBILE HEADER */
.mobile-toggle {
    background: none;
    border: none;
    font-size: 24px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #eee;
}

.mobile-menu.show {
    display: flex
}

.mobile-menu a {
    padding: 10px 0;
    color: #222;
    font-weight: 500;
}

.mobile-login {
    border-top: 1px solid #eee;
    margin-top: 12px;
    padding-top: 10px;
}

.mobile-login span {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* =====================================================
   HERO SLIDER
===================================================== */
.hero-slide {
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(26, 58, 108, .75),
            rgba(0, 0, 0, .55));
}

.hero-text {
    position: relative;
    color: #fff;
    max-width: 650px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-text p {
    margin: 15px 0 25px;
    font-size: 1.05rem;
}

.hero-actions a {
    display: inline-block;
    margin-right: 12px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
}

/* =====================================================
   SECTIONS
===================================================== */
.section {
    padding: 80px 0
}

.bg-light {
    background: var(--light)
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-weight: 700;
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--gray);
}

/* =====================================================
   MARQUEE (COURSES & CAMPUSES – FIXED FOR 1000+)
===================================================== */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 25px 0;
}

.marquee-track {
    display: flex;
    gap: 25px;
    width: max-content;
    will-change: transform;

    /* IMPORTANT: duration JS set karega */
    animation: marquee-scroll linear infinite;
}

/* reverse direction for campuses */
.marquee-wrapper.reverse .marquee-track {
    animation-direction: reverse;
}

/* pause on hover */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-card {
    min-width: 260px;
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.marquee-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
}

.marquee-card h5 {
    font-weight: 600
}

.marquee-card span {
    font-size: 14px;
    color: var(--gray);
}

/* distance controlled by JS variable */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--marquee-distance)));
    }
}

/* =====================================================
   NOTICE BOARD
===================================================== */
.notice-section {
    background: var(--primary);
    color: #fff;
    padding: 70px 0;
}

.notice-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.notice-item {
    background: rgba(255, 255, 255, .12);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 15px;
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-box img {
    width: 100%;
    border-radius: 14px;
}

/* =====================================================
   TESTIMONIAL
===================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.testimonial-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #111;
    color: #bbb;
    padding: 60px 0 25px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer a {
    color: #bbb
}

.footer a:hover {
    color: #fff
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* =====================================================
   WHATSAPP
===================================================== */
.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25d366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1000;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width:768px) {
    .hero-text h1 {
        font-size: 2rem
    }

    .section {
        padding: 60px 15px
    }

    .marquee-card {
        min-width: 220px
    }
}

.clickable {
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}


.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card-university,
.card-course {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .25s;
}

.card-university:hover,
.card-course:hover {
    transform: translateY(-6px);
}

.btn-view {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
}

.btn-outline-dark {
    border: 2px solid #333;
    padding: 10px 24px;
    border-radius: 30px;
    color: #333;
}

.course-search-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto 30px;
}

.course-search-wrapper input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

.course-search-wrapper input:focus {
    border-color: var(--primary);
}

.course-search-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    padding: 8px 0;
}

.course-search-list li {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
}

.course-search-list li:hover {
    background: #f1f3f8;
}

.d-none {
    display: none;
}

.course-search-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto 30px;
}

.course-search-wrapper input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

.course-search-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    padding: 8px 0;
}

.course-search-list li {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
}

.course-search-list li:hover {
    background: #f1f3f8;
}

.d-none {
    display: none;
}

.card-course-detail {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.course-table {
    width: 100%;
    margin-top: 15px;
}

.course-table th {
    width: 40%;
    text-align: left;
    padding: 10px;
    background: #f5f6fa;
    font-weight: 600;
}

.course-table td {
    padding: 10px;
    background: #fff;
}

.semester-list {
    list-style: none;
    padding-left: 0;
}

.semester-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.card-course-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    text-align: center;
}

.card-course-sidebar img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 15px;
}

.btn-apply {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
}