/* General Body and Base Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Light gray background */
    color: #333;
    line-height: 1.6;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    max-width: 1200px; /* Max width for the entire content area */
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px; /* Space between columns */
}

.left-column {
    flex: 3; /* Takes up 3/4 of the space */
    min-width: 70%; /* Ensure it doesn't get too small */
}

.right-column {
    flex: 1; /* Takes up 1/4 of the space */
    min-width: 280px; /* Ensure it doesn't get too small */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start; /* Aligns to the top */
}

.page-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: #007bff; /* Blue from SVAG logo */
    color: #fff;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.hashtag {
    font-weight: bold;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-size: 1.2em;
}

.main-header {
    display: flex;
    flex-direction: column; /* Stack logo and hero image */
    align-items: center;
    padding: 10px 0;
}

.logo img {
    max-width: 200px; /* Adjust as needed */
    height: auto;
    margin-bottom: 10px; /* Space between logo and hero */
}

/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    height: 300px; /* Adjust this height as needed */
    overflow: hidden;
}

/* Hide the images by default */
.mySlides {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key to preventing distortion */
    object-position: center; /* Centers the image */
    position: absolute; /* This allows the images to stack */
    top: 0;
    left: 0;
}

/* Active slide */
.mySlides.active {
    display: block;
    animation: fadeEffect 1.5s;
}

/* Fade animation effect */
@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Navigation Bar */
.nav {
    background-color: #333; /* Dark background for navigation */
    padding: 10px 0;
    text-align: center;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav li {
    position: relative;
    margin: 0 15px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-weight: bold;
    text-transform: uppercase;
}

.nav a:hover, .dropbtn:hover {
    color: #007bff; /* Blue hover effect */
}

/* Dropdown specific styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444; /* Slightly lighter dark for dropdown */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0; /* Align dropdown with parent li */
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none; /* Keep dropdown text normal case */
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: #555;
    color: #007bff; /* Blue hover effect */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Headings */
h2 {
    color: #007bff; /* Blue for section headings */
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    margin-top: 0;
}

/* Newsletter Form Styles (Right Column) */
.sidebar-section {
    margin-bottom: 20px;
}

.newsletter-form input[type="email"] {
    width: calc(100% - 22px); /* Full width minus padding/border */
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; /* Include padding in width */
}

.newsletter-form small {
    display: block;
    color: #777;
    margin-bottom: 10px;
    font-size: 0.8em;
}

.newsletter-form button {
    background-color: #007bff; /* Blue subscribe button */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
}

.newsletter-form button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Contact Form Styles */
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.contact-form button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #555;
}

/* Utility for grid containers if needed */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .left-column, .right-column {
        min-width: unset;
        width: 100%;
    }
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    .nav li {
        margin: 5px 0;
    }
    .dropdown-content {
        position: static;
        width: 100%;
    }
}