* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    background: #f5f7fb;
    color: #0d2c5a;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    height: 100vh;
    background: #1e3a5f;
    color: white;
    position: fixed;
    padding: 20px;
    transition: 0.3s;
}

.logo {
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* MAIN */

.main-container {
    margin-left: 250px;
    width: 100%;
}

/* HEADER */

.header {
    height: 180px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-btn {
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
}

.hamburger {
    display: none;
    font-size: 25px;
    border: none;
    background: none;
    cursor: pointer;


}

.top-logo {
    text-align: center;
    margin: 20px 0 40px;
}

.top-logo img {
    width: 250px;
    max-width: 90%;
}

.top-banner {
    width: 80%;
    margin: 0;
}

.top-banner img {
    width: 80%;
    height: auto;
    display: block;
}


/* HERO */

.hero {
    padding: 50px 30px;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

/* COURSES */

.courses-section {
    padding: 30px;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-body {
    padding: 20px;
}

/* INFO */

.info-section {
    padding: 30px;
}

.faq-item {
    margin-top: 20px;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 350px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px;
}

.modal-content button {
    padding: 12px;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 8px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* DASHBOARD */

.dashboard {
    position: fixed;
    inset: 0;
    background: white;
    padding: 40px;
    overflow-y: auto;
}

.dashboard-card {
    margin-top: 20px;
    padding: 20px;
    background: #f1f1f1;
    border-radius: 10px;
}

.hidden {
    display: none;
}

/* FORM */

#studentForm {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 15px;
}

#studentForm input,
#studentForm select {
    padding: 12px;
}

#studentForm button {
    padding: 12px;
    border: none;
    background: #1e3a5f;
    color: white;
    border-radius: 8px;
}

/* FORM */

.info-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 15px;
}

.info-form input,
.info-form select {
    padding: 12px;
}

.info-form button {
    padding: 12px;
    border: none;
    background: #1e3a5f;
    color: white;
    border-radius: 8px;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 250px;
        height: 100%;
        background: #1e3a5f;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .main-container {
        margin-left: 0;
        width: 100%;
    }

    .hamburger {
        display: block;
        color: #1e3a5f;
    }

}

/* CURSES INFO MODAL */
.course-actions {

    display: flex;

    gap: 10px;

    margin-top: 15px;
}

.info-btn {

    border: none;

    background: #1e3a5f;

    color: white;

    padding: 8px 12px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 12px;
}

.school-info {

    text-align: center;
}

.school-logo {

    width: 120px;

    height: 120px;

    object-fit: contain;

    margin-bottom: 15px;
}

.modules-container {

    display: flex;

    flex-direction: column;

    gap: 20px;

    margin-top: 20px;
}

.module-card {

    background: #f5f7fb;

    padding: 20px;

    border-radius: 12px;
}

.module-card h3 {

    margin-bottom: 10px;

    color: #1e3a5f;
}

.topics-list {

    padding-left: 20px;
}

.topics-list li {

    margin-bottom: 8px;
}

/* TABLES */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
}

.style-table {
    width: 100%;
    border-collapse: collapse;
}

.style-table th,
.style-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.style-table th {
    background: #f5f5f5;
}

.btn-primary,
.btn-edit,
.btn-delete {
    padding: 8px 12px;
    cursor: pointer;
    margin-right: 5px;
}