body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Stylish Horizontal Rule */
hr {
    border: 0;
    height: 4px;
    background: linear-gradient(to right, #ff8000, #f5f5dc, #ff8000);
    margin: 40px auto;
    width: 80%;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Core Values Section */
.core-values {
    margin-top: 60px;
    text-align: center;
    padding: 20px;
}

.core-values h2 {
    font-size: 36px;
    color: black;
    font-weight: bold;
}

.core-values p {
    color: #333;
    font-size: 20px;
    margin-bottom: 30px;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    max-width: 900px;
    margin: auto;
}

.value-card {
    background-color: #f5f5dc;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.value-card h3 {
    color: #ff8000;
    font-size: 31px;
    font-weight: bold;
    margin-bottom: 15px;
}

.value-card p {
    color: #555;
    font-size: 18px;
}

/* Committees Section */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #f5f5dc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    color: #ff8000;
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    background-color: rgb(243, 210, 181);
    color: white;
}

.card h3 {
    margin-bottom: 10px;
    color: #ff8000;
}

.card p {
    font-size: 14px;
    color: #333;
}

.public-relations {
    grid-column: 2/3;
}


/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 750px;
    text-align: left;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup button {
    background-color: #ff8000;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
}

.popup button:hover {
    background-color: #cc6600;
}

.popup h3 {
    color: #ff8000;
    text-align: center;
}

#popupText {
    line-height: 1.8;
    font-size: 1rem;
}

/* Leadership Section */
.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 90%;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f5dc;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    width: 120px;
    flex-shrink: 0;
}

.profile:hover {
    transform: scale(1.05);
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #ff8000;
}

.profile h3 {
    margin: 8px 0 0;
    color: #ff8000;
    font-size: 14px;
}

.president {
    background-color: #ff8000;
    color: white;
    padding: 20px;
    border-radius: 15px;
    width: 150px;
}

.president h3 {
    color: white;
}

/* Responsiveness */
@media (max-width: 920px) {
    .public-relations {
        grid-column: 1/2;
    }

}

@media (max-width: 768px) {
    .values-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .card {
        padding: 15px;
    }

    .popup {
        width: 90%;
        max-width: 450px;
        padding: 15px;
    }

    .popup button {
        padding: 8px 14px;
    }

    .profile {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .core-values h2 {
        font-size: 24px;
    }

    .core-values p {
        font-size: 14px;
    }

    .value-card {
        padding: 15px;
    }

    .popup {
        width: 90%;
        max-width: 350px;
        padding: 10px;
    }

    .popup button {
        padding: 6px 12px;
    }

    .card {
        padding: 12px;
    }

    .profile {
        width: 80px;
    }
}