/* SEM DWI Page - Custom Styles */

/* Custom Fonts - Using self-hosted fonts loaded in template */

/* Font Classes */
.sem-headline {
    font-family: 'Playfair Display', serif;
}

.sem-body {
    font-family: 'Open Sans', sans-serif;
}

/* Button Style to match live site */
.sem-btn-gold {
    background-color: transparent;
    border: 2px solid #e3b96a;
    color: #e3b96a;
    padding: 15px 40px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.sem-btn-gold:hover {
    background-color: #e3b96a;
    color: #000;
    text-decoration: none;
}

/* Stats Section Overlap */
.stats-section-overlay {
    margin-top: -80px;
    margin-bottom: -80px;
    position: relative;
    z-index: 10;
}

/* Desktop shadow all around */
@media (min-width: 768px) {
    .stats-section-overlay > div {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 -10px 15px -3px rgba(0, 0, 0, 0.1), 10px 0 15px -3px rgba(0, 0, 0, 0.1), -10px 0 15px -3px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Push down just the H2 in the section below stats */
.stats-section-overlay + section h2:first-child {
    margin-top: 80px;
}

/* Force Ben's photo to be wider on mobile */
@media (max-width: 1023px) {
    .lg\\:hidden img {
        max-width: 380px !important;
        width: 380px !important;
    }
    
    img[src*="ben-michael.png"] {
        max-width: 380px !important;
        width: 380px !important;
    }
    
    .order-3 img {
        max-width: 380px !important;
        width: 380px !important;
    }
}

/* Stats Section Dividers */
.stats-grid {
    position: relative;
}

/* Desktop vertical dividers (md and lg screens) */
@media (min-width: 768px) {
    .stats-grid li {
        position: relative;
    }
    
    /* Reset mobile pseudo-elements */
    .stats-grid li::before,
    .stats-grid li::after {
        display: none;
    }
    
    /* Vertical dividers for tablet (3-col) - only between columns 1-2 and 2-3 */
    @media (min-width: 768px) and (max-width: 1023px) {
        .stats-grid li:nth-child(1)::after,
        .stats-grid li:nth-child(2)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background-color: #e5e7eb;
            z-index: 1;
        }
    }
    
    /* Vertical dividers for large screens (5-col) - between all except last */
    @media (min-width: 1024px) {
        .stats-grid li:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background-color: #e5e7eb;
            z-index: 1;
        }
    }
}

/* Mobile cross-divider system (2x2 grid) */
@media (max-width: 767px) {
    /* FORCE stats section full width - override everything */
    .stats-section-overlay {
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: -80px !important;
        margin-bottom: -80px !important;
    }
    
    .stats-section-overlay > div {
        border-radius: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Override any parent container constraints */
    body, html {
        overflow-x: hidden !important;
    }
    
    /* Force override any container padding */
    .stats-section-overlay * {
        box-sizing: border-box !important;
    }
    
    .stats-grid {
        gap: 0;
    }
    
    .stats-grid li {
        position: relative;
    }
    
    /* Adjust padding - less on top row, more on bottom row */
    .stats-grid li:nth-child(1) > div,
    .stats-grid li:nth-child(2) > div {
        padding: 12px 12px 20px 12px; /* Top row: less top padding */
    }
    
    .stats-grid li:nth-child(3) > div,
    .stats-grid li:nth-child(4) > div {
        padding: 20px 12px 12px 12px; /* Bottom row: less bottom padding */
    }
    
    /* Vertical divider between columns (items 1 & 3) */
    .stats-grid li:nth-child(odd)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: #e5e7eb;
        z-index: 1;
    }
    
    /* Horizontal divider between rows (items 3 & 4) */
    .stats-grid li:nth-child(3)::before,
    .stats-grid li:nth-child(4)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #e5e7eb;
        z-index: 1;
    }
    
    /* Mobile font sizes */
    .stats-grid .sem-headline {
        font-size: 28px !important;
    }
    
    .stats-grid .sem-body {
        font-size: 16px !important;
        line-height: 1.3;
    }
}