/* General Header Styling */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #333;
    color: #fff;
    box-sizing: border-box;
}

/* Logo and Address Section */
.header-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Space out logo and contact info */
    align-items: center; /* Vertically center items */
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

/* Contact Info */
.contact-info {
    text-align: right;
    font-size: 1.19rem; /* Slightly larger font size */
    line-height: 1.2; /* Ensures proper spacing */
    white-space: nowrap; /* Prevent text wrapping */
    margin: 0;
}

/* Logo Styling */
.logo {
    flex-shrink: 1; /* Prevent logo from overflowing */
    display: flex;
    align-items: center; /* Vertically center the image */
    justify-content: flex-start; /* Align to the left */
    max-width: calc(100% - 30%); /* Remaining space (30% assumed for contact info) */
}

.logo img {
    height: 90%; /* Scale the height to 90% of the contact info */
    max-height: 3.2rem; /* Slightly smaller maximum height */
    width: auto; /* Maintain aspect ratio */
}



/* Topmenu Styling */
.topmenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 98%; /* Take 98% of the width */
    margin: 0 auto;
    background-color: #444;
    padding: 10px 0;
    box-sizing: border-box;
}

.topmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically by default */
    gap: 10px;
    text-align: center; /* Center-align text */
}

.topmenu ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    text-transform: uppercase; /* Convert text to ALL CAPS */
    font-size: 1.2rem; /* Larger font size (scalable) */
    font-weight: bold; /* Make the text stand out */
    letter-spacing: 1px; /* Add spacing for emphasis */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

/* Add Subtle Hover Effect */
.topmenu ul li a:hover {
    color: #ffcc00; /* Highlight text color on hover */
    transform: translateY(-2px); /* Slight upward shift */
    text-shadow: 0 2px 5px rgba(255, 204, 0, 0.5); /* Subtle glow effect */
}

.topmenu a.active {
    background-color: #ffcc00;
    color: #000;
    border-radius: 4px;
    padding: 8px 12px;
}

/* Widescreen Adjustments */
@media (min-width: 768px) {
    .topmenu ul {
        flex-direction: row; /* Align items horizontally */
        justify-content: space-around;
    }
}


/* General Footer Styling */
footer {
    display: flex;
    flex-direction: column; /* Mobile-first: Stack items vertically */
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 20px 10px;
    box-sizing: border-box;
    text-align: center;
    gap: 20px; /* Space between sections */
    flex-shrink:0; /* Prevents footer from stretching */
}

/* Mini Menu Styling */
.mini-menu ul {
    display: flex;
    justify-content: center; /* Center horizontally */
    gap: 15px; /* Space between items */
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.mini-menu a:hover {
    color: #ffcc00; /* Highlight color on hover */
}

/* Colophon Styling */
.colophon p {
    font-size: 0.65rem; /* Smaller text size */
    margin: 5px 0;
    max-width: 600px; /* Prevent excessive line length */
}

/* Social Media Menu Styling */
.social-media-menu ul {
    display: flex;
    justify-content: center; /* Center horizontally */
    gap: 15px; /* Space between items */
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-media-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-media-menu a:hover {
    color: #ffcc00; /* Highlight color on hover */
}

/* Widescreen Adjustments */
@media (min-width: 768px) {
    footer {
        flex-direction: row; /* Align items horizontally */
        justify-content: space-between; /* Distribute sections */
        align-items: center;
        text-align: center; /* Keeps colophon centered */
        min-height: 80px; /* 🔧 Ensures footer does not shrink too much */
        max-height: 150px; /* 🔧 Prevents the footer from being too tall */
    }

    .mini-menu {
        flex: 1; /* Takes up equal space */
        display: flex;
        flex-direction: column; /* Align menu vertically */
        align-items: flex-start; /* Align to the left */
        text-align: left; /* Align text to the left */
    }

    .colophon {
        flex: 2; /* Center column takes up more space */
        display: flex;
        flex-direction: column; /* Stack <p> elements vertically */
        justify-content: center; /* Center align vertically */
        align-items: center; /* Center align horizontally */
        gap: 10px; /* Add space between <p> sections */
    }

    .social-media-menu {
        flex: 1; /* Takes up equal space */
        display: flex;
        flex-direction: column; /* Align menu vertically */
        align-items: flex-end; /* Align to the right */
        text-align: right; /* Align text to the right */
    }

    .mini-menu ul, .social-media-menu ul {
        flex-direction: column; /* Stack links vertically */
        gap: 10px;
    }
}
