/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background-color: #222; /* Dark navy background */
    color: #f4f4f4; /* Creamy white text color */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    text-align: center;
}

span {
    display: inline-block;
    font-size: 24px; /* Adjust the size as needed */
    vertical-align: middle;
}

h1, h2, h3 {
    font-size: 24px; /* Adjust the font size as needed */
}

h2 {
    font-size: 32px; /* Customize the font size of specific headers */
}

p {
    font-family: 'Merriweather', serif;
}

/* Header */
header {
    background-color: transparent;
    padding: 20px 0;
    text-align: center; /* Center the content */
}

nav ul {
    list-style: none;
    display: inline-block; /* Display inline */
}

nav ul li {
    display: inline; /* Display inline */
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #f4f4f4;
}

nav ul li a:hover {
    color: #a22121; /* Dark red color on hover */
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: transparent;
    min-width: 160px;
    box-shadow: none;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: rgb(226, 216, 216);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #222;
}

/* Container */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns with equal width */
    gap: 20px; /* Gap between grid items */
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    justify-content: center; /* Center the grid items */
}

/* Square Style */
.square {
    background-color: #222;
    border: 3px solid rgb(96, 11, 11);
    padding: 20px;
    margin-bottom: 20px;
    width: 200px;
    height: 200px;
    display: flex; /* Align items inside */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    box-sizing: border-box;
}

.square h3 {
    border-bottom: 2px solid rgb(96, 11, 11);
    padding-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Apply Button Style */
.apply-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: rgb(241, 238, 238);
    border: 3px solid rgb(96, 11, 11);
    padding: 10px 15px;
    text-decoration: none;
    margin-top: auto;
    transition: background-color 0.3s;
}

.apply-button:hover {
    background-color: rgb(96, 11, 11);
    color: white;
}

/* Media Queries */
@media only screen and (max-width: 767px) {
    .container {
        grid-template-columns: repeat(2, 1fr); /* Two columns layout on mobile */
        gap: 15px; /* Adjusted gap */
        padding: 10px; /* Reduced padding */
    }

    .square {
        width: 100%; /* Full width on mobile */
        height: auto; /* Adjust height based on content */
        padding: 10px; /* Adjust padding */
        box-sizing: border-box;
    }

    .international-delegation {
        display: flex; /* Use flexbox for centering */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        width: 100%; /* Ensure it takes full width */
    }
}
