/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #f7f8fc;
}

/* Dark mode heading and paragraph colors */
body.dark-mode h1, 
body.dark-mode .contact-info h3,
body.dark-mode p {
    color: #f7f8fc; /* Ensure headings and p are white */
}

/* Navbar */
.navbar {
    background-color: #343a40;
    padding: 1rem 2rem;
}

.navbar-brand img {
    width: 150px;
    height: 60px;
}

.navbar-nav .nav-link {
    color: #f8f9fa !important;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: #f39c12 !important;
    text-decoration: underline;
}

.navbar .dark-mode-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 2px;
    margin-top: 8px;
}

.dark-mode-switch i {
    color: #f39c12;
    font-size: 1.6rem;
}

/* Contact Page Styling */
h1 {
    font-size: 2.5rem;
    text-align: center;
    font-family: 'Lora', serif;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700; /* Bold for h1 */
}

.contact-box {
    display: flex; /* Use Flexbox to arrange content */
    justify-content: space-between; /* Ensure there's space between text and map */
    align-items: flex-start; /* Align both sections to the top */
    gap: 2rem; /* Adds space between the left and right sections */
    font-family: 'Lora', serif;
}

.contact-info {
    flex: 1; /* Allow the text content to take up available space */
    max-width: 50%; /* Ensure the text section takes up at most half the width */
    padding: 1rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700; /* Bold for h3 */
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #252525;
    text-align: left;
}

.container{
    flex: 1;
}

/* Make map container square */
.map-container {
    flex: 1; /* Allow the map container to take up available space */
    max-width: 50%; /* Ensure the map section takes up at most half the width */
    height: 400px; /* Square aspect ratio: height and width match */
    padding: 1rem;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    margin-top: 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center; /* Ensures center alignment in the middle section */
    flex-wrap: wrap; /* Allows stacking on small screens */
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer p {
    margin: 0;
}

/* Ensure content takes up full height */
body {
    display: flex;
    flex-direction: column;
}

/* Sticky Footer: Ensuring footer stays at the bottom */
footer {
    margin-top: auto; /* Ensure footer stays at the bottom */
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo-container img {
    width: 120px;
    height: auto;
}

/* Make map responsive: Adjust height for smaller screens */
@media (max-width: 768px) {
    .contact-box {
        flex-direction: column; /* Stack the sections vertically on small screens */
        gap: 1rem; /* Reduce the gap between the sections */
    }

    .contact-info {
        max-width: 100%; /* Make the text section take full width */
    }

    .map-container {
        height: 600px; /* Increase map height on smaller screens */
        max-width: 100%; /* Ensure the map takes full width */
    }

    h1 {
        font-size: 2rem; /* Smaller title size on mobile */
    }

    .contact-info h3 {
        font-size: 1.5rem; /* Adjust heading size */
    }

    .contact-info p {
        font-size: 1rem; /* Reduce paragraph text size */
    }
}
