/* Base styles */
:root {
    --primary-color: #196d99; /* Keeping a default, can be overridden if 2018 has a specific theme color */
    --text-color: #333;
    --link-color: #fff;
    --link-hover-color: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* background-color: #fff; */ /* Reverted from white */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* text-align: center; */ /* Reverted */
}

/* Removed .header-logo style */

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* display: block; */ /* Reverted */
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* For manual swipe if implemented */
}

.carousel-slides .slide {
    min-width: 100%;
    display: none; /* Initially hide all slides */
}

.carousel-slides .slide.active {
    display: block; /* Show active slide */
}

.carousel-slides img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Program Section */
.program {
    width: 100%;
    overflow: hidden;
}

.program img {
    width: 100%;
    height: auto;
    display: block;
}

/* New Sponsor Section Styling */
.new-sponsors-2016 {
    padding: 30px 0 0px; /* Padding top, no padding bottom */
    text-align: center; /* Center the image rows */
}

.new-sponsors-2016 .container {
    /* Container handles max-width and inner padding */
}

.new-sponsors-2016 .sponsor-image-row {
    margin-bottom: 15px; /* Space between sponsor image rows */
}

.new-sponsors-2016 .sponsor-image-row:last-child {
    margin-bottom: 0;
}

.new-sponsors-2016 .sponsor-image-row img {
    max-width: 100%; /* Make images responsive */
    height: auto;   /* Maintain aspect ratio */
    display: inline-block; /* Allows centering via text-align on parent */
}

/* Sponsor/Social Background Wrapper */
.sponsor-social-background {
    background-color: transparent; /* Changed from 2017's green to transparent for 2016 */
    padding: 20px 0;
    text-align: center;
}

/* Sponsors Section */
.sponsors {
    text-align: center;
}

.sponsors .container {
    max-width: 100%;
    padding: 0; /* Keep this if you want full-width behavior for sponsor background */
}

.sponsors-row-flex {
    display: flex;
    justify-content: space-around; /* Or space-between, or center as preferred */
    align-items: stretch; /* Changed from flex-start to stretch for equal height columns */
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
    margin-bottom: 20px; /* Space before the single BNL logo */
}

.sponsor-column {
    flex: 1 1 40%; /* Adjusted flex-basis slightly */
    padding: 0 10px; /* Add some padding within columns */
    margin-bottom: 20px; /* For spacing if they wrap */
    display: flex; /* Added to help align content within */
    flex-direction: column; /* Stack p and img */
    justify-content: space-between; /* Pushes p to top, img towards bottom or helps with alignment */
}

.sponsor-column-single {
    margin-top: 10px; /* Reduced margin-top */
    padding: 0 10px;
}

.sponsors p {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.sponsors img {
    max-width: 100%; /* Make images responsive within their columns */
    max-height: 40px;   /* Set fixed height */
    display: block;
    margin: 0 auto 0 auto; /* Center image, remove bottom margin as p has it */
    object-fit: contain; /* Ensure image scales nicely within its bounds */
}

.sponsor-column img {
    /* specific to images in the flex row to help with equal height appearance */
    /* flex-grow: 1; */ /* Removed as fixed height is now set */
    /* height: 100%; removing this as max-height should control it better with object-fit */
}

/* Adjust specific image sizes if needed, e.g., BNL if it looks too large */
.sponsor-column-single img {
    /* max-width: 200px; */ /* Removed specific max-width */
    /* max-height: 70px; */ /* Removed specific max-height */
    /* display: block; */ /* Already set in .sponsors img */
    /* margin: 0 auto; */ /* Already set in .sponsors img */
}

/* Footer Styles */
footer {
    background-color: #333; /* Dark background for footer */
    color: #ccc;
    padding: 40px 0;
    font-size: 0.9em;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1 1 200px; /* Flex basis of 200px, allowing columns to grow and shrink */
    min-width: 180px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-logos img, .footer-patronage-logos img {
    margin-right: 10px;
    margin-bottom: 10px;
    vertical-align: middle;
}

.footer-patronage-logos {
    margin-top: 10px;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: center;
}

.footer-social li {
    display: inline-block;
    margin-right: 15px;
}

.footer-social li:last-child {
    margin-right: 0;
}

.footer-copyright {
    text-align: center;
    padding-top: 10px; /* Adjusted padding */
    font-size: 0.9em; /* Slightly larger for 2016 footer content */
}

.footer-copyright p {
    margin-bottom: 5px;
}

/* Footer Mobile Styles */
@media (max-width: 767px) {
    .footer-columns {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 20px;
        flex-basis: auto; /* Allow columns to take full width on mobile */
    }

    .footer-logos img, .footer-patronage-logos img {
        max-width: 45%; /* Adjust logo sizes for smaller screens */
    }

    .footer-social li {
        margin-right: 10px;
        font-size: 0.9em;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .program img,
    .banner-carousel img { /* Adjusted for carousel */
        max-width: 100%;
    }

    .carousel-control {
        padding: 8px;
        font-size: 16px;
    }

    .sponsor-social-background {
        padding: 15px 0;
    }
}

/* Removed styles for the WPBakery-like sponsor block */

/* Ensure the added rows don't have excessive bottom padding from the wpb_row style if not desired */
.wpb_row.vc_row-fluid[style*="padding-bottom: 0px"] {
    /* If you want to ensure no bottom padding from the inline style, you could override, 
       but usually inline styles take precedence. This is more a note. */
}

/* Styling for the simplified additional sponsors section */
.additional-sponsors-2016 {
    padding: 30px 0; /* Add some padding around the section */
    text-align: center; /* Center the images within their divs if they are inline-block or similar */
}

.additional-sponsors-2016 .additional-sponsor-image {
    margin-bottom: 15px; /* Space between the two images */
}

.additional-sponsors-2016 .additional-sponsor-image:last-child {
    margin-bottom: 0;
}

.additional-sponsors-2016 .additional-sponsor-image img {
    max-width: 100%; /* Make images responsive */
    height: auto;   /* Maintain aspect ratio */
    display: inline-block; /* Allows text-align on parent to center it */
} 