/********** Template CSS **********/

:root {
    --primary: #86B817;
    --secondary: #FE8800;
    --light: #F5F5F5;
    --dark: #14141F;
}

.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;
}


/*** 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: .5s;
}

.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 ***/

.navbar-light .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-right: 18px;
    padding: 40px 0px 10px 0px;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 90px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 90px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }
    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }
    .navbar-light .navbar-brand img {
        max-height: 90px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }
    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }
    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}


/*** Hero Header ***/

.hero-header {
    background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .7)), url(../pictures/cover\ photo.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** 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: black;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: black;
    /* Changed from var(--primary) */
    z-index: -1;
}

.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 {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Destination ***/

.destination img {
    transition: .5s;
}

.destination a:hover img {
    transform: scale(1.1);
}


/*** Package ***/

.package-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.package-item img {
    transition: .5s;
}

.package-item:hover img {
    transform: scale(1.1);
}


/*** Booking ***/

.booking {
    background: linear-gradient(rgba(15, 23, 43, .7), rgba(15, 23, 43, .7)), ;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/*** Team ***/

.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 20px;
    border-bottom: 1px solid var(--primary);
}

.team-item .btn:hover {
    background: var(--primary);
    color: #FFFFFF;
}


/*** 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-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    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;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: #000000;
    border-color: #FFFFFF;
}


/*** Footer ***/

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/* Add hover effect to the cards */

.card:hover {
    transform: scale(1.05);
    /* Slightly scale up the card */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Add a stronger shadow */
}


/* Hover Effect for Circular Image */

.circular-image-hover {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circular-image-hover img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circular-image-hover:hover img {
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.7);
    /* Glow effect */
    transform: scale(1.05);
    /* Slight zoom effect */
}

.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rounded-circle {
    border: 5px solid #ffffff;
    /* Optional: White border for contrast */
    transition: transform 0.3s ease;
}

.rounded-circle:hover {
    transform: scale(1.05);
    /* Optional: Slight zoom on hover */
}

.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

:root {
    --primary: #86B817;
    --secondary: #FE8800;
    --light: #F5F5F5;
    --dark: #14141F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

#teachings-container {
    max-width: 1200px;
    margin: 0px auto;
    display: flex;
    gap: 40px;
    padding: 0px;
}

#teachings-sidebar {
    width: 300px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    padding: 20px;
    overflow-y: auto;
    max-height: 120vh;
    transition: .5s;
}

#sidebar-title {
    font-size: 1.5em;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

#sidebar-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 40px);
    height: 2px;
    top: 4px;
    left: 0;
    background: var(--primary);
    z-index: -1;
}

.teachings-list {
    list-style: none;
}

.teaching-item {
    padding: 12px 15px;
    margin-bottom: 15px;
    background: var(--light);
    border-radius: 10px;
    cursor: pointer;
    transition: .5s;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.teaching-item:hover,
.teaching-item.selected {
    background: var(--primary);
    color: var(--light);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.teaching-item * {
    transition: .5s;
}

.teaching-item:hover *,
.teaching-item.selected * {
    color: var(--light) !important;
}

#teachings-content {
    flex: 1;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: .5s;
}

#video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 0px;
    overflow: hidden;
    border-radius: 5px;
}

#playlist-url {
    margin-bottom: 10px;
    margin-left: 10px;
}

#video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: .5s;
}

#video-player:hover iframe {
    transform: scale(1.03);
}

#video-details h3 {
    font-size: 1.8em;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
    padding: 10px;
}

.playlist-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: .5s;
    border: none;
}

.playlist-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    #teachings-container {
        flex-direction: column;
        padding: 10px;
    }
    #teachings-sidebar {
        width: 100%;
        max-height: 300px;
    }
    #teachings-content {
        width: 100%;
    }
    #video-details h3 {
        font-size: 1.5em;
    }
}


/* Welcome Section */

.section-title:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.display-4:hover {
    color: #0056b3;
    /* Darker shade of primary */
}


/* Vision, Mission, Values Cards */

.bg-light:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bg-light:hover h3 {
    color: #003d80;
    /* Darker primary on hover */
}

.bg-light:hover p,
.bg-light:hover ul {
    opacity: 0.9;
}


/* Values List Items */

ul li:hover {
    transform: translateX(5px);
}


/* Images Section */

.d-inline-block:hover {
    transform: scale(1.05);
}

.d-inline-block:hover+h4 {
    color: #0056b3;
    /* Darker shade on hover */
}

.d-inline-block:hover+h4+p {
    opacity: 0.8;
}


/* Video Showcase */

#video-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 85%;
    max-width: 1000px;
    margin: 40px auto;
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #FE8800;
}

.video-wrapper {
    flex: 1;
    min-width: 645px;
    padding: 15px;
    background: #fff;
}

#video-embed {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: 2px solid #FE8800;
    transition: transform 0.3s ease;
}

#video-embed:hover {
    transform: scale(1.02);
}

.content-card {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-title {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    border-bottom: 2px solid #FE8800;
    padding-bottom: 10px;
}

.highlight {
    font-size: 18px;
    color: #FE8800;
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
}

.separator {
    text-align: center;
    color: #7f8c8d;
    margin: 10px 0;
}

.note {
    font-size: 16px;
    color: #34495e;
    margin: 8px 0;
    line-height: 1.5;
    text-align: justify;
}


/* Responsive Design */


/* Tablets and Small Laptops (max-width: 1024px) */

@media (max-width: 1024px) {
    #video-showcase {
        width: 90%;
        flex-direction: row;
        /* Still side-by-side if space allows */
        gap: 10px;
    }
    .video-wrapper {
        min-width: 50%;
        /* Adjust to fit two columns if possible */
        padding: 10px;
    }
    .content-card {
        min-width: 45%;
        padding: 15px;
    }
    #video-embed {
        height: 300px;
    }
    .video-title {
        font-size: 24px;
    }
    .highlight {
        font-size: 17px;
    }
    .note {
        font-size: 15px;
    }
    /* Adjust hover effects for touch devices */
    .section-title:hover,
    .bg-light:hover,
    .d-inline-block:hover,
    #video-embed:hover {
        transform: none;
        /* Disable hover transforms on touch devices */
        box-shadow: initial;
        /* Reset shadow */
    }
}


/* Tablets and Large Phones (max-width: 768px) */

@media (max-width: 768px) {
    #video-showcase {
        width: 95%;
        flex-direction: column;
        /* Stack vertically */
        margin: 15px auto;
    }
    .video-wrapper,
    .content-card {
        width: 100%;
        min-width: unset;
        /* Remove min-width constraints */
        padding: 10px;
    }
    #video-embed {
        height: 250px;
    }
    .video-title {
        font-size: 22px;
    }
    .highlight {
        font-size: 16px;
    }
    .note {
        font-size: 14px;
        text-align: left;
        /* Improve readability on smaller screens */
    }
    /* Welcome Section */
    .display-4 {
        font-size: 2rem;
        /* Adjust heading size */
    }
    /* Cards and Images */
    .bg-light,
    .d-inline-block {
        margin-bottom: 15px;
    }
}


/* Small Phones (max-width: 480px) */

@media (max-width: 480px) {
    #video-showcase {
        width: 98%;
        padding: 10px;
        border-radius: 15px;
    }
    .video-wrapper {
        padding: 5px;
    }
    #video-embed {
        height: 200px;
        border-width: 3px;
        /* Slightly thinner border */
    }
    .content-card {
        padding: 12px;
    }
    .video-title {
        font-size: 20px;
        padding-bottom: 8px;
    }
    .highlight {
        font-size: 14px;
        margin: 8px 0;
    }
    .separator {
        font-size: 12px;
    }
    .note {
        font-size: 13px;
        line-height: 1.4;
    }
    /* Welcome Section */
    .display-4 {
        font-size: 1.75rem;
    }
    /* Cards and Images */
    .bg-light h3 {
        font-size: 1.25rem;
    }
    .bg-light p,
    .bg-light ul {
        font-size: 0.9rem;
    }
    ul li {
        padding: 5px 0;
    }
}


/* Extra Small Devices (max-width: 360px) */

@media (max-width: 360px) {
    #video-showcase {
        width: 100%;
        margin: 10px 0;
    }
    #video-embed {
        height: 180px;
    }
    .video-title {
        font-size: 18px;
    }
    .highlight {
        font-size: 13px;
    }
    .note {
        font-size: 12px;
    }
    .content-card {
        padding: 10px;
    }
    /* Welcome Section */
    .display-4 {
        font-size: 1.5rem;
    }
    /* Cards and Images */
    .bg-light h3 {
        font-size: 1.1rem;
    }
    .bg-light p,
    .bg-light ul {
        font-size: 0.85rem;
    }
}

.tab-content {
    padding: 16px;
}

@font-face {
    font-family: 'IconFont';
    src: url('path-to-your-font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.icon-font {
    font-family: 'IconFont', sans-serif;
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Ensure each service container is a flex container for reordering */

.service-container .row {
    display: flex;
    flex-wrap: wrap;
}


/* On smaller screens, reorder image to come before text */

@media (max-width: 991.98px) {
    .service-container .service-image {
        order: -1;
        /* Image comes first */
        margin-bottom: 1.5rem;
        /* Space between image and text */
    }
    .service-container .service-text {
        order: 0;
        /* Text comes after image */
    }
}

@media (max-width: 991.98px) {
    .zestquester,
    .fluffelgrid,
    .snugglepod,
    .whimsyvibe,
    .quirkypixel {
        padding: 5px !important;
        /* 5px padding for all divs */
        margin: 0 auto !important;
        /* Center containers with auto margins */
        display: flex;
        /* Use flexbox for centering */
        flex-direction: column;
        /* Stack children vertically */
        align-items: center;
        /* Center children horizontally */
        justify-content: center;
        /* Center children vertically */
    }
    .whimsyvibe {
        gap: 0 !important;
        /* Remove gutter spacing */
    }
    .moonglow,
    .staralign {
        text-align: center !important;
        /* Center text */
    }
    .moonglow p,
    .moonglow h1,
    .moonglow h2,
    .moonglow h3,
    .moonglow h4,
    .moonglow h5,
    .moonglow h6,
    .moonglow span,
    .staralign p,
    .staralign h1,
    .staralign h2,
    .staralign h3,
    .staralign h4,
    .staralign h5,
    .staralign h6,
    .staralign span {
        margin: 2px 0 !important;
        /* Reduced text spacing */
        padding: 0 !important;
        /* No padding for text elements */
        line-height: 1.2 !important;
        /* Tight line height */
        text-align: center !important;
        /* Ensure text is centered */
    }
    .fluffelgrid {
        background-position: center center !important;
        /* Center background image */
        background-repeat: no-repeat !important;
        background-size: cover !important;
    }
}


/* Default styles for larger screens */

.navbar-brand .logo-container {
    display: flex;
    align-items: center;
    gap: 0px;
    background-color: #86B817;
    padding: 8px;
    border-radius: 50px;
}

.navbar-brand .logo-container img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.navbar-brand .logo-container p {
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
}


/* Styles for tablet and phone (max-width: 991px) */

@media (max-width: 991px) {
    .navbar-brand .logo-container {
        padding: 6px;
    }
    .navbar-brand .logo-container img {
        height: 40px;
        width: 40px;
    }
    .navbar-brand .logo-container p {
        font-size: 10px;
        padding: 4px 8px;
    }
}


/* Default styles for nav tabs */

.nav-tabs.custom-nav .nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 5px;
    background-color: #86B817;
    color: #fff;
    border: none;
    font-size: 14px;
    transition: background-color 0.3s;
    width: fit-content;
    /* Makes width adjust to text */
    white-space: nowrap;
    /* Prevents wrapping */
    text-align: center;
}

.nav-tabs.custom-nav .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.nav-tabs.custom-nav .nav-link:hover {
    background-color: #85cded;
}

.nav-tabs.custom-nav {
    border-bottom: none;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}


/* Vertical arrangement for mobile (max-width: 991px) */

@media (max-width: 991px) {
    .nav-tabs.custom-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-tabs.custom-nav .nav-item {
        margin-bottom: 10px;
        width: auto;
        /* prevent full width */
    }
    .nav-tabs.custom-nav .nav-link {
        width: fit-content;
        /* maintain fit-content in mobile too */
        margin: 0 auto;
        /* center the button */
    }
}


/* Default styles for nav tabs */

.nav-tabs.custom-nav-mission {
    border-bottom: none;
    justify-content: center;
    margin-bottom: 1.5rem;
}


/* Vertical arrangement for mobile (max-width: 991px) */

@media (max-width: 991px) {
    .nav-tabs.custom-nav-mission {
        flex-direction: column;
        align-items: center;
    }
    .nav-tabs.custom-nav-mission .nav-item {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    .nav-tabs.custom-nav-mission .nav-link {
        width: 100%;
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .nav-tabs.justify-content-center {
        flex-direction: column !important;
        align-items: center;
    }
    .nav-tabs .nav-item {
        margin-bottom: 10px;
        width: auto;
    }
    .nav-tabs .nav-link {
        width: auto;
        display: inline-block;
        text-align: center;
        white-space: nowrap;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

.gallery-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
}

.collection {
    margin-bottom: 40px;
}

.collection-header {
    text-align: center;
    margin-bottom: 20px;
}

.collection-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.collection-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


/* Double the height of the first image */

.gallery-item.first-item img {
    height: 400px;
}


/* Container for paired images */

.image-pair {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.image-pair .gallery-item {
    flex: 1;
}


/* Full-screen modal styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}


/* Responsive Design */

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .gallery-item img {
        height: 180px;
    }
    .gallery-item.first-item img {
        height: 360px;
    }
    h1 {
        font-size: 2rem;
    }
    .collection-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-item img {
        height: 150px;
    }
    .gallery-item.first-item img {
        height: 300px;
    }
    .image-pair {
        display: contents;
        /* Makes image-pair children direct children of the grid */
    }
    h1 {
        font-size: 1.8rem;
    }
    .collection-header h2 {
        font-size: 1.5rem;
    }
    .collection-header p {
        font-size: 1rem;
    }
    .close {
        font-size: 30px;
        right: 20px;
    }
}

.service-item1 {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item1:hover {
    background: #27b8fcff;
    /* Set background to the desired blue */
}

.service-item1 * {
    transition: .5s;
}

.service-item1:hover * {
    color: #ffffff !important;
    /* Set text/icon colors to white */
}

.service-item2 {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item2:hover {
    background: #f4ac00;
    /* Background changes to blue on hover */
}

.service-item2 * {
    transition: .5s;
}

.service-item2:hover * {
    color: #ffffff !important;
    /* Text and icons turn white on hover */
}

.festival-section {
    margin-bottom: 80px;
    padding: 60px 0;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.festival-title h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    background-color: #ffffff;
    padding: 4px 12px;
    color: #007BFF;
    border-radius: 6px;
}

.festival-title h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 40px;
}

.festival-img-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    background-color: #ffffff;
}

.festival-img-wrapper:hover {
    transform: scale(1.03) rotate(0.5deg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.festival-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.conf-section {
    margin-bottom: 60px;
}

.conf-title-box h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    background-color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
}

.conf-title-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
}

.conf-img-frame {
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.conf-img-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.conf-img-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .conf-img-frame img {
        min-height: 180px !important;
    }
    .conf-section .row>div {
        padding: 0 !important;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .conf-img-frame img {
        min-height: 200px !important;
    }
}

.conf-img-frame {
    display: block;
    width: 100%;
}

.conf-img-frame img {
    border-radius: 5px;
}

.btn-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    transition: .5s;
    border: none;
}

.btn-custom {
    background-color: #27b8fcff;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-custom:hover {
    background-color: #1fa5e6;
    color: white;
}

.equal-tab-btn {
    width: 100%;
    min-width: 220px;
    max-width: 250px;
    margin: 5px;
    white-space: normal;
    text-align: center;
}

.custom-nav {
    flex-wrap: wrap;
    gap: 10px;
}

.tabs-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.tab-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

h1 {
    margin-bottom: 1rem;
}

.service-item4 {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item4:hover {
    background: #7D8D86;
    /* Background changes to blue on hover */
}

.service-item6 * {
    transition: .5s;
}

.service-item4:hover * {
    color: #ffffff !important;
    /* Text and icons turn white on hover */
}

.service-item6 {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item6:hover {
    background: #2a7393;
    /* Background changes to blue on hover */
}

.service-item6 * {
    transition: .5s;
}

.service-item6:hover * {
    color: #ffffff !important;
    /* Text and icons turn white on hover */
}


/*kings*/

.section-titlekings {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titlekings::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #7a7a7a;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titlekings::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #7a7a7a;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titlekings.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titlekings.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*priests*/

.section-titleP {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titleP::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #d69a0dff;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleP::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #d69a0dff;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleP.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titleP.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*PCM*/

.section-titlePCM {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titlePCM::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #7a7a7a;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titlePCM::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #7a7a7a;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titlePCM.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titlePCM.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*Mission*/

.section-titleMI {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titleMI::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #643c2c;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleMI::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #643c2c;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleMI.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titleMI.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*VOZ*/

.section-titleVOZ {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titleVOZ::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #f4e183;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleVOZ::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #f4e183;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleVOZ.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titleVOZ.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*Redemption*/

.section-titleR {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titleR::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #8ecef8ff;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleR::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #8ecef8ff;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleR.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titleR.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*KPM*/

.section-titleKPM {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titleKPM::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #7D8D86;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleKPM::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #7D8D86;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleKPM.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titleKPM.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*KWM*/

.section-titleKWM {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-titleKWM::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: #fe9400;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleKWM::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: #fe9400;
    /* Changed from var(--primary) */
    z-index: -1;
}

.section-titleKWM.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-titleKWM.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Testimonial priests***/

.testimonial-carouselP::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-carouselP::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-carouselP::before,
    .testimonial-carouselP::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carouselP::before,
    .testimonial-carouselP::after {
        width: 300px;
    }
}

.testimonial-carouselP .owl-item .testimonial-item,
.testimonial-carouselP .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carouselP .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carouselP .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carouselP .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carouselP .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carouselP .owl-dot.active {
    background: #FFFFFF;
    border-color: #FFFFFF;
}


/*** Testimonial KINGS***/

.testimonial-carouselK::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-carouselK::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-carouselK::before,
    .testimonial-carouselK::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carouselK::before,
    .testimonial-carouselK::after {
        width: 300px;
    }
}

.testimonial-carouselK .owl-item .testimonial-item,
.testimonial-carouselK .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carouselK .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carouselK .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carouselK .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carouselK .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carouselK .owl-dot.active {
    background: #27b8fcff;
    border-color: #27b8fcff;
}


/* Modal background */

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1050;
    /* On top */
    padding-top: 60px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}


/* Modal image */

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 15px #000;
}


/* Close button */

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.close:hover {
    color: #bbb;
}