/********** Template CSS **********/
:root {
    --primary: #2a1060;
    --secondary: #2a1060;
    --light: #f5f3ff;
    --dark: #180a3a;
}

/* ===== SECTION BACKGROUNDS ===== */
.container-xxl:nth-of-type(odd) {
    background: #ffffff;
}

.container-xxl:nth-of-type(even) {
    background: #f8f8f8;
}

/* ===== GLOBAL ===== */
body {
    font-family: "Roboto", sans-serif;
    color: #444;
}

a {
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: #2a1060;
    color: #fff;
    border: none;
    transition: background .3s, transform .2s, box-shadow .3s;
}

.back-to-top:hover {
    background: #2a1060;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 0 15px 5px rgba(42, 16, 96, .6), 0 0 30px 10px rgba(42, 16, 96, .3);
}

/* ===== 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 {
    transition: .3s;
    border-radius: 25px;
}

.btn-primary,
.btn.btn-primary {
    background: #ffffff !important;
    border-color: #2a1060 !important;
    color: #2a1060 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background: #2a1060 !important;
    border-color: #2a1060 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(42, 16, 96, .35) !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #fff;
}

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

/* Primary Color */
.text-primary {
    color: #2a1060 !important;
}

/* Links Hover */
a:hover {
    color: #2a1060;
}

/* Navbar spacing fix */
.navbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Menu spacing */
.navbar-nav {
    gap: 30px;
    align-items: center;
}

/* Nav links */
.navbar .nav-link {
    font-size: 15px;
}

/* Right section spacing */
.navbar .btn-primary {
    margin-left: 25px;
    border-radius: 30px;
    font-size: 14px;
}

/* Social icons spacing */
.navbar .h-100 {
    margin-left: 15px;
}

/* Social icon style */
.btn-square {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo alignment */
.navbar-brand img {
    max-height: 50px;
}

/* Menu */
.navbar .navbar-nav {
    gap: 20px;
}

.navbar .navbar-nav .nav-link {
    padding: 0 5px;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

/* Hover */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #2a1060 !important;
}

/* Dropdown Arrow */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
}

/* FIX DROPDOWN GAP */
.navbar .nav-item {
    position: relative;
}

.navbar .nav-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
}

/* Desktop Dropdown */
@media (min-width: 992px) {

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        top: 100%;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        box-shadow: 0 8px 32px rgba(130,98,183,.12);
    }

    .navbar .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 991.98px) {

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

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 20px;
    }
}

.btn-primary {
    background: transparent;
    color: #2a1060;
    border: 2px solid #2a1060;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #2a1060;
    color: #fff;
}
/* ===== CAROUSEL — banner overlay NOT changed ===== */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* background: rgba(1, 10, 53, .8); */
    z-index: 1;
}

.carousel-caption h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
    font-weight: 800;
}

.carousel-caption p {
    color: rgba(255, 255, 255, .88) !important;
}

.carousel-caption .btn-hero {
    background: #8262b7;
    color: #fff;
    border: 2px solid #8262b7;
    padding: 12px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: background .3s, color .3s, transform .2s;
}

.carousel-caption .btn-hero:hover {
    background: #fff;
    color: #8262b7;
    border-color: #fff;
    transform: translateY(-2px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: #2a1060;
    border: 12px solid #2a1060;
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

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

/* ===== SECTION TITLE ===== */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #8262b7;
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== ABOUT ===== */
.about-img-wrap img {
    box-shadow: 0 12px 40px rgba(130, 98, 183, .15);
    transition: transform .4s;
}

.about-img-wrap img:hover {
    transform: scale(1.02);
}

/* ===== FACTS / STATS ===== */
.facts {
    position: relative;
    background: #f5f3ff !important;
}

.facts::after {
    display: none !important;
}

.stat-card {
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(130, 98, 183, .10);
    transition: transform .3s, box-shadow .3s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(130, 98, 183, .18);
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.stat-card-1 {
    background: #fff;
    border-top: 4px solid #8262b7;
    color: #8262b7;
}

.stat-card-2 {
    background: #8262b7;
    border-top: 4px solid #492096;
    color: #fff;
}

.stat-card-3 {
    background: #fff;
    border-top: 4px solid #8262b7;
    color: #8262b7;
}

.stat-card-4 {
    background: #8262b7;
    border-top: 4px solid #492096;
    color: #fff;
}

/* ===== FEATURES ===== */
.d-flex .btn-square.bg-primary {
    transition: transform .3s, box-shadow .3s;
}

.d-flex:hover .btn-square.bg-primary {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(130, 98, 183, .35);
}

/* ===== SERVICE CARDS ===== */
.service-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(130, 98, 183, .08);
    transition: transform .3s, box-shadow .3s;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(130, 98, 183, .18);
}

.service-item img {
    transition: transform .4s;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item .d-flex {
    border-top: 3px solid #8262b7;
}

.service-item a.h4 {
    color: #8262b7;
    text-decoration: none;
    font-weight: 600;
}

.service-item a.h4:hover {
    color: #492096;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

/* ===== TEAM / INDUSTRY CARDS ===== */
.team-item .team-img {
    height: 220px;
    overflow: hidden;
}

.team-item .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(130, 98, 183, .08);
    transition: transform .3s, box-shadow .3s;
}

.team-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(130, 98, 183, .18);
}

.team-item .team-img::before,
.team-item .team-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(130, 98, 183, .75);
    transition: .5s;
}

.team-item .team-img::after {
    left: auto;
    right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
    width: 50%;
}

.team-item .bg-light {
    border-top: 3px solid #8262b7;
}

.team-item h5 {
    font-weight: 600;
    color: #8262b7;
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a !important;
    border-top: 4px solid #2a1060;
    color: rgba(255, 255, 255, .85);
}

.footer-brand p {
    color: rgba(255, 255, 255, .75);
    line-height: 1.8;
    font-size: .95rem;
}

.footer-heading {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, .4);
    display: inline-block;
}

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

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 8px;
}

.footer .btn.btn-link:hover {
    color: #c9a0ff;
    padding-left: 6px;
    box-shadow: none;
    letter-spacing: 0;
}

.footer-contact p {
    color: rgba(255, 255, 255, .75);
    font-size: .92rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact p i {
    color: #fff;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: background .3s, color .3s, transform .2s;
}

.footer-social a:hover {
    background: #fff;
    color: #8262b7;
    border-color: #fff;
    transform: translateY(-3px);
}

.footer .btn.btn-square {
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .4);
}

.footer .btn.btn-square:hover {
    color: #8262b7;
    background: #fff;
    border-color: #fff;
}

.footer .copyright {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.footer .copyright a {
    color: #fff;
    font-weight: 600;
}

.footer .copyright a:hover {
    color: rgba(255, 255, 255, .75);
}

/* ===== TOPBAR ===== */
.breadcrumb-item a:hover {
    color: #fff !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(rgba(130, 98, 183, .85), rgba(130, 98, 183, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .75);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: #fff;
}

/* ===== TESTIMONIAL ===== */
.animated.pulse {
    animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #8262b7;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: #492096;
}






/* SECTION SPACING FIX */
.product-section {
    padding: 60px 0;
    background: #f7f7f7;
}

/* REMOVE EDGE BREAKING ON MOBILE */
.product-section .container {
    padding-left: 15px;
    padding-right: 15px;
}

/* CARD */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* HOVER */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* IMAGE FIX */
.product-card img {
    width: 100%;
    height: 220px;
    /* object-fit: contain; */
}

/* CONTENT */
.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* TEXT */
.product-small {
    font-size: 14px;
    color: #6c7a89;
}

.product-content h4 {
    font-size: 20px;
    font-weight: 600;
}

.product-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.read-btn {
    margin-top: auto;
    display: block;              /* make it full line */
    width: fit-content;         /* keep button size auto */
    margin-left: auto;
    margin-right: auto;         /* 👈 center horizontally */

    padding: 10px 22px;         /* 👈 better padding */
    background: #eaeaea;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.read-btn:hover {
    background: #2a1060;
    color: #fff;
}

/* 📱 MOBILE FIX */
@media (max-width: 576px) {

    .product-section {
        padding: 40px 10px;
    }

    .product-card img {
        height: 180px;
    }

    .product-content {
        padding: 15px;
    }

    .product-content h4 {
        font-size: 18px;
    }

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

/* 📲 TABLET FIX */
@media (max-width: 992px) {
    .product-card img {
        height: 200px;
    }
}