/**
 * XLNC Theme - Hero & CTA Section Styles
 * Based on original site: https://www.xlnc.org
 * 
 * Implements:
 * - Hero section with featured image background (WrapItemIntro)
 * - Closing CTA section with fixed background (JoinSection)
 * - Button styles matching original brand
 */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700,800|Open+Sans:300,400,700');

/* ============================================
   HERO SECTION - WrapItemIntro
   ============================================ */
.WrapItemIntro {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 350px;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
}

/* Dark overlay for text readability */
.WrapItemIntro:before {
    background: rgba(0, 49, 92, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    content: '';
}

/* Inner container for proper z-index stacking */
.WrapItemIntro-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* Hero Title */
.WrapItemIntro .ItemTitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
    line-height: 1.2;
}

/* Fallback when no featured image */
.WrapItemIntro.no-featured-image {
    background-color: #00315c;
    background-image: none;
}

.WrapItemIntro.no-featured-image:before {
    background: rgba(0, 49, 92, 0.8);
}

/* ============================================
   CTA SECTION - JoinSection
   ============================================ */
.JoinSection {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    /* Optional: Fixed background effect (parallax-like) */
    /* background-attachment: fixed; */
}

/* Background image via CSS (adjust path as needed) */
.JoinSection {
    background-image: url('https://www.xlnc.org/new/wp-content/uploads/2025/11/bg_CTA_Page.jpg') !important;
}

/* Inner content container */
.IntroJoin {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    padding: 60px 80px;
    background: rgba(0, 49, 92, 0.5);
    color: #fff;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.IntroJoin h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 30px 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1.2;
}

.IntroJoin p {
  
}

.IntroJoin p:last-of-type {
    margin-bottom: 0;
}

/* ============================================
   BUTTON STYLES - Base & CTA
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    background-color: transparent;
    color: inherit;
    text-transform: uppercase;
}

.btn-cta {
    color: #fff !important;
    background-color: #e8bb31 !important;
    border-color: #e8bb31 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 25px !important;
    font-weight: 700;
}

.btn-cta:hover,
.btn-cta:focus {
    color: #ffffff !important;
    background-color: #aa8617 !important;
    border-color: #aa8617 !important;
    text-decoration: none !important;
}

.IntroJoin .btn-cta {
    margin-top: 30px;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1400px) {
    .btn-cta {
        padding: 5px 10px !important;
    }
}

@media (max-width: 992px) {
    .WrapItemIntro .ItemTitle {
        font-size: 3rem;
    }
    
    .IntroJoin {
        padding: 40px 30px;
        font-size: 1.5rem;
    }
    
    .IntroJoin h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .WrapItemIntro {
        min-height: 250px;
    }
    
    .WrapItemIntro .ItemTitle {
        font-size: 2rem;
    }
    
    .IntroJoin {
        padding: 30px 20px;
        font-size: 1.2rem;
    }
    
    .IntroJoin h3 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .IntroJoin .btn-cta {
        margin-top: 20px;
        padding: 8px 20px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .WrapItemIntro {
        min-height: 200px;
    }
    
    .WrapItemIntro .ItemTitle {
        font-size: 1.5rem;
    }
    
    .IntroJoin {
        padding: 25px 15px;
        font-size: 1rem;
    }
    
    .IntroJoin h3 {
        font-size: 1.5rem;
    }
}

