/* Style Global */
*,
html {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: #f0f4c3 !important;
    font-family: "Segoe UI", sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.collaps {
    color: red;
}

main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    overflow-x: hidden !important;
}

/* Navbar */
 nav {
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    z-index: 1000;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 50px;
    width: 90%;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease-in-out;
} 

/* Navbar Links */
nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    color: #191919;
    font-weight: 600;
    padding: 8px 0;
    transition: all 300ms;
    border-bottom: 1px solid rgba(255, 68, 0, 0);
}

nav ul li a:hover {
    color: orangered;
    border-bottom: 1px solid orangered;
}

.menu-icon {
    font-size: 40px;
    display: none;
}

nav div img {
    width: 40px;
    height: 40px;
    border-radius: 40px;
}

/* header */
#header {
    position: relative;
    min-height: 100vh;
    /* Full layar */
    display: flex;
    background: #000;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-top: 30px;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/header1.jpg") center/cover no-repeat fixed;
    filter: blur(1px);
    z-index: 0;
    opacity: 0.4;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content {
    max-width: 50%;
    margin-left: 70px;
}

.header-content h1 {
    font-size: 2.5em !important;
}

.header-content p {
    font-size: 1.5em !important;
}


/* profile */
section {
    padding: 0;
}

#profil {
    margin-top: 0;
    background-color: #f0f4c3;
    /* Hijau terang */
    min-height: 60%;
}

.profil-teks h2 {
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    margin-bottom: 1rem;
}

.profil-teks p {
    text-align: justify;
}

.container-profil {
    display: flex;
}

.profil-teks {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px;
}

.container-profil img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin: 30px;
}

.icon {
    height: 150px;
    width: 150px;
}

.container-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #fff;
    margin: 0;
    height: 400px;
}

.container-icon h2 {
    margin: 30px;
    font-weight: bold;
    font-size: 30px;
}

.teks-jumlah {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
}

.item-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px;
    border-right: 2px solid yellow;
}

.icon-radio {
    margin-left: 100px;
    display: flex;
    margin-right: 40px;
}

.icon-radio .item-icon {
    margin: 0 20px;
}


/* contain card */
.container-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.container-card h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.icon-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    margin: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition:
        background-color 0.3s,
        border-color 0.3s;
    /* Tambahkan transisi untuk efek hover */
}

.card-icon {
    justify-content: center;
}

.card-icon img {
    width: 100px;
    height: 100px;
}

.card h3 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #333;
}

.card p {
    font-size: 1em;
    color: #666;
}

.card:hover {
    background-color: #d4edda;
    /* Warna hijau muda */
    border-color: #c3e6cb;
    /* Warna hijau lebih tua untuk border */
}

.card:active {
    background-color: #c3e6cb;
    /* Warna hijau lebih tua */
    border-color: #a1d1a7;
    /* Warna hijau lebih tua lagi untuk border */
    transition:
        background-color 0.1s,
        border-color 0.1s;
    /* Animasi transisi lebih cepat */
}

/* Gaya untuk Alumni */
.container-alumni {
    margin: 0;
    text-align: center;
    padding: 50px 0;
    background: url("assets/header1.jpg") no-repeat center center;
    background-size: cover;
}

.alumni-card {
    background-color: rgba(255,
            255,
            255,
            0.8);
    /* Transparansi agar teks lebih mudah dibaca */
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    /* Untuk menyelaraskan teks di kiri */
}

.alumni-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.alumni-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.alumni-quote {
    font-size: 1rem;
    color: #555;
}

/* Gaya untuk Berita Terbaru */
.container-news {
    padding: 50px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.container-news h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: bold;
}

.news-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-card p {
    font-size: 1rem;
    color: #ff9800;
}

.load-more {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
}

.load-more:hover {
    background-color: #ff9800;
    color: #fff;
}

/* Gaya untuk Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 50px 0;
    text-align: center;
    color: white !important;
    position: relative;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-logo img {
    max-width: 100px;
    margin-bottom: 10px;
}

.footer-info {
    flex: 2;
    min-width: 200px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-contact,
.footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-contact p {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #ff9800;
}

.footer-social {
    text-align: left;
}

.footer-map {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.footer-social .social-icon {
    font-size: 50px;
    color: #ff9800;
    margin-right: 10px;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    color: #4caf50;
}

.footer-bottom {
    background-color: #4caf50;
    color: white;
    padding: 10px 0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.footer-bottom p {
    margin: 0 0;
}


/* view mobail */
@media only screen and (max-width: 768px) {

    /* navbar */
    nav {
        flex-wrap: wrap;
        background-color: white;
        border-radius: 40px;
        width: 85%;
        height: auto;
        margin: 20px auto;
    }

    nav div img {
        width: 40px;
        height: 40px;
        border-radius: 50px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li:last-of-type {
        padding-bottom: 8px;
    }

    nav ul.hidden {
        display: none;
    }

    .menu-icon {
        display: flex;
        align-items: center;
        font-size: 30px;
    }

    .navbar-collapse {
        position: absolute;
        right: 25px;
        top: 10px;
    }

    /* header */
    #header {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
        margin-top: 0;
        padding-bottom: 180px;
    }

    .header-content {
        max-width: 100%;
        margin-bottom: 0.5rem;
        /* Kurangi jarak margin bawah */
        margin: 0;
    }

    .header-content h1 {
        margin-bottom: 0.5rem;
        /* Kurangi jarak margin bawah */
    }

    .header-content p {
        margin-bottom: 0.5rem;
        /* Kurangi jarak margin bawah */
    }

    /* profile */
    .profil-teks h2 {
        font-weight: 500;
        font-size: 25px;
        text-align: center;
        margin-bottom: 1rem;
    }

    .icon {
        height: 60px;
        width: 60px;
    }

    .container-icon {
        height: auto;
    }

    .container-icon h2 {
        margin: 10px;
        font-weight: 500;
        font-size: 25px;
        margin-bottom: 40px;
    }

    .container-profil {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
        /* Menyesuaikan tinggi navbar */
    }

    .container-profil img {
        height: auto;
        border-radius: 10px;
        margin: 0;
    }

    .container-icon {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .icon-radio {
        flex-direction: column;
        margin: 0;
    }

    .item-icon {
        margin: 20px 0;
        border-right: 0;
    }

    /* contain card */
    .icon-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .alumni-card,
    .news-card {
        width: 90%;
    }

    .footer-social .social-icon {
        font-size: 30px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}


/* view tablet */
@media only screen and (max-width: 500px) {
    #judulHeader {
        font-size: 2.5em !important;
    }

    #deskHeader {
        font-size: 1em !important;
    }
}