/*
Theme Name: Divi Child
Description: Child theme for the Centre Sports et Loisirs (CSL) website.
Template: Divi
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');

/* Core Design System & Brand Identity */
:root {
    --csl-red: #C02427;
    --csl-red-hover: #981b1d;
    --csl-green: #DBEDE0;
    --csl-green-dark: #b8d4c0;
    --csl-dark: #111827;
    --csl-gray-dark: #1f2937;
    --csl-gray-light: #f9fafb;
    --csl-border: #e5e7eb;
    --csl-text: #374151;
    --csl-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --csl-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000000 !important;
}

p,
li,
td,
th {
    color: #000000 !important;
    /* Pure black text, no gray */
}

/* Hide default Divi page titles */
h1.entry-title,
.entry-title,
.main_title {
    display: none !important;
}

/* Styled Headings - Centralized, Barlow, uppercase, underlined H2 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Barlow', Arial, sans-serif !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

h1 {
    font-size: 3rem ;
    font-weight: 900 !important;
}

h2 {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin: 45px auto 25px auto !important;
    position: relative !important;
    display: table !important;
    padding-bottom: 12px !important;
}

h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 25% !important;
    width: 50% !important;
    height: 4px !important;
    background-color: var(--csl-red) !important;
    border-radius: 2px !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

/* Specific styling for headings on dark backgrounds */
.csl-hero-content h1,
.csl-hero-content h2,
.csl-hero-content h3,
.csl-hero-content p,
.csl-page-header h1,
.csl-page-header h2,
.csl-page-header h3,
.csl-page-header p {
    color: #DBEDE0 !important;
    /* Light green on dark overlay */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.csl-page-header h1 {
    color: #ffffff !important;
}

/* Header & Menu Customization (Style evvaprotect.com / aloa) */
#main-header:not(.et-fixed-header) {
    height: 120px !important;
    padding-top: 15px !important;
}

#main-header:not(.et-fixed-header) #logo {
    max-height: 90px !important;
}

#main-header:not(.et-fixed-header) #top-menu-nav {
    padding-top: 30px !important;
}

#main-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 3px solid var(--csl-red) !important;
    transition: all 0.4s ease-in-out !important;
}

#top-menu li a {
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 24px !important; /* Increased navigation button size to 24px */
    font-weight: 800 !important; /* Extra bold */
    text-transform: none !important;
    color: var(--csl-dark) !important;
    transition: color 0.3s ease !important;
}

#top-menu li a:hover {
    color: var(--csl-red) !important;
}

#top-menu li.current-menu-item a {
    color: var(--csl-red) !important;
}

/* Hide Search Bar from Header */
#et_search_icon,
.et_search_form_container {
    display: none !important;
}

/* Grid Centering for Homepage */
.csl-home-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 175px !important;
    max-width: 1200px !important;
    margin: 100px auto !important;
}

.csl-home-grid > p {
    display: none !important; /* Hide empty paragraphs injected by wpautop */
}

@media (max-width: 767px) {
    .csl-home-grid {
        grid-template-columns: 1fr !important;
    }
.csl-flex-reverse-mobile {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }

    .csl-flex-reverse-mobile > div {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Large Screen Layout - Exploit 85% width and remove right divider line */
@media (min-width: 1200px) {
    .container {
        width: 85% !important;
        max-width: 1600px !important;
    }

    #left-area {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
    }

    #sidebar {
        display: none !important;
    }

    #main-content .container::before {
        display: none !important;
        /* Remove sidebar divider vertical line */
    }
}

/* CSS Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.csl-animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Homepage Hero Slideshow (Ken Burns and fade transition) */
.csl-hero-slideshow {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #111;
}

.csl-slides {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.csl-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.5s ease-in-out, transform 8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.csl-slide.active {
    opacity: 0.5;
    /* Overlay blend */
    transform: scale(1);
    z-index: 2;
}

.csl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.3) 0%, rgba(17, 24, 39, 0.75) 100%);
    z-index: 3;
    pointer-events: none;
}

.csl-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    z-index: 4;
}

.csl-hero-content h1 {
    font-size: 3.5rem !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.csl-hero-content p {
    font-size: 1.35rem !important;
    max-width: 800px !important;
    margin: 0 auto 40px auto !important;
    line-height: 1.6 !important;
    color: #f3f4f6 !important;
    font-weight: 400 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Page Hero Section */
.csl-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csl-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Premium Buttons */
.csl-btn {
    background-color: var(--csl-red) !important;
    color: #ffffff !important;
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    border: 2px solid var(--csl-red) !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px rgba(192, 36, 39, 0.2) !important;
}

.csl-btn:hover {
    background-color: var(--csl-red-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px rgba(192, 36, 39, 0.3) !important;
}

.csl-btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    border: 2px solid #ffffff !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.csl-btn-secondary:hover {
    background-color: #ffffff !important;
    color: var(--csl-red) !important;
    transform: translateY(-2px) !important;
}

.csl-btn-accent {
    background-color: #6DAD7F !important;
    color: #ffffff !important;
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.csl-btn-accent:hover {
    background-color: #2A6E3D !important;
    box-shadow: 0 5px 15px rgba(192, 36, 39, 0.2) !important;
}

 .btn-outline{
	display:inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-decoration:none;
    border: 2px solid transparent;
    cursor:pointer;
    transition: all 0.15s ease;
	 background: transparent;
	 color: #2A6E3D;
	 border-color: #2A6E3D;
}
  .btn-outline:hover{
	  background: #DBEDE0; 
}


/* Cards & Grid Styling */
.csl-card {
    background-color: #ffffff;
    border: 1px solid var(--csl-border);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: var(--csl-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.csl-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--csl-shadow-hover);
    border-color: var(--csl-red);
}

.csl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--csl-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.csl-card:hover::before {
    transform: scaleX(1);
}

/* Two-column layout elements */
.csl-img-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.csl-img-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

/* Custom Table Overrides */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

th {
    background-color: var(--csl-red) !important;
    color: #ffffff !important;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px !important;
}

td {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--csl-border);
    color: #000000 !important;
    /* Pure black text */
}



/* Footer & Partners Logo Grid */
#main-footer {
    background-color: var(--csl-red) !important;
    color: #ffffff !important;
    padding: 0 !important;
    border-top: 6px solid !important; /* Touch of light green (#DBEDE0) */
}

#main-footer p,
#main-footer span,
#main-footer a,
#main-footer li,
#main-footer div {
    color: #ffffff !important; /* White content in red footer */
}

#main-footer a:hover {
    text-decoration: underline !important;
    color: #ffffff !important;
}

#footer-bottom {
    background-color: var(--csl-red) !important;
    padding: 40px 0 !important;
    border-top: none !important;
}

#footer-info {
    text-align: center !important;
    float: none !important;
    width: 100% !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
}

#footer-info a {
    color: #ffffff !important;
}

/* Hide default Divi social icons (X, WIFI, etc.) */
#footer-bottom .et-social-icons {
    display: none !important;
}

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

.csl-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.csl-partner-logo {
    height: 80px;
    width: auto;
    background: transparent !important;
    object-fit: contain;
    opacity: 0.92;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.csl-partner-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}