/**
 * KTEC Oil Testing Transformer Laboratory - Complete Stylesheet
 * Modern, clean, professional design
 * Color scheme: Deep blue (#0a1628) + Electric blue (#2563eb) + Orange accent (#f97316)
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;

    /* Dark / Navy */
    --dark: #0a1628;
    --dark-light: #1e293b;
    --dark-medium: #334155;

    /* Accent */
    --accent: #f97316;
    --accent-dark: #ea580c;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    /* Success / Error */
    --success: #16a34a;
    --error: #dc2626;

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 80px 0;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--gray-50);
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-header p {
    font-size: 17px;
    color: var(--gray-500);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-main);
}

.btn-lg {
    padding: 15px 36px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--dark);
    color: var(--gray-300);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left span,
.top-bar-right span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar i {
    color: var(--primary-light);
    font-size: 12px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

/* Scrolled state - add shadow */
.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    font-size: 32px;
    color: var(--primary);
}

.logo-text {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.logo-sub {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Logo image (uploaded from admin settings) */
.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Footer logo styling */
.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
    /* Invert to white for dark footer background */
    filter: brightness(0) invert(1);
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    padding: 8px 18px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

/* Dropdown arrow icon */
.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is open/hovered */
.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ============================================
   DROPDOWN SUBMENU (Desktop)
   ============================================ */
.has-dropdown {
    position: relative;
}

/* Hide the mobile submenu toggle on desktop */
.submenu-toggle {
    display: none;
}

/* Dropdown menu container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--gray-200);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

/* Show dropdown on hover (desktop) */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual dropdown items */
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--primary-light);
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* "View All Services" link at bottom */
.dropdown-all {
    border-top: 1px solid var(--gray-200);
    margin-top: 5px;
    padding-top: 5px;
}

.dropdown-all a {
    font-weight: 600 !important;
    color: var(--primary) !important;
}

/* Nav button */
.nav-btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
}

/* ============================================
   HERO IMAGE SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: var(--dark);
}

/* ---- Individual Slide ---- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background image - fills the entire slide */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Dark overlay on top of image for text readability */
.slide-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* ---- Slide Content ---- */
.slide-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 40px 0;
}

.slide.active .slide-content {
    animation: slideUp 0.8s ease 0.2s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.25);
    color: #93bbff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    backdrop-filter: blur(8px);
}

.hero-badge i { font-size: 14px; }

/* Heading */
.slide-content h1 {
    font-size: 50px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Paragraph */
.slide-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 580px;
}

/* Buttons row */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---- Slider Arrows ---- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 25px; }
.slider-next { right: 25px; }

/* ---- Slider Dots ---- */
.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.3);
}

.dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 35px;
    border-radius: 10px;
}

/* ============================================
   SERVICES OVERVIEW (Homepage)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: var(--white);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-content .section-label {
    display: inline-block;
}

.why-us-content h2 {
    font-size: 34px;
    margin: 12px 0 18px;
}

.why-us-content > p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 30px;
}

/* Feature items */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--white);
    font-size: 18px;
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--dark);
}

.feature-item p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Stats Box */
.stats-box {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
}

/* ============================================
   COUNTER SECTION (Standalone — used on inner pages like About Us)
   ============================================ */
.counter-section {
    /* background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); */
    padding: 60px 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-item {
    padding: 30px 15px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.counter-number {
    display: inline;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.counter-plus {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-light);
    margin-left: 2px;
}

.counter-label {
    display: block;
    font-size: 15px;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .counter-number {
        font-size: 36px;
    }
    .counter-plus {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-step {
    text-align: center;
    padding: 35px 25px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 15px;
}

.process-step:hover .step-number {
    opacity: 1;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============================================
   TESTIMONIALS SECTION (Simple Fade Approach)
   ============================================ */

/* Container: holds stacked cards + arrows */
.testi-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px; /* space for arrows */
}

/* Each item is absolutely positioned, only .active shows */
.testi-item {
    display: none;
}

.testi-item.active {
    display: block;
    animation: testiFadeIn 0.5s ease;
}

@keyframes testiFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* The card itself */
.testi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    text-align: center;
}

/* Quote icon */
.testi-quote-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.testi-quote-icon i {
    font-size: 22px;
    color: var(--white);
}

/* Star rating */
.testi-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.testi-stars i {
    font-size: 16px;
    color: var(--gray-300);
}

.testi-stars i.filled {
    color: #f59e0b;
}

/* Review text */
.testi-text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 28px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Author row */
.testi-author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    text-align: left;
}

/* Avatar */
.testi-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.testi-name {
    display: block;
    font-size: 16px;
    color: var(--dark);
    font-weight: 700;
}

.testi-role {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ---- Arrows (positioned on sides) ---- */
.testi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.testi-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.testi-prev { left: 0; }
.testi-next { right: 0; }

/* ---- Dots ---- */
.testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.testi-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.testi-dot:hover {
    border-color: var(--primary);
}

.testi-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 28px;
    border-radius: 8px;
}

/* ============================================
   CLIENT LOGOS SECTION
   ============================================ */
.clients-section {
    overflow: hidden;
}

/* Logo Carousel - infinite scrolling wrapper */
.logo-carousel {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    /* Fade edges */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Track - holds all logo items, animates horizontally */
.logo-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

/* Pause animation on hover */
.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

/* Individual logo box */
.logo-item {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    transition: var(--transition);
}

.logo-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Infinite scroll keyframe animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 70px 0;
}

.cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PAGE BANNER (Inner Pages)
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 15px;
}

.breadcrumb a {
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb span {
    color: var(--gray-500);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* About Intro */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-image-box i {
    font-size: 80px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.about-image-box span {
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
}

.about-content .section-label {
    display: inline-block;
}

.about-content h2 {
    font-size: 32px;
    margin: 12px 0 18px;
}

.about-content p {
    color: var(--gray-500);
    margin-bottom: 15px;
    font-size: 15px;
}

.about-highlights {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.highlight-item i {
    color: var(--success);
    font-size: 16px;
}

/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mv-icon i {
    font-size: 28px;
    color: var(--white);
}

.mv-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.8;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.team-avatar i {
    font-size: 32px;
    color: var(--gray-400);
}

.team-card h3 {
    font-size: 17px;
    margin-bottom: 5px;
}

.team-role {
    display: block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cert-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.cert-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

.cert-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   SERVICES PAGE - Detailed Cards
   ============================================ */
.service-detail-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Alternate layout - icon on right */
.service-detail-card.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon {
    min-width: 120px;
    text-align: center;
}

.service-detail-icon i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.service-standard {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.service-detail-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-detail-content > p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 18px;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.service-features li i {
    color: var(--success);
    font-size: 13px;
}

/* Pricing Note */
.pricing-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.pricing-icon {
    min-width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-icon i {
    font-size: 36px;
    color: var(--white);
}

.pricing-content h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.pricing-content p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

/* Contact Info Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.contact-card-icon i {
    font-size: 22px;
    color: var(--white);
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Contact Form Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.contact-form-wrap h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-form-wrap > p {
    color: var(--gray-500);
    margin-bottom: 25px;
}

/* Form Alert Messages */
.form-alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

/* Contact Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-main);
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Map */
.contact-map h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin-bottom: 25px;
}

.map-wrapper iframe {
    display: block;
}

/* Working Hours Table */
.working-hours {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--gray-200);
}

.working-hours h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.working-hours h3 i {
    color: var(--primary);
}

.working-hours table {
    width: 100%;
    border-collapse: collapse;
}

.working-hours td {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-600);
}

.working-hours td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: 60px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

/* Footer Contact List */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--primary-light);
    margin-top: 3px;
    min-width: 16px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   SERVICE DETAIL PAGE (individual service)
   ============================================ */
.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Service Hero Card */
.service-hero-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.service-hero-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-hero-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.service-standard-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.service-standard-badge i {
    color: var(--accent);
}

/* Service Description */
.service-description {
    margin-bottom: 30px;
}

.service-description p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gray-600);
}

/* Service Features Section */
.service-features-section {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.service-features-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features-section h3 i {
    color: var(--primary);
}

.service-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.feature-box i {
    color: var(--success);
    font-size: 15px;
}

/* Why This Test Matters */
.service-why-section {
    margin-bottom: 30px;
}

.service-why-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-why-section h3 i {
    color: var(--accent);
}

.service-why-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-500);
}

/* Service CTA Card */
.service-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    border-radius: var(--radius-lg);
}

.service-cta-content h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 6px;
}

.service-cta-content p {
    color: var(--gray-400);
    font-size: 14px;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* Sidebar Services List */
.sidebar-services-list li {
    margin-bottom: 4px;
}

.sidebar-services-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-services-list li a i:first-child {
    width: 18px;
    text-align: center;
    color: var(--primary-light);
    font-size: 14px;
}

.sidebar-services-list li a .arrow {
    margin-left: auto;
    font-size: 11px;
    color: var(--gray-400);
}

.sidebar-services-list li a:hover,
.sidebar-services-list li a.active {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.15);
}

.sidebar-services-list li a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.sidebar-services-list li a.active i {
    color: var(--white);
}

.sidebar-services-list li a.active .arrow {
    color: rgba(255,255,255,0.7);
}

/* Sidebar Contact Card */
.sidebar-contact {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    text-align: center;
}

.sidebar-contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.sidebar-contact-icon i {
    font-size: 24px;
    color: var(--white);
}

.sidebar-contact h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.sidebar-contact p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 15px;
}

.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.sidebar-phone:hover {
    color: var(--primary-dark);
}

/* Service card as link (homepage) */
a.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.service-card:hover {
    color: inherit;
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Grid - 3 columns on desktop */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Card Image */
.blog-card-img {
    display: block;
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

/* Category badge on image */
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Card Body */
.blog-card-body {
    padding: 25px;
}

/* Meta row */
.blog-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
}

.blog-meta span {
    font-size: 12px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary-light);
    font-size: 11px;
}

/* Card title */
.blog-card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

/* Card excerpt */
.blog-card-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 15px;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more link */
.blog-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.blog-read-more i {
    font-size: 12px;
}

/* ============================================
   BLOG DETAIL PAGE
   ============================================ */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Featured Image */
.blog-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 25px;
}

.blog-detail-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Meta row */
.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.blog-detail-meta span {
    font-size: 13px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-meta i {
    color: var(--primary-light);
    font-size: 12px;
}

.blog-detail-cat {
    background: var(--primary);
    color: var(--white) !important;
    padding: 2px 12px;
    border-radius: 15px;
    font-size: 12px !important;
}

.blog-detail-cat i {
    color: var(--white) !important;
}

/* Title */
.blog-detail-title {
    font-size: 30px;
    line-height: 1.35;
    margin-bottom: 25px;
    color: var(--dark);
}

/* Content */
.blog-detail-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.blog-detail-content p {
    margin-bottom: 18px;
}

.blog-detail-content h3 {
    font-size: 22px;
    margin: 30px 0 14px;
    color: var(--dark);
}

.blog-detail-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.blog-detail-content ul li {
    margin-bottom: 10px;
    list-style: disc;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Share section */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
}

.blog-share span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.blog-share-links {
    display: flex;
    gap: 8px;
}

.blog-share-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 14px;
    transition: var(--transition);
}

.blog-share-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Sidebar Recent Posts (with thumbnail images) */
.sidebar-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each recent post item: image + info side by side */
.sidebar-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.sidebar-post-item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Thumbnail image */
.sp-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-100);
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sidebar-post-item:hover .sp-thumb img {
    transform: scale(1.08);
}

/* Placeholder when no image */
.sp-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 18px;
}

/* Post info (title + date) */
.sp-info {
    flex: 1;
    min-width: 0;
}

.sp-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-item:hover .sp-title {
    color: var(--primary);
}

.sp-date {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-date i {
    font-size: 10px;
    color: var(--primary-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Service detail page - sidebar goes below */
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    /* Blog - 2 columns on tablet */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 5px;
    }

    /* ---- NAVBAR - MOBILE MENU ---- */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--gray-200);
        gap: 2px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
    }

    /* Make nav links full width on mobile */
    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        display: flex;
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* ---- MOBILE DROPDOWN SUBMENU ---- */

    /* The dropdown parent needs relative + flex for toggle button */
    .has-dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Service link takes most of the width */
    .has-dropdown > a {
        flex: 1;
    }

    /* Hide desktop dropdown arrow on mobile */
    .dropdown-arrow {
        display: none;
    }

    /* Show the plus/minus toggle button on mobile */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: var(--gray-100);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 14px;
        color: var(--gray-600);
        transition: var(--transition);
    }

    .submenu-toggle:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    /* Mobile dropdown menu - hidden by default */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 100%;
        width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        background: var(--gray-50);
        border-radius: var(--radius-sm);
    }

    /* Show dropdown when submenu-open class is added */
    .has-dropdown.submenu-open .dropdown-menu {
        max-height: 600px;
        padding: 8px 0;
        margin-top: 5px;
        border: 1px solid var(--gray-200);
    }

    .dropdown-menu li a {
        padding: 10px 18px;
        font-size: 14px;
        border-left: none;
        border-radius: var(--radius-sm);
        margin: 2px 8px;
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a.active {
        background: rgba(37, 99, 235, 0.08);
        border-left: none;
    }

    .dropdown-all {
        border-top: 1px solid var(--gray-200);
        margin-top: 4px;
        padding-top: 4px;
    }

    /* ---- END MOBILE DROPDOWN ---- */

    /* Hero Slider */
    .hero-slider {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    .slider-dots { bottom: 18px; }

    /* Testimonials - mobile */
    .testi-container {
        padding: 0; /* no arrow space on mobile */
    }

    .testi-arrow {
        display: none; /* use swipe + dots on mobile */
    }

    .testi-card {
        padding: 28px 22px;
    }

    .testi-text {
        font-size: 15px;
    }

    .testi-quote-icon {
        width: 48px;
        height: 48px;
    }

    .testi-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 17px;
    }

    /* Client logos - mobile */
    .logo-item {
        width: 110px;
        height: 65px;
        padding: 8px 12px;
    }

    .logo-track {
        gap: 20px;
    }

    /* Sections */
    .section-header h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    /* About page */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    /* Blog - single column on mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-img {
        height: 200px;
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-detail-img img {
        height: 250px;
    }

    .blog-detail-title {
        font-size: 24px;
    }

    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Services page */
    .service-detail-card {
        flex-direction: column !important;
        padding: 30px 20px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    /* Service detail page */
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-hero-card {
        flex-direction: column;
        text-align: center;
    }

    .service-features-grid {
        grid-template-columns: 1fr;
    }

    .service-cta-card {
        flex-direction: column;
        text-align: center;
    }

    .service-sidebar {
        position: static;
    }

    /* Contact page */
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Page Banner */
    .page-banner h1 {
        font-size: 32px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 28px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small phones: 480px and below */
@media (max-width: 480px) {
    .hero-slider {
        height: 460px;
    }

    .slide-content h1 {
        font-size: 26px;
    }

    .slide-content p {
        font-size: 13px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .testi-card {
        padding: 22px 18px;
    }

    .testi-text {
        font-size: 14px;
    }

    .section {
        padding: 50px 0;
    }

    .stats-box {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .service-hero-info h2 {
        font-size: 22px;
    }

    .feature-box {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   DYNAMIC PAGE LAYOUT (with sidebar support)
   Created for admin-managed dynamic pages
   ========================================== */

/* Page Layout with Sidebar - 2 column grid */
.page-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Main content area */
.page-main-content {
    min-width: 0;
}

/* Featured image on pages */
.page-featured-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* Page content body (rich text from editor) */
.page-content-body {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.page-content-body h2 {
    font-size: 28px;
    color: #0a1628;
    margin: 30px 0 15px;
}

.page-content-body h3 {
    font-size: 22px;
    color: #1a365d;
    margin: 25px 0 12px;
}

.page-content-body p {
    margin-bottom: 16px;
}

.page-content-body ul,
.page-content-body ol {
    margin: 15px 0 15px 25px;
}

.page-content-body li {
    margin-bottom: 8px;
}

.page-content-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

/* Sidebar */
.page-sidebar {
    position: sticky;
    top: 100px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    color: #0a1628;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

/* Sidebar links list */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 4px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #475569;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: #3b82f6;
    color: #fff;
}

.sidebar-links a i {
    font-size: 12px;
    width: 18px;
    text-align: center;
}

/* Sidebar CTA card */
.sidebar-cta {
    background: linear-gradient(135deg, #1a365d, #3b82f6);
    border: none;
    color: #fff;
    text-align: center;
}

.sidebar-cta h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.sidebar-cta .btn {
    background: #fff;
    color: #1a365d;
}

.sidebar-cta .btn:hover {
    background: #f0f0f0;
}

/* Service Detail Hero card */
.service-detail-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.service-detail-hero h2 {
    margin: 0;
    font-size: 24px;
    color: #0a1628;
}

/* Service Features Grid */
.service-features {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
}

.service-features h3 {
    font-size: 18px;
    color: #0a1628;
    margin-bottom: 18px;
}

.service-features h3 i {
    color: #3b82f6;
    margin-right: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
}

.feature-tag i {
    color: #22c55e;
    font-size: 14px;
}

/* Service CTA Card */
.service-cta-card {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #1a365d, #2563eb);
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.service-cta-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.service-cta-card p {
    opacity: 0.85;
    margin-bottom: 20px;
}

.service-cta-card .btn {
    background: #fff;
    color: #1a365d;
}

/* Service Standard badge */
.service-standard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #3b82f6;
    margin-top: 8px;
}

/* Responsive for sidebar layout */
@media (max-width: 1024px) {
    .page-layout-sidebar {
        grid-template-columns: 1fr 260px;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-layout-sidebar {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
