body {
    font-family: "Elms Sans", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;   
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
header {
    background-color: #1c2f59;
    color: #e0e0e0;
    padding: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    font-size: 2.3rem;
    flex-direction: row;
}

.header-logo {
    display: none; /* Hidden on large devices */
}

.logo {
    font-size: 1rem;
    font-weight: bold;
}

.logo a {
    color: inherit; /* Inherit from header color */
    text-decoration: none;
}

.logo a:hover {
    text-decoration: underline;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav a {
    color: inherit; /* Inherit from header color */
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

#menu__toggle {
    opacity: 0;
}

#menu__toggle:checked + .menu__btn > span {
    transform: rotate(45deg);
}

#menu__toggle:checked + .menu__btn > span::before {
    top: 0;
    transform: rotate(0deg);
}

#menu__toggle:checked + .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
}

#menu__toggle:checked ~ .menu__box {
    right: 0 !important;
}

.menu__btn {
    display: none; /* Hidden by default on larger screens */
    position: fixed;
    top: 20px;
    right: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 100;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: flex;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    transition-duration: .25s;
    z-index: 100;
    justify-content: space-between;
}

.menu__btn > span::before {
    content: '';
    top: -8px;
}

.menu__btn > span::after {
    content: '';
    top: 8px;
}

.menu__box {
    display: none; /* Hidden by default on larger screens */
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #6e8dc4;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
    transition-duration: .25s;
    z-index: 100;
}

.menu__item {
    display: flex;
    padding: 12px 24px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition-duration: .25s;
    justify-content: center;
}

.menu__item:hover {
    background-color: white;
}

/* DEBUG FIX: Styles for the menu close button */
#menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    transition: color 0.3s ease;
}

#menu-close:hover {
    color: #ccc;
}

.banner {
    margin-top: 50px; /* Adjust for fixed header */
    text-align: center;
}

.banner img {
    width: 100%;
    height: auto;
    max-height: 550px;  /*Optional: limit height for better layout */
    object-fit: cover;
    background-size: auto;
}

main {
    flex: 1;
    padding: 2rem;
    text-align: center;
}

section {
    margin-bottom: 2rem;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(auto, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.media-item {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: center;
}

.media-item a {
    text-decoration: none;
    color: inherit;
}

.media-item img {
    width: 300px; 
    height: 300px; 
    object-fit: contain;
    cursor: pointer;
}

.map-container {
    margin-top: 2rem;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 1px solid #ddd;
}

footer {
    background-color: #1c2f59; /* Ensure footer has background */
    color: white;
}

.footer-content {
    display: grid;
    grid-template-areas:
        "logo contact additional"
        "social social social";
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    max-width: 1200px; /* Limit content width to match container */
    margin: 0 auto; /* Center the content */
    padding: 20px; /* Optional: Add some padding for better spacing */
    color: white; /* Added to match header */
    font-size: 1rem;
}

.footer-content .logo {
    grid-area: logo;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.contact-info {
    grid-area: contact;
}

.additional-info {
    grid-area: additional;
}

.social-links {
    grid-area: social;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-content a {
    color: white; 
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline; /* Added to match header hover */
}

/* Updated styles for partner banner */
.partner-banner {
    background-color: #f0f0f0; 
    padding: 20px 0;
    text-align: center;
    color: black;
    border-top: 1px solid #ddd; /* Optional separator */
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 3 columns */
    /*grid-template-rows: repeat(2, 1fr);  2 rows */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center; /* Center items horizontally in grid cells */
    align-items: center; /* Center items vertically in grid cells */
}

.partner-logos img {
    max-width: 300px; /* Adjust size as needed */
    height: auto;            
    transition: transform 0.3s ease; /* Changed to transform for scaling */
}    

.partner-logos img:hover { /* Fixed selector: added colon */
    transform: scale(1.2);
}

#search-icon {
    background: none;
    border: none;
    font-size: 20px;
    color: #007bff;
    cursor: pointer;    
    padding: 0px;
    transition: color 0.3s ease;
    margin-left: 20px;
}

/* Hover effect for desktop icon */
#search-icon:hover {
    color: #28a745;
}

/* NEW: Styles for the mobile search icon (below hamburger) */
#mobile-search-icon {
    background: #1c2f59;
    border: none;
    font-size: 20px;
    color: #007bff;
    cursor: pointer;
    padding: 0px;
    transition: color 0.3s ease;
    position: fixed; /* Fixed position for precise placement */
    right: 60px; /* To the left of hamburger (hamburger at right: 20px + gap) */
    top: 8px; /* Aligned horizontally with hamburger */
    display: none; /* Hidden by default */
    z-index: 100;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

#search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#modal-search-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#modal-submit-search {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#modal-submit-search:hover {
    background-color: #0056b3;
}

/* Added styles for button and table */
.btn {
    background-color: #1A2E55;
    border: none;
    color: white;
    padding: 14px 50px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    margin: 4px 2px;
}

.btn:hover {
    background-color: #ffffff;
    color: black;
    border: 2px solid #1A2E55;
}

.Box2 {
    background-color: #c5d9f1;
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;            
}

.Box3 {
    background-color: #8ba6d5;
    padding: 8px;
    border: 1px solid #ddd;
    font-weight: bold;
    text-align: center;
    color:#283663 ;
}

.Box1 {
    background-color: #6e8dc4;
    padding: 8px;
    border: 1px solid #ddd;
    font-weight: bold;
    text-align: center;
    color: white;
}

.Box4{
    background-color: white;        
}

table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 80%;
    max-width: 858px;
}

.model-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.model-photo {
    flex: 1;
    min-width: 300px;
}

.model-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.model-description {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

@media (max-width: 768px) {
    .banner {
        margin-top: 9px; /* Keep margin for header on mobile */
    }
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; /* Center-align text for better mobile appearance */
        gap: 1rem;
    }
    .footer-content .logo {
        order: 1;
        margin-bottom: 10px;
    }
    .contact-info {
        order: 2;
        margin-bottom: 10px;
    }
    .additional-info {
        order: 3;
        margin-bottom: 10px;
    }
    .social-links {
        order: 4;
        color: white; 
        display: flex; 
        justify-content: center;
        gap: 10px; 
    }
    .hamburger {
        display: none; 
    }
    nav {
        display: none; 
    }
    .menu__btn {
        display: block; 
    }
    .menu__box {
        display: block;
    }
    .banner img {
        max-height: 300px; /* Smaller on mobile */
    }
    .media-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .media-item img {
        width: 150px; /* Smaller uniform size on mobile */
        height: 150px;
    }
    .map-container iframe {
        height: 300px;
    }
    /* Mobile adjustments for partner banner */
    .partner-logos {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile for better fit */
        grid-template-rows: auto; /* Auto rows */
        gap: 10px;
    }
    .partner-logos img {
        max-width: 100px; /* Smaller on mobile */
    }
    /* Existing media query for search icons */
    #search-icon {
        display: none; /* Hide desktop icon on mobile */
    }
    #mobile-search-icon {
        display: block; /* Show mobile icon below hamburger */
    }
    header {
        flex-direction: column;
        text-align: center;
    }
    .header-logo {
        display: block; /* Show logo on small devices */
        align-items: center;
    }
    nav ul {
        display: none;
    }
    table {
        width: 100%;
        font-size: 0.9rem;
    }
    .model-section {
        flex-direction: column;
    }
}
@media (min-width: 769px) {
    .header-logo {
        display: none;
    }
}
