/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #F14D5D;
    --light: #ECF4FF;
    --dark: #120F2D;
    --font-body: "Segoe UI", Arial, sans-serif;
}

body {
    font-family: var(--font-body);
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    transition: .5s;
}

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

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: var(--font-body);
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

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

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

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

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 15, 45, .5);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

/* =========================================
   HERO CAROUSEL CONTROLS
   ========================================= */

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 70%;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    padding: 10px;
}

/* =========================================
   CAROUSEL INDICATORS
   ========================================= */

.carousel-indicators {
    align-items: flex-end;
    margin-bottom: 25px;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
    margin: 0 5px;
    border: 0;
    border-radius: 3px;
    background-color: #ffffff;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    height: 45px;
    opacity: 1;
    background-color: #0d6efd;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }

    .carousel-indicators {
        margin-bottom: 10px;
    }

    .carousel-indicators [data-bs-target] {
        width: 4px;
        height: 18px;
        margin: 0 3px;
    }

    .carousel-indicators .active {
        height: 30px;
    }
}

.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

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

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

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

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

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .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;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}

body {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6ff 100%);
    color: #14213d;
}

/* ── Old navbar overrides — neutralised, new navbar in navbar-modern.css ── */
/* .topbar, .navbar rules below are kept for reference only */

.topbar {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.95rem;
    padding: 0.6rem 0;
    display: none; /* hidden — replaced by modern header */
}

.topbar a,
.topbar span {
    color: #fff;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #4a90ff 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(40, 120, 235, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.navbar-light .navbar-nav .nav-link {
    color: #0f172a !important;
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

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

.footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #14213d 100%);
}

.section-shell,
.stats-card,
.service-card,
.plan-card,
.cta-box {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.stats-card,
.service-card,
.plan-card {
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover,
.service-card:hover,
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.service-card {
    border: 1px solid rgba(40, 120, 235, 0.12);
}

.plan-card {
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-card.featured {
    border-color: rgba(40, 120, 235, 0.35);
    box-shadow: 0 24px 50px rgba(40, 120, 235, 0.16);
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.cta-box {
    padding: 2rem;
    background: linear-gradient(135deg, #f7faff 0%, #eff5ff 100%);
    border: 1px solid rgba(40, 120, 235, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4a90ff 100%);
    border: none;
}

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

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

.btn-info {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    border: none;
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0097a7 0%, #006064 100%);
    color: #fff;
}

.carousel-caption {
    background: linear-gradient(90deg, rgba(7, 18, 42, 0.8) 0%, rgba(7, 18, 42, 0.35) 100%);
}

@media (max-width: 767px) {
    .cta-box {
        padding: 1.5rem;
    }
}



/* Card Hover Effect */
.hover-shadow {
    transition: all 0.3s ease-in-out;
    background: #fff;
}

.hover-shadow:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
    border-color: #0d6efd !important; /* Primary color border on hover */
}

.icon-wrapper i {
    transition: transform 0.3s ease;
}

.modern-card:hover .icon-wrapper i {
    transform: scale(1.1);
}