/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    background: rgba(173, 216, 230, 0.2);
}

/* ===== Header Styles ===== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: rgb(29, 53, 78);
    color: white;
    text-align: center;
}

header img {
    height: 80px;
    margin-bottom: 15px;
}

.header-content h1 {
    font-size: 24px;
    margin: 10px 0;
    line-height: 1.3;
}

.header-content p {
    font-size: 14px;
    margin: 5px 0;
}

/* ===== Navigation Styles ===== */


.menu-icon {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu a:hover {
    background: #1b354f;
    transform: scale(1.05);
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background: #1b354f;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    display: block;
    text-align: left;
}

/* ===== Courses Section ===== */
.courses-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 0;
}

.course-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.course-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.course-description {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.course-link {
    display: inline-block;
    background: #2980b9;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.course-link:hover {
    background: #3498db;
}

/* ===== Footer Styles ===== */


/* ===== Responsive Design ===== */
@media (min-width: 768px) {
    /* Header Adjustments */
    header {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
    
    header img {
        height: 120px;
        margin-right: 30px;
        margin-bottom: 0;
    }

    .header-content h1 {
        font-size: 28px;
    }

    .header-content p {
        font-size: 16px;
    }

    /* Courses Grid */
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Navigation Adjustments */
    .menu {
        gap: 40px;
    }

    /* Courses Grid */
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    /* Mobile Navigation */
    .menu-icon {
        display: block;
        text-align: right;
        padding: 0 15px;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1a2a3a;
        z-index: 1000;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* Dropdown Adjustments */
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}


