/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #00095c;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 10px;
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-nav ul li {
    margin-left: 25px;
}

.top-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    transition: color 0.3s ease;
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
    color: #fff200;
}

/* Main Content Styles */
.container.contact-content {
    padding-top: 80px;
    /* Adjust for fixed header */
    padding-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-section,
.contact-form-section,
.map-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.contact-info-section h2,
.contact-form-section h2,
.map-section h2 {
    text-align: center;
    color: #00095c;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2em;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.detail-item {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    list-style: none;
    border: 1px solid #e0e0e0;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.detail-item i {
    font-size: 2.5em;
    color: #00095c;
    margin-bottom: 15px;
}

.detail-item h3 {
    margin-top: 0;
    color: #333;
}

.detail-item p,
.detail-item li {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.detail-item a {
    color: #0056b3;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
    box-shadow: #0011a8d7;
    border-color: #0056b3;
}

.submit-button {
    background-color: #4e7df5;
    /* Updated to match your image blue */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;

    /* FIXES START HERE */
    display: block;
    /* Changed from inline-block to block */
    margin: 0 auto;
    /* This now works because it's a block */
    width: fit-content;
    /* Prevents the button from stretching full width */
    text-align: center;
}


.submit-button a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}


.submit-button:hover {
    background-color: #0056b3;
}

.map-section iframe {
    border-radius: 8px;
}

/* Footer Styles */
footer {
    background-color: #00095c;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #ffd900;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #ffd900;
    text-decoration: underline;
}

/* --- Responsive Sidebar and Mobile Styles --- */

/* Sidebar Toggle Buttons (Hidden on Desktop) */
.menu-toggle-btn,
.close-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
}

.close-menu-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
}

/* Mobile Screens */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .top-nav {
        display: none;
    }

    .menu-toggle-btn {
        display: block;
    }


    .top-nav.open {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: #00095c;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        animation: slideInFromRight 0.4s ease-in-out;
        /* CHANGED: Use new animation */
    }

    /* CHANGED: New animation keyframes for right-side slide-in */
    @keyframes slideInFromRight {
        from {
            right: -100%;
        }

        to {
            right: 0;
        }
    }

    .close-menu-btn {
        display: block;
    }

    /* Vertical Navigation Links */
    .top-nav.open ul {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px;
        width: 100%;
    }

    .top-nav.open ul li {
        margin: 15px 25px;
        width: calc(100% - 50px);
    }

    .top-nav.open ul li a {
        font-size: 1.3em;
    }

    /* Other page content adjustments */
    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-info-section h2 {
        font-size: 1.8em;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 15px;
    }
}