/********** Enhanced Animated Template CSS **********/
:root {
    --primary: #06BBCC;
    --primary-dark: #0499a8;
    --light: #F0FBFC;
    --light-alt: #e6f7f9;
    --dark: #181d38;
    --gray: #6c757d;
}

/*** Typography ***/
.fw-medium { font-weight: 600 !important; }
.fw-semi-bold { font-weight: 700 !important; }

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    animation: bounceIn 0.6s ease forwards;
}
@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
.back-to-top:hover {
    animation: wiggle 0.6s ease-in-out;
}
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

/*** 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;
}

/*** Buttons ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-dark);
}
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 12px 15px;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}
.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}
.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .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;
        opacity: 1;
    }
}

/*** Header Carousel ***/
.header-carousel .owl-carousel-item {
    position: relative;
    height: 350px !important;
    overflow: hidden;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}
.header-carousel .owl-nav .owl-prev,
.header-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;
    animation: pulseNav 2s infinite;
}
@keyframes pulseNav {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: slideInTitle 1s ease-out;
}
@keyframes slideInTitle {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}
.section-title::before,
.section-title::after {
    position: absolute;
    content: "";
    height: 2px;
    background: var(--primary);
    z-index: -1;
}
.section-title::before {
    width: calc(100% + 80px);
    top: 4px;
    left: -40px;
}
.section-title::after {
    width: calc(100% + 120px);
    bottom: 5px;
    left: -60px;
}
.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}
.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Service, Category, Course, Team ***/
.service-item,
.course-item,
.team-item {
    background: var(--light);
    transition: .5s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
}
.service-item:hover,
.course-item:hover,
.team-item:hover {
    margin-top: -10px;
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    animation: bounceUp 0.4s ease forwards;
}
@keyframes bounceUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(-4px); }
}
.service-item * {
    transition: .5s;
}
.service-item:hover * {
    color: var(--light) !important;
}
.category img,
.course-item img,
.team-item img {
    transition: .5s;
}
.category a:hover img,
.course-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

/*** Testimonial Carousel ***/
.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    animation: fadeScaleUp 0.6s ease forwards;
}
@keyframes fadeScaleUp {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}
.testimonial-carousel .owl-item.center

.header-carousel .owl-carousel-item .position-absolute {
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-y: auto;
}

.header-carousel .owl-carousel-item h1 {
    font-size: 2.5rem; /* Reduce heading size */
}

.header-carousel .owl-carousel-item p {
    font-size: 1rem; /* Reduce paragraph size */
    line-height: 1.5;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-carousel .owl-carousel-item .btn {
    padding: 10px 20px;
    font-size: 1rem;
}
.festive-strip {
    position: fixed;
    top: 75px; /* or below navbar */
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 5px 0;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.festive-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style-type: disc;
    margin: 0;
    padding: 0;
}

.festive-list li {
    display: inline;
}


.navbar {
    top: 0px; /* or match the height of your offer strip */
}
.navbar.sticky-top {
    top: 0px !important;
}
body {
    margin-top: 0px; /* navbar + offer strip height */
}

.festive-strip-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
}

.festive-strip a {
    color: #fff;
    text-decoration: underline;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.page-header.bg-cover {
    background: url('img/about-banner.jpg') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to right, rgba(6, 187, 204, 0.7), rgba(24, 29, 56, 0.7));
    z-index: 1;
}

.page-header .container {
    z-index: 2;
    position: relative;
}

.page-header h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.page-header p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #f0fbfc;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
