/********** Template CSS - RTL Adapted **********/
:root {
    --primary: #00A2B2;
    --light: #F0FBFC;
    --dark: #181d38;
}

* {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* Reduce layout recalculation for below-the-fold content */
.stats-section,
.site-footer,
.container-xxl.py-5:nth-child(n+3) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Reserve space for sections to prevent CLS */
.container-xxl.py-5 {
    min-height: 200px;
}

/* Optimize WOW.js animations for GPU acceleration */
.wow {
    will-change: transform, opacity;
}

.wow.animated {
    will-change: auto;
    /* Reset after animation completes */
}

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

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

.back-to-top {
    position: fixed;
    display: none;
    left: 45px;
    bottom: 45px;
    z-index: 99;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 0;
    border-radius: 0 !important;
    /* Perfect Square */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 162, 178, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 162, 178, 0.4);
}

@media (max-width: 767px) {
    .back-to-top {
        left: 15px;
        bottom: 20px;
        width: 45px !important;
        height: 45px !important;
        font-size: 16px;
    }
}


/*** Button ***/
.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: color .5s, background-color .5s, border-color .5s, transform .5s;
}

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

/* Bootstrap Primary Color Override */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #008999 !important;
    border-color: #008999 !important;
}

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

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

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

a.text-primary:hover,
a.text-primary:focus {
    color: #008999 !important;
}

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

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

.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 .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-right: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .navbar .user-menu-wrapper {
        margin: 10px 0;
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        padding: 0 15px !important;
    }

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

    .navbar-toggler {
        margin-left: 10px !important;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: top .5s, box-shadow .5s;
}

/* Homepage navbar — white, no shadow/border at top */
.navbar.navbar-home {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: none !important;
    transition: box-shadow 0.4s ease;
}

/* Scrolled state — fixed with shadow */
.navbar.navbar-home.navbar-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity .5s, transform .5s, visibility .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;
        transition: opacity .5s, transform .5s, visibility .5s;
        opacity: 1;
    }
}

/*** Header carousel ***/
.header-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    /* Removed fixed min-height to prevent gaps on medium screens */
    /* Reserve space to prevent CLS */
    background: #ffffff !important;
    /* Placeholder background */
}

.header-carousel .owl-carousel-item {
    position: relative;
    height: 600px;
    background: #ffffff !important;
    overflow: hidden;
}

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

/* Full width container for slider */
.slider-container {
    width: 100%;
    background: #ffffff !important;
    padding: 0;
}

/* Dots styling - Hidden */
.header-carousel .owl-dots {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 1366px) {
    .header-carousel {
        max-width: 100%;
        max-height: 768px;
    }

    .header-carousel .owl-carousel-item {
        height: 56.25vw;
        /* Maintain 16:9 aspect ratio */
        max-height: 768px;
    }
}

@media (max-width: 992px) {

    .header-carousel,
    .header-carousel .owl-carousel-item {
        min-height: auto !important;
        height: auto !important;
    }

    .header-carousel .owl-carousel-item img {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
    }

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

    .features-section {
        padding-top: 0.5rem !important;
    }

    .section-title-wrapper {
        margin-bottom: 20px !important;
    }

    .section-title-wrapper .section-icon {
        margin-bottom: 10px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .section-title-wrapper .title-decoration {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 576px) {

    .header-carousel,
    .header-carousel .owl-carousel-item {
        min-height: auto !important;
        height: auto !important;
    }
}

.header-carousel .owl-nav {
    display: none !important;
}

.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 !important;
    font-size: 0;
    transition: .5s;
}

/* Hide default chevron icons */
.header-carousel .owl-nav .owl-prev span,
.header-carousel .owl-nav .owl-next span,
.header-carousel .owl-nav .owl-prev i,
.header-carousel .owl-nav .owl-next i,
.header-carousel .owl-nav button span {
    display: none !important;
}

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

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)),
    url('{{ asset("images/hero-bg.jpg") }}');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

/* Modern Page Hero Section */
.page-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    padding: 35px 0 45px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-hero-section .hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.page-hero-section .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.page-hero-section .shape-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -30px;
}

.page-hero-section .shape-2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: 10%;
}

.page-hero-section .shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
}

.page-hero-section .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-hero-section .hero-breadcrumb .breadcrumb {
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 15px;
}

.page-hero-section .hero-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.page-hero-section .hero-breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-hero-section .hero-breadcrumb .breadcrumb-item a:hover {
    opacity: 0.8;
}

.page-hero-section .hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.page-hero-section .hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.page-hero-section .hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-hero-section .hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

/* Page Hero Section Title Decorations */
.page-hero-section .section-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.page-hero-section .section-icon i {
    font-size: 26px;
    color: #fff;
}

.page-hero-section .title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.page-hero-section .title-decoration .line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
}

.page-hero-section .title-decoration .line:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.page-hero-section .title-decoration .dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .page-hero-section {
        padding: 25px 0 35px;
    }

    .page-hero-section .hero-title {
        font-size: 24px;
    }

    .page-hero-section .hero-subtitle {
        font-size: 14px;
    }

    .page-hero-section .section-icon {
        width: 50px;
        height: 50px;
    }

    .page-hero-section .section-icon i {
        font-size: 22px;
    }

    .page-hero-section .title-decoration .line {
        width: 35px;
    }
}

@media (max-width: 480px) {
    .page-hero-section {
        padding: 20px 0 25px;
        margin-bottom: 25px;
    }

    .page-hero-section .hero-title {
        font-size: 20px;
    }

    .page-hero-section .hero-subtitle {
        font-size: 13px;
    }

    .page-hero-section .hero-breadcrumb .breadcrumb {
        font-size: 12px;
        padding: 6px 14px;
    }

    .page-hero-section .section-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .page-hero-section .section-icon i {
        font-size: 18px;
    }

    .page-hero-section .title-decoration .line {
        width: 25px;
    }

    .page-hero-section .title-decoration {
        margin-bottom: 8px;
        gap: 8px;
    }
}

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

/*** Section Title - Modern Design ***/
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: "";
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.section-subtitle::after {
    background: linear-gradient(90deg, var(--primary), transparent);
}

.section-main-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

.section-main-title span {
    color: var(--primary);
}

/* Alternative Section Title Style */
.section-title {
    position: relative;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 25px;
    background: linear-gradient(135deg, rgba(0, 162, 178, 0.1) 0%, rgba(0, 162, 178, 0.05) 100%);
    border-radius: 30px;
    margin-bottom: 15px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.section-title::after {
    content: "";
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.section-title.text-start::before {
    display: none;
}

.section-title.text-start::after {
    right: -70px;
    width: 60px;
}

/* Section Title with Icon */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 10px;
}

.section-title-wrapper .section-main-title {
    margin-bottom: 0;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 162, 178, 0.3);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.section-icon:hover {
    transform: rotate(0deg) scale(1.05);
}

.section-icon i,
.section-icon svg {
    font-size: 30px;
    color: #fff;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Decorative Lines */
.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.title-decoration .line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary));
    border-radius: 3px;
}

.title-decoration .line:last-child {
    background: linear-gradient(90deg, var(--primary), transparent);
}

.title-decoration .dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.title-decoration .dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 162, 178, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Gradient text effect for highlighted words */
.section-main-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section subtitle with lines animation */
.section-subtitle::before,
.section-subtitle::after {
    transition: width 0.4s ease;
}

.section-title-wrapper:hover .section-subtitle::before,
.section-title-wrapper:hover .section-subtitle::after {
    width: 70px;
}

/* Title decoration line animation */
.title-decoration .line {
    transition: width 0.4s ease;
}

.section-title-wrapper:hover .title-decoration .line {
    width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-main-title {
        font-size: 28px;
    }

    .section-subtitle::before,
    .section-subtitle::after {
        width: 30px;
    }

    .section-title::before,
    .section-title::after {
        width: 30px;
        left: -40px;
        right: -40px;
    }

    .title-decoration .line {
        width: 50px;
    }

    .section-icon {
        width: 60px;
        height: 60px;
    }

    .section-icon i,
    .section-icon svg {
        font-size: 24px;
    }

    .section-title-wrapper {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .section-main-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 13px;
        padding: 6px 18px;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .title-decoration .line {
        width: 35px;
    }

    .title-decoration .dot {
        width: 10px;
        height: 10px;
    }

    .section-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .section-icon i,
    .section-icon svg {
        font-size: 20px;
    }

    .section-title-wrapper {
        margin-bottom: 30px;
    }
}

/*** Service ***/
.service-item {
    background: var(--light);
    transition: transform .5s, background .5s;
}

.service-item:hover {
    transform: translateY(-10px);
    background: var(--primary);
}

.service-item * {
    transition: color .5s, filter .5s;
}

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

/* Feature Icons - #00A2B2 teal color by default, white on hover */
.service-item .feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: invert(48%) sepia(89%) saturate(437%) hue-rotate(144deg) brightness(91%) contrast(101%);
    transition: all 0.5s ease;
}

.service-item:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

/*** Video Section ***/
.video-section {
    background: #005A9E;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

.video-box {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Details Overlay Card */
.video-details-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 40, 50, 0.92);
    padding: 35px 40px;
    max-width: 380px;
    z-index: 10;
}

.video-details-card h4 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.video-details-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-details-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.video-details-card ul li:last-child {
    margin-bottom: 0;
}

.video-details-card ul li i {
    color: #00A2B2;
    font-size: 14px;
    margin-top: 5px;
    flex-shrink: 0;
}

.video-details-card ul li span {
    flex: 1;
}

@media (max-width: 991px) {
    .video-box {
        height: 380px;
    }

    .video-details-card {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .video-box {
        height: 250px;
        border-radius: 0;
    }

    .video-details-card {
        padding: 25px;
    }

    .video-details-card h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .video-details-card ul li {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* Light variants for dark backgrounds */
.section-icon.light {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-icon.light i {
    color: #fff;
}

.title-decoration.light .line {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.title-decoration.light .line:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.title-decoration.light .dot {
    background: #fff;
}

.title-decoration.light .dot::before {
    background: rgba(255, 255, 255, 0.3);
}

.section-title.light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.section-title.light::before,
.section-title.light::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.section-title.light::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.section-main-title.light {
    color: #fff;
}

.section-main-title.light span {
    background: linear-gradient(135deg, #FFC843 0%, #FFB800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*** Programs Slider ***/
.programs-section {
    background: linear-gradient(135deg, #f8fbfc 0%, #e8f4f6 100%);
}

.programs-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.programs-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.programs-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px 5px;
}

.program-card {
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 40px rgba(0, 162, 178, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #008999);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 162, 178, 0.2);
    border-color: rgba(0, 162, 178, 0.2);
}

.program-card:hover::before {
    transform: scaleX(1);
}

/*** Partner Item ***/
.partner-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    transition: transform .5s, box-shadow .5s, border-color .5s;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.partner-item:hover {
    box-shadow: 0 15px 40px rgba(0, 162, 178, 0.15);
    transform: translateY(-5px);
    background: #fff !important;
    border-color: var(--primary);
}

.partner-item .partner-img {
    transition: transform .5s;
}

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

.partner-item .btn-outline-primary {
    border-radius: 20px;
    transition: .3s;
}

.partner-item:hover .btn-outline-primary {
    background: var(--primary);
    color: #fff;
}

.program-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(0, 162, 178, 0.1) 0%, rgba(0, 137, 153, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.program-icon-wrapper::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    opacity: 0;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    transform: scale(1.1);
}

.program-card:hover .program-icon-wrapper::before {
    opacity: 0.5;
    animation: rotate-border 8s linear infinite;
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.program-icon-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: invert(48%) sepia(89%) saturate(437%) hue-rotate(144deg) brightness(91%) contrast(101%);
    transition: all 0.4s ease;
}

.program-card:hover .program-icon-wrapper img {
    filter: brightness(0) invert(1);
}

.program-icon-wrapper i {
    font-size: 40px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.program-card:hover .program-icon-wrapper i {
    color: #fff;
}

.program-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.program-card:hover h4 {
    color: var(--primary);
}

.program-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.program-card .courses-count {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 162, 178, 0.1) 0%, rgba(0, 137, 153, 0.15) 100%);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.program-card:hover .courses-count {
    background: var(--primary);
    color: #fff;
}

/* Slider Navigation Buttons */
.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 162, 178, 0.3);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background: #fff;
    color: var(--primary);
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .program-card {
        min-width: 260px;
        max-width: 260px;
        padding: 30px 20px;
    }

    .program-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .program-icon-wrapper i {
        font-size: 35px;
    }

    .program-icon-wrapper img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 767px) {
    .programs-slider-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .programs-track-container {
        width: 100%;
        order: 1;
    }

    .slider-btn {
        display: none;
    }

    .programs-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 15px 10px;
    }

    .programs-track::-webkit-scrollbar {
        display: none;
    }

    .program-card {
        min-width: 240px;
        max-width: 240px;
        scroll-snap-align: start;
    }
}

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

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

.course-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    background: #F6F7F8;
}

.course-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.15);
}

.course-item .position-relative {
    overflow: hidden;
}

.course-item .position-relative img {
    height: 260px;
    width: 100%;
    object-fit: cover;
}

.course-item h3 {
    color: var(--primary);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px !important;
}

.course-item .mb-3 {
    margin-bottom: 15px !important;
}

.course-item .mb-3 small.fa-star {
    color: var(--primary);
    font-size: 14px;
}

.course-item .mb-3 small:last-child {
    color: #666;
    margin-right: 5px;
}

.course-item h5 {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.course-item .d-flex.border-top {
    background: #fff;
    border-top: 1px solid #dee2e6 !important;
}

.course-item .d-flex.border-top small {
    color: #666;
    font-size: 14px;
    padding: 15px 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-item .d-flex.border-top small i {
    color: var(--primary);
    margin-left: 8px;
}

/* Course Card Content */
.course-item .text-center.p-4 {
    padding: 25px 20px 15px !important;
}

.course-item .course-title {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 8px !important;
}

.course-item .course-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.course-item .course-footer {
    background: #fff;
}

.course-item .course-footer small {
    font-size: 13px;
    color: #666;
    padding: 12px 5px !important;
}

@media (max-width: 575px) {
    .course-item .position-relative img {
        height: 200px;
    }

    .course-item .course-footer small {
        font-size: 11px;
        padding: 10px 3px !important;
    }

    .course-item .course-footer small i {
        margin-left: 4px;
        font-size: 12px;
    }

    .course-item .course-title {
        font-size: 15px;
    }

    .course-item .course-desc {
        font-size: 13px;
    }

    .course-buttons a {
        padding: 6px 16px;
        font-size: 12px;
    }
}

/* Course Card Buttons - Always Visible */
.course-buttons {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.course-buttons a {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background: #00A2B2;
}

.course-buttons .btn-details {
    border-radius: 20px 0 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.course-buttons .btn-join {
    border-radius: 0 20px 20px 0;
}

.course-buttons a:hover {
    background: #008999;
}

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

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

/*** Stats Counter Section ***/
.stats-section {
    background: linear-gradient(135deg, #48C9B0 0%, #005A9E 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {

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

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

.stats-item {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.stats-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stats-item:nth-child(2) .stats-icon {
    animation-delay: 0.5s;
}

.stats-item:nth-child(3) .stats-icon {
    animation-delay: 1s;
}

.stats-item:nth-child(4) .stats-icon {
    animation-delay: 1.5s;
}

.stats-icon i {
    font-size: 40px;
    color: #FFC843;
    transition: all 0.3s ease;
}

.stats-item:hover .stats-icon {
    background: #FFC843;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stats-item:hover .stats-icon i {
    color: #005A9E;
}

.stats-number {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-label {
    font-size: 20px;
    color: #FFC843;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .stats-item {
        padding: 25px 15px;
    }

    .stats-number {
        font-size: 36px;
    }

    .stats-icon {
        width: 70px;
        height: 70px;
    }

    .stats-icon i {
        font-size: 30px;
    }

    .stats-label {
        font-size: 16px;
    }
}

/*** Testimonial ***/
.testimonial-carousel::before {
    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;
}

.testimonial-carousel::after {
    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;
}

@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: color .5s, background-color .5s;
}

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

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

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

.testimonial-carousel .owl-dot {
    position: relative !important;
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary) !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.testimonial-carousel .owl-dot span {
    display: none !important;
}

.testimonial-carousel .owl-dot:hover {
    background: rgba(0, 162, 178, 0.3) !important;
    transform: scale(1.1) !important;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: scale(1.3) !important;
}

/*** Footer ***/
.site-footer {
    background: #1a1a2e;
    color: #b8b8b8;
    margin-top: 50px;
}

.footer-main {
    padding: 80px 0 50px;
}

.footer-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #48C9B0, #005A9E);
    border-radius: 2px;
}

.footer-desc {
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #48C9B0;
    color: #fff;
    transform: translateY(-5px);
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links ul li a i {
    color: #48C9B0;
    font-size: 10px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FFC843;
    padding-right: 5px;
}

.footer-links ul li a:hover i {
    color: #FFC843;
}

/* Footer Contact */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #b8b8b8;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(72, 201, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #48C9B0;
    font-size: 16px;
}

/* Newsletter Form */
.footer-newsletter p {
    color: #b8b8b8;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: #fff;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, #48C9B0, #005A9E);
    border: none;
    padding: 15px 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #FFC843, #48C9B0);
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.newsletter-message.success {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

.footer-bottom a {
    color: #48C9B0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #FFC843;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-bottom-links a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #48C9B0;
}

@media (max-width: 991px) {
    .footer-main {
        padding: 50px 0 30px;
    }

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

@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 20px;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-desc {
        font-size: 14px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom .row {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 10px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .newsletter-form input {
        padding: 12px 15px;
        font-size: 13px;
    }

    .newsletter-form button {
        padding: 12px 20px;
    }
}

/* User Menu Wrapper */
.user-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 162, 178, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 162, 178, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.user-name {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-btn .chevron {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.user-menu-btn.active .chevron {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 22px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: #fff;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.dropdown-header strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dropdown-header span {
    font-size: 13px;
    opacity: 0.9;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 162, 178, 0.08) 0%, transparent 100%);
    color: var(--primary);
    padding-right: 24px;
}

.dropdown-item i {
    color: #666;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.logout-btn {
    color: #e74c3c !important;
}

.logout-btn:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.08) 0%, transparent 100%) !important;
    color: #c0392b !important;
}

.logout-btn i {
    color: #e74c3c !important;
}

.logout-btn:hover i {
    color: #c0392b !important;
}

/* Responsive - Mobile/Tablet */
@media (max-width: 991px) {
    .user-menu-btn {
        padding: 8px 14px;
        gap: 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .user-name {
        max-width: 100px;
        font-size: 14px;
    }

    .user-dropdown {
        min-width: 240px;
        left: auto;
        right: 0;
    }
}

@media (max-width: 600px) {
    .user-name {
        display: none;
    }

    .user-menu-btn {
        padding: 8px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }

    .user-menu-btn .chevron {
        display: none;
    }

    .user-dropdown {
        min-width: 220px;
    }
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.ai-chat-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: white;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 162, 178, 0.4);
    transition: all 0.3s ease;
    animation: pulse-chat 2s infinite;
    position: relative;
}

.ai-chat-toggle::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    border: 3px solid white;
    animation: bounce 1s infinite;
}

@keyframes pulse-chat {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

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

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

.ai-chat-toggle:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 10px 30px rgba(0, 162, 178, 0.5);
}

.ai-chat-box {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 420px;
    height: 600px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 162, 178, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-box.active {
    display: flex;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.ai-chat-header h6 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: white !important;
    line-height: 1.3;
}

.ai-chat-header small {
    font-size: 13px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 2px;
}

.ai-chat-header .d-flex {
    gap: 12px;
}

.ai-chat-header .ms-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-chat-close-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ai-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.ai-message,
.user-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

.ai-message-avatar,
.user-message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-message-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: white;
}

.user-message-avatar {
    background: #e8e8e8;
    color: #666;
}

.ai-message-content,
.user-message-content {
    background: white;
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 75%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.user-message-content {
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: white;
    border: none;
}

.ai-message-content p,
.user-message-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}

.ai-chat-input {
    padding: 20px;
    background: white;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.ai-chat-input form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ai-chat-input input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.ai-chat-input input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 162, 178, 0.1);
}

.ai-chat-input button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #008999 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 162, 178, 0.3);
}

.ai-chat-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 162, 178, 0.4);
}

.ai-chat-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .ai-chat-box {
        position: fixed;
        bottom: 90px;
        right: 20px;
        left: 20px;
        width: auto;
        height: calc(100vh - 140px);
        max-height: 550px;
    }

    .ai-chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.old-price {
    opacity: 0.7;
}

@media (max-width: 575px) {
    .discount-badge {
        font-size: 12px;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }
}