/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/OIP.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding:0;
    position: relative;
}

.header-content {
    padding: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
    /* Warna kuning */
}

header p {
    font-size: 1.2rem;
    color: #06a872;
    font-weight: 500;
    /* Warna biru-hijau */
}

header h2 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: wheat
    /* Warna kuning */
}

/* Navigation Styles */
#navbar {
    background-color: rgba(46, 139, 87, 0.9);
    /* Warna hijau dengan transparansi 80% */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0%;
}


.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FFD700;
    /* Warna kuning */
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Main Content Styles */
main {
    padding: 1rem;
    max-width: 1200px;
    margin: 0;
    margin-top: 0%;
    padding-top: 0%;

}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #2E8B57;
    /* Warna hijau */
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4682B4;
    /* Warna biru */
}

/* Materi Section Styles */
/* ... (kode sebelumnya tetap sama) ... */

/* Styling untuk card materi */
.materi-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.materi-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

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

.materi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.materi-content {
    padding: 1.5rem;
    flex: 1;
}

.materi-content h3 {
    color: #4682B4;
    margin-bottom: 1rem;
}

.materi-content p {
    color: #666;
    margin-bottom: 1rem;
}

.baca-selengkapnya {
    color: #2E8B57;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.materi-card:hover .baca-selengkapnya {
    color: #FFD700;
}

@media (min-width: 768px) {
    .materi-link {
        flex-direction: row;
    }

    .materi-card img {
        width: 300px;
        height: auto;
    }
}

/* ... (kode setelahnya tetap sama) ... */

/* Tugas Section Styles */
.tugas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tugas-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
}

.tugas-item:hover {
    transform: translateY(-5px);
}

.tugas-item i {
    font-size: 2.5rem;
    color: #2E8B57;
    /* Warna hijau */
    margin-bottom: 1rem;
}

.tugas-item h3 {
    color: #4682B4;
    /* Warna biru */
    margin-bottom: 0.5rem;
}

.tugas-item p {
    color: #666;
    margin-bottom: 1rem;
}

.detail-btn {
    background-color: #FFD700;
    /* Warna kuning */
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.detail-btn:hover {
    background-color: #FFC000;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

/* Footer Styles */
footer {
    background-color: #4682B4;
    /* Warna biru */
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h2 {
    color: #FFD700;
    /* Warna kuning */
    border-bottom: 2px solid #2E8B57;
    /* Warna hijau */
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.social-media {
    margin: 1.5rem 0;
}

.social-media a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #FFD700;
    /* Warna kuning */
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .materi-card {
        flex-direction: column;
    }

    .materi-card img {
        width: 100%;
        height: auto;
    }
    #navbar {
        background-color: transparent; /* Hilangkan background navbar di mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #2E8B57;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .burger-menu {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}

/* Animation for burger menu */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}