/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', Tahoma, Geneva, Verdana, sans-serif;
}

#website-wrapper {
    width: 100%;
    background-color: #f8f9fa;
}



a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #007bff;
}

/* --- Header Section --- */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

/* --- Base Styles (Desktop First) --- */
.menus {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.dropdown {
    position: relative;
}

.categories {
    position: absolute;
    top: 100%; /* Changed from 200% to sit nicely right below the trigger */
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.categories a {
    padding: 12px 16px;
    white-space: nowrap;
    color: #333; /* Ensuring text color is visible */
    text-decoration: none;
    display: block;
}

.categories a:hover {
    background: #f5f5f5;
}

.categories.show {
    display: flex;
}

.search a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}



/* --- Full Screen Search Overlay --- */
form.search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Dark transparent background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Sits on top of everything */

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Class to trigger showing the form via jQuery */
form.search.active {
    opacity: 1;
    pointer-events: auto;
}

form.search h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

form.search input[type="text"] {
    width: 60%;
    max-width: 600px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    padding: 0.8rem;
    font-size: 1.5rem;
    color: #fff;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

form.search input[type="text"]:focus {
    border-color: #007bff;
}

form.search input[type="text"]::placeholder {
    color: #aaa;
}

/* Close Icon Button */
form.search .fa-xmark {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

form.search .fa-xmark:hover {
    transform: rotate(90deg);
    color: #ff4d4d;
}

/* Optional Submit Button (Hidden or styled if needed) */
form.search button {
    display: none;
}

/* --- Footer Section Styling --- */
.footer-section {
    background-color: #1a1a1a; /* Sleek dark theme background */
    color: #ffffff;
    padding: 4rem 5% 2rem 5%;
    display: flex;
    flex-wrap: wrap; /* Allows sections to wrap beautifully on smaller screens */
    justify-content: space-between;
    gap: 2rem;
}

/* Individual Column Settings */
.footer-section > section {
    flex: 1 1 250px; /* Gives each section a base width but allows flexibility */
}

/* Typography elements within footer */
.footer-section h2 {
    font-size: 1.3rem;
    color: #007bff; /* Matches the brand color from your header */
    margin-bottom: 1.2rem;
    text-transform: capitalize;
}

.footer-section p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- Social Links Styling --- */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2a2a;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

/* --- Site Links Column --- */
.imp-links {
    display: flex;
    flex-direction: column;
}

.imp-links a {
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.3s;
    width: max-content;
}

.imp-links a:hover {
    color: #007bff;
    padding-left: 5px; /* Subtle hover slide effect */
}

/* --- Newsletter Form --- */
.newsletter form {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
}

.newsletter form i {
    color: #888;
}

.newsletter form input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    flex: 1;
    font-size: 0.9rem;
}

.newsletter form input::placeholder {
    color: #777;
}

.newsletter form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

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

/* --- Copyright Bottom Bar --- */
.copyright {
    background-color: #111111; /* Slightly darker than main footer for separation */
    color: #777777;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright .pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright .pages a {
    color: #777777;
    transition: color 0.3s;
}

.copyright .pages a:hover {
    color: #007bff;
}

/* --- Responsive Mobile Styles (Screens under 768px) --- */
@media (max-width: 768px) {
    .menus {
        display: none; /* Hide by default on mobile until toggled */
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,.05);
        box-sizing: border-box;
    }

    /* Class to toggle the entire mobile menu view via JavaScript */
    .menus.open {
        display: flex;
    }

    /* Adjust dropdown behavior for mobile touch screens */
    .dropdown {
        width: 100%;
    }

    .categories {
        position: static; /* Switch from absolute to static so it pushes content down naturally */
        width: 100%;
        box-shadow: none; /* Remove desktop shadow */
        border-radius: 0;
        background: #fafafa; /* Slight tint to differentiate from the main menu background */
        margin-top: 0.5rem;
    }
}

/* --- Desktop Styles --- */
.hamburger-btn {
    display: none; /* Hide on desktop by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    width: 30px;
    height: 24px;
    z-index: 1001; /* Keeps it above the mobile menu drawer */
}

/* Creating the 3 horizontal lines using a single span + pseudo-elements */
.hamburger-btn span,
.hamburger-btn span::before,
.hamburger-btn span::after {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #333; /* Color of the hamburger lines */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Positioning the lines */
.hamburger-btn span {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-btn span::before {
    content: '';
    top: -8px;
}

.hamburger-btn span::after {
    content: '';
    bottom: -8px;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block; /* Show only on mobile screens */
    }
}

/* Animation effects when the menu is open */
.hamburger-btn.active span {
    background-color: transparent; /* Hide the middle line */
}

.hamburger-btn.active span::before {
    top: 0;
    transform: rotate(45deg); /* Rotate top line */
}

.hamburger-btn.active span::after {
    bottom: 0;
    transform: rotate(-45deg); /* Rotate bottom line */
}
