body {
    margin: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* General Styling */
.containerBig {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-right: 5vw;
}

.sidenav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 250px;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 25px;
    margin-top: 25px;
    height: 450px;
}

.sidenav a,
.dropdown-btn {
    padding: 10px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.sidenav a:hover,
.dropdown-btn:hover {
    background-color: #ddd;
    color: #000;
}

.sidenav a.active,
.dropdown-btn.active {
    background-color: #555;
    color: white;
}

.dropdown-link {
    color: inherit;
    /* Matches button text color */
    text-decoration: none;
    /* Removes underline */
    padding: 0;
    /* Prevents padding overlap */
    display: inline-block;
    /* Allows proper alignment */
}

.dropdown-link:hover {
    text-decoration: underline;
    /* Adds hover effect for clarity */
}

.dropdown-container {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
}

.dropdown-btn.active+.dropdown-container {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .containerBig {
        grid-template-columns: 1fr;
    }

    .sidenav {
        width: 100%;
    }
}

.content {
    max-width: 800px;
    /* Limit width for better readability */
    margin: 0;
    /* Center content horizontally */
    padding: 20px;
    /* Add general padding */
    text-align: center;
    /* Center-align text */
    line-height: 1.7;
}

.content h4 {
    font-size: 1em;
}

/* Responsive Design for Mobile Screens */
@media (max-width: 768px) {
    .content {
        padding: 15px;
        /* Reduce padding for smaller screens */
    }

    .content-image {
        max-height: 300px;
        /* Smaller image for better fit */
    }
}

@media (max-width: 480px) {
    .content {
        padding: 10px;
        /* Further reduce padding for mobile phones */
    }

    .content h1 {
        font-size: 1.8em;
        /* Slightly smaller heading size */
    }
}

/************/
.pagetitle {
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    /* Bigger font size */
    color: rgb(51, 51, 51);
    padding-left: 5vw;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ONU Section */
.containeronu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns of equal width */
    grid-auto-rows: 1fr;
    /* Ensure equal height for both items */
    align-items: stretch;
    /* Ensure both columns stretch to match height */
    width: 100%;
}

.imageonu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image fills its container without distortion */
}

.text {
    background-color: lightgray;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .containeronu {
        grid-template-columns: 1fr;
        /* Stack content vertically */
    }

    .imageonu img {
        height: auto;
        /* Allow the image to resize naturally */
    }

}

.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2vw;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.container-fluid {
    padding: 20px 20px;
    height: auto;
}

.englishtransform {
    background-color: #faf6f6;
    margin-top: 3vw;
    padding: 15px;
    border-radius: 12px;
}

.englishtransform ul li {
    padding: 3px;
}

/* entry test*/
.entrytest {
    display: flex;
    gap: 0.5rem;
}

.entrytest a {
    flex: 1;
    background-color: #333;
    color: #fff;
    border: 1px solid;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s ease-out;
}

.entrytest a:hover,
.entrytest a:focus {
    background-color: #fff;
    color: #333;
}