/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: #f4faff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Unified Sidebar (Copied from styles.css) --- */
.side-bar {
    width: 280px; /* Desktop width */
    background: linear-gradient(180deg, #002366 0%, #001a4d 100%);
    color: white;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Above overlay */
    transition: transform 0.3s ease-out; /* Transition for mobile */
    overflow-y: auto; /* Allow sidebar scrolling if content overflows */
}

.logo-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px; /* More space */
    text-align: center;
    width: 100%;
}

.logo {
    width: 180px; /* Adjusted size */
    height: auto;
    margin-bottom: 15px;
    opacity: 0.9; /* Slightly less transparent */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.animated-text {
    font-size: 1.1rem; /* Adjusted size */
    margin: 10px 0 5px 0; /* Adjusted margin */
    color: #ffffff;
    font-weight: 600;
}

.animated-subtext {
    font-size: 0.85rem; /* Adjusted size */
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.side-bar ul {
    list-style: none;
    width: 100%; /* Full width */
    padding: 0 10px; /* Add padding */
    margin: 0;
    flex-grow: 1; /* Allow list to take remaining space */
}

.side-bar ul li {
    margin: 10px 0; /* Adjusted margin */
}

.nav-item { /* Unified class for sidebar links */
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85); /* Brighter text */
    font-weight: 500;
    padding: 12px 18px; /* Adjusted padding */
    display: flex;
    align-items: center;
    text-align: left;
    border-radius: 8px; /* Smoother radius */
    background: transparent; /* Transparent background */
    border: 1px solid transparent; /* Placeholder for transition */
    transition: all 0.25s ease-out;
    position: relative;
    overflow: hidden;
}

.nav-item i {
    margin-right: 15px; /* More space */
    font-size: 1.1em;
    min-width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
}

.nav-item .nav-text {
    color: inherit; /* Inherit color from <a> */
    transition: color 0.25s ease-out;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff; /* Full white on hover */
    transform: translateX(5px); /* Subtle move */
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active {
    background: #0054a6; /* Solid active background */
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-item.active i {
    color: #ffffff;
}

/* Ripple Effect */
.ripple:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 1;
    pointer-events: none;
}
.ripple:active:before {
    transform: translate(-50%, -50%) scale(100);
    opacity: 0;
    transition: 0s;
}

/* Sidebar Bottom Links (Desktop) */
.sidebar-bottom-links {
    margin-top: auto; /* Push to bottom */
    padding: 15px 10px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}
.bottom-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}
.bottom-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.bottom-nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Highlight contact us in sidebar */
.bottom-nav-item[href="contact.php"] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
}

/* --- Mobile Menu Specific (Copied from styles.css) --- */
.mobile-menu-icon {
    display: none; /* Hidden by default, shown in media query */
    background: rgba(0, 84, 166, 0.8); /* Make button background blue */
    border: none;
    color: white; /* Icon color */
    font-size: 22px; /* Slightly smaller icon */
    padding: 0; /* Remove padding, use width/height */
    cursor: pointer;
    position: fixed;
    top: 10px; /* Adjust position */
    left: 10px;
    z-index: 1002; /* Above sidebar and overlay */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    width: 44px; /* Touch target size */
    height: 44px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.mobile-menu-icon.active {
    background-color: rgba(255, 255, 255, 0.9); /* White background */
    color: #0054a6; /* Blue icon */
}
.mobile-menu-icon:hover {
    background-color: rgba(0, 84, 166, 1);
}
.mobile-menu-icon.active:hover {
     background-color: rgba(255, 255, 255, 1);
}
.nav-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000; /* Below sidebar, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0s 0.3s linear;
}
.nav-overlay.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0s 0s linear;
}

/* --- Main Content Layout --- */
.main-content {
    width: calc(100% - 280px);
    margin-left: 280px;
    padding: 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Contact Page Specific Styles --- */
.contact-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: #002366;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-header p {
    font-size: 1.1rem;
    color: #0054a6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-bottom: 20px;
}

/* Contact Form Styles */
.contact-form {
    flex: 1;
    max-width: none;
    margin: 0;
    background: #fff;
    padding: 35px; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08);
    margin-bottom: 40px; /* More space */
    height: fit-content;
}

/* Enhanced form styling */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #002366;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
    transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #0054a6;
    box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.1);
    outline: none;
}

.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover,
.form-group textarea:hover {
    border-color: #0054a6;
}

.form-group.focused label {
    color: #0054a6;
}

.form-group textarea {
    height: 140px; /* Increased height */
    resize: vertical;
}

/* Loading state for submit button */
.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.submit-button .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #0054a6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem; /* Slightly larger font */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 35, 102, 0.2);
}

.submit-button:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 35, 102, 0.3);
}

.submit-button i {
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* Contact Info Styles */
.contact-info {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.info-card {
    margin: 0;
    height: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8f0f8;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.12);
}

.info-card i {
    font-size: 2rem; /* Larger icons */
    color: #0054a6;
    margin-bottom: 18px; /* More space */
    display: inline-block; /* Needed for margin */
}

.info-card h3 {
    font-size: 1.25rem;
    color: #002366;
    margin-bottom: 12px;
}

.info-card p {
    margin: 8px 0; /* More space */
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card a { /* Style links within info cards */
    color: #0054a6;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-weight: 500;
}

.info-card a:hover {
    color: #003d7a;
    text-decoration: underline;
}

.location-link { /* Specific style for location link if needed */
    display: block;
    margin-top: 5px;
}

/* Move social links to bottom of form */
.social-links {
    width: 100%;
    margin-top: 20px;
    order: 3;
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced gap */
}

.social-links h3 {
    margin-bottom: 10px; /* Added space */
    color: #002366;
    font-size: 1.3rem; /* Adjusted size */
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 5px; /* Reduced margin */
}

.social-icon { /* General icon style */
    width: 44px; /* Larger touch target */
    height: 44px;
    border-radius: 50%;
    background: #0054a6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.2rem; /* Adjusted icon size */
}

.social-icon:hover {
    transform: scale(1.1);
    background: #003d7a;
}

.facebook-icon { /* Specific Facebook style */
    background: #1877f2; /* Facebook blue */
    font-size: 1.4rem; /* Larger FB icon */
}

.facebook-icon:hover {
    background: #105fcc; /* Darker FB blue */
}

/* --- Footer Styling (Copied from styles.css) --- */
.footer {
    text-align: center;
    padding: 15px; /* Increased padding */
    background-color: #001a4d; /* Darker footer */
    color: rgba(255, 255, 255, 0.7);
    width: calc(100% - 280px); /* Adjust based on sidebar width */
    margin-left: 280px;
    font-size: 0.85rem;
    z-index: 100;
    margin-top: auto; /* Push to bottom */
    transition: margin-left 0.3s ease-out, width 0.3s ease-out;
    position: static; /* Make footer static by default */
}

/* --- Responsive --- */

/* Medium devices (Tablets & Smaller Desktops) */
@media screen and (max-width: 992px) {
    .side-bar {
        transform: translateX(-100%);
        position: fixed;
        width: 280px;
        height: 100%;
    }
    .side-bar.active {
        transform: translateX(0);
    }

    .mobile-menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-overlay {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 80px 20px 40px 20px;
    }

    .footer {
        width: 100%;
        margin-left: 0;
        position: static;
        margin-top: 30px;
    }

    .logo {
        width: 150px;
    }
    .sidebar-bottom-links {
        display: block;
    }
    .contact-container {
        flex-direction: column-reverse;
    }

    .contact-info {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .info-card {
        flex: 1;
        min-width: 250px;
    }
}

/* Small devices (Mobile phones) */
@media screen and (max-width: 768px) {
    .main-content {
        padding: 75px 15px 30px 15px;
    }
    .contact-header h2 { font-size: 1.8rem; }
    .contact-header p { font-size: 1rem; }

    .contact-container {
        gap: 20px;
    }

    .contact-info {
        flex-direction: column;
    }

    .info-card {
        width: 100%;
    }

    .contact-info {
        grid-template-columns: 1fr; /* Stack info cards */
        gap: 15px;
    }
    .info-card { padding: 20px; } /* Adjust padding */

    .contact-form { padding: 25px; } /* Adjust padding */
    .form-group { margin-bottom: 20px; }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea { padding: 12px; }

    .footer {
        padding: 10px;
        font-size: 0.8rem;
    }

    /* Mobile Sidebar Expansion */
    .side-bar .logo { width: 180px; margin-bottom: 20px; }
    .side-bar .nav-item { padding: 15px 20px; font-size: 1rem; margin: 12px 0; }
    .side-bar .nav-item i { font-size: 1.2em; margin-right: 18px; }
    .sidebar-bottom-links { padding: 20px 15px 15px 15px; }
    .bottom-nav-item { padding: 12px 15px; font-size: 0.95rem; }
    .bottom-nav-item i { font-size: 1.1rem; }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
     .main-content {
        padding: 70px 10px 20px 10px;
    }
    .logo { width: 120px; }
    .animated-text { font-size: 1rem; }
    .animated-subtext { font-size: 0.8rem; }
    .nav-item { padding: 12px 15px; font-size: 0.95rem; }
    .nav-item i { margin-right: 12px; }

    .contact-header h2 { font-size: 1.5rem; }
    .contact-header p { font-size: 0.9rem; }
    .info-card h3 { font-size: 1.1rem; }
    .info-card p { font-size: 0.9rem; }
    .info-card i { font-size: 1.8rem; }
    .contact-form { padding: 20px; }
    .submit-button { font-size: 1rem; padding: 12px; }
}

/* Landscape orientation fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
   .side-bar { overflow-y: auto; }
}

/* Touch-friendly adjustments */
@media (hover: none) {
    .nav-item:hover { background: transparent; transform: none; }
    .nav-item:active { background: rgba(255, 255, 255, 0.1); }
    .info-card:hover { transform: none; box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08); }
    .submit-button:hover { background: #0054a6; transform: none; box-shadow: 0 2px 5px rgba(0, 35, 102, 0.2); }
    .social-icon:hover { transform: none; background: #0054a6; }
    .facebook-icon:hover { background: #1877f2; }
}

