/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Page Background */
:root {
    --bg-page-sky: #bdccd7;
}

/* General Styles */
html, body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    color: #444;
    background-color: #bdccd7 !important;
}

/* Page Section Background Override */
.bg-light,
.page-bg-sky {
    background-color: #bdccd7 !important;
}

a {
    text-decoration: none;
}

.tracking-wide {
    letter-spacing: 1px;
}

.z-index-2 {
    z-index: 2;
}

/* Top Bar */
.top-bar {
    background-color: #2b2b2b; /* Dark grey */
    font-size: 0.85rem;
}

.top-bar .text-info {
    color: #4db8ff !important;
}

.contact-item {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-icons .btn-facebook {
    background-color: #3b5998;
    color: white;
    border: none;
}

.social-icons .btn-youtube {
    background-color: #cd201f;
    color: white;
    border: none;
}

.social-icons .btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.social-icons .btn:hover {
    opacity: 0.8;
    color: white;
}

.donate-btn {
    background-color: #b50909;
    border-color: #b50909;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.donate-btn:hover {
    background-color: #8c0505;
    border-color: #8c0505;
}

@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.8rem;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    .top-bar .contact-item {
        letter-spacing: 0.2px;
        line-height: 1.4;
    }
    .top-bar .donate-btn {
        font-size: 0.78rem;
        padding: 5px 14px !important;
    }
    .top-bar .social-icons .btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Navbar */
.bg-cream {
    background-color: #ffffff !important; /* Clean matching white navbar */
}

/* Logo Styling */
.logo-wrapper {
    color: #0b3b88;
    line-height: 1;
}

.logo-icon {
    font-size: 2.2rem;
    color: #0b3b88;
    margin-bottom: -5px;
}

.logo-sm-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0b3b88;
}

.navbar-nav .nav-item {
    margin: 0 4px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 16px !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0b3b88 !important;
    background-color: rgba(11, 59, 136, 0.05);
}

.navbar-nav .nav-link.active {
    background-color: #1a4999; /* Deep blue from reference */
    color: #ffffff !important;
}

/* Hero Section Carousel */
.hero-section-carousel {
    height: calc(100vh - 60vh); /* Adjust based on header height */
    min-height: 400px;
    position: relative;
    background-color: #222;
}

@media (max-width: 768px) {
    .hero-section-carousel {
        height: 60vw;
        min-height: 250px;
    }
    .hero-slider-item {
        background-size: cover !important;
        background-position: center !important;
    }
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Continuous Hero Slider (Marquee) */
.hero-slider-container {
    width: 100vw;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0; left: 0; z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.hero-slider-track {
    display: flex;
    height: 100%;
    width: max-content;
    -webkit-animation: heroSliderMarquee 30s linear infinite;
    animation: heroSliderMarquee 30s linear infinite;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}
.hero-slider-track:hover {
    animation-play-state: paused;
}
.hero-slider-item {
    width: 100vw;
    height: 100%; /* Changed from 100vh to fit container */
    min-height: 100%;
    flex-shrink: 0;
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}
@media (min-width: 768px) {
    .hero-slider-item {
        width: 50vw;
    }
}
@media (min-width: 992px) {
    .hero-slider-item {
        width: 33.33333vw;
    }
}
@-webkit-keyframes heroSliderMarquee {
    0% { -webkit-transform: translateX(0) translateZ(0); }
    100% { -webkit-transform: translateX(-50%) translateZ(0); }
}
@keyframes heroSliderMarquee {
    0% { transform: translateX(0) translateZ(0); }
    100% { transform: translateX(-50%) translateZ(0); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%); /* Gradient overlay */
    z-index: 1;
}

.hero-section-carousel h1 {
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-section-carousel p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Primary Color overrides */
.text-primary {
    color: #1a4999 !important;
}

.bg-primary {
    background-color: #1a4999 !important;
}

.btn-primary {
    background-color: #1a4999;
    border-color: #1a4999;
}

.btn-primary:hover {
    background-color: #123675;
    border-color: #123675;
}

.bg-light-primary {
    background-color: rgba(26, 73, 153, 0.1);
}

/* Highlight Cards */
.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent !important;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
    border-top: 4px solid #1a4999 !important;
}

.highlight-card.bg-primary {
    border-top: 4px solid #fff !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Section */
.bg-dark-blue {
    background-color: #0b162c;
}

.about-img-box {
    overflow: hidden;
}

.about-img-box img {
    transition: transform 0.5s ease;
}

.about-img-box:hover img {
    transform: scale(1.05);
}

.border-light {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Unique About Section Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-bounce {
    animation: float 4s ease-in-out infinite;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.icon-box-sm {
    transition: all 0.3s ease;
}

.icon-box-sm:hover {
    background-color: #1a4999 !important;
    color: white !important;
}

/* Unique Focus Cards */
.bg-teal {
    background-color: #20b28e !important;
}

.text-teal {
    color: #20b28e !important;
}

.btn-teal {
    background-color: #20b28e;
    border-color: #20b28e;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background-color: #168b6e;
    border-color: #168b6e;
    color: white;
}

.focus-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
}

.focus-card:hover {
    border-bottom: 4px solid #20b28e;
}

.icon-circle {
    transition: all 0.4s ease;
}

.focus-card:hover .icon-circle {
    transform: scale(1.15) rotate(10deg);
    background-color: #0b162c !important; /* Changes to dark blue on hover */
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .navbar-collapse {
        background-color: #fffcdf; /* Match nav bg */
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        z-index: 1000;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-link.active {
        display: inline-block;
        border-radius: 4px;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}

/* Custom Nav Pills for Activities Section */
.custom-pills .nav-link {
    color: #495057;
    background: #0c2340;
    color: #eaf2fb;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.custom-pills .nav-link:hover {
    background: #f8f9fa;
    color: #20b28e;
    border-color: #20b28e;
}
.custom-pills .nav-link.active {
    background-color: #20b28e;
    color: white;
    border-color: #20b28e;
    box-shadow: 0 4px 10px rgba(32, 178, 142, 0.3);
}
.min-h-200 { 
    min-height: 200px; 
}

/* Infinite Auto-Slider for Gallery */
.gallery-marquee-container {
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gallery-marquee-track {
    width: max-content;
    animation: marquee 20s linear infinite;
}

.gallery-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-240px * 5)); }
}

/* Multi-column list for long texts */
.multi-column-list {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 768px) {
    .multi-column-list {
        column-count: 2;
        column-gap: 2rem;
    }
}
@media (min-width: 992px) {
    .multi-column-list {
        column-count: 3;
        column-gap: 3rem;
    }
}
.multi-column-list li {
    break-inside: avoid-column;
    page-break-inside: avoid;
    margin-bottom: 0.75rem;
}

/* Custom Vertical Pills */
.custom-v-pills .nav-link {
    background: #0c2340;
    color: #eaf2fb;
    /* color: #495057; */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.custom-v-pills .nav-link:hover {
    background: #f8fafc;
    color: #20b28e;
    transform: translateX(5px);
}
.custom-v-pills .nav-link.active {
    background: #20b28e;
    color: #fff;
    border-color: #20b28e;
    box-shadow: 0 4px 15px rgba(32, 178, 142, 0.3);
}

/* Footer Hover Utilities */
.hover-text-teal:hover {
    color: #20b28e !important;
}
.hover-text-white:hover {
    color: #ffffff !important;
}
.hover-text-dark:hover {
    color: #212529 !important;
}


/* =====================================================================
   Deep & Attractive Theme Background for Cards, Divs & Panels (#0c2340 Deep Navy)
   ===================================================================== */
:root {
    --bg-card-matching: #0c2340;
    --bg-light-pink: var(--bg-card-matching);
}

.bg-light-pink,
.card.bg-light-pink,
.card-body.bg-light-pink,
div.bg-light-pink,
span.bg-light-pink {
    background-color: #0c2340 !important;
}

.bg-light-pink-subtle {
    background-color: #071728 !important;
}

.bg-light-pink-hover:hover,
.bg-light-pink:hover {
    background-color: #0c2340 !important;
}


/* Deep card typography and accents */
.bg-light-pink h1, .bg-light-pink h2, .bg-light-pink h3,
.bg-light-pink h4, .bg-light-pink h5, .bg-light-pink h6,
.bg-light-pink .card-title,
.bg-light-pink .text-dark,
.bg-light-pink strong {
    color: #ffffff !important;
}

.bg-light-pink p,
.bg-light-pink .card-text,
.bg-light-pink .text-muted,
.bg-light-pink li span {
    color: #c8ddf0 !important;
}

.bg-light-pink hr,
.bg-light-pink .border-light,
.bg-light-pink .border-bottom {
    border-color: rgba(255, 255, 255, 0.12) !important;
}


/* =====================================================================
   Back to Top Floating Button with Scroll Progress Indicator
   ===================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #0c2340;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.25s ease, 
                box-shadow 0.25s ease;
    outline: none;
    padding: 0;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background-color: #20b28e;
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(32, 178, 142, 0.45);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

.back-to-top:focus-visible {
    outline: 2px solid #20b28e;
    outline-offset: 3px;
}

.back-to-top i {
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

.back-to-top .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
    border-radius: 50%;
}

.back-to-top .progress-ring-track {
    transition: stroke 0.25s ease;
}

.back-to-top .progress-ring-circle {
    transition: stroke-dashoffset 0.1s linear, stroke 0.25s ease;
}

.back-to-top:hover .progress-ring-track {
    stroke: rgba(255, 255, 255, 0.3);
}

.back-to-top:hover .progress-ring-circle {
    stroke: #ffffff;
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .back-to-top i {
        font-size: 0.95rem;
    }
}
