/* ====
   WORDPRESS THEME OVERRIDE - FIX STICKY SIDEBAR
   ==== */

#page {
    overflow: visible !important;
}

/* ====
   BASE & TYPOGRAPHY
   ==== */

.ep-brand-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', sans-serif;
    color: #333;
    padding: 0 20px;
    line-height: 1.7;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-intro {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ====
   BUTTONS & CTAs
   ==== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #0073aa;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #0073aa !important;
    border-color: #0073aa;
}

.btn-secondary:hover {
    background: #f0f7fb;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

/* ====
   HERO SECTION
   ==== */

.ep-hero {
    text-align: center;
    padding: 30px 20px 30px;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%);
    margin-bottom: 30px;
}

.ep-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.ep-hero .subline {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ep-hero .intro {
    font-size: 1rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.manufacturer-link {
    display: inline-block;
    max-width: 700px;
}

.manufacturer-link p {
    background: #e8f4f8;
    border-left: 4px solid #0073aa;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 0;
    font-size: 0.95rem;
    text-align: left;
}

.manufacturer-link a {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.manufacturer-link a:hover {
    border-bottom-color: #0073aa;
}

/* ====
   PROCESS STEPS (4-Step Timeline)
   ==== */

.process-section {
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

/* Connecting line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(to right, #0073aa 0%, #0073aa 33%, #e0e0e0 33%, #e0e0e0 100%);
    z-index: 0;
}

.step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid #0073aa;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.step:hover .step-icon {
    background: #0073aa;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.25);
}

.step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.step a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.step a:hover {
    text-decoration: underline;
}

/* ====
   CONTENT SECTION (Main + Sidebar with Scroll Follow)
   ==== */

.content-section {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    align-items: flex-start;
    position: relative;
}

.content-main {
    flex: 1;
}

.content-sidebar {
    flex: 0 0 280px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
}

.content-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.content-sidebar img:hover {
    transform: scale(1.02);
}

/* ====
   INSIGHT BOX
   ==== */

.insight-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7fb 100%);
    border-left: 5px solid #27ae60;
    padding: 30px;
    border-radius: 8px;
    display: inline-block;
    gap: 20px;
    margin-bottom: 40px;
}

.insight-icon {
    font-size: 2.5rem;
    color: #27ae60;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.insight-box h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0 0 12px 0;
}

.insight-box p {
    margin: 0;
    line-height: 1.7;
    color: #444;
}

/* ====
   CATEGORIES BOX
   ==== */

.categories-box {
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.categories-box h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8fbfd;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #e8f4f8;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.8rem;
}

/* ====
   COMPARISON SECTION
   ==== */

.comparison-section {
    margin-bottom: 40px;
}

.comparison-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.comp-col {
    padding: 30px;
    border-radius: 8px;
}

.comp-local {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
}

.comp-ep {
    background: linear-gradient(135deg, #f0f7fb 0%, #e8f4f8 100%);
    border: 2px solid #0073aa;
    position: relative;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.comp-col h4 {
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
}

.check-list li::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
}

.comp-local .check-list li::before {
    color: #e74c3c;
}

.comp-ep .check-list li::before {
    color: #27ae60;
}

/* ====
   MID-PAGE CTA
   ==== */

.mid-cta {
    text-align: center;
		margin-bottom: -30px;
}

/* ====
   EXPERTISE SECTION - LOCKED TO 3 COLUMNS
   ==== */

.expertise-section {
    padding: 35px;
    background: #f8fbfd;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.expertise-card {
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8f4f8;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.12);
    border-color: #0073aa;
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.expertise-card strong {
    display: block;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.expertise-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.expertise-card a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.expertise-card a:hover {
    text-decoration: underline;
}

/* ====
   COMMON FAULTS (Chip Style)
   ==== */

.faults-section {
    padding: 30px 0;
    background: white;
}

.faults-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.fault-chip {
    display: inline-block;
    padding: 10px 20px;
    background: #e8f4f8;
    color: #2c3e50;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid #d0e8f2;
    transition: all 0.3s ease;
}

.fault-chip:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.faults-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 1.05rem;
}

.faults-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.faults-footer a:hover {
    text-decoration: underline;
}

/* ====
   COMMON MODELS (Chip Style)
   ==== */

.models-section {
    padding: 30px 0 0;
    background: white;
}

.models-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.model-chip {
    display: inline-block;
    padding: 10px 20px;
    background: #e8f4f8;
    color: #2c3e50;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid #d0e8f2;
    transition: all 0.3s ease;
}

.model-chip:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.models-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 1.05rem;
}

.models-footer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.models-footer a:hover {
    text-decoration: underline;
}

/* ====
   SERVICE CATEGORIES - PROPERLY CENTERED 2x2 GRID
   ==== */

.service-categories {
    padding: 35px 35px;
    background: #f8fbfd;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e8f4f8;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.12);
    border-color: #0073aa;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.service-cta {
    text-align: center;
    margin-top: 35px;
}

.service-cta a {
    display: inline-block;
    padding: 14px 30px;
    background: #0073aa;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-cta a:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* ====
   FAQ ACCORDION (Native HTML5 Details/Summary)
   ==== */

.faq-section {
    padding: 35px 0;
    background: white;
}

.faq-accordion {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    background: white;
}

.faq-item summary {
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fbfd;
    color: #0073aa;
}

.faq-arrow {
    font-size: 1.5rem;
    color: #0073aa;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-item[open] .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    padding: 0 25px 25px;
    margin: 0;
    line-height: 1.7;
    color: #444;
}

.faq-answer a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ====
   CHATBOT SECTION
   ==== */

.chatbot-section {
    border-radius: 12px;
    text-align: center;
}

.chatbot-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.chatbot-section p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ====
   FOOTER LINKS
   ==== */

.footer-links {
    background: #2c3e50;
    color: white;
    padding: 40px 35px;
    border-radius: 8px;
}

.footer-links h4 {
    color: white !important;
    margin: 0 0 25px 0;
    font-size: 1.3rem !important;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.footer-links a {
    color: #5dade2 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #85c1e9 !important;
    text-decoration: underline;
}

/* ====
   STICKY MOBILE CTA
   ==== */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.sticky-cta .btn-primary {
    width: 85%;
    text-align: center;
    font-size: 1.1rem;
}

/* ====
   RESPONSIVE DESIGN
   ==== */

@media (max-width: 968px) {
    /* Process steps to 2x2 grid */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    /* Content section stacks */
    .content-section {
        flex-direction: column;
    }
    
    .content-sidebar {
        position: static;
        flex: 1 1 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Comparison stacks */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recommended-badge {
        top: 15px;
        right: 15px;
    }
    
    /* Expertise grid to 2 columns on tablets */
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Service grid responsive */
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Typography adjustments */
    .ep-hero h1 {
        font-size: 2rem;
    }
    
    .ep-hero .subline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Hero CTA stacks */
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
    }
    
    /* Process steps stack vertically with horizontal layout */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .step {
        display: flex;
        text-align: left;
        gap: 20px;
        align-items: flex-start;
    }
    
    .step-icon {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
        margin: 0;
        font-size: 2rem;
    }
    
    .step-content {
        flex: 1;
    }
    
    /* Expertise and service grids to single column */
    .expertise-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    /* Show sticky CTA on mobile */
    .sticky-cta {
        display: block;
    }
    
    /* Add padding to body to account for sticky CTA */
    .ep-brand-container {
    }
    
    /* Reduce padding on sections */
    .process-section,
    .expertise-section,
    .faults-section,
    .service-categories,
    
    .ep-hero {
        padding: 40px 20px 35px;
    }
		/* fix chat window */
		.mwai-input {
				flex-wrap: wrap;
		}
		.mwai-input-text{
				margin-bottom: 20px;
		}
}

@media (max-width: 480px) {
    /* Extra small screens */
    .ep-hero h1 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .insight-box {
        flex-direction: column;
        padding: 25px 20px;
    }
    
    .categories-box {
        padding: 25px 20px;
    }
    
    .comp-col {
        padding: 25px 20px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
    }
}

/* ====
   UTILITY CLASSES
   ==== */

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==== END OF STYLESHEET ==== */