/********** Template CSS **********/

/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.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;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/hero-bg.png) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.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;
}


/* ========================================
   CELEBRATION IMAGE + TEXT MARQUEE
======================================== */

.celebration-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #17152f;
    border-radius: 12px;
}

/* Moving track */
.celebration-marquee-track {
    display: flex;
    width: max-content;
    animation: celebration-scroll 35s linear infinite;
    will-change: transform;
}

/* Each group contains one complete set */
.celebration-marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
}

/* Individual image and text item */
.celebration-marquee-item {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

/* Thumbnail */
.celebration-marquee-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
}

/* Continuous right-to-left animation */
@keyframes celebration-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause when the visitor hovers */
.celebration-marquee:hover .celebration-marquee-track {
    animation-play-state: paused;
}

/* Mobile responsive styles */
@media (max-width: 576px) {
    .celebration-marquee-item {
        gap: 10px;
        padding: 10px 14px;
        font-size: 15px;
    }

    .celebration-marquee-item img {
        width: 75px;
        height: 55px;
    }

    .celebration-marquee-group {
        gap: 14px;
        padding-right: 14px;
    }

    .celebration-marquee-track {
        animation-duration: 28s;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .celebration-marquee-track {
        animation: none;
    }

    .celebration-marquee {
        overflow-x: auto;
    }
}


/* ===== Activities Gallery ===== */

.lab-activities {
    background: #f7f8fc;
}

.activity-panel {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8eaf1;
    border-radius: 16px;
    box-shadow: 0 5px 24px rgba(20, 29, 65, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.activity-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 29, 65, 0.10);
}

.activity-content {
    padding: 24px 24px 12px;
}

.activity-content h4,
.activity-heading h4 {
    color: #211d70;
    font-weight: 700;
    margin-bottom: 8px;
}

.activity-content p,
.activity-heading p {
    color: #687080;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 14px;
}

.activity-tag {
    display: inline-block;
    padding: 5px 11px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: #fff0dc;
    color: #a85e0a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.activity-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 24px 24px 10px;
}

.activity-icon {
    font-size: 30px;
}

.activity-heading h4 {
    margin-bottom: 4px;
}

.activity-heading p {
    margin-bottom: 0;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 24px;
    border-top: 1px solid #edf0f5;
    font-size: 13px;
}

.activity-meta strong {
    color: #29265e;
}

.activity-meta span {
    color: #747b89;
}

.activity-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 24px 24px;
}

.activity-photos img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 9px;
}

.activity-cover {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 12px 24px 28px;
}

.achievement-grid figure,
.activity-photos figure,
.dinner-gallery figure {
    min-width: 0;
    margin: 0;
}

.achievement-grid img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 10px;
}

.activity-panel figcaption {
    padding-top: 10px;
    color: #34334d;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.dinner-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 24px 28px;
}

.dinner-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Category filters */

.activity-filters .activity-filter {
    padding: 10px 18px;
    border: 1px solid #dedfec;
    border-radius: 25px;
    background: #ffffff;
    color: #211d70;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
}

.activity-filters .activity-filter:hover,
.activity-filters .activity-filter.active {
    background: #211d70;
    border-color: #211d70;
    color: #ffffff;
}

/* Filter visibility */

.activity-card.is-hidden {
    display: none !important;
}

/* Responsive layout */

@media (max-width: 767px) {
    .achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 12px 16px 20px;
    }

    .achievement-grid img {
        height: 150px;
    }

    .activity-photos {
        padding: 12px 16px 20px;
        gap: 8px;
    }

    .activity-photos img {
        height: 105px;
    }

    .activity-content {
        padding: 20px 16px 10px;
    }

    .activity-heading {
        padding: 20px 16px 10px;
    }

    .activity-meta {
        padding: 12px 16px;
    }

    .activity-cover {
        height: 220px;
    }

    .dinner-gallery {
        gap: 12px;
        padding: 10px 16px 20px;
    }

    .dinner-gallery img {
        height: 150px;
    }
}

@media (max-width: 420px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .achievement-grid img {
        height: 220px;
    }

    .activity-filters .activity-filter {
        padding: 8px 12px;
        font-size: 12px;
    }
}
