/*
 Theme Name: Square Dance WA
 Theme URI: https://example.com/squaredancewa-theme/
 Author: Grok
 Author URI: https://x.ai
 Description: A WordPress theme based on squaredance-wa.org, designed for the Square & Folk Dance Federation of Washington.
 Version: 1.7.1
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: squaredancewa
 Tags: community, events, dance, blue, white
*/

/* Reset and Base Styles */
body, html {
    background-color: #f4f4f4 !important; /* Force light gray */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

a {
    color: #0055A4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #0055A4;
    color: #fff;
    padding: 0px; /* reduced masthead padding */
    text-align: center;
}

header img.logo {
    max-width: none;
    height: 60px; /* match masthead height */
}

header nav {
    margin-top: 5px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline-block;
    position: relative;
    margin: 0 8px;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
    padding: 5px;
    display: block;
    cursor: pointer;
}

/* Dropdown Menu */
header nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0055A4;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

header nav ul li:hover > ul {
    display: block;
}

header nav ul li ul li {
    display: block;
    margin: 0;
    position: relative;
}

header nav ul li ul li ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #0055A4;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
}

header nav ul li ul li:hover > ul {
    display: block;
}

header nav ul li ul li a {
    color: #fff;
    padding: 0px;
    display: block;
    white-space: nowrap;
}

header nav ul li ul li a:hover {
    background-color: #003366;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #0055A4;
}

.content-section {
    margin-bottom: 20px;
}

.club-list {
    list-style: none;
    padding: 0;
}

.club-list li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #0055A4;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #fff;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul {
        padding: 0;
        margin: 0;
    }
    
    header nav ul li {
        display: block;
        margin: 5px 0;
        position: relative;
    }

    header nav ul li > a {
        display: block;
        padding: 6px 7px;
        border-bottom: 1px solid #003366;
        cursor: pointer;
    }

    /* Hide submenus by default */
    header nav ul li ul {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 15px;
        background-color: #004080;
    }

    /* Show submenu when parent <li> is focused-within (clicked or tabbed into) */
    header nav ul li:focus-within > ul {
        display: block;
    }

    /* Nested submenus hidden by default */
    header nav ul li ul li ul {
        display: none;
        padding-left: 15px;
        background-color: #003366;
    }

    header nav ul li ul li:focus-within > ul {
        display: block;
    }

    /* Adjust links inside dropdown */
    header nav ul li ul li a {
        padding: 10px;
        white-space: normal;
    }
}

/* Styles for council and club page content */
#primary.content-area {
    background-color: #ffffff !important; /* Ensure white background */
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.squaredancewa-club-list-header {
    text-align: center; /* Center the entire section */
}
.squaredancewa-club-list-header h2 {
    color: #ffffff; /* White text for "Associated Clubs" */
}
.club-links {
    display: flex;
    justify-content: center; /* Center links horizontally */
    gap: 15px; /* Space between links and separators */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}
.club-links .club-link {
    color: #ffffff; /* White text for club links */
    text-decoration: none; /* Remove underline */
    font-size: 16px;
}
.club-links .club-link:hover {
    color: #cccccc; /* Light gray for hover contrast */
    text-decoration: underline; /* Underline on hover */
}
.club-links .club-separator {
    color: #ffffff; /* White bullet separator */
    font-size: 16px;
    line-height: 1.5;
}
.entry-title {
    color: #ffffff; /* White text for title and content */
}
.entry-content {
    color: #000000; /* black text for title and content */
}


/* Styles for club page council links */
.squaredancewa-council-list-header {
    text-align: center; /* Center the entire section */
}
.squaredancewa-council-list-header h2 {
    color: #ffffff; /* White text for "Associated Council" */
}
.council-links {
    display: flex;
    justify-content: center; /* Center links horizontally */
    gap: 15px; /* Space between links and separators */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}
.council-links .council-link {
    color: #ffffff; /* White text for council links */
    text-decoration: none; /* Remove underline */
    font-size: 16px;
}
.council-links .council-link:hover {
    color: #cccccc; /* Light gray for hover contrast */
    text-decoration: underline; /* Underline on hover */
}
.council-links .council-separator {
    color: #ffffff; /* White bullet separator */
    font-size: 16px;
    line-height: 1.5;
}