/* --- 1. Global Reset & Layout --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.gray-bg {
    background-color: #9c9a9e; /* Solid Gray Background */
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.page-wrapper {
    background-color: #ffffff;
    max-width: 1240px;
    margin: 30px auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* --- 2. Header & Branding --- */
.site-brand-title { color: #951040; font-weight: 800; font-size: 26px; }
.site-brand-subtitle { color: #57b5ea; font-size: 19px; font-weight: 500; }

#siteLogo {
    transition: transform 0.3s ease;
}

/* --- 3. Navigation & Mobile Responsiveness --- */
.navbar { 
    padding: 0.5rem 1.5rem; 
    border-bottom: 1px solid #eee; 
    background-color: #fff !important;
}

.nav-link {
    font-weight: 400 !important;
    text-transform: uppercase;
    font-size: 14px;
    color: #444 !important;
    padding: 15px 12px !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #951040 !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border-radius: 0;
    border: none;
    border-top: 4px solid #951040;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f8f8;
}

.dropdown-menu li a:hover {
    background-color: #951040;
    color: #fff;
}

/* Mobile Specific Adjustments (Breakpoints) */
@media (max-width: 991.98px) {
    .page-wrapper { margin: 0; border-radius: 0; }
    
    .site-brand-title { font-size: 20px; }
    .site-brand-subtitle { font-size: 15px; }
    #siteLogo { height: 60px !important; }

    /* Hamburger Menu Icon Color */
    .navbar-toggler {
        border-color: rgba(0,0,0,0.1);
    }

    /* Stack Navigation Vertically */
    .navbar-collapse {
        background: #fff;
        padding-bottom: 15px;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 15px;
    }

    /* Hero adjustments for mobile */
    .carousel-caption-overlay {
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
}

/* Desktop Hover Dropdowns */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
    }
}

/* --- 4. Hero Slider --- */
.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-caption-overlay {
    position: absolute;
    bottom: 35px;
    left: 45px;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    max-width: 550px;
    border-left: 6px solid #951040;
    text-align: left;
}

/* --- 5. Media Sections (Gallery & YouTube) --- */
.section-title {
    font-size: 22px;
    font-weight: 700;
    border-bottom: 3px solid #951040;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.gallery-item-square {
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    position: relative;
    overflow: hidden;
    border: 1px solid #fff;
}

.gallery-item-square img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item-square img:hover { transform: scale(1.1); cursor: pointer; }

/* --- 6. Stats Bar --- */
.stats-bar { background-color: #1a1a1a; }
.stat-number { color: #b4b4b4; font-size: 32px; font-weight: 800; display: block; }
.stat-label { font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: 1px; }

/* --- 7. Footer Styles --- */
.footer-accent-bar { background-color: #951040; }
.footer-main { background: #fff; border-top: 1px solid #eee; }

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #951040;
    margin-bottom: 20px;
}

.footer-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    color: #666;
}

.btn-maroon {
    background: #951040;
    color: #fff;
    border: none;
    transition: background 0.3s;
}

.btn-maroon:hover {
    background: #7a0d33;
    color: #fff;
}

/* 1. Default State: Make all icons grey */
.social-links a, .social-links-footer a {
    color: #6c757d !important; /* A medium grey */
    transition: all 0.3s ease;
}

/* 2. Hover State: Change to official brand colors */
.social-links a:hover i.fa-facebook-f, 
.social-links-footer a:hover i.fa-facebook-f { color: #1877F2 !important; }

.social-links a:hover i.fa-youtube, 
.social-links-footer a:hover i.fa-youtube { color: #FF0000 !important; }

.social-links a:hover i.fa-telegram-plane, 
.social-links-footer a:hover i.fa-telegram-plane { color: #0088cc !important; }

.social-links a:hover i.fa-instagram, 
.social-links-footer a:hover i.fa-instagram-square { color: #E4405F !important; }

.social-links a:hover i.fa-tiktok, 
.social-links-footer a:hover i.fa-tiktok { color: #010101 !important; }

/* Instagram Brand Gradient Hover */
.social-links a:hover i.fa-instagram-square,
.social-links a:hover i.fa-square-instagram,
.social-links-footer a:hover i.fa-instagram-square {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

/* Hero Slider Zoom Effect */
.carousel-item {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.carousel-item .slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 5s linear; /* Smooth zoom duration */
    transform: scale(1);
}

.carousel-item.active .slide-bg {
    transform: scale(1.15); /* The zoom level */
}

.carousel-caption-overlay {
    z-index: 2; /* Keep text above zooming image */
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-left: 6px solid #951040;
}

/* --- Hero Slider: Fade & Zoom Effect --- */

/* 1. Change slide transition from 'slide' to 'fade' */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

/* 2. The Zoom (Ken Burns) Animation */
.carousel-item {
    height: 500px;
    overflow: hidden; /* Contains the zoom within the frame */
}

.carousel-item .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Scale starts at 1 and goes to 1.1 over the 5-second interval */
    transition: transform 5000ms linear; 
    transform: scale(1);
}

/* When the slide becomes active, trigger the scale up */
.carousel-item.active .slide-bg {
    transform: scale(1.1);
}
/* --- Fix Weekly Programs List Styling --- */

/* Remove extra spacing between lines/paragraphs */
#programsText p {
    margin-bottom: 2px !important;
}

/* Fix Bullet & Number Indentation */
#programsText ul, 
#programsText ol {
    padding-left: 1.2rem !important; /* Moves bullets inside the container */
    margin-bottom: 10px;
    list-style-position: outside;
}

#programsText li {
    margin-bottom: 0px !important; /* Removes gap between list items */
    padding-left: 5px;
}

/* Ensure font size matches the rest of the footer */
#programsText {
    line-height: 1.4;
}