/* 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: #666;
    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
   ========================================= */
.hero { position: relative; overflow: hidden; width: 100%; max-width: 100%; }
.slider { position: relative; height: 500px; } 
.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; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.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: 2; transition: background 0.3s; }
.slider__nav:hover { background: var(--primary); }
.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: 2; 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); 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: url('https://placehold.co/1200x800/f0f0f0/e0e0e0.png?text=Texture+Background') repeat; }
.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: #555; 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: #666; }


/* =========================================
   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: 15px; font-style: italic; color: #444; 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; }


/* =========================================
   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: 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 { 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) {
    .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; }
}