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

a {
    text-decoration: none;
}

/* 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 auto;
    /* Center content horizontally */
    padding: 20px;
    /* Add general padding */
    text-align: center;
    /* Center-align text */
    line-height: 1.7;
}

.content h1 {
    text-align: center;
}

.content-image {
    width: 100%;
    /* Responsive width */
    max-height: 500px;
    /* Limit height for consistent visuals */
    object-fit: cover;
    /* Maintain aspect ratio */
    border-radius: 8px;
    /* Add slight rounded corners */
    margin-bottom: 20px;
    /* Space below the image */
}

/* 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;
}

/*Design of main content*/
.exams {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.exam-card {
    width: 100%;
    max-width: 500px;
    height: 550px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
}

.exam-card h6 {
    font-size: xx-large;
    margin-bottom: 10px;
}

.exam-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
}

.exam-card ul li {
    margin: 5px 0;
}

.exam-card.circle {
    border-radius: 50%;
}

.exam-card.square {
    border-radius: 5px;
}

.listening,
.writing {
    background-color: rgb(7, 92, 190);
}

.speaking,
.reading {
    background-color: rgb(227, 6, 19);
    opacity: 0.85;
    color: #000;
}

@media (max-width: 768px) {
    .exam-card {
        max-width: 90%;
        height: auto;
        font-size: 16px;
    }
}