/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: #f6f8fb;
    color: #1f2937;
    display: flex;
    flex-direction: column;
}

/* Page wrapper */
.main-wrapper {
    flex: 1;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    background: #064e3b;
    color: #ecfeff;
    display: flex;
    justify-content: space-between;
    padding: 6px 16px;
    font-size: 14px;
}

/* =========================
   HEADER
========================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo img {
    height: 52px;
}

.header nav {
    display: flex;
    align-items: center;
}

.header nav a {
    margin: 0 14px;
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    transition: 0.3s;
}

.header nav a:hover {
    color: #059669;
}

.btn-login {
    background: #059669;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 6px;
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* =========================
   NOTIFICATION BAR
========================= */
.notification-bar {
    background: #fde047;
    overflow: hidden;
    padding: 18px 0;         /* Increased padding for more height */
    font-weight: 600;
    font-size: 15px;         /* Slightly larger text */
    display: flex;
    justify-content: center; /* Center the container horizontally */
    align-items: center;     /* Vertically center content */
}

/* Container inside notification bar for max width and padding */
.notification-bar .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ticker scrolling horizontally */
.ticker {
    display: inline-flex;    /* inline-flex so container can center it */
    gap: 40px;
    animation: tickerMove 18s linear infinite;
    white-space: nowrap;
}

/* Keyframes for scrolling ticker animation */
@keyframes tickerMove {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}


@keyframes tickerMove {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* =========================
   HERO SLIDER
========================= */
/* HERO SECTION */
.hero {
    width: 100%;
    height: 80vh;                 /* Desktop */
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

/* SLIDES */
.slides {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slides.active {
    opacity: 1;
    z-index: 1;
}

/* IMAGE */
.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =======================
   TABLET RESPONSIVE
   ======================= */
@media (max-width: 1024px) {
    .hero {
        height: 65vh;
        min-height: 380px;
    }
}

/* =======================
   MOBILE RESPONSIVE
   ======================= */
@media (max-width: 768px) {
    .hero {
        height: 55vh;
        min-height: 300px;
    }
}

/* =======================
   SMALL MOBILE
   ======================= */
@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 260px;
    }
}


/* =========================
   FEATURES
========================= */
.features {
    padding: 70px 20px;
    text-align: center;
}

.features h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #064e3b;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: auto;
}

.feature-box {
    background: #ffffff;
    padding: 26px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-6px);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #022c22;
    color: #e5e7eb;
    padding: 50px 20px 20px;
    width: 100%;
    display: block;
    clear: both;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-box h3 {
    margin-bottom: 12px;
    color: #5eead4;
}

.footer-box p,
.footer-box a {
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
    text-decoration: none;
}

.footer-box a:hover {
    color: #5eead4;
}

.admin-login {
    display: inline-block;
    margin-top: 10px;
    background: #5eead4;
    color: #022c22 !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 35px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width: 768px) {

    .header nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
    }

    .header nav a {
        padding: 14px;
        border-bottom: 1px solid #e5e7eb;
    }

    .menu-icon {
        display: block;
    }

    .slides h1 {
        font-size: 28px;
    }

    .slides p {
        font-size: 16px;
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   CALL TO ACTION
========================= */
.cta {
    background: linear-gradient(135deg, #059669, #064e3b);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 34px;
    margin-bottom: 14px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 24px;
    font-size: 17px;
    opacity: 0.95;
}

.big-btn {
    font-size: 18px;
    padding: 14px 28px;
    border-radius: 8px;
    display: inline-block;
}

/*  student login */
/* =========================
   STUDENT LOGIN PAGE
========================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f6f8fb;
    padding: 20px;
}

.auth-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.auth-box h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #064e3b;
    font-weight: 600;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-box input[type="email"],
.auth-box input[type="password"] {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.auth-box input[type="email"]:focus,
.auth-box input[type="password"]:focus {
    border-color: #059669;
    box-shadow: 0 0 6px rgba(5, 150, 105, 0.3);
}

.auth-box button {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    background: #059669;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.auth-box button:hover {
    background: #047857;
}

.auth-box .error-msg {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-box a {
    color: #059669;
    text-decoration: none;
    transition: 0.3s;
}

.auth-box a:hover {
    text-decoration: underline;
}

/* Responsive */
@media(max-width:480px){
    .auth-box {
        padding: 30px 20px;
    }

    .auth-box h2 {
        font-size: 24px;
    }

    .auth-box input[type="email"],
    .auth-box input[type="password"],
    .auth-box button {
        font-size: 15px;
    }
}

/* Course*/
.courses { padding: 60px 20px; background: #f9f9f9; }
.courses h2 { text-align: center; font-size: 32px; margin-bottom: 40px; color: #1f2937; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.course-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.course-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
}

.course-info {
    padding: 15px;
}

.course-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.course-info p {
    font-size: 14px;
    color: #4b5563;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.95);
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-overlay h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.course-overlay p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.course-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.btn-view {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-view:hover { background: #2563eb; }

.share-buttons { display: flex; gap: 8px; }

.share {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.share.fb { background: #1877f2; color: #fff; }
.share.tw { background: #1da1f2; color: #fff; }
.share.mail { background: #f97316; color: #fff; }

.share:hover { opacity: 0.8; }

