/********** Enhanced Template CSS **********/
:root {
    --primary: #06BBCC;
    --secondary: #0052a3;
    --light: #F0FBFC;
    --dark: #181d38;
    --gradient-primary: linear-gradient(135deg, #0052a3, #00a3e0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #444;
    line-height: 1.6;
}

.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;
    }

/*** Top Bar ***/
.top-bar {
    height: 30px;
    background: linear-gradient(to right, rgba(27,100,168,1) 0%, rgb(8, 34, 93) 100%);
    color: #fff;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 2px 0;
    font-size: 14px;
    border-bottom: 2px solid #fff;
}

    .top-bar marquee {
        font-weight: 500;
    }

    .top-bar a {
        color: white;
        text-decoration: none;
        transition: opacity 0.3s;
    }

        .top-bar a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all .3s ease;
    border-radius: 5px;
}

    .btn.btn-primary {
        background: var(--gradient-primary);
        border: none;
        color: #FFFFFF;
    }

        .btn.btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 82, 163, 0.3);
        }

    .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: 5px;
}

/*** Navbar ***/
.navbar-custom {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(110deg, #EAF3FF 50%, #ffffff 70%);
    position: relative;
    min-height: 80px;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-custom .container-fluid {
    padding: 0;
}

.navbar-brand img {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-center-emblem {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

    .navbar-center-emblem img {
        height: 70px;
        width: auto;
    }

.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: 25px;
    padding: 28px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    position: relative;
    transition: color 0.3s ease;
}

    .navbar-light .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 23px;
        left: 0;
        width: 0;
        height: 3px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        width: 100%;
    }

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

.navbar-light.sticky-top {
    top: 0;
    transition: .5s;
}

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

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

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

    .navbar-brand img {
        max-height: 50px;
    }

    .navbar-custom {
        min-height: 70px;
    }

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

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px !important;
    /*display: flex;
    align-items: center;*/
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease;
        border: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

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

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

    .dropdown-item {
        padding: 10px 20px;
        transition: all 0.3s ease;
    }

        .dropdown-item:hover {
            background: var(--gradient-primary);
            color: white !important;
            padding-left: 25px;
        }
}

/*** Messages Section ***/
.messages-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-title {
    text-align: center;
    color: var(--dark);
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
}

    .page-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--gradient-primary);
        border-radius: 2px;
    }

.messages-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.message-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

    .message-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    .message-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: var(--gradient-primary);
    }

.card-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--secondary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-name {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.profile-org {
    font-size: 15px;
    color: var(--secondary);
    font-weight: bold;
}

.message-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

    .message-content p {
        margin-bottom: 18px;
    }

    .message-content .highlight {
        background: linear-gradient(120deg, #fef6e4 0%, #f3d2c1 100%);
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 600;
        color: #1a1a1a;
    }

.quote-icon {
    font-size: 60px;
    color: #e0e0e0;
    line-height: 0;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .messages-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .message-card {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .messages-wrapper {
        padding: 40px 15px;
    }

    .page-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        text-align: center;
    }

    .message-card {
        padding: 30px 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 20px;
    }

    .message-content {
        font-size: 15px;
    }
}

/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

        .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: rgba(0, 0, 0, 0.3);
        border: 1px solid #FFFFFF;
        font-size: 22px;
        transition: .5s;
        border-radius: 5px;
    }

        .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(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

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

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

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

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

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

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

/*** Service ***/
.service-item {
    background: var(--light);
    transition: all .3s ease;
    border-radius: 10px;
    padding: 30px;
}

    .service-item:hover {
        margin-top: -10px;
        background: var(--primary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .service-item * {
        transition: .3s;
    }

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

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

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

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

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

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

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

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

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

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

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

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

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

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

/*** Footer ***/
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

    .footer .btn.btn-social {
        margin-right: 5px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--light);
        font-weight: normal;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all .3s ease;
    }

        .footer .btn.btn-social:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

    .footer .btn.btn-link {
        display: block;
        margin-bottom: 10px;
        padding: 0;
        text-align: left;
        color: rgba(255, 255, 255, 0.8);
        font-size: 15px;
        font-weight: normal;
        text-transform: capitalize;
        transition: all .3s ease;
    }

        .footer .btn.btn-link::before {
            position: relative;
            content: "\f105";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-right: 10px;
            transition: margin-right 0.3s ease;
        }

        .footer .btn.btn-link:hover {
            color: var(--primary);
            padding-left: 5px;
        }

            .footer .btn.btn-link:hover::before {
                margin-right: 15px;
            }

    .footer h4 {
        position: relative;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

        .footer h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--primary);
        }

.footer-gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .footer-gallery img:hover {
        transform: scale(1.1);
    }

.copyright-footer {
    background: #0f1419;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.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;
    }

/*** Form Styling ***/
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(6, 187, 204, 0.25);
    }

/*** Smooth Scrolling ***/
html {
    scroll-behavior: smooth;
}
