/*
Theme Name: She Leads Swansea
Theme URI: https://sheleadsswansea.co.uk/
Author: Craig Inward
Description: Custom WordPress theme for She Leads Swansea
Version: 1.0
Text Domain: sheleadsswansea
*/


@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* Basic reset and styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   OSWALD ALL THE THINGS!
   ========================================= */

* {
    font-family: 'Oswald', sans-serif !important;
}

body {
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.main-navigation a,
.cta-button,
.event-button {
    font-weight: 700;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: #000000;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
    
}

html {
    font-size: 16px;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #e8aeab;
    overflow-x: hidden;
    margin: 0;
}

/* Header Styles */
.site-header {
    background-color: #e8aeab;
    padding: 0.3rem 2rem 0.1rem;
    min-height: 30px !important;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    border-top: 3px solid #5A004F;
    border-bottom: 3px solid #5A004F;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(232, 174, 171, 0.95);
    backdrop-filter: blur(10px);
    overflow: visible; /* Allow logo to overflow */
    z-index: 1000; /* Ensure header stays above content */
    margin-top: -1.5rem !important;
    padding-top: 0.3rem !important;
   
}

.site-branding {
    position: relative;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Oversized Logo Styles */
.site-logo {
    position: relative;
    z-index: 1003;
}

.site-logo img {
    height: 220px !important;
    width: auto;
    max-width: 600px !important; 
    object-fit: contain;
    transition: all 0.3s ease;
    transform: translateY(70px);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4)); /* Add shadow for depth */
}

.site-logo img:hover {
    transform: translateY(70px) scale(1.08); /* Maintain position on hover */
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.5));
}

/* Adjust header grid to accommodate larger logo */
.site-header {
    grid-template-columns: 1fr auto 1fr;
    align-items: start; /* Align items to top to make space for logo */
    padding-top: 0.01rem; /* Add more top padding */
}

/* Ensure navigation stays properly aligned */
.main-navigation {
    align-self: center; /* Keep nav centered vertically */
    margin-top: 15px; /* Push nav down a bit */
}

/* Mobile adjustments for oversized logo */
@media (max-width: 768px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        align-items: start;
        padding: 0.05rem 0.25rem 0.01rem !important; /* Reduced padding */
        min-height: 100px !important;
        overflow: visible !important;
    }
    
    .site-logo img {
        height: 130px !important;
        max-width: 400px !important;
        transform: translateY(40px) !important; /* push down logo further */ 
    }
    
    .site-logo img:hover {
        transform: translateY(20px) scale(1.10);
    }
   
    .main-navigation {
        margin-top: 1px;
    }
    
    /* Adjust menu toggle position */
    .menu-toggle {
        top: 40px; /* Lower the menu button */
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .site-logo img {
        height: 120px;
        max-width: 300px;
        transform: translateY(15px);
    }
    
    .site-logo img:hover {
        transform: translateY(15px) scale(1.10);
    }
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #5A004F;
    z-index: 1001;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #FFFFFF;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5A004F;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Main Navigation */

/* Import a blocky font if not using Oswald */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #FFFFFF !important;
    font-weight: 900!important;
    font-size: 1.5rem; /* Header font size in desktop mode */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    position: relative;
    background: transparent !important;
    border: none !important;
    font-family: 'Oswald', sans-serif;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
    display: inline-block;
    
}

.main-navigation a:hover {
    background-color: #5A004F !important; /* Darker purple for active items */
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #6d2253 !important; /* Purple shadow */
    border-color: transparent !important;
    
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #6d2253;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    display: none !important;
}

.main-navigation a:hover::after {
    width: 60%;
    background: #FFFFFF;
}

.main-navigation .current-menu-item a,
.main-navigation .current-page-item a {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: skew(-5deg);
}

.main-navigation {
    display: flex;
    justify-content: center;
    flex: 2;
}

.header-spacer {
    flex: 1;
    visibility: hidden;
}


/* Current menu item hover state */
.main-navigation .current-menu-item a:hover,
.main-navigation .current-page-item a:hover {
    background-color: #5A004F !important; /* Darker purple for active items */
    color: #FFFFFF !important;
    box-shadow: 
        0 4px 15px rgba(90, 0, 79, 0.4),
        0 0 0 1px #6d2253 !important;
}

/* Mobile menu hover states */
@media (max-width: 768px) {
    .main-navigation a:hover {
        background-color: rgba(90, 0, 79, 0.8) !important; /* More opaque on mobile */
        color: #FFFFFF !important;
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 4px 12px #6d2253 !important;
    }
}

/* Remove any pink hover effects that might be elsewhere */
.main-navigation a:hover::after {
    background: #6d2253!important; /* Purple instead of white */
}

/* If there are any other pink hover effects in navigation, override them */
.main-navigation li a:hover,
.main-navigation ul a:hover,
.main-navigation .menu-item a:hover {
    background-color: #6d2253 !important;
    border-color: transparent !important;
}
/* Remove skew on mobile for better readability */
@media (max-width: 768px) {
    .main-navigation a {
        transform: none;
        font-weight: 800;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .main-navigation a:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .main-navigation .current-menu-item a,
    .main-navigation .current-page-item a {
        transform: none;
    }
}

/* =========================================
   HERO SECTIONS - CONSISTENT STYLING
   ========================================= */

/* Homepage Hero */
.hero {
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-top: 15px;
    margin-top: 0px;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.home .hero h1 {
    text-transform: none !important;
}

/* Page Hero - Consistent across all pages */
.page-hero {
    color: white;
    padding: 2rem 2rem;
    text-align: center;
    min-height: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-hero-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero .page-hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
    font-size: 1.3rem;
    margin-top: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Team Hero */
.team-hero {
    color: white;
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-hero-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.team-hero .team-hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* =========================================
   MOBILE HERO SECTIONS - SMALLER
   ========================================= */

@media (max-width: 768px) {
    .hero {
        min-height: 25vh !important; /* Much smaller */
        padding: 1.5rem 1rem !important; /* Less padding */
    }
    
    .page-hero {
        min-height: 15vh !important;
        padding: 1rem 1rem !important;
    }
    
    .team-hero {
        min-height: 15vh !important;
        padding: 1rem 1rem !important;
    }
    
    /* Make hero text smaller on mobile */
    .hero h1,
    .page-hero .page-hero-content h1,
    .team-hero .team-hero-content h1 {
        font-size: 1.8rem !important; /* Smaller text */
        margin-bottom: 0.5rem !important;
        margin-top: 70px !important;
    }
    
    .hero p,
    .page-subtitle,
    .team-subtitle {
        font-size: 1rem !important; /* Smaller subtitle */
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 20vh !important; /* Even smaller on phones */
        padding: 0.1rem 0.5rem !important;
    }
    
    .page-hero {
        min-height: 12vh !important;
        padding: 0.8rem 0.5rem !important;
    }
    
    .team-hero {
        min-height: 12vh !important;
        padding: 0.8rem 0.5rem !important;
    }
    
    .hero h1,
    .page-hero .page-hero-content h1,
    .team-hero .team-hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .hero p,
    .page-subtitle,
    .team-subtitle {
        font-size: 0.9rem !important;
    }
}

/* =========================================
   SOCIAL MEDIA ICONS
   ========================================= */

.social-media-section {
    text-align: center;
    padding: 1rem 1rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.1rem;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(90, 0, 79, 0.8);
    border-radius: 50%;
    border: 2px solid #E6A1A6;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon-link:hover {
    background: #5A004F;
    transform: translateY(-5px) scale(1.1);
    border-color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* SVG icon styles */
.social-svg {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-icon-link:hover .social-svg {
    transform: scale(1.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-icons-container {
        gap: 0.5rem;
    }
    
    .social-icon-link {
        width: 60px;
        height: 60px;
    }
    
    .social-svg {
        width: 24px;
        height: 24px;
    }
}

.social-media-heading {
    text-align: center;
    margin-bottom: 1rem;
}

.social-media-heading h2 {
    color: #e6a1a6;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.social-media-heading p {
    color: #FFFFFF;
    font-size: 1.2rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #5A004F;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #5A004F;
    color: #FFFFFF;
}

/* =========================================
   STARS BACKGROUND
   ========================================= */

.hero::before,
.page-hero::before,
.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') left center/200px 200px no-repeat,
        url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') right center/200px 200px no-repeat;
    opacity: 0.8;
    mix-blend-mode: lighten;
    filter: brightness(4) contrast(3) drop-shadow(0 0 2px white);
    pointer-events: none;
    z-index: 0;
}

.hero,
.page-hero,
.team-hero {
    background: linear-gradient(135deg, #E6A1A6 0%, #5A004F 100%) !important;
    position: relative !important;
    z-index: 1 !important;
}

.hero > *,
.page-hero > *,
.team-hero > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Responsive stars */
@media (max-width: 1024px) {
    .hero::before,
    .page-hero::before,
    .team-hero::before {
        background: 
            url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') left center/150px 150px no-repeat,
            url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') right center/150px 150px no-repeat;
    }
}

@media (max-width: 768px) {
    .hero::before,
    .page-hero::before,
    .team-hero::before {
        background: 
            url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') left center/120px 120px no-repeat,
            url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') right center/120px 120px no-repeat;
    }
}

@media (max-width: 480px) {
    .hero::before,
    .page-hero::before,
    .team-hero::before {
        background: 
            url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') left center/80px 80px no-repeat,
            url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') right center/80px 80px no-repeat;
    }
}

/* =========================================
   MOBILE STAR OPACITY FIX
   ========================================= */

@media (max-width: 768px) {
    .hero::before,
    .page-hero::before,
    .team-hero::before {
        opacity: 0.4 !important; /* Much lighter on mobile */
    }
    
    /* Make subtitle text more prominent */
    .hero p,
    .page-subtitle,
    .team-subtitle {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
        font-weight: 600 !important;
    }
}

/* =========================================
   MAIN CONTENT
   ========================================= */

main.content {
    flex: 1;
    background: transparent !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.entry-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove all white backgrounds */
main.content,
.entry-content,
article,
.post,
.page,
.hentry,
.content > *,
.events,
.team-gallery-section,
.directory-container,
.members-container {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
   /* background-color: #e8aeab !important; */
}

/* =========================================
   FIX PASSWORD/CONTENT PROTECTION CENTERING
   ========================================= */

/* Override the problematic .content > * rule for password sections */
.access-granted,
.member-welcome,
.members-container,
.post-password-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0.5rem auto !important;
    padding: 0.5rem !important;
    width: 90% !important;
    max-width: 800px !important;
}

/* Specifically fix the access-granted section */
.access-granted {
    background: rgba(144, 238, 144, 0.2) !important;
    border-radius: 10px !important;
    border: 2px solid #E6A1A6 !important;
    margin-bottom: 2rem !important;
}

/* Specifically fix member-welcome */
.member-welcome {
    background: rgba(230, 161, 166, 0.1) !important;
    border-radius: 15px !important;
    margin-bottom: 3rem !important;
}

/* Center all content within these sections */
.access-granted *,
.member-welcome *,
.members-container * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center headings */
.access-granted h1,
.access-granted h2,
.access-granted h3,
.member-welcome h1,
.member-welcome h2,
.member-welcome h3,
.members-container h1,
.members-container h2,
.members-container h3 {
    text-align: center !important;
    width: 100% !important;
}

/* Center paragraphs */
.access-granted p,
.member-welcome p,
.members-container p {
    text-align: center !important;
    max-width: 600px !important;
    margin: 1rem auto !important;
}

/* Center the success icon */
.success-icon {
    display: block !important;
    margin: 0 auto 1rem auto !important;
    text-align: center !important;
}

/* Center grids within members area */
.benefits-grid,
.resources-grid,
.resource-grid {
    display: grid !important;
    place-items: center !important;
    justify-content: center !important;
    margin: 2rem auto !important;
    width: 100% !important;
}

/* Center individual cards */
.benefit-card,
.resource-item,
.resource-card,
.member-event {
    text-align: center !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1rem auto !important;
    opacity: 0.8 !important;
 
}

/* Center buttons */
.resource-button,
.cta-button {
    display: block !important;
    margin: 1rem auto !important;
    text-align: center !important;
}

/* Fix the main content area for password sections */
body.password-protected .entry-content,
body.post-password-required .entry-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 60vh !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .access-granted,
    .member-welcome,
    .members-container {
        padding: 1rem !important;
        margin: 0.5rem auto !important;
        width: 95% !important;
    }
    
    .benefits-grid,
    .resources-grid,
    .resource-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
    }
}

/* =========================================
   PASSWORD FORM STYLING - LESS PADDING
   ========================================= */

.password-form-container {
    max-width: 500px;
    margin: 0 auto !important;
    padding: 1rem 2rem !important; /* Reduced from 3rem */
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh !important; /* Reduced from 60vh */
}

.post-password-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem; /* Reduced from 2.5rem */
    border-radius: 20px;
    border: 3px solid #E6A1A6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.post-password-form p {
    color: #5A004F;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem !important; /* Reduced from 2rem */
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-password-form label {
    display: block;
    margin-bottom: 0.8rem !important; /* Reduced from 1rem */
    color: #5A004F;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.post-password-form input[type="password"] {
    width: 100%;
    padding: 12px; /* Reduced from 15px */
    border: 2px solid #E6A1A6;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 1.2rem !important; /* Reduced from 1.5rem */
    font-family: 'Oswald', sans-serif;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.post-password-form input[type="password"]:focus {
    outline: none;
    border-color: #5A004F;
    box-shadow: 0 0 0 3px rgba(230, 161, 166, 0.3);
    transform: scale(1.02);
}

.post-password-form input[type="submit"] {
    background: linear-gradient(135deg, #5A004F 0%, #7a0055 100%);
    color: white;
    border: none;
    padding: 12px 30px; /* Reduced from 15px 40px */
    border-radius: 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    width: auto;
    min-width: 160px; /* Reduced from 180px */
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(90, 0, 79, 0.3);
}

.post-password-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #E6A1A6 0%, #5A004F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 0, 79, 0.4);
}

/* Desktop specific - less spacing */
@media (min-width: 769px) {
    .password-form-container {
        padding: 0.5rem 2rem !important; /* Even less on desktop */
        min-height: 30vh !important;
    }
    
    main.content {
        min-height: 20vh !important; /* Reduced container height */
    }
}

/* Mobile adjustments - less spacing */
@media (max-width: 768px) {
    .password-form-container {
        padding: 0.5rem 1rem !important; /* Reduced from 2rem 1rem */
        min-height: 30vh !important; /* Reduced from 50vh */
        margin: 1rem auto !important; /* Reduced from 2rem */
    }
    
    .post-password-form {
        padding: 1.5rem; /* Reduced from 2rem */
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .password-form-container {
        padding: 0.25rem 0.5rem !important; /* Even less on mobile */
        min-height: 25vh !important;
    }
    
    .post-password-form {
        padding: 1rem; /* Reduced from 1.5rem */
        max-width: 300px;
    }
    
    .post-password-form p {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }
    
    .post-password-form input[type="password"] {
        padding: 10px;
        margin-bottom: 1rem !important;
    }
}

/* Remove any absolute positioning that adds extra space */
.password-form-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

main.content {
    position: relative !important;
    min-height: auto !important;
    display: block !important;
}

/* =========================================
   EVENTS SECTION
   ========================================= */

.events {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: #6d2253;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(230, 161, 166, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    opacity: 0.8;
    
}

.event-card:hover {
    background: rgba(90, 0, 79, 0.8);
    border: 2px solid rgba(230, 161, 166, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.event-card h3 {
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.event-date {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.event-location {
    color: #E6A1A6;
    margin-bottom: 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}

.event-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #5A004F;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.event-button:hover {
    background: #5A004F;
    color: #FFFFFF;
    border: 2px solid #E6A1A6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================
   TEAM STYLES - FIXED STRUCTURE
   ========================================= */

.team-gallery-hero {
    margin-top: 3rem;
    width: 100%;
}

.gallery-grid-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.team-member-hero {
    background: transparent !important; /* Remove purple background */
        backdrop-filter: none !important; /* Remove blur effect */
        border: none !important; /* Remove pink border */
        box-shadow: none !important; /* Remove shadow */
        padding: 0 !important; /* Remove padding if needed */
        transition: all 0.3s ease !important;
        opacity: 0.8 !important;
}

.team-photo-hero {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #E6A1A6; 
    margin: 0 auto 1rem auto;
    display: block;
}

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.team-role-hero {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-bio {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.team-bio p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   TEAM PAGE STYLES
   ========================================= */

.team-gallery-section {
    padding: 2rem 1rem;
   /* background-color: #e8aeab; */
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

/* Team gallery styles */
.team-gallery-hero {
    margin-top: 1rem; /* Move the hero (picture) section up */
    width: 100%;
}

.gallery-grid-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member-hero {
    background: rgba(90, 0, 79, 0.85) !important; /* Purple background */
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.team-member-hero:hover {
    background: rgba(90, 0, 79, 0.05) !important; /* Very subtle purple on hover */
   /*border: 2px solid rgba(230, 161, 166, 0.7) !important; */
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

.team-photo-hero {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #E6A1A6 !important;
    margin: 0 auto 1.5rem auto;
    display: block;
    box-shadow: 0 0 0 3px rgba(90, 0, 79, 0.3) !important;
    transition: all 0.3s ease; /* Add transition for photo too */
}

.team-member-hero:hover .team-photo-hero {
    border: 4px solid #FFFFFF !important; /* White border on hover */
    box-shadow: 0 0 0 5px rgba(230, 161, 166, 0.5) !important;
}

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    color: #FFFFFF !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.team-role-hero {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    opacity: 0.8 !important;
}

.team-bio {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(230, 161, 166, 0.3) !important;
}

.team-bio p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.team-photo-hero:hover {
    border: 4px solid #5A004F !important;
    box-shadow: 0 6px 20px rgba(90, 0, 79, 0.3) !important;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .gallery-grid-hero {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-gallery-section {
        padding: 3rem 1rem;
    }
    
    .gallery-grid-hero {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .team-member-hero {
        min-height: auto;
        padding: 1.5rem;
        background: rgba(90, 0, 79, 0.85) !important; /* Purple background */
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 3px solid rgba(230, 161, 166, 0.6) !important; /* Pink border */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        border-radius: 20px !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .team-gallery-section {
        padding: 2rem 1rem;
    }
    
    .team-photo-hero {
        width: 100px;
        height: 100px;
        border: 4px solid #E6A1A6 !important;
        box-shadow: 0 0 0 3px rgba(90, 0, 79, 0.3) !important;
    }

    
    .team-info h3 {
        font-size: 1.3rem;
        color: #FFFFFF !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Responsive team gallery with bios */
@media (max-width: 1024px) {
    .gallery-grid-hero {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member-hero {
        min-height: 420px;
        background: rgba(90, 0, 79, 0.85) !important; /* Purple background */
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 3px solid rgba(230, 161, 166, 0.6) !important; /* Pink border */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        padding: 2rem !important;
        border-radius: 20px !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .gallery-grid-hero {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-member-hero {
        min-height: auto;
        background: rgba(90, 0, 79, 0.85) !important; /* Purple background */
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 3px solid rgba(230, 161, 166, 0.6) !important; /* Pink border */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        padding: 2rem !important;
        border-radius: 20px !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid-hero {
        gap: 1rem;
    }
    
    .team-member-hero {
        padding: 1.5rem;
        background: rgba(90, 0, 79, 0.85) !important; /* Purple background */
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 3px solid rgba(230, 161, 166, 0.6) !important; /* Pink border */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        padding: 2rem !important;
        border-radius: 20px !important;
        margin-bottom: 2rem !important;
    }
    
    .team-photo-hero {
        width: 150px;
        height: 150px;
        border: 4px solid #E6A1A6 !important;
        box-shadow: 0 0 0 3px rgba(90, 0, 79, 0.3) !important;
    }
    
    .team-info h3 {
        font-size: 1.3rem;
        color: #FFFFFF !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    .team-role-hero {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    .team-bio p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
}

/* =========================================
   META SLIDER - PERMISSIVE SIZING
   ========================================= */

.metaslider {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 1rem auto 0 auto !important;
}

.metaslider .slides {
    display: flex !important;
    width: 100% !important;
}

.metaslider .slide {
    flex: 0 0 100% !important;
    width: 100% !important;
}

.metaslider .slide img {
    border-radius: 15px !important;
    border: 3px solid #E6A1A6 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    /* Let MetaSlider control the size */
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 600px !important; /* Maximum height */
    margin: 0 auto !important;
    display: block !important;
}

@media (max-width: 768px) {
    .metaslider .slide img {
        max-height: 400px !important;
    }
}

/* =========================================
   OUR MISSION SECTION
   ========================================= */

.our-mission {
    
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem !important; /* Keep some spacing */
}

.our-mission h2 {
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.our-mission:hover {
    background: #6d2253;
    border: 2px solid rgba(230, 161, 166, 0.7);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* =========================================
   METASLIDER STYLES
   ========================================= */

.metaslider {
    margin: 2rem auto !important;
    text-align: center !important;
}

.metaslider-slideshow-wrapper {
    display: inline-block !important;
}

.metaslider,
.metaslider-wrap,
.metaslider-slideshow-wrapper {
    margin-top: 40px !important;
}

.metaslider img,
.metaslider .slide img,
.metaslider .ms-image {
    border-radius: 15px !important;
    border-top: 4px solid #E6A1A6 !important;
    border-bottom: 4px solid #E6A1A6 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.metaslider .slide:hover img {
    border-top-color: #5A004F !important;
    border-bottom-color: #5A004F !important;
    transform: scale(1.02) !important;
}

/* Members Area Styles */
.member-welcome {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(230, 161, 166, 0.1);
    border-radius: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: rgba(90, 0, 79, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(230, 161, 166, 0.3);
}

.benefit-card h3 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #E6A1A6;
}

.resource-button {
    display: inline-block;
    background: #5A004F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 0.5rem;
}

/* Events */
.member-event {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #E6A1A6;
}

/* Members Area Styles */
.members-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.member-resources {
    margin-top: 3rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: rgba(90, 0, 79, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(230, 161, 166, 0.5);
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    background: rgba(90, 0, 79, 0.8);
}

.resource-card h3 {
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.resource-card p {
    color: rgba(255, 255, 255, 0.9);
}

.access-granted {
    text-align: center;
    padding: 2rem;
    background: rgba(144, 238, 144, 0.2);
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid rgba(144, 238, 144, 0.5);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.access-granted h2 {
    color: #5A004F;
    margin-bottom: 0.5rem;
}

/* Standard WordPress password form just in case */
.post-password-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0.5rem auto !important;
    padding: 0.5rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 15px !important;
    border: 1px solid #E6A1A6 !important;
    max-width: 400px !important;
    width: 90% !important;
}

.post-password-form p {
    text-align: center !important;
    width: 100% !important;
}

.post-password-form label,
.post-password-form input[type="password"],
.post-password-form input[type="submit"] {
    text-align: center !important;
    margin: 0.5rem auto !important;
    display: block !important;
}

/* =========================================
   CONTACT FORM 7 STYLES
   ========================================= */

.wpcf7 {
    max-width: 500px;
    margin: 1rem auto;
    padding: 0.5rem;
}

.wpcf7-form {
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.95) 0%, rgba(255, 250, 250, 0.95) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(90, 0, 79, 0.12);
    border: 2px solid #E6A1A6;
    backdrop-filter: blur(10px);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.3rem;
    color: #5A004F;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E6A1A6;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #5A004F;
    height: 44px;
    margin-bottom: 0.8rem;
}

.wpcf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E6A1A6;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #5A004F;
    height: 100px;
    resize: vertical;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #5A004F;
    box-shadow: 0 0 0 2px rgba(230, 161, 166, 0.3);
    background: white;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #E6A1A6 0%, #5A004F 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    display: block;
    margin: 1rem auto 0;
    min-width: 160px;
    height: 44px;
    box-shadow: 0 3px 10px rgba(90, 0, 79, 0.2);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 0, 79, 0.3);
}

.wpcf7-form p {
    margin-bottom: 0.8rem;
}

/* Footer */
/* =========================================
   FOOTER - COMPACT ICONS & LINKS
   ========================================= */

    /* Add space before footer */
/* Add space before ANY footer */
footer.site-footer,
.footer,
.site-footer {
    margin-top: 4rem !important;
    padding-top: 0.5rem !important;
}

/* Add padding to main content area */
main.content,
.main-content,
.site-main {
    padding-bottom: 2rem !important;
}

.site-footer {
    background: #6d2253 !important;
    color: #FFFFFF;
    padding: 0.5rem 0.5rem !important;
    margin-top: 3rem;
    border-top: 3px solid #E6A1A6;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Main footer row - all items in one line */
.footer-main-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid #E6A1A6;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(230, 161, 166, 0.3);
    transform: scale(1.15);
    border-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-svg {
    width: 18px;
    height: 18px;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.footer-social-link:hover .footer-svg {
    transform: scale(1.1);
}

/* Contact Info - Inline with SVG */
.footer-contact-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
}

.footer-contact-item:hover {
    color: #E6A1A6;
    background: rgba(255, 255, 255, 0.1);
}

/* Contact SVG icons */
.contact-svg {
    width: 16px;
    height: 16px;
    color: #E6A1A6;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .contact-svg {
    transform: scale(1.1);
    color: #FFFFFF;
}

.footer-main-row + .footer-bottom {
    margin-top: 0.5rem !important;
}

/* Footer Bottom - Single line */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    padding-top: 0.5rem;
    border-top: 0.5px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.9;
}

.privacy-link {
    color: #E6A1A6;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.privacy-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
    .footer-main-row {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .footer-contact-info {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.3rem;
        padding-top: 0.3rem;
    }
    
    .site-footer {
        padding: 0.6rem 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .footer-social-links {
        gap: 0.8rem;
    }
    
    .footer-social-link {
        width: 38px;
        height: 38px;
    }
    
    .footer-svg {
        width: 16px;
        height: 16px;
    }
    
    .contact-svg {
        width: 14px;
        height: 14px;
    }
    
    .footer-contact-info {
        font-size: 0.85rem;
    }
}

/* =========================================
   PUSH FOOTER TO BOTTOM
   ========================================= */

/* Make the body a flex container to push footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content grows to push footer down */
main.content {
    flex: 1;
}

/* Ensure footer stays at bottom */
.site-footer {
    margin-top: auto;
}

/* =========================================
   PERMANENT MOBILE MENU FIX
   ========================================= */

/* Ensure mobile menu is always on top */
@media (max-width: 768px) {
    .main-navigation {
        z-index: 10000;
        position: relative;
    }
    
    .main-navigation.active {
        z-index: 10001;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 600px !important;
    }
    
    .main-navigation ul {
        z-index: 10002;
        position: relative;
    }
}



/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .site-header {
        padding: 0.1rem 1rem;
        flex-wrap: wrap;
        background-color: #e8aeab;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #5A004F;
    }
    
    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        order: 3;
        margin-top: 1rem;
        background-color: #e8aeab;
        flex: none;
    }
    
    .main-navigation.active {
        max-height: 500px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        width: 100%;
        background: #e8aeab;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        border: 3px solid #5A004F;
        margin: 0;
    }
    
    .main-navigation li {
        width: 100%;
        text-align: center;
    }
    
    .main-navigation a {
        display: block;
        padding: 1.2rem 1rem;
        border-bottom: 2px solid rgba(90, 0, 79, 0.2);
        font-size: 1.1rem;
        color: #5A004F;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.4);
        margin: 0.2rem 1rem;
        border-radius: 25px;
        font-weight: 1000;
    }
    
    .main-navigation a:hover {
        background-color: #6d2253;
        color: #FFFFFF;
        transform: translateY(-2px);
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }
    
    .header-spacer {
        display: none;
    }

    .site-logo img {
        height: 70px;
        max-width: 250px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 4rem 1rem;
        min-height: 50vh;
    }
    
    .events {
        padding: 1.5rem 0.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        padding: 1.5rem;
    }
    
    .event-card h3 {
        font-size: 1.5rem;
    }
    
    .team-gallery h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        gap: 0.5rem;
    }
    
    .team-member {
        flex: 0 0 200px;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }

    .metaslider,
    .metaslider-wrap,
    .metaslider-slideshow-wrapper {
        margin-top: 30px !important;
    }

    .metaslider img,
    .metaslider .slide img,
    .metaslider .ms-image {
        border-top-width: 3px !important;
        border-bottom-width: 3px !important;
    }

    .wpcf7 {
        max-width: 90%;
        padding: 0.3rem;
        margin: 0.8rem auto;
    }
    
    .wpcf7-form {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .site-logo img {
        height: 50px;
        max-width: 200px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .main-navigation a {
        padding: 0.4rem 1rem;
        font-size: 1.1rem; /* this is the size of the menu items in mobile view*/
    }

    .hero {
        padding: 3rem 1rem;
    }
    
    .events {
        padding: 1rem 0.5rem;
    }
    
    .event-card {
        padding: 0.5rem;
    }
    
    .event-card h3 {
        font-size: 1.3rem;
    }
    
    .team-gallery h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        gap: 1rem;
    }
    
    .team-member {
        flex: 0 0 150px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-member h3 {
        font-size: 1.1rem;
    }

    .metaslider,
    .metaslider-wrap,
    .metaslider-slideshow-wrapper {
        margin-top: 20px !important;
    }

    .metaslider img,
    .metaslider .slide img,
    .metaslider .ms-image {
        border-top-width: 2px !important;
        border-bottom-width: 2px !important;
    }

    .wpcf7 {
        max-width: 95%;
        padding: 0.2rem;
        margin: 0.5rem auto;
    }
    
    .wpcf7-form {
        padding: 1rem;
    }
}

/* =========================================
   PAGE SPECIFIC OVERRIDES
   ========================================= */

/* Events page centering */
body.page-template-page-events .events-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.page-template-page-events .event-card {
    flex: 0 1 400px !important;
    max-width: 400px !important;
    min-width: 350px !important;
}

body.page-template-page-events .events {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 1rem 0.5rem !important; /* here is where you make the area between events and the boxes smaller */
}

body.page-template-page-events main.content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    body.page-template-page-events .events-grid {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    body.page-template-page-events .event-card {
        flex: 1 1 auto !important;
        max-width: 500px !important;
        min-width: unset !important;
        width: 100% !important;
    }
}

/* =========================================
   HERO SIZE NUCLEAR OPTION - NO PHP CHANGES NEEDED
   ========================================= */

/* Nuclear option - target ANY h1 in ANY hero section */
section[class*="hero"] h1,
.hero h1,
.page-hero h1,
.page-hero-content h1,
.team-hero h1,
.team-hero-content h1,
.directory-hero-text h1 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Nuclear option - target ANY subtitle in ANY hero section */
.hero p,
.page-subtitle,
.team-subtitle,
.directory-hero-text p,
.page-hero p,
.team-hero p {
    font-size: 1.3rem !important;
    margin-top: 1rem !important;
    opacity: 0.9 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Responsive nuclear */
@media (max-width: 768px) {
    section[class*="hero"] h1,
    .hero h1,
    .page-hero h1,
    .page-hero-content h1,
    .team-hero h1,
    .team-hero-content h1,
    .directory-hero-text h1 {
        font-size: 2.2rem !important;
        letter-spacing: 1px !important;
    }
    
    .hero p,
    .page-subtitle,
    .team-subtitle,
    .directory-hero-text p,
    .page-hero p,
    .team-hero p {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    section[class*="hero"] h1,
    .hero h1,
    .page-hero h1,
    .page-hero-content h1,
    .team-hero h1,
    .team-hero-content h1,
    .directory-hero-text h1 {
        font-size: 1.8rem !important;
        letter-spacing: 1px !important;
    }
    
    .hero p,
    .page-subtitle,
    .team-subtitle,
    .directory-hero-text p,
    .page-hero p,
    .team-hero p {
        font-size: 1rem !important;
    }
}

/* =========================================
   MINIMAL BACKGROUND FIX
   ========================================= */

/* Just ensure content areas are transparent */
main.content,
.entry-content,
article,
.post,
.page,
.hentry,
.content > *,
.events,
.team-gallery-section,
.directory-container,
.testimonials-container,
.members-container {
    background: transparent !important;
}

.hero,
.page-hero,
.team-hero {
    background: transparent !important;
}

/* =========================================
   BERTHOLD BLOCK STYLE TYPOGRAPHY
   ========================================= */

/* Blocky, impactful headers */
.hero h1,
.page-hero .page-hero-content h1,
.team-hero .team-hero-content h1,
.event-card h3,
.our-mission h2,
.footer-section h3,
.entry-content h2 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

/* Keep body text readable */
body {
    font-family: 'Oswald', sans-serif;
}

/* Navigation and buttons - bold but readable */
.main-navigation a,
.cta-button,
.event-button,
.content-button,
.wpcf7-form input[type="submit"] {
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
}

/* =========================================
   TESTIMONIALS STYLES - FIXED
   ========================================= */

.testimonials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    text-align: center;
    padding-top: 0.5rem !important;
}

.testimonials-intro {
    text-align: center !important;
    margin-bottom: -1.5rem;
    max-width: 1200px;
}

.testimonials-intro h2 {
    color: #5A004F;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: -0.5rem;
    text-transform: uppercase;
}

/* Strong Testimonials Container */
.strong-view {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.strong-view .strong-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; /* Add this */
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Testimonial Items - Fixed */
.strong-view .testimonial {
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: flex-start !important;
    
    /* Left logo layout */
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    text-align: left;
    position: relative;
    margin-top: 0.4rem !important;
}

.strong-view .testimonial:hover {
    background: rgba(90, 0, 79, 0.8) !important;
    border: 2px solid rgba(230, 161, 166, 0.7) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Force centering of all Strong Testimonials elements */
.strong-view .wpmslider-wrapper,
.strong-view .wpmslider-viewport,
.strong-view .wpmslider-slides {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.strong-view .testimonial {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: flex-start !important;
}


/* Testimonial Image - Fixed */
.strong-view .testimonial-image {
    border-radius: 50%;
    border: 3px solid #E6A1A6 !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    flex-shrink: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: block !important;
    margin-top: 1rem !important; /*adjust this value as needed */
}

/* Testimonial Content - Fixed */
.strong-view .testimonial-inner {
    flex: 1;
    text-align: left;
}

.strong-view .testimonial-content {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: #FFFFFF !important;
    font-style: italic !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 400 !important;
}

.strong-view .testimonial-content p {
    text-align: left !important;
    margin: 0 !important;
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-style: italic !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 400 !important;
}

/* Testimonial Client Info - Fixed */
.strong-view .testimonial-client {
    color: #FFFFFF !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.3rem !important;
    text-align: left !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    text-transform: uppercase !important;
}

.strong-view .testimonial-company {
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: italic !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 400 !important;
}

/* Company website links */
.strong-view .testimonial-company a {
    color: #E6A1A6 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.strong-view .testimonial-company a:hover {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Navigation arrows */
.strong-view .wpmslider-controls a {
    background: rgba(90, 0, 79, 0.7) !important;
    border: 2px solid rgba(230, 161, 166, 0.5) !important;
    color: #FFFFFF !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.strong-view .wpmslider-controls a:hover {
    background: rgba(90, 0, 79, 0.9) !important;
    border-color: #E6A1A6 !important;
}

/* Dots/pagination */
.strong-view .wpmslider-pager a {
    background: rgba(90, 0, 79, 0.5) !important;
    border: 2px solid rgba(230, 161, 166, 0.3) !important;
}

.strong-view .wpmslider-pager a.active {
    background: #E6A1A6 !important;
    border-color: #5A004F !important;
}

/* Mobile Styles */
/* Mobile Styles - UPDATED */
@media (max-width: 768px) {
    .strong-view .testimonial {
        width: 95% !important; /* Increased from 90% */
        max-width: none !important; /* Remove max-width constraint */
        padding: 1.5rem !important;
        flex-direction: column !important;
        text-align: center;
        gap: 1rem !important;
        margin: 1rem auto !important; /* Added proper margin */
        background: rgba(90, 0, 79, 0.7) !important; /* Restore original background */
        border: 2px solid rgba(230, 161, 166, 0.5) !important; /* Restore original border */
    }
    
    .strong-view .testimonial-image {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }
    
    .strong-view .testimonial-inner {
        text-align: center !important;
        width: 100% !important;
    }
    
    .strong-view .testimonial-content,
    .strong-view .testimonial-content p {
        text-align: center !important;
        font-size: 1rem !important;
        width: 100% !important;
        word-wrap: break-word !important; /* Prevent text overflow */
    }
    
    .strong-view .testimonial-client,
    .strong-view .testimonial-company {
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Ensure containers are properly sized */
    .strong-view,
    .strong-view .strong-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important; /* Add some side padding */
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .strong-view .testimonial {
        width: 100% !important; /* Full width on very small screens */
        padding: 1.2rem !important;
        margin: 0.5rem auto !important;
    }
    
    .strong-view .testimonial-content,
    .strong-view .testimonial-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .strong-view .testimonial-image {
        width: 70px !important;
        height: 70px !important;
    }
}
/* =========================================
   DIRECTORY STYLES - NUCLEAR CENTERING
   ========================================= */

.directory-container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0.25rem 0.5rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.directory-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.business-card {
    background: #6d2253;
    padding: 0.25rem;
    border-radius: 20px;
    border: 2px solid rgba(230, 161, 166, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    width: 350px !important;
    max-width: 100% !important;
    margin: 0 !important;
    opacity: 0.8;
}

.business-card:hover {
    background: rgba(90, 0, 79, 0.8);
    border: 2px solid rgba(230, 161, 166, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.business-content h3 {
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.business-description {
    color: #FFFFFF; /* Pure white, no transparency */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-style: normal;
	font-weight: 500;
}

.business-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-item {
    color: #FFFFFF;
    font-size: 1rem;
}

.contact-item a {
    color: #E6A1A6 !important;
    text-decoration: none;
}

.contact-item a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.contact-separator {
    color: #E6A1A6;
}

.directory-cta {
    text-align: center !important;
    padding: 0.5rem !important;
    background: #6d2253 !important;
    border-radius: 20px !important;
    border: 2px solid rgba(230, 161, 166, 0.5) !important;
    margin: 1rem auto !important; /* Changed this line */
    width: 100% !important;
    max-width: 800px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.directory-cta p {
    color: #FFFFFF !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    width: 100% !important;
}

.directory-banner {
    background: rgba(90, 0, 79, 0.8);
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid #E6A1A6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
}

.directory-banner p {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .directory-container {
        padding: 3rem 1rem !important;
    }
    
    .business-card {
        padding: 2rem !important;
        width: 100% !important;
        max-width: 400px !important;
    }
    
    .business-contact {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .contact-separator {
        display: none;
    }
    
    .directory-cta {
        padding: 1rem !important;
    }
}

/* =========================================
   DESKTOP FIXES - OVERRIDE MOBILE STYLES
   ========================================= */

/* Reset mobile overrides for desktop */
@media (min-width: 769px) {
    /* Events Section - Desktop */
    .events {
        padding: 4rem 2rem !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .event-card {
        background: rgba(90, 0, 79, 0.7) !important;
        padding: 2.5rem !important;
        border-radius: 20px !important;
        text-align: center !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        border: 2px solid rgba(230, 161, 166, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        z-index: 1 !important;
        margin: 0 !important;
    }
    
    /* Team Gallery - Desktop */
    .team-gallery-section {
        padding: 4rem 2rem !important;
      /*  background-color: #e8aeab !important; */
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .gallery-grid-hero {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        justify-content: center !important;
        align-items: stretch !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .team-member-hero {
        background: rgba(90, 0, 79, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        border-radius: 20px !important;
        border: 3px solid rgba(230, 161, 166, 0.6) !important;
        padding: 2rem !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 400px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Testimonials - Desktop */
    .testimonials-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
        text-align: center !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .strong-view .testimonial {
        background: rgba(90, 0, 79, 0.7) !important;
        border: 2px solid rgba(230, 161, 166, 0.5) !important;
        padding: 0.5rem !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
        width: 80% !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
        text-align: left !important;
        opacity: 0.8;
    }
    
    /* Directory - Desktop */
    .directory-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 2rem 1rem !important;
        text-align: center !important;
    }
    
    .directory-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    
    .business-card {
        background: rgba(90, 0, 79, 0.7) !important;
        padding: 2.5rem !important;
        border-radius: 20px !important;
        border: 2px solid rgba(230, 161, 166, 0.5) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
        text-align: center !important;
        width: 350px !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Our Mission - Desktop */
    .our-mission {
        background: #6d2253 !important;
        padding: 1rem !important;
        margin: -3rem auto !important;
        border-radius: 20px !important;
        text-align: center !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        border: 2px solid rgba(230, 161, 166, 0.5) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        max-width: 900px !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Members Area - Desktop */
    .members-container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 4rem 2rem !important;
        text-align: center !important;
    }
    
    .resource-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
    }
    
    .resource-card {
        background: rgba(90, 0, 79, 0.7) !important;
        padding: 2rem !important;
        border-radius: 15px !important;
        border: 2px solid rgba(230, 161, 166, 0.5) !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
    }
}

/* =========================================
   SPECIFIC OVERRIDES FOR PROBLEMATIC GLOBAL RULES
   ========================================= */

/* Fix the main content area specifically for desktop */
@media (min-width: 769px) {
    main.content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Ensure all containers are properly centered */
    .events,
    .team-gallery-section,
    .testimonials-container,
    .directory-container,
    .members-container,
    .our-mission {
        display: block !important;
        float: none !important;
        clear: both !important;
        padding: 1rem 1rem !important; /* Reduced from 4rem */
    }
}

/* =========================================
   NUCLEAR OPTION - FORCE DESKTOP LAYOUTS
   ========================================= */

@media (min-width: 769px) {
    /* Force grid layouts */
    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    }
    
    .gallery-grid-hero {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .directory-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .resource-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
    
    /* Force purple backgrounds */
    .event-card,
    .team-member-hero,
    .strong-view .testimonial,
    .business-card,
    .resource-card,
    .our-mission {
        background: #6d2253 !important;
    }
    
    /* Force centered positioning */
    .events,
    .team-gallery-section,
    .testimonials-container,
    .directory-container,
    .members-container,
    .our-mission {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
}

/* =========================================
   ULTIMATE HEADER MARGIN OVERRIDE
   ========================================= */

/* Add this at the very end of your CSS file */
.site-header {
    margin-top: 50px !important;
}

/* Nuclear option with maximum specificity */
html > body > .site-header {
    margin-top: 50px !important;
}

/* =========================================
   DESKTOP ONLY: OVERSIZED LOGO, STARS & LAYOUT
   (Applies ONLY to screens wider than 1100px)
   ========================================= */

@media (min-width: 1100px) {

    /* 1. Header: Allow logo to hang out */
    .site-header {
        align-items: flex-start !important; 
        overflow: visible !important; 
        padding: 0.5rem 2rem !important;
        min-height: 120px !important;
        margin-top: 0 !important;
    }

    /* 2. Logo: Big (280px) & Lifted (-20px) */
    .site-logo img {
        height: 280px !important; 
        width: auto;
        max-width: 600px !important;
        
        /* LIFT IT UP: Touches the top edge */
        transform: translateY(-70px) !important; 
        
        /* Shadow & Spacing */
        filter: drop-shadow(0 12px 20px rgba(0,0,0,0.4));
        
        /* Clear the space below the logo */
        margin-bottom: -190px !important; 
        margin-top: 0 !important;
        transition: all 0.3s ease;
    }

    /* 3. Hover: Grow slightly, keep position */
    .site-logo img:hover {
        transform: translateY(-20px) scale(1.05) !important;
    }

    /* 4. Content: PUSH TEXT UP (Reduced from 180px to 150px) */
    .hero, 
    .page-hero, 
    .team-hero, 
    main.content {
        margin-top: 0 !important;
        
        /* CHANGE THIS NUMBER to move text Up/Down */
        padding-top: 120px !important; 
        
        position: relative;
        z-index: 1;
    }
    
    /* 5. Nav: Align with the top area */
    .main-navigation {
        align-self: center !important;
        margin-top: 15px !important;
    }

    /* 6. DESKTOP STARS OPACITY */
    .hero::after,
    .page-hero::after,
    .team-hero::after {
        /* 0.1 = Very Faint 
           0.5 = Medium (Current Setting)
           1.0 = Solid/Bright 
        */
        opacity: 0.2 !important; 
    }
}

/* =========================================
   MOBILE MENU SAFETY NET
   (Ensures mobile menu works even if other code tries to break it)
   ========================================= */

@media (max-width: 768px) {
    /* Reset Header to be solid and simple */
    .site-header {
        min-height: 80px !important;
        padding: 0.5rem 1rem !important;
        margin-top: 0 !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    /* Reset Logo to be small and contained */
    .site-logo img {
        height: 70px !important;
        transform: none !important;
        margin: 0 !important;
    }

    /* Ensure Toggle is visible */
    .menu-toggle {
        display: block !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10002 !important;
    }

    /* Reset Content Spacing (No negative margins!) */
    .hero, .page-hero, main.content {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
}
/* Fix any potential issues with the stars background */
.hero::before,
.page-hero::before,
.team-hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') left center/200px 200px no-repeat,
        url('http://sheleadsswansea.local/wp-content/uploads/2025/10/stars.png') right center/200px 200px no-repeat !important;
    opacity: 0.8 !important;
    mix-blend-mode: lighten !important;
    filter: brightness(4) contrast(3) drop-shadow(0 0 2px white) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Ensure the header background doesn't show through */
.site-header {
    background-color: #e8aeab !important;
}
/* =========================================
   REMOVE OUR MISSION BOX ON DESKTOP TO MATCH MOBILE
   ========================================= */

.our-mission {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2rem 1rem !important; /* Keep some padding for spacing */
}

.our-mission h2 {
    color: #E6A1A6 !important;
    text-shadow: none !important;
}

.mission-content p {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Remove hover effects */
.our-mission:hover {
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Make sure these styles apply to desktop specifically */
@media (min-width: 769px) {
    .our-mission {
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* =========================================
   FIX MOBILE VIEW AFTER COLOR/OPACITY CHANGES
   ========================================= */

/* Reset mobile styles specifically */
@media (max-width: 768px) {
    /* Fix Our Mission section on mobile */
    .our-mission {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 1rem !important;
    }
    
    .our-mission h2 {
        color: #FFFFFF !important;
        font-size: 1.8rem !important;
        text-shadow: none !important;
    }
    
    .mission-content p {
        color: #FFFFFF !important;
        font-size: 1rem !important;
        text-shadow: none !important;
        opacity: 1 !important; /* Ensure full opacity */
    }
    
    /* Fix Team section on mobile */
    .team-member-hero {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .team-info h3 {
        color: #FFFFFF !important;
        font-size: 1.3rem !important;
        text-shadow: none !important;
        opacity: 1 !important;
    }
    
    .team-role-hero {
        color: #000000 !important;
        font-size: 1rem !important;
        text-shadow: none !important;
        opacity: 0.9 !important;
    }
    
    .team-bio p {
        color: #FFFFFF !important;
        font-size: 1.5rem !important;
        text-shadow: none !important;
        opacity: 1 !important;
        letter-spacing: 0.5px;
    }
    
    .team-photo-hero {
        border: 3px solid #5A004F !important;
        box-shadow: 0 2px 8px rgba(90, 0, 79, 0.2) !important;
    }
    
    /* Ensure text is readable on mobile */
    .team-bio {
        border-top: 1px solid rgba(90, 0, 79, 0.2) !important;
        padding-top: 1rem !important;
    }
}

/* Fix very small screens */
@media (max-width: 480px) {
    .our-mission h2 {
        font-size: 1.5rem !important;
    }
    
    .mission-content p {
        font-size: 0.9rem !important;
    }
    
    .team-info h3 {
        font-size: 1.2rem !important;
    }
    
    .team-role-hero {
        font-size: 0.9rem !important;
    }
    
    .team-bio p {
        font-size: 0.85rem !important;
    }
    
    .team-photo-hero {
        width: 120px !important;
        height: 120px !important;
        border: 4px solid #E6A1A6 !important;
        box-shadow: 0 0 0 3px rgba(90, 0, 79, 0.3) !important;
    }
}

/* =========================================
   HOME JOIN BUTTON (Restored)
   ========================================= */
.home-join-button {
    display: inline-block;
    background: white; 
    color: #5A004F; 
    padding: 15px 50px; 
    border-radius: 50px; 
    font-weight: 800; 
    font-size: 1.2rem;
    text-decoration: none; 
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 30px; 
}

.home-join-button:hover {
    background: #fdf2f4; 
    transform: scale(1.05);
    color: #5A004F;
}

/* =========================================
   NUCLEAR CENTERING FOR MOBILE TEAM PAGE
   ========================================= */

@media (max-width: 768px) {
    /* Force center the entire section */
    .team-gallery-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    /* Force center the grid container */
    .gallery-grid-hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        gap: 1.5rem !important;
    }
    
    /* Force center each team card */
    .team-member-hero {
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
    }
    
    /* Center all text elements */
    .team-info {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .team-info h3,
    .team-role-hero,
    .team-bio,
    .team-bio p {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ensure photo is centered */
    .team-photo-hero {
        margin: 0 auto 1rem auto !important;
        display: block !important;
    }
}

/* Remove any float or positioning that might cause misalignment */
@media (max-width: 768px) {
    .team-gallery-section,
    .gallery-grid-hero,
    .team-member-hero,
    .team-info {
        float: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }
}

/* Target the lightbox gallery and its direct children */
#lightbox-gallery {
    text-align: center !important;
}

#lightbox-gallery > * {
    display: inline-block !important;
    margin: 10px !important;
    float: none !important;
}



/* =========================================
   CUSTOM STARS - FINAL POSITIONS
   ========================================= */

.hero::after,
.page-hero::after,
.team-hero::after {
    content: '' !important;
    position: fixed !important;
    
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
    /* 1. LOAD THE IMAGES */
    background-image: 
        url('/wp-content/uploads/2025/10/stars.png'), /* Star 1 (Right Side) */
        url('/wp-content/uploads/2025/10/stars.png') !important; /* Star 2 (Left Side) */
    
    /* 2. SET POSITIONS */
    background-position: 
        /* CHANGE: 98% Right, 70% Down (Lifted up from 85%) */
        98% 70%,   
        
        /* Left Star: 5% Left, 45% Down */
        5% 45% !important;  
        
    /* 3. SET SIZES */
    background-size: 
        400px auto,  /* Big (Right) */
        180px auto !important;  /* Medium (Left) */
    
    background-repeat: no-repeat !important;
    
    opacity: 0.8 !important;
    mix-blend-mode: screen !important; 
    pointer-events: none !important;
    z-index: 0 !important;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .hero::after,
    .page-hero::after,
    .team-hero::after {
        background-position: 
            110% 80%,  /* Lifted mobile star slightly too */
            -10% 25% !important;
            
        background-size: 
            200px auto, 
            100px auto !important;
        
        opacity: 0.5 !important;
    }
}

/* Join Page Styles */
.join-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.membership-flyer {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.join-cta-section {
    background: #fdf2f4;
    padding: 40px;
    border-radius: 15px;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.join-price-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5A004F;
    margin-bottom: 5px;
}

.join-offer-text {
    font-size: 1.1rem;
    color: #E6A1A6;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.join-now-button {
    display: inline-block;
    background: #5A004F;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 5px 15px rgba(90, 0, 79, 0.3);
}

.join-now-button:hover {
    background: #E6A1A6;
    color: #5A004F;
    transform: scale(1.05);
}

/* Container for the whole contact section */
.contact-page-container {
    max-width: 700px;        /* Slightly narrower for a cleaner look */
    width: 100%;             /* Responsive width */
    margin-top: 60px;
    margin-bottom: 60px;
    margin-left: auto !important;   /* Force Center Left */
    margin-right: auto !important;  /* Force Center Right */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    padding: 40px;
    display: block;          /* Ensures margins work correctly */
}

/* Labels */
.sheleads-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5A004F;
}

/* Inputs - NOW INCLUDES PHONE (tel) */
.sheleads-contact-form input[type="text"],
.sheleads-contact-form input[type="email"],
.sheleads-contact-form input[type="tel"], 
.sheleads-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Focus State */
.sheleads-contact-form input:focus, 
.sheleads-contact-form textarea:focus {
    border-color: #E6A1A6;
    outline: none;
}

/* Checkboxes and Consent Text */
.form-row.consent-row {
    margin-bottom: 15px; /* Reduced slightly so they stack nicely */
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
}

/* Style the actual tick boxes */
.sheleads-contact-form input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #5A004F; /* Makes the tick purple */
    cursor: pointer;
}

/* Submit Button */
.sheleads-submit-btn {
    background: linear-gradient(135deg, #E6A1A6 0%, #5A004F 100%);
    border: none;
    color: white;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.sheleads-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 0, 79, 0.3);
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .contact-page-container {
        padding: 20px;
        margin: 30px 15px;
    }
    .sheleads-submit-btn {
        width: 100%;
    }
}
/* =========================================
   MOBILE STARS FIX - CLEAN & CONSISTENT
   ========================================= */

@media (max-width: 768px) {
    .hero::after,
    .page-hero::after,
    .team-hero::after {
        /* 1. RESET CANVAS: Force it to cover the full screen */
        width: 100% !important;
        height: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: auto !important; /* Override old "bottom: 500px" rules */
        right: auto !important;  /* Override old "right: 15px" rules */

        /* 2. IMAGE: Use your new stars (2 images only) */
        background-image: 
            url('/wp-content/uploads/2025/10/stars.png'),
            url('/wp-content/uploads/2025/10/stars.png') !important;

        /* 3. POSITION: Tuck them into the corners */
        background-position: 
            110% 80%,    /* Right Star: Pushed slightly off the right edge */
            0% 20% !important;  /* Left Star: Pushed slightly off the left edge */

        /* 4. SIZE: Make them smaller for phones */
        background-size: 
            200px auto,  /* Right Star width */
            120px auto !important;  /* Left Star width */

        /* 5. STYLE: Fade them out so text is readable */
        opacity: 0.3 !important;
        z-index: 0 !important;
    }
}

/* =========================================
   MEMBERSHIP PAYMENT LINK STYLING
   ========================================= */

/* Style the link inside the checkbox label */
.wpcf7-list-item-label a {
    color: #5A004F !important; /* Your brand purple */
    font-weight: 900 !important;
    text-decoration: underline !important;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.wpcf7-list-item-label a:hover {
    color: #E6A1A6 !important; /* Your brand pink/gold on hover */
    background-color: #5A004F;
    padding: 2px 5px;
    border-radius: 4px;
    text-decoration: none !important;
}

/* Ensure the text wraps nicely on mobile */
span.wpcf7-list-item {
    white-space: normal !important;
    display: flex !important;
    align-items: flex-start !important;
}

/* Make the acceptance checkbox look like your other checkboxes */
input[type="checkbox"] {
    margin-right: 10px !important;
    margin-top: 5px !important; /* Aligns box with top line of text */
    min-width: 20px;
    min-height: 20px;
    accent-color: #5A004F;
}
/* Red Warning Box for Payment */
.payment-alert {
    background-color: #fff5f5;
    border: 2px solid #dc3545; /* Red border */
    padding: 20px;
    border-radius: 8px;
    color: #dc3545;
}

/* Make the link look like a payment button */
a.sumup-button {
    display: inline-block;
    background-color: #5A004F;
    color: white !important;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

a.sumup-button:hover {
    background-color: #E6A1A6;
    color: #5A004F !important;
    transform: translateY(-2px);
}

/* =========================================
   MASTER TABLET FIX (768px - 1100px)
   1. No Overlaps
   2. No Huge Gaps
   3. 2-Column Grids
   ========================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    /* --- 1. REMOVE TOP GAP (Menu Bar) --- */
    /* Override the 50px margin applied globally */
    html > body > .site-header,
    .site-header {
        margin-top: 0 !important; 
        height: auto !important;
        min-height: 100px !important;
        padding: 1rem !important;
        align-items: center !important;
    }

    /* --- 2. RESET LOGO (Sit inside header) --- */
    .site-logo img {
        transform: none !important;
        margin-bottom: 0 !important;
        height: 80px !important; 
        position: relative !important;
        top: auto !important;
    }

    /* --- 3. REMOVE CONTENT GAPS --- */
    /* Stop pulling content up (-margin) or pushing it down (+padding) */
    .hero, 
    .page-hero, 
    body.home .hero,
    main.content {
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: auto !important;
    }

    /* --- 4. TEXT ALIGNMENT --- */
    /* Center the text vertically and horizontally with standard spacing */
    .hero-content-wrapper,
    .page-hero-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding-top: 2rem !important;    /* Small gap between Header and Text */
        padding-bottom: 2rem !important; /* Small gap between Text and Footer */
        height: auto !important;
    }

    /* --- 5. BUTTON STYLING --- */
    .home-join-button {
        margin-top: 20px !important;
        background: white !important; /* Force white background */
        color: #5A004F !important;    /* Force purple text */
    }

    .hero h1, .page-hero h1 {
        margin-bottom: 10px !important;
        margin-top: 0 !important;
    }

    /* --- 6. FOOTER PLACEMENT --- */
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    main.content {
        flex: 1; 
        padding-bottom: 0 !important;
    }
    
    /* --- 7. FIX GRIDS (2 Columns) --- */
    .events-grid,
    .directory-grid,
    .gallery-grid-hero,
    .resource-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 0 1rem !important;
    }
    
    /* --- 8. CLEAN UP MISSION & SOCIAL --- */
    .our-mission, 
    .social-media-heading {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
	
	/* --- 9. DIM STARS FOR READABILITY --- */
    .hero::after,
    .page-hero::after,
    .team-hero::after {
        opacity: 0.3 !important;        /* Very faint (was likely 0.8) */
        mix-blend-mode: multiply !important; /* Blends into the purple (darker) instead of shining white */
        filter: none !important;         /* Removes the high contrast glowing effect */
        z-index: 0 !important;           /* Ensures they stay strictly behind text */
    }
    
    /* Double check text is on top */
    .hero h1, .hero p, 
    .page-hero h1, .page-hero-content,
    .home-join-button {
        position: relative !important;
        z-index: 10 !important;          /* Force text well above the stars */
        text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important; /* stronger shadow for readability */
    }
}

/* =========================================
   5. MOBILE FIX (THE CRITICAL PART - REVISED)
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. RESET HEADER (Flexbox Row) */
    .site-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: auto !important;
        min-height: 80px !important;
        padding: 10px 15px !important;
        backdrop-filter: none !important; /* Prevents menu trap */
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 10000 !important;
    }

    /* 2. RESET LOGO (Small & In-Line) */
    .site-logo img {
        height: 60px !important;
        width: auto !important;
        transform: none !important;
        margin: 0 !important;
        max-width: 200px !important;
        filter: none !important;
        display: block !important;
    }

    /* 3. RESET BUTTON (Flex Item - Safer than Absolute) */
    .menu-toggle {
        display: block !important;
        position: relative !important; /* Changed from absolute */
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin-left: auto !important; /* Pushes button to far right */
        
        background: transparent !important;
        color: #5A004F !important;
        border: 2px solid #5A004F !important; /* Border to confirm box */
        border-radius: 5px;
        padding: 5px 10px !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
        z-index: 10005 !important;
        cursor: pointer !important;
        width: auto !important;
        height: auto !important;
    }

    /* 4. THE MENU (Standard Dropdown) */
    .main-navigation {
        display: none !important; /* Hidden */
        
        position: absolute !important;
        top: 100% !important; /* Starts exactly at bottom of header */
        left: 0 !important;
        width: 100% !important;
        
        background-color: #e8aeab !important; /* Pink Background */
        border-top: 3px solid #5A004F !important;
        border-bottom: 3px solid #5A004F !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
        z-index: 9999 !important;
        padding: 0 !important;
    }

    /* 5. VISIBLE STATE */
    .main-navigation.active {
        display: block !important;
    }

    /* 6. LINKS */
    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .main-navigation a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 15px !important;
        border-bottom: 1px solid rgba(90, 0, 79, 0.1) !important;
        color: #5A004F !important;
        font-size: 1.2rem !important;
        background: transparent !important;
    }
    
    /* 7. RESET CONTENT PADDING */
    .hero, .page-hero, main.content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* =========================================
   SEARCH RESULTS PAGE FIX - BUTTONS (V2)
   ========================================= */

/* Format the container */
body.search .site-main article,
.search-results article {
    background: #ffffff !important;
    border: 2px solid #f0f0f0 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin: 20px auto !important;
    max-width: 800px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

body.search .site-main article:hover,
.search-results article:hover {
    border-color: #E6A1A6 !important;
}

/* Fix the Main Title */
body.search .site-main article .entry-title a,
.search-results .entry-title a {
    color: #5A004F !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body.search .site-main article .entry-title a:hover,
.search-results .entry-title a:hover {
    color: #E6A1A6 !important;
}

/* Format the excerpt text */
body.search .site-main article .entry-summary,
body.search .site-main article .entry-content {
    color: #5A004F !important;
    margin-top: 15px !important;
    font-size: 1.1rem !important;
    font-family: 'Oswald', sans-serif !important;
}

/* TURN THE BLUE LINKS INTO PINK BUTTONS */
body.search article .entry-summary a,
body.search article .entry-content a,
body.search a.more-link,
a.view-profile-btn,
a.view\.profile-btn {
    display: inline-block !important; 
    padding: 12px 25px !important; 
    background: #fdf0f1 !important; 
    color: #5A004F !important;      
    border-radius: 25px !important; 
    text-decoration: none !important; 
    font-weight: bold !important; 
    font-size: 0.85rem !important; 
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hover effect for the buttons */
body.search article .entry-summary a:hover,
body.search article .entry-content a:hover,
body.search a.more-link:hover,
a.view-profile-btn:hover,
a.view\.profile-btn:hover {
    background: #5A004F !important; 
    color: #ffffff !important;      
    transform: translateY(-2px) !important;
}

/* =========================================
   ULTIMATE EVENT CARD HEIGHT FIX
   ========================================= */

/* 1. Override the 'center' alignment that is breaking the height */
body.page-template-page-events .events-grid,
.events-grid {
    align-items: stretch !important;
}

/* 2. Make the card a flexible vertical column */
body.page-template-page-events .event-card,
.event-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: auto !important;
}

/* 3. Push the location (and the buttons below it) to the absolute bottom */
.event-card .event-location {
    margin-top: auto !important;
    padding-top: 20px !important;
}

.event-card .event-buttons {
    margin-top: 15px !important;
}
/* =========================================
   FORCE 3 CARDS PER ROW ON DESKTOP
   ========================================= */

@media (min-width: 1024px) {
    body.page-template-page-events .events-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Forces exactly 3 equal columns */
        gap: 2rem !important; /* Slightly smaller gap to ensure a beautiful fit */
    }

    body.page-template-page-events .event-card {
        max-width: 100% !important; /* Lets the grid control the size */
        min-width: 0 !important;    /* Removes the 350px restriction causing the wrap */
        width: 100% !important;
    }
}
