/********** Template CSS **********/
:root {
    --primary: #BF1A1A;
    --secondary: #FF6C0C;
    --light: #FFE08F;
    --dark: #060771;
}

body {
    background: #9c8652;
    background-attachment: scroll;
    /* Changed from fixed for better scroll performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Ensure fixed buttons are not affected by parent containers */
#whatsapp-floating-btn,
.whatsapp-btn {
    position: fixed !important;
    /* Standard fixed positioning without containment */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Prevent carousel from affecting fixed elements */
.container-fluid.p-0,
#heroCarousel,
.carousel,
.carousel-inner,
.carousel-item {
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Glassmorphism Base */
.glass-card,
.service-item,
.testimonial-text {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: auto;
}

/* Glass Card Hover Effects */
.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(191, 26, 26, 0.2);
    border-color: rgba(191, 26, 26, 0.3);
}

.glass-dark {
    background: rgba(6, 7, 113, 0.6) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Glass Morphism Form Styles - Applied to all pages */
.modal-content {
    background: #777171 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(6, 7, 113, 0.2);
}


.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

/* Ensure Modal is Top Priority in Stack */
.modal-backdrop {
    z-index: 10500 !important;
}

.modal {
    z-index: 10550 !important;
}

.form-control,
.form-select {
    background: #f5f5f5 !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(191, 26, 26, 0.2) !important;
    border-radius: 12px;
    color: var(--dark) !important;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff !important;
    border-color: rgba(191, 26, 26, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(191, 26, 26, 0.15);
    outline: none;
    color: var(--dark) !important;
}

.form-control::placeholder {
    color: rgba(6, 7, 113, 0.5) !important;
}

/* Fix for floating labels: Hide placeholder when not focused so it doesn't overlap with the label */
.form-floating>.form-control:not(:focus)::placeholder {
    color: transparent !important;
}

.form-floating>label {
    color: rgba(6, 7, 113, 0.7) !important;
    background: transparent;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    color: var(--primary) !important;
    background: transparent;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Hide back-to-top button on mobile and small screens */
@media (max-width: 768px) {
    .back-to-top {
        display: none !important;
    }
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: auto;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}



/*** Navbar ***/
/* Glass Navbar - Single dedicated class - Using page-header colors */
.glass-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    min-height: 68px !important;
    padding: 0 25px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: auto;
}

/* Glass Panel Structure - Override Bootstrap defaults - Using page-header colors */
.navbar.navbar-light,
.navbar.navbar-expand-lg,
nav.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
    min-height: 68px;
    padding: 0 25px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Shadow on scroll - keep primary gradient */
.navbar.scrolled,
.navbar.navbar-light.scrolled {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2) !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    position: fixed;
}

/* Nav Links - White text like page-header */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 18px;
    font-size: 14px;
    color: #ffffff !important;
    transition: 0.25s ease;
    position: relative;
    white-space: nowrap;
    margin: 0 5px;
}

/* Hover underline animation */
.navbar-nav .nav-link {
    will-change: auto;
}

.navbar-nav .nav-link:hover {
    color: var(--light) !important;
}

.navbar-nav .nav-link::after {
    content: "";
    height: 2px;
    width: 0;
    background: var(--light);
    position: absolute;
    will-change: auto;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* Active link */
.navbar-nav .active {
    color: var(--light) !important;
}

.navbar-nav .active::after {
    width: 60% !important;
}

/* Dropdown icon */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* CTA Button */
.navbar .btn-quote {
    background: var(--light);
    color: var(--primary);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.3s ease;
    border: 1px solid var(--light);
}

.navbar .btn-quote:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 18px;
        backdrop-filter: blur(8px);
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-brand {
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar-toggler {
        order: 2 !important;
        margin-left: auto !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-collapse {
        order: 3 !important;
        width: 100% !important;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        backdrop-filter: none;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 12px 10px;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Link Styling - REMOVED (Using new styles above) */

.navbar-light .navbar-brand {
    height: 70px;
    display: flex;
    align-items: center;
    color: #ffffff !important;
}

.navbar-light .navbar-brand h2,
.navbar-light .navbar-brand p {
    color: #ffffff !important;
}

.navbar-light a.btn {
    height: 70px;
    display: flex;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(191, 26, 26, 0.2);
    transition: all 0.3s ease;
}

.navbar-light a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 26, 26, 0.3);
}



@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Carousel - Bootstrap 5 ***/
#heroCarousel {
    height: 100vh;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(6, 7, 113, 0.55), rgba(191, 26, 26, 0.25));
    padding: 2rem;
}

.hero-slide-content h1 {
    color: #BF1A1A;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slide-content p {
    color: #fff;
    font-size: 1.25rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Carousel controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    opacity: 0.8;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--primary);
    opacity: 1;
}

/* Responsive */
@media (max-width: 991.98px) {

    #heroCarousel,
    .hero-slide {
        height: 100vh;
    }

    .hero-slide-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {

    #heroCarousel,
    .hero-slide {
        height: 100vh;
    }

    .hero-slide-content h1 {
        font-size: 2rem;
    }

    .hero-slide-content p {
        font-size: 1rem;
    }
}

/* Content Carousel - For inner pages like fundays.html */
.content-carousel {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.content-carousel .owl-carousel-item {
    position: relative;
    min-height: auto;
    /* Reset height */
    height: auto;
    /* Adjust to content */
}

.content-carousel .owl-carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    /* Add some styling */
}

.content-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.content-carousel .owl-nav .owl-prev,
.content-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.content-carousel .owl-nav .owl-prev:hover,
.content-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Old Owl Carousel header styles removed - now using Bootstrap 5 carousel */

/* Old Owl Carousel nav styles removed - now using Bootstrap 5 carousel */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

/* Section title with white background */
.section-title.bg-white {
    background-color: #f5f5f5 !important;
    color: #BF1A1A !important;
    padding: 0.25rem 1rem !important;
    border-radius: 4px;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(6, 7, 113, 0.05);
    border-radius: 15px;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: rgba(191, 26, 26, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 48px rgba(191, 26, 26, 0.3);
    transform: scale(1.03);
}

.service-item:hover i {
    transform: scale(1.15) rotate(5deg);
    color: #fff !important;
}

.service-item * {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: auto;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    padding-top: 1rem !important;
    margin-top: 1rem !important;
}

.footer .container {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.footer .row {
    gap: 1rem !important;
}

.footer h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 30px;
    transition: .3s;
    font-size: 0.875rem;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 4px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.75rem;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 12px 0;
    font-size: 16px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    font-size: 16px;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.footer p {
    font-size: 16px;
    margin-bottom: 0.5rem !important;
    line-height: 1.5;
}

/*** Bootstrap Overrides ***/
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-white {
    background-color: #f5f5f5 !important;
}

.bg-light {
    background-color: #f5f5f5 !important;
}

/* Ensure text in light/gray sections is dark and visible */
.bg-light,
.bg-white {
    color: var(--dark) !important;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6,
.bg-light p,
.bg-light span,
.bg-light small,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.bg-white p,
.bg-white span,
.bg-white small {
    color: var(--dark) !important;
}

/* Keep primary color for headings in light sections */
.bg-light .text-primary,
.bg-white .text-primary {
    color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--dark) !important;
    border-color: var(--dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/*** Dynamic Gallery Styles (Masonry) ***/
.masonry-grid {
    column-count: 4;
    column-gap: 24px;
    padding: 1rem 0;
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
        column-gap: 20px;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 18px;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
        column-gap: 16px;
    }
}

.dynamic-gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #FFE08F;
    position: relative;
    border: 1px solid rgba(191, 26, 26, 0.05);
}

.dynamic-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(191, 26, 26, 0.25);
    z-index: 2;
    border-color: rgba(191, 26, 26, 0.2);
}

.dynamic-gallery-img-container {
    position: relative;
    width: 100%;
    /* Height is now auto to respect aspect ratio */
    overflow: hidden;
}

.dynamic-gallery-img {
    width: 100%;
    height: auto;
    /* Maintain original aspect ratio */
    display: block;
    transition: transform 0.5s ease;
}

.dynamic-gallery-item:hover .dynamic-gallery-img {
    transform: scale(1.05);
}

.dynamic-gallery-overlay {
    position: absolute;
    top: 0;
    /* Cover full image */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker full overlay on hover */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dynamic-gallery-item:hover .dynamic-gallery-overlay {
    opacity: 1;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    /* Darker background */
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    /* Ensure image doesn't stretch */
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Gallery Page Wrapper */
.gallery-page-wrapper {
    background: #f5f5f5;
    min-height: 70vh;
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .gallery-page-wrapper {
        padding: 2rem 0;
    }
}

/* Gallery Category Cards Grid */
.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

@media (max-width: 1200px) {
    .gallery-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .gallery-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

.category-card {
    cursor: pointer;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #f5f5f5;
    border: 1px solid rgba(191, 26, 26, 0.1);
    position: relative;
}

.folder-card-clickable {
    cursor: pointer;
}

.folder-card-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 24px;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.folder-card-clickable:hover::before {
    border-color: rgba(191, 26, 26, 0.5);
}

.category-card:hover,
.folder-card-clickable:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(191, 26, 26, 0.3);
    border-color: rgba(191, 26, 26, 0.3);
}

.folder-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(191, 26, 26, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(191, 26, 26, 0.3);
    backdrop-filter: blur(10px);
}

.folder-badge i {
    font-size: 0.9rem;
}

.folder-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: folderPulse 2s ease-in-out infinite;
}

@keyframes folderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.click-hint {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .click-hint {
    opacity: 1;
    transform: translateY(0);
}

.category-preview {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #BF1A1A 0%, #FF6C0C 100%);
}

@media (max-width: 768px) {
    .category-preview {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .category-preview {
        height: 250px;
    }
}

.category-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-preview-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    opacity: 1;
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to bottom, rgba(191, 26, 26, 0.4) 0%, rgba(191, 26, 26, 0.9) 100%);
    padding: 2rem 2.5rem;
}

.category-info {
    color: white;
    width: 100%;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.category-card:hover .category-info {
    transform: translateY(-5px);
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.category-count {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #FFE08F;
    border-radius: 50%;
    opacity: 0.8;
}

.category-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(191, 26, 26, 0.3) 0%, rgba(191, 26, 26, 0.6) 100%);
    transition: all 0.4s ease;
    position: relative;
}

.category-card:hover .category-preview-placeholder {
    background: linear-gradient(135deg, rgba(191, 26, 26, 0.5) 0%, rgba(191, 26, 26, 0.8) 100%);
}

.category-preview-placeholder i {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: folderPulse 2s ease-in-out infinite;
}

.category-preview-placeholder .click-hint {
    margin-top: 1.5rem;
}

.category-preview-placeholder .category-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-preview-placeholder .category-count {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 26, 26, 0.2);
}

.category-back-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(191, 26, 26, 0.3);
}

/* Gallery Category Tabs (for filter view if needed) */
.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    background: rgba(191, 26, 26, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 26, 26, 0.2);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(191, 26, 26, 0.3);
}

.category-btn .badge {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-btn.active .badge {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 576px) {
    .gallery-categories {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.footer-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1 / 1;
    width: 100%;
}

.footer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.footer-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(191, 26, 26, 0.3);
    border-color: rgba(191, 26, 26, 0.4);
}

.footer-gallery-item:hover img {
    transform: scale(1.15) rotate(1deg);
}

.footer-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(191, 26, 26, 0.7) 0%, rgba(255, 108, 12, 0.7) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(100%);
}

.footer-gallery-item:hover .footer-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.footer-gallery-overlay i {
    color: #fff;
    font-size: 1.5rem;
}

/* === Modern Flat Footer (Reference: Chajio Cloud) === */
.site-footer {
    background-color: #001529 !important;
    /* Deep Professional Navy */
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 80px 0 0 0 !important;
    font-family: 'Heebo', sans-serif;
    margin-top: 0 !important;
}

.site-footer .section-title {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

.site-footer .section-title::after {
    display: none;
    /* Remove underlines to match reference */
}

.footer-branding-title {
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 30px;
    max-width: 400px;
}

/* Simple Social Icons (Flat) */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Link Columns */
.site-footer .btn-link {
    display: block;
    margin-bottom: 12px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none !important;
    background: none !important;
}

.site-footer .btn-link::before {
    display: none;
    /* Remove arrow icons to match reference */
}

.site-footer .btn-link:hover {
    color: #ffffff !important;
    padding-left: 0;
    letter-spacing: normal;
    text-decoration: underline;
}

/* Contact Items */
.site-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
}

.site-footer .contact-item i {
    color: var(--primary);
    width: 20px;
}

/* Newsletter in Flat Style */
.footer-newsletter-simple {
    margin-top: 10px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 4px;
    flex-grow: 1;
    font-size: 0.9rem;
}

.newsletter-input-group button {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-input-group button:hover {
    background: #ff6c0c;
}

/* Bottom Bar (Chajio Style) */
.footer-bottom {
    background-color: #ffffff !important;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright-text {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links a {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary) !important;
}

@media (max-width: 768px) {
    .footer-bottom-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}

/* New Pricing Card Styles */
.pricing-card-new {
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card-new.gold {
    border-color: #FFD700;
}

.pricing-card-new.silver {
    border-color: #C0C0C0;
}

.pricing-card-new.bronze {
    border-color: #CD7F32;
}

.pricing-card-new h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card-new .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-card-new .price span {
    font-size: 1.5rem;
    font-weight: 600;
}

.pricing-card-new .per-student {
    font-size: 1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.pricing-card-new ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card-new ul li {
    margin-bottom: 1rem;
}

.pricing-card-new .btn-book {
    background-color: var(--primary);
    color: var(--white-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pricing-card-new .btn-book:hover {
    background-color: #FF6C0C;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligns numbers to the left */
}

.phone-numbers i {
    margin-bottom: 5px;
    /* Add some space below the icon */
}

.phone-numbers span {
    margin-left: 27px;
    /* Indent numbers to align with text */
}

/* === Button 33 === */
.button-33 {
    background-color: #FFE08F;
    border-radius: 100px;
    box-shadow: rgba(191, 26, 26, .2) 0 -25px 18px -14px inset, rgba(191, 26, 26, .15) 0 1px 2px, rgba(191, 26, 26, .15) 0 2px 4px, rgba(191, 26, 26, .15) 0 4px 8px, rgba(191, 26, 26, .15) 0 8px 16px;
    color: #BF1A1A;
    cursor: pointer;
    display: inline-block;
    font-family: CerebriSans-Regular, -apple-system, system-ui, Roboto, sans-serif;
    padding: 7px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    font-size: 16px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-33:hover {
    box-shadow: rgba(191, 26, 26, .35) 0 -25px 18px -14px inset, rgba(191, 26, 26, .25) 0 1px 2px, rgba(191, 26, 26, .25) 0 2px 4px, rgba(191, 26, 26, .25) 0 4px 8px, rgba(191, 26, 26, .25) 0 8px 16px, rgba(191, 26, 26, .25) 0 16px 32px;
    transform: scale(1.05) rotate(-1deg);
}

/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {

    /* --- Typography Adjustments --- */
    h1.display-3 {
        font-size: 2.2rem !important;
        font-weight: 700;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    /* --- Layout & Spacing --- */
    .container-xxl,
    .container-fluid,
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }

    /* --- Navbar --- */
    .navbar-brand img {
        height: 40px !important;
    }

    .navbar-brand h2 {
        font-size: 1.4rem !important;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }

    /* --- Hero Section --- */
    .header-carousel .owl-carousel-item {
        min-height: 70vh !important;
    }

    .glass-dark {
        padding: 1.5rem !important;
        margin: 0 10px;
    }

    .glass-dark h1 {
        font-size: 1.8rem !important;
    }

    /* --- Page Headers --- */
    .page-header {
        height: 300px;
        margin-bottom: 2rem !important;
    }

    .page-header h1 {
        font-size: 2.5rem !important;
    }

    /* --- Service Items --- */
    .service-item {
        margin-bottom: 15px;
    }

    /* --- Footer --- */
    .footer .row>div {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer .d-flex {
        justify-content: center;
    }

    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }

    .footer-menu {
        margin-top: 10px;
    }

    /* --- Pricing Cards --- */
    .pricing-card-new {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pricing-card-new .price {
        font-size: 2.5rem;
    }

    /* --- Phone Numbers --- */
    .phone-numbers {
        align-items: center !important;
    }

    .phone-numbers span {
        margin-left: 0 !important;
    }

    /* --- Fix Horizontal Scroll Issues --- */
    .section-title::before,
    .section-title::after {
        display: none !important;
    }

    body,
    html {
        overflow-x: hidden !important;
    }
}


/* WhatsApp Floating Button - Visible on ALL screen sizes and sticky */
.whatsapp-btn {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 9999 !important;
    background-color: #25D366 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 250ms !important;
    border: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    animation: pulse 2s infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

.whatsapp-btn:hover {
    background-color: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.05);
    color: #ffffff;
}

.whatsapp-btn i {
    font-size: 20px;
    margin-right: 8px;
}

/* Desktop and Tablet - Always visible */
@media (min-width: 769px) {
    .whatsapp-btn {
        bottom: 20px !important;
        left: 20px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whatsapp-btn i {
        font-size: 20px !important;
        margin-right: 8px !important;
        display: inline-block !important;
    }
}

/* Mobile adjustments - Still visible, just repositioned */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 80px !important;
        left: 20px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whatsapp-btn i {
        font-size: 18px !important;
        margin-right: 6px !important;
        display: inline-block !important;
    }
}

/* Mobile Optimization Improvements */
@media (max-width: 768px) {

    /* Navbar Logo and Branding */
    .navbar-brand img.main-logo {
        height: 45px !important;
        margin-right: 8px !important;
    }

    .navbar-brand h2 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }

    .navbar-brand {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Hero Text Sizes */
    .display-3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    /* Section Headings */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Buttons - Ensure minimum touch target size (44x44px) */
    .btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 16px;
    }

    .btn-sm {
        min-height: 36px;
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Form Inputs - Better mobile experience */
    .form-control,
    .form-select {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        min-height: 44px;
        padding: 12px 16px;
    }

    .form-floating>label {
        font-size: 14px;
        padding: 12px 16px;
    }

    /* Dropdown Menus */
    .dropdown-menu {
        max-width: 100%;
        font-size: 16px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .dropdown-item {
        padding: 12px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
        color: var(--dark) !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item.active {
        background-color: rgba(191, 26, 26, 0.1) !important;
        color: var(--primary) !important;
    }

    .dropdown-header {
        font-size: 14px;
        font-weight: 600;
        padding: 8px 20px;
    }

    /* Navbar improvements */
    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-link {
        padding: 12px 16px !important;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .navbar-toggler {
        padding: 8px 12px;
        font-size: 1.25rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(191, 26, 26, 0.25);
    }

    /* Service Cards */
    .service-item {
        margin-bottom: 1.5rem;
    }

    /* Footer */
    .footer h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .footer .btn-link {
        font-size: 16px;
        padding: 4px 0;
    }

    /* Container Padding */
    .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Carousel Text Container */
    .col-sm-10.col-lg-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 2rem !important;
    }

    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 15px;
    }

    /* Tables (if any) */
    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Text Alignment */
    .text-center-mobile {
        text-align: center;
    }

    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .display-3 {
        font-size: 1.5rem !important;
    }

    .navbar-brand h2 {
        font-size: 1rem !important;
    }

    .navbar-brand img.main-logo {
        height: 35px !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn+.btn {
        margin-left: 0;
    }

    /* Stack buttons vertically on very small screens */
    .d-flex.gap-2 {
        flex-direction: column;
    }

    /* Footer adjustments */
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Text Visibility Fixes - Ensure proper contrast */

/* What We Value section - dark text on light background */
.container-xxl.py-5.bg-light h1,
.container-xxl.py-5.bg-light h2,
.container-xxl.py-5.bg-light h3,
.container-xxl.py-5.bg-light h4,
.container-xxl.py-5.bg-light h5,
.container-xxl.py-5.bg-light h6,
.container-xxl.py-5.bg-light p,
.container-xxl.py-5.bg-light span {
    color: var(--dark) !important;
}

.container-xxl.py-5.bg-light .text-primary {
    color: var(--primary) !important;
}

/* Service items on light background */
.bg-light .service-item h5,
.bg-light .service-item p {
    color: var(--dark) !important;
}

/* Keep white text on colored backgrounds */
.bg-primary,
.bg-secondary,
.page-header {
    color: #ffffff !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary p,
.page-header h1,
.page-header h2,
.page-header h3,
.page-header p {
    color: #ffffff !important;
}

/* Specific Text Elements to be White */

/* Corporate Page - Main content section */
.corporate-header~.col-lg-6 h1,
.corporate-header~.col-lg-6 p,
.corporate-header~.col-lg-6 .mb-0 {
    color: #ffffff !important;
}

/* School Events Page - Main content section */
.school-events-header~.col-lg-6 h1,
.school-events-header~.col-lg-6 p,
.school-events-header~.col-lg-6 .mb-0,
.school-trips-section~.col-lg-6 h1,
.school-trips-section~.col-lg-6 p,
.school-trips-section~.col-lg-6 .mb-0,
.fundays-section~.col-lg-6 h1,
.fundays-section~.col-lg-6 p,
.fundays-section~.col-lg-6 .mb-0,
.graduations-section~.col-lg-6 h1,
.graduations-section~.col-lg-6 p,
.graduations-section~.col-lg-6 .mb-0,
.magazines-section~.col-lg-6 h1,
.magazines-section~.col-lg-6 p,
.magazines-section~.col-lg-6 .mb-0 {
    color: #ffffff !important;
}

/* Church Events Page - Main content section */
.church-events-header~.col-lg-6 h1,
.church-events-header~.col-lg-6 p,
.church-events-header~.col-lg-6 .mb-0 {
    color: #ffffff !important;
}

/* General Events Page - Main content section */
.general-events-header~.col-lg-6 h1,
.general-events-header~.col-lg-6 p,
.general-events-header~.col-lg-6 .mb-0 {
    color: #ffffff !important;
}

/* About Page - Who We Are section paragraphs */
.container-xxl.py-5 .col-lg-6.wow.fadeInUp p.mb-4 {
    color: #ffffff !important;
}

/* Contact Page - Get In Touch section */
.col-lg-4.col-md-6.wow.fadeInUp:first-of-type h5,
.col-lg-4.col-md-6.wow.fadeInUp:first-of-type p.mb-4,
.col-lg-4.col-md-6.wow.fadeInUp .ms-3 h5.text-primary,
.col-lg-4.col-md-6.wow.fadeInUp .ms-3 p {
    color: #ffffff !important;
}

/* Testimonials - Names and text */
.testimonial-item h5,
.testimonial-item .text-muted,
.testimonial-text p {
    color: #ffffff !important;
}

/* Service list items with arrows in main content sections */
.col-lg-6 .row.gy-2 .col-sm-6 p.mb-0 {
    color: #ffffff !important;
}

/* Enquire Button - Sticky across all pages */
.enquire-btn {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5000 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(191, 26, 26, 0.4) !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.enquire-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
    box-shadow: 0 6px 20px rgba(191, 26, 26, 0.5) !important;
    transform: translateY(-2px) !important;
}

.enquire-btn i {
    font-size: 18px !important;
    margin-right: 8px !important;
}

@media (max-width: 768px) {
    .enquire-btn {
        top: 80px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    .enquire-btn i {
        font-size: 16px !important;
        margin-right: 6px !important;
    }
}

@media (min-width: 769px) {
    .enquire-btn {
        top: 100px !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }

    .enquire-btn i {
        font-size: 18px !important;
        margin-right: 8px !important;
    }
}

/* Gallery Cards Grid - Modern Card Layout */
.gallery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 1200px) {
    .gallery-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 576px) {
    .gallery-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.gallery-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(191, 26, 26, 0.2);
}

.gallery-card-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-view-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.gallery-card-view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(191, 26, 26, 0.4);
}

.gallery-card-user-avatar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-card-content {
    padding: 1.25rem;
    background: #ffffff;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.gallery-card-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-card-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.gallery-card-stat i {
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gallery-card-stat span {
    font-weight: 500;
}

.gallery-like-btn {
    transition: all 0.3s ease;
}

.gallery-like-btn:hover {
    transform: scale(1.1);
}

.gallery-like-btn.liked i {
    color: #e74c3c;
    animation: heartBeat 0.5s ease;
}

.gallery-like-btn.liked span {
    color: #e74c3c;
    font-weight: 600;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

/* Hide gallery card title */
.gallery-card-title {
    display: none;
}

/* Hide user avatar */
.gallery-card-user-avatar {
    display: none;
}

/* Video Masonry Grid - Space Efficient Layout */
.video-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .video-masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .video-masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

.video-masonry-item {
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(191, 26, 26, 0.3);
}

.video-responsive {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

/* Detect and optimize for portrait videos */
.video-wrapper video[data-orientation="portrait"] {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* For landscape videos, use full width */
.video-wrapper video[data-orientation="landscape"] {
    width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .video-masonry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .video-wrapper video[data-orientation="portrait"] {
        max-height: 400px;
    }
}


/* Why Organizations Choose Us section - Heading and text color override */
.container-xxl.py-5.bg-light .col-lg-4.col-md-6.wow.fadeInUp .ms-3 h5.text-primary,
.container-xxl.py-5.bg-light .col-lg-4.col-md-6.wow.fadeInUp .ms-3 span {
    color: black !important;
}