* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #111827;
}


/* NAVBAR */

.navbar {
    width: 100%;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 8%;

    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #111827;
}

.logo span {
    color: #2563eb;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #4b5563;
    font-size: 15px;
}

nav a:hover {
    color: #2563eb;
}

.login-btn {
    border: none;
    background: #2563eb;
    color: white;

    padding: 11px 22px;
    border-radius: 8px;

    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 80px 8%;

    background:
        radial-gradient(circle at 80% 20%, #dbeafe, transparent 30%),
        #f8fafc;
}

.hero-content {
    max-width: 650px;
}

.small-title {
    color: #2563eb;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: 65px;
    line-height: 1.05;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #2563eb;
}

.hero-text {
    max-width: 560px;

    font-size: 18px;
    line-height: 1.7;

    color: #6b7280;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.primary-btn,
.secondary-btn {
    padding: 14px 23px;

    border-radius: 8px;

    font-size: 15px;
    cursor: pointer;
}

.primary-btn {
    border: none;
    background: #2563eb;
    color: white;
}

.secondary-btn {
    border: 1px solid #d1d5db;
    background: white;
    color: #111827;
}


/* HERO CARD */

.hero-card {
    width: 350px;

    padding: 45px 35px;

    background: white;

    border-radius: 20px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.card-icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.hero-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.hero-card p {
    color: #6b7280;
    line-height: 1.6;
}


/* COMMON SECTION */

.courses,
.resources {
    padding: 90px 8%;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading p {
    color: #2563eb;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.section-heading span {
    color: #6b7280;
}


/* COURSES */

.course-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.course-card {
    background: white;

    padding: 30px;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    cursor: pointer;

    transition: 0.25s;
}

.course-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);

    border-color: #bfdbfe;
}

.course-icon {
    font-size: 35px;
    margin-bottom: 20px;
}

.course-card h3 {
    margin-bottom: 8px;
}

.course-card p {
    color: #6b7280;
}


/* RESOURCES */

.resources {
    background: #f1f5f9;
}

.resource-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.resource-box {
    background: white;

    padding: 30px;

    border-radius: 14px;

    border: 1px solid #e5e7eb;
}

.resource-box span {
    font-size: 35px;
}

.resource-box h3 {
    margin: 18px 0 8px;
}

.resource-box p {
    color: #6b7280;

    line-height: 1.5;
}


/* ABOUT */

.about {
    text-align: center;

    padding: 100px 20px;

    background: white;
}

.about h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.about p {
    max-width: 600px;

    margin: auto;

    color: #6b7280;

    line-height: 1.7;
}


/* FOOTER */

footer {
    background: #111827;

    color: white;

    padding: 35px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

footer p {
    color: #9ca3af;
}


/* MOBILE */

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .hero {
        flex-direction: column;
        gap: 50px;

        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        flex-direction: column;
        gap: 15px;
    }
}


@media (max-width: 550px) {

    .course-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }
}
/* BCA PAGE */

.course-hero {
    padding: 90px 8%;

    background:
        radial-gradient(
            circle at 80% 20%,
            #dbeafe,
            transparent 35%
        ),
        #f8fafc;
}

.course-hero h1 {
    font-size: 60px;
    margin: 15px 0;
}

.course-hero h1 span {
    color: #2563eb;
}

.course-hero p:last-child {
    max-width: 650px;

    color: #6b7280;

    font-size: 18px;

    line-height: 1.7;
}


.semester-section {
    padding: 90px 8%;

    background: white;
}


.semester-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


.semester-card {
    position: relative;

    padding: 30px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 15px;

    cursor: pointer;

    transition: 0.25s;
}


.semester-card:hover {
    transform: translateY(-6px);

    background: white;

    border-color: #bfdbfe;

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.08);
}


.semester-number {
    color: #2563eb;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 20px;
}


.semester-card h3 {
    font-size: 22px;

    margin-bottom: 10px;
}


.semester-card p {
    color: #6b7280;
}


.arrow {
    position: absolute;

    right: 25px;

    bottom: 25px;

    color: #2563eb;

    font-size: 24px;
}


@media (max-width: 900px) {

    .semester-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 550px) {

    .course-hero h1 {
        font-size: 45px;
    }

    .semester-grid {
        grid-template-columns: 1fr;
    }

}

/* RESOURCE PAGE */

.resource-page-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}


.resource-card {
    position: relative;

    cursor: pointer;

    transition: 0.25s;
}


.resource-card:hover {
    transform: translateY(-6px);

    border-color: #bfdbfe;

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.08);
}


.resource-card > span:first-child {
    display: block;

    font-size: 38px;

    margin-bottom: 18px;
}


.resource-card h3 {
    font-size: 21px;

    margin-bottom: 10px;
}


.resource-card p {
    max-width: 320px;

    line-height: 1.6;
}


.resource-arrow {
    position: absolute;

    right: 25px;

    bottom: 25px;

    font-size: 24px;

    color: #2563eb;
}


@media (max-width: 600px) {

    .resource-page-grid {
        grid-template-columns: 1fr;
    }

}

/* MATERIALS PAGE */

.materials-list {
    max-width: 950px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


.material-card {
    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    transition: 0.25s;
}


.material-card:hover {
    border-color: #bfdbfe;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.07);
}


.material-info {
    display: flex;

    align-items: flex-start;

    gap: 18px;
}


.material-icon {
    font-size: 35px;
}


.material-info h3 {
    margin-bottom: 8px;

    font-size: 18px;
}


.material-info p {
    color: #6b7280;

    line-height: 1.5;
}


.material-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.view-btn,
.download-btn {
    padding: 10px 17px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 14px;
}


.view-btn {
    background: white;

    color: #2563eb;

    border: 1px solid #2563eb;
}


.download-btn {
    background: #2563eb;

    color: white;

    border: 1px solid #2563eb;
}


.view-btn:hover,
.download-btn:hover {
    opacity: 0.85;
}


@media (max-width: 700px) {

    .material-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .material-actions {
        width: 100%;
    }

    .view-btn,
    .download-btn {
        flex: 1;
    }

}

/* =========================
   ADMIN LOGIN PAGE
========================= */

.login-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f8fafc;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.login-card h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #111827;
}

.login-card > p {
    color: #6b7280;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

.login-card .login-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.login-card .login-btn:hover {
    background: #1d4ed8;
}

#loginMessage {
    margin-top: 18px;
    font-size: 14px;
}
