/* Variables */
body.site {
    --primary: #059EFF;
    --secondary: #DEF3FF;
    --text-main: #059EFF;
    --text-dark: #1a1a1a;
    --gray-light: #f9f9f9;
}

/* Global Home Utility Classes */
.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-4 {
    margin-top: 24px;
}

.section-title {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title1 {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Base Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0482d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 158, 255, 0.3);
}

.btn-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.btn-read-more .arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: #0482d6;
}

.btn-read-more:hover .arrow {
    transform: translateX(5px);
}

/* Nav Slider Buttons */
.posts-nav-buttons {
    display: flex;
    gap: 8px;
}

.post-nav-btn {
    background: #fff;
    border: 1px solid #dcdcdc;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* =========================================
   1. HERO SLIDER
   ========================================= */
/* Slider Container */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.slider {
    position: relative;
    height: 500px;
}

/* Individual Slides */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: block;
    color: #fff;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Image Fitting - object-position: center ensures it crops perfectly from the middle */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark Overlay to make white text readable */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Adjust the 0.45 to make it darker or lighter */
    z-index: 1;
}

/* Centered Content Box */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* Places text above the overlay and image */
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.slide-content h2,
h1 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
        0px 4px 12px rgba(0, 0, 0, 0.6);
}

/* Base button styling (in case it isn't defined globally yet) */
.slide-content .btn-primary {
    display: inline-block;
    background-color: var(--primary, #059EFF);
    color: #fff;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.slide-content .btn-primary:hover {
    background-color: #0482d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 158, 255, 0.3);
}

/* Slider Controls (Z-index updated to 3 to sit above the overlay) */
.slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.slider__nav:hover {
    background: var(--primary, #059EFF);
}

.slider__prev {
    left: 18px;
}

.slider__next {
    right: 18px;
}

.slider__dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary, #059EFF);
    transform: scale(1.1);
}

/* =========================================
   2. SERVICES SLIDER (Larger, Clickable Cards)
   ========================================= */
.services-section {
    background-color: var(--gray-light);
    overflow: hidden;
}

.services-slider-window {
    overflow: hidden;
    margin: 0 -10px;
    padding: 20px 0;
}

.services-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 5 Cards Per Row Desktop, Wraps <a> properly */
.service-card-wrapper {
    flex: 0 0 calc(100% / 5);
    padding: 0 10px;
    box-sizing: border-box;
}

.service-card-wrapper a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(5, 158, 255, 0.18);
    border-color: var(--primary);
}

/* Increased image height for a larger visual impact */
.service-img-wrapper {
    overflow: hidden;
    height: 180px;
    border-bottom: 2px solid var(--secondary);
    transition: border-color 0.3s ease;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper {
    border-color: var(--primary);
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

/* Increased text size and padding */
.service-content {
    padding: 25px 20px;
    text-align: center;
}

.service-content h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
    text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 700;
}

.service-card:hover .service-content h3 {
    color: var(--primary);
}


/* =========================================
   3. ABOUT US (Grid Layout)
   ========================================= */
.about-section {
    background: linear-gradient(135deg, #022036 0%, var(--primary) 100%);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--secondary);
}

.about-image-wrapper {
    flex: 0.8;
}

.about-main-img {
    border-radius: 8px;
    width: 100%;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-box {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.feature-box:hover {
    border-color: var(--primary);
}

.feature-box .icon {
    font-size: 24px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-box .text h4 {
    margin: 0 0 8px;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.feature-box .text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dark);
}


/* =========================================
   4. SPLIT SECTION (Why Choose / Testimonials)
   ========================================= */
/* .split-testimonials-section { background-color: #ffffff; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.why-choose-column { padding-right: 20px; }

.testimonials-column { padding-left: 20px; border-left: 2px solid var(--primary); position: relative; }
.testimonials-column::before {
    content: ''; position: absolute; left: -6px; top: 0; bottom: 0; width: 10px;
    background: repeating-linear-gradient(to bottom, var(--primary) 0, var(--primary) 10px, transparent 10px, transparent 20px);
}

.testimonial-container-right { padding: 10px 0; }
.vertical-slider-window { height: 420px; overflow: hidden; position: relative; }
.vertical-slider-track { display: flex; flex-direction: column; transition: transform 0.5s ease-in-out; }

.testimonial-slide-split { height: 140px; display: flex; flex-direction: column; justify-content: flex-start; padding: 15px 20px 15px 40px; position: relative; }
.testimonial-slide-split::before { content: '\201C'; position: absolute; left: 0; top: 15px; font-size: 60px; color: var(--secondary); line-height: 1; font-family: Georgia, serif; }

.test-content .review-text { font-size: 15px; font-style: italic; color: var(--text-dark); line-height: 1.5; margin-bottom: 15px; }
.test-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #ccc; padding-top: 10px; }
.test-bottom .reviewer-name { font-weight: 700; color: var(--primary); font-size: 13px; margin: 0; }
.test-bottom .stars { color: #f39c12; font-size: 14px; letter-spacing: 2px; } */

.split-testimonials-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Image Styling */
.why-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonial Column Decoration */
.testimonials-column {
    padding-left: 30px;
    border-left: 3px solid var(--primary);
    position: relative;
}

/* The Sliding Window */
.vertical-slider-window {
    height: 420px;
    overflow: hidden;
    position: relative;
    /* This creates the fade effect at top and bottom */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.vertical-slider-track {
    display: flex;
    flex-direction: column;
}

.testimonial-slide-split {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 20px 40px;
    position: relative;
    box-sizing: border-box;
}

/* Quote Icon */
.testimonial-slide-split::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.review-text {
    font-size: 15px;
    font-style: italic;
    margin-bottom: 10px;
    color: #444;
}

.test-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.reviewer-name {
    font-weight: bold;
    font-size: 13px;
    color: var(--primary);
}

.stars {
    color: #f39c12;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-column {
        border-left: none;
        padding-left: 0;
    }

}

/* Tablet & Mobile Adjustments */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        /* Stacks the columns */
        gap: 40px;
    }

    .why-choose-column {
        padding-right: 0;
        text-align: center;
    }

    .testimonials-column {
        padding-left: 0;
        border-left: none;
        /* Remove side border on mobile */
        border-top: 3px solid var(--primary);
        /* Add top border for separation */
        padding-top: 30px;
    }
}

/* Phone Specific Adjustments */
@media (max-width: 576px) {
    .vertical-slider-window {
        height: 180px;
        /* Smaller window to show 1 review at a time */
    }

    .testimonial-slide-split {
        height: 180px;
        /* Match height */
        padding: 15px 10px 15px 30px;
    }

    .test-content .review-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.5rem;
        /* Shrink title slightly so it fits one line */
    }
}

/* =========================================
   5. STATS & INFO BANNER (Professional Deep Blue BG)
   ========================================= */
.stats-banner-section {
    /* Modern, sleek deep blue gradient */
    background: linear-gradient(135deg, #022036 0%, var(--primary) 100%);
    color: #ffffff;
    border-top: 4px solid var(--secondary);
    border-bottom: 4px solid var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center;
}

/* Invert colors for dark background */
.stat-info-box .stat-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 800;
}

.stat-info-box .stat-title span {
    color: #ffffff;
}

.stat-info-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Reverse button colors for contrast */
.stat-buttons .btn-primary {
    background-color: #ffffff;
    color: var(--primary);
}

.stat-buttons .btn-primary:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.stat-numbers-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}


/* =========================================
   6. RECENT POSTS SLIDER
   ========================================= */
.recent-posts-section {
    background-color: #ffffff;
    overflow: hidden;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
}

.posts-header .section-title {
    margin-bottom: 0;
}

.posts-slider-window {
    overflow: hidden;
    margin: 0 -15px;
    padding: 10px 0 20px;
}

.posts-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.post-card-wrapper {
    flex: 0 0 calc(100% / 3);
    padding: 0 15px;
    box-sizing: border-box;
}

.post-card {
    background: var(--gray-light);
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    border-radius: 4px;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.post-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-img {
    transform: scale(1.08);
}

.post-content {
    padding: 20px;
}

.post-content h4 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.post-content h4 a {
    color: var(--text-dark);
    transition: color 0.3s;
    text-decoration: none;
}

.post-card:hover .post-content h4 a {
    color: var(--primary);
}


/* =========================================
   RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .slider {
        height: 350px;
    }

    .service-card-wrapper {
        flex: 0 0 calc(100% / 3);
    }

    /* --- ABOUT US RESPONSIVE FIX --- */
    .about-image-wrapper {
        display: none;
    }

    /* Hides image on tablet/mobile */
    .about-flex {
        padding: 30px;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Stacks feature boxes 1 by 1 */

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-column {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--primary);
        padding-top: 30px;
    }

    .testimonials-column::before {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stat-buttons {
        justify-content: center;
    }

    .stat-numbers-box {
        flex-direction: row;
        justify-content: space-around;
        padding: 30px 0;
    }

    .post-card-wrapper {
        flex: 0 0 calc(100% / 2);
    }
}

@media (max-width: 767px) {
    .slider {
        height: 400px;
    }

    .about-text p {

        color: #ffffff !important;
    }

    .section-title {
        color: #000000 !important;
    }

    .section-title1 {
        color: #ffffff !important;
    }

    .feature-box .text p {
        color: black !important;
    }

    .slide-content h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .slide-content .btn-primary {
        padding: 12px 28px;
        font-size: 15px;
    }

    .service-card-wrapper {
        flex: 0 0 calc(100% / 2);
    }

    .about-flex {
        padding: 20px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stat-numbers-box {
        flex-direction: column;
        gap: 30px;
    }

    .post-card-wrapper {
        flex: 0 0 100%;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-title1 {
        font-size: 24px;
    }
}