/* General Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header and Footer */
header, footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 0;
    font-size: 1rem;
}

.header-container, .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-icon {
    display: none; /* Hidden by default */
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Footer Centering */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

footer p, footer nav {
    margin: 5px 0;
}

footer nav {
    display: flex;
    gap: 15px; /* Space between links */
}

footer nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

footer nav a:hover {
    filter: brightness(0.85);
}

/* Logo */
.logo img {
    max-width: 100%;
}

/* Navigation Styles */
.nav-container {
    flex: 1;
    text-align: right;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a, .dropbtn {
    display: inline-block;
    color: var(--highlight-color);
    text-align: center;
    padding: 14px 16px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    transition: filter 0.3s;
}

nav ul li a:hover, .dropdown:hover .dropbtn {
    filter: brightness(0.85);
}

nav ul li.dropdown {
    display: inline-block;
    position: relative;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 160px;
    z-index: 1;
    right: 0;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
    transition: filter 0.3s;
}

.dropdown-content a:hover {
    filter: brightness(0.85);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Show menu icon on mobile */
    }

    /* Hide the menu items initially */
    .menu-items {
        display: none;
        flex-direction: column;
        width: 200px; /* Width of the dropdown menu */
        background-color: var(--primary-color);
        position: absolute;
        top: 60px; /* Position it below the header */
        right: 20px; /* Align it to the right side */
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Display the menu when nav-open is active */
    .nav-container.nav-open .menu-items {
        display: flex;
    }

    .menu-items li {
        text-align: left;
        padding: 10px 0;
    }

    .menu-items li a {
        color: var(--secondary-color);
        text-decoration: none;
    }

    .menu-items li a:hover {
        filter: brightness(0.85);
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .menu-items {
        display: flex !important; /* Always show menu items on larger screens */
    }
}

/* Main Content */
main {
    padding: 20px;
    background-color: var(--light-color);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: left;
}

/* Slideshow Content */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.text {
    color: #f2f2f2;
    font-size: 1.5rem;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #717171;
}

img {
    max-width: 100%;
    height: auto;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s, transform 0.3s;
}

.admin-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.admin-card h3 {
    margin-top: 0;
    color: #333;
}

.admin-card p {
    color: #666;
}

.admin-button {
    display: inline-block;
    margin: 5px 0;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

/* Form Styles */
form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

form .input-group {
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

form input[type="text"], form input[type="email"], form input[type="password"],
form select, form textarea {
    background-color: color-mix(in srgb, var(--primary-color), white 85%);
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text-color);
    width: 100%;
    max-width: 500px;
}

form button, .cta-button, button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: filter 0.3s;
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: 0;
}

form button:hover, .cta-button:hover, button:hover {
    filter: brightness(0.85);
}

/* Clearfix for Form Fields */
form::after {
    content: "";
    display: table;
    clear: both;
}

/* Collapsible Content */
.collapsible {
    background-color: #f1f1f1;
    color: black;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    font-size: 1rem;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    margin-bottom: 5px;
}

.active, .collapsible:hover {
    filter: brightness(0.95);
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--text-color);
}

