/* Additional styles for improved layout */
#long_bar {
    background: linear-gradient(to right, #4c911a, #65bd22);
    padding: 0; /* no extra top/bottom space */
    margin: 0 0 20px 0 !important; /* remove top gap, keep bottom spacing */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#long_bar h2 a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

#long_bar h2 a:hover {
    color: #e6e6e6;
}

/* Header improvements */
.wsite-header {
    background-position: center !important;
    background-size: cover !important;
    height: 300px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Navigation enhancements */
#navigation {
    background: linear-gradient(to bottom, #4c911a, #3d7315);
    border-radius: 4px;
    margin: 20px 0;
}

.wsite-menu-default {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.wsite-menu-item-wrap {
    position: relative;
}

.wsite-menu-item {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.wsite-menu-item:hover {
    background: rgba(255,255,255,0.1);
}

/* Submenu styling */
.wsite-menu-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* allow content to define width; JS controls visibility */
    display: block;
    z-index: 1000;
    min-width: 0;
    width: max-content;
    padding: 0;
}

.wsite-menu {
    padding: 0;
}

.wsite-menu-subitem {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

.wsite-menu-subitem:hover {
    background: #f5f5f5;
}

/* Top buttons improvements */
#top_buttons {
    display: table;
    width: 100%;
    margin: 20px 0 0 0 !important; /* remove bottom margin to eliminate gap above green bar */
}

/* Ensure no extra spacing below the title area */
.title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.title table { margin-bottom: 0 !important; }
.title td { padding-bottom: 0 !important; }

#top_buttons td {
    padding: 10px 10px 0 10px; /* remove bottom padding to eliminate extra gap */
    vertical-align: middle;
}

/* Button group styling */
#blu, #gr, #or, #red {
    text-align: center;
    padding: 0; /* remove extra padding that adds vertical gap */
}

#blu a, #gr a, #or a, #red a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 25px !important;
    width: 100px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0; /* keep original image-backed shape */
    font-weight: 700 !important; /* bold text */
    text-transform: none; /* keep original casing */
    letter-spacing: 0;
}

/* Improved button colors */
#blu a { background: linear-gradient(to bottom, #0077cc, #005999); }
#gr a { background: linear-gradient(to bottom, #4c911a, #3d7315); }
#or a { background: linear-gradient(to bottom, #ff9900, #cc7a00); }
#red a { background: linear-gradient(to bottom, #cc0000, #990000); }

/* Button hover effects */
#blu a:hover, #gr a:hover, #or a:hover, #red a:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Content area improvements */
#content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Reduce top spacing on home page specifically */
body.wsite-page-index #content {
    padding-top: 0 !important;
}

/* Remove extra top margin on first featured image on home page */
body.wsite-page-index #wsite-content img.galleryImageBorder {
    margin-top: 0 !important;
}

/* Aggressively remove residual top spacing from the first block on home */
body.wsite-page-index #wsite-content > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
body.wsite-page-index .wsite-multicol { margin-top: 0 !important; }
body.wsite-page-index .wsite-multicol-table-wrap { margin-top: 0 !important; }
body.wsite-page-index .wsite-multicol-table { border-collapse: collapse; border-spacing: 0; }

/* Center-align home page text and media */
body.wsite-page-index #wsite-content { text-align: center; }
body.wsite-page-index #wsite-content .paragraph { text-align: center !important; }
body.wsite-page-index #wsite-content img { display: block; margin-left: auto; margin-right: auto; }

/* Typography enhancements */
.wsite-content-title {
    font-family: "Advent Pro", sans-serif;
    color: #4c911a;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 1em;
    text-align: center;
}

div.paragraph, p {
    font-family: "Lato", sans-serif;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5em;
}

/* Footer text alignment without overriding theme background band */
#footer {
    text-align: center;
    color: #fff !important; /* ensure white text on the band */
    font-size: 0.9em;
    border-top: none;
    margin-top: 0; /* keep footer flush with preceding content */
}

/* About section images - proper sizing and alignment for responsiveness */
.about-images {
    width: 100%;
}

.about-images img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Desktop: Limit image width to prevent oversizing on large screens */
@media (min-width: 768px) {
    .about .col-lg-6 .about-images {
        max-width: 75%;
    }
}

/* Large desktop: Further constrain if needed */
@media (min-width: 1200px) {
    .about .col-lg-6 .about-images {
        max-width: 70%;
    }
}

/* Additional Image Section - Center alignment on desktop */
.col-12.text-center img {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    height: auto;
}

/* Ensure proper centering on desktop */
@media (min-width: 768px) {
    .col-12.text-center img {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .col-12.text-center img {
        max-width: 70%;
    }
}
