/* General Styles */
body {
    font-family: sans-serif;
    margin: 0;
    color: #333;
    background-color: #f0f0f0;
}

/* Header Styles */
header {
    background-color: #00344d;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    z-index: 100;
    isolation: isolate;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #f0f0f0;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding-right: 5px;
}

.menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    margin: 2px 0;
}

header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #00344d;
    width: 200px;
    z-index: 10;
}

header nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 10px 20px;
    display: block;
    text-align: left;
}

header nav.show {
    display: flex;
}

.header-line {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    margin: 10px 0;
}

/* Full-Width Image/Video Styles */
.full-width-image, .full-width-video {
    position: relative;
    width: 100%; /* Changed from 100vw */
    margin: 0;
    overflow: hidden;
    z-index: 1;
    display: flex;  /* Added flexbox to contain content within the view */
    justify-content: center;
    align-items: center;
}

/* Style for both images and videos inside the container */
.full-width-image img, .full-width-video video {
    width: 100%;
    display: block;
    height: auto;
}

/* Full-Width Video Styles */
.full-width-video {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    z-index: 1;
    padding-bottom: 45.83%; /* Adjusted for 1920x880 aspect ratio */
    height: 0; /* Set height to zero as padding defines the height. */
}

.full-width-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

/* Optional overlay to make text more visible */
.full-width-image::before, .full-width-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Floating Text Styles */
.floating-text {
    position: absolute;
    color: white;
    font-size: 3vw;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 2;
    pointer-events: none;
    width: 80%; /* Set width to 80% of the parent container */
    max-width: 80%; /* Ensure it doesn't exceed 80% of the parent container */
    left: 50%; /* Center the text horizontally */
    transform: translateX(-50%); /* Adjust for centering */
}

/* Adjusted floating text positioning */
.text-position-50 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-position-70 {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Main Content Area */
main {
    padding: 20px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 8px;
    z-index: 1;
}

/* Footer Styles */
footer {
    background-color: #00344d;
    color: #f0f0f0;
    padding: 1em;
    text-align: center;
}

/* Partner Sections Styles */
.partner-category h2 {
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Partner Grid Layout */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px;
    margin-top: 20px;
}

/* Partner Card Styles */
.partner-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease;
    word-wrap: break-word; /* Added to wrap text within cards */
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Shared styling for the links, ensure they do not have decorations */
a.partner-card {
    text-decoration: none;
    color: inherit;
}

/* Media Queries */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
    }

    .floating-text {
        font-size: 6vw;
        width: 90%; /* Adjust width for smaller screens */
        max-width: 90%; /* Adjust max-width for smaller screens */
    }

    .partner-grid {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
    }
}