/* 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-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: #0b212ec2; /* 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: 32px;
    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; }

/* Left Column */
.why-choose-column { padding-right: 20px; }

/* Right Column (Vertical Slider showing 3 slides at once) */
.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; }
/* Height calculated to fit 3 slides (140px each) perfectly */
.vertical-slider-window { height: 420px; overflow: hidden; position: relative; }
.vertical-slider-track { display: flex; flex-direction: column; transition: transform 0.5s ease-in-out; }

/* Fixed slide height to exactly 140px */
.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: 14px; 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; }

/* =========================================
   4.1 TEAM SLIDER
   ========================================= */
.team-section { background-color: var(--gray-light); overflow: hidden; }
.team-slider-window { overflow: hidden; margin: 0 -15px; padding: 10px 0 20px; }
.team-slider-track { display: flex; transition: transform 0.5s ease-in-out; }

.team-card-wrapper { flex: 0 0 calc(100% / 3); padding: 0 15px; box-sizing: border-box; }
.team-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(5, 158, 255, 0.15);
}

.team-img-wrapper { height: 280px; overflow: hidden; background: #f3f8ff; }
.team-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.team-card:hover .team-img { transform: scale(1.05); }

.team-content { padding: 18px 18px 20px; }
.team-content h4 {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
}
.team-title {
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.team-desc {
    margin: 0;
    color: #4a4f56;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   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; 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: var(--secondary); }
.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 {
    /* 1. Basic Shape & Border */
    border: 2px solid #ff4d4d; /* Bright Emergency Red */
    border-radius: 12px;       /* Smooth rounded corners */
    padding: 40px 20px;        /* Spacing inside the box */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 2. The "Glow" Effect (Emergency Aura) */
    /* Horizontal, Vertical, Blur, Spread, Color */
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4), 
    inset 0 0 10px rgba(255, 77, 77, 0.2);

    /* 3. Background styling to match your blue theme */
    background: rgba(255, 255, 255, 0.05); /* Slight tint for glass effect */
    
    /* 4. Layout */
    text-align: center;
    /* max-width: 800px; */
    margin: 20px auto;
    color: #ffffff;
}

.stat-numbers-box img
{
    width: 350px;
    margin: 20px;
}

/* Optional: Make it pulse slightly to draw attention */
.stat-numbers-box {
    animation: emergencyPulse 2s infinite ease-in-out;
}

@keyframes emergencyPulse {
    0% { box-shadow: 0 0 15px rgba(255, 77, 77, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 77, 77, 0.7); border-color: #ff0000; }
    100% { box-shadow: 0 0 15px rgba(255, 77, 77, 0.4); }
}

.emg-num {
    color: #ffffff;             /* Keep text white for readability */
    font-weight: 800;           /* Make it bold for urgency */
    font-size: 2.5rem;          /* Adjust size as needed */
    display: block;
    text-align: center;
    display: inline-table;
    /* Apply the text glow animation */
    animation: textPulseRed 2s infinite ease-in-out;
}

@keyframes textPulseRed {
    0% {
        text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
        transform: scale(1);
    }
    50% {
        /* Intense glow and very slight scale up */
        text-shadow: 0 0 20px rgba(255, 0, 0, 1), 
                     0 0 30px rgba(255, 0, 0, 0.6);
        transform: scale(1.02); 
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
        transform: scale(1);
    }
}

.stat-item { text-align: center; }
.stat-icon { font-size: 20px; 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; }
    .team-card-wrapper { flex: 0 0 calc(100% / 2); }
    .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; }
    .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-radius: 8px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); border: 2px solid var(--secondary); }
    .about-grid { grid-template-columns: 1fr; }
    .team-card-wrapper { flex: 0 0 100%; }
    .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; }
    /**/
    .service-content h3 { font-size: 14px; }
    .service-content { padding: 20px 15px; text-align: center; }
    .about-text { background-color: rgba(255, 255, 255, 0.95); padding: 20px; }
    .about-flex { padding: 0px; }
    .stat-numbers-box img { width: 250px; }
    .stat-number { font-size: 38px; }
}


/* FAQ Section (Full Width with Secondary BG and Centering Fix) */
.sd-faq-section {
    background-color: var(--secondary); 
}

/* .sd-faq-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: stretch; 
} */

/* Container to handle vertical and horizontal centering */
.sd-faq-sidebar-centered {
    display: flex;
    justify-content: center; /* Horizontal Center */
    align-items: center;     /* Vertical Center */
    height: 100%;
}

/* Centered Quote Box Styling */
.sd-faq-quote-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(5, 158, 255, 0.15);
    max-width: 320px;
    margin: 0 auto;
}

.sd-faq-quote-box p {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

/* Accordion with higher contrast lines for colored background */
.sd-faq-list {
    border-top: 1px solid rgba(0,0,0,0.1);
}
.sd-faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.sd-faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}
.sd-faq-icon {
    color: var(--primary);
    font-size: 24px;
    font-weight: 400;
}
.sd-faq-item.active .sd-faq-btn {
    color: var(--primary);
}
.sd-faq-content {
    display: none;
    padding-bottom: 20px;
}
.sd-faq-content p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 15px;
}
