/*
Theme Name: CHKHELE
Theme URI: 
Author: CHKHELE
Description: High-Voltage Equipment & Solutions WordPress theme.
Version: 1.0.0
Text Domain: chkhele
*/

/* =========================================
   Chkhele Theme - Core Variables (Light B2B)
   ========================================= */
:root {
    --chkhele-color-primary: #cc0000; /* Deep Brand Red */
    --chkhele-color-primary-hover: #a30000;
    --chkhele-bg-white: #ffffff;
    --chkhele-bg-light: #f5f7fa; /* Very soft gray for alternating sections */
    --chkhele-text-main: #1e293b; /* Slate dark gray for text */
    --chkhele-text-muted: #64748b;
    --chkhele-border-color: #e2e8f0;
    
    --chkhele-font-family: 'Inter', sans-serif;
    --chkhele-radius: 6px;
    --chkhele-radius-lg: 12px;
    --chkhele-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --chkhele-transition: all 0.3s ease;
}

/* =========================================
   Global Reset
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--chkhele-font-family);
    background-color: var(--chkhele-bg-white);
    color: var(--chkhele-text-main);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--chkhele-transition); }

/* =========================================
   Layout Utilities
   ========================================= */
  .chkhele-container {
    max-width: 1200px; /* Default for standard desktops */
    margin: 0 auto;
    padding: 0 20px;
}

/* Increase width for large monitors */
@media (min-width: 1700px) {
    .chkhele-container {
        max-width: 1600px;
    }
}
.chkhele-section { padding: 80px 0; }
.chkhele-bg-light { background-color: var(--chkhele-bg-light); }
.chkhele-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}
.chkhele-center-text { text-align: center; }

/* Grids */
.chkhele-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.chkhele-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.chkhele-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.chkhele-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}
.chkhele-cert-grid img {
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    transition: var(--chkhele-transition);
    max-width: 100%;
}
.chkhele-cert-grid img:hover {
    transform: translateY(-5px);
    box-shadow: var(--chkhele-shadow);
}
.chkhele-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* =========================================
   Buttons & Links
   ========================================= */
.chkhele-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--chkhele-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    text-align: center;
}
.chkhele-btn-primary {
    background-color: var(--chkhele-color-primary);
    color: #fff;
}
.chkhele-btn-primary:hover {
    background-color: var(--chkhele-color-primary-hover);
    color: #fff;
}
.chkhele-btn-sm { padding: 8px 16px; font-size: 0.75rem; }
.chkhele-btn-full { width: 100%; padding: 16px; font-size: 1rem; }
.chkhele-text-link {
    color: var(--chkhele-color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================
   Header
   ========================================= */
.chkhele-header {
    background-color: var(--chkhele-bg-white);
    border-bottom: 1px solid var(--chkhele-border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.chkhele-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chkhele-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--chkhele-color-primary);
    display: flex;
    align-items: center;
}
.chkhele-logo img, .chkhele-logo .custom-logo-link img, img.custom-logo {
    height: 40px !important;
    max-height: 40px !important;
    width: 200px !important;
    object-fit: contain;
}
.chkhele-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}
.chkhele-nav li {
    margin: 0;
}
.chkhele-nav a {
    margin: 0 15px;
    font-weight: 500;
    font-size: 1.2rem;
    display: inline-block;
}
.chkhele-nav a.active, .chkhele-nav a:hover, .chkhele-nav li.current-menu-item > a {
    color: var(--chkhele-color-primary);
}

/* Mobile Menu Toggle */
.chkhele-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
    position: relative;
}
.chkhele-hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--chkhele-color-primary);
    position: relative;
    transition: var(--chkhele-transition);
}
.chkhele-hamburger::before,
.chkhele-hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--chkhele-color-primary);
    left: 0;
    transition: var(--chkhele-transition);
}
.chkhele-hamburger::before { top: -7px; }
.chkhele-hamburger::after { bottom: -7px; }
.chkhele-mobile-menu-toggle.active .chkhele-hamburger { background-color: transparent; }
.chkhele-mobile-menu-toggle.active .chkhele-hamburger::before { top: 0; transform: rotate(45deg); }
.chkhele-mobile-menu-toggle.active .chkhele-hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* =========================================
   Hero Section
   ========================================= */
.chkhele-hero {
    position: relative;
    padding: 0;
    background-color: transparent;
}
.chkhele-hero .swiper-slide {
    position: relative;
}
.chkhele-hero .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% opacity black overlay */
    z-index: 1;
}
.chkhele-hero .chkhele-container {
    position: relative;
    z-index: 2; /* Keep content above the overlay */
}
.chkhele-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.chkhele-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff; /* Make heading white */
}
.chkhele-hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9); /* Make paragraph light and clear */
    margin-bottom: 30px;
}

/* =========================================
   Stats Bar
   ========================================= */
.chkhele-stats-bar {
    background-color: var(--chkhele-bg-light);
    border-top: 1px solid var(--chkhele-border-color);
    border-bottom: 1px solid var(--chkhele-border-color);
    padding: 30px 0;
}
.chkhele-stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    text-align: center;
}
.chkhele-stat-item {
    display: flex;
    flex-direction: column;
}
.chkhele-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--chkhele-color-primary);
    line-height: 1;
    margin-bottom: 5px;
}
.chkhele-stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--chkhele-text-main);
}

/* =========================================
   Categories & Products
   ========================================= */
.chkhele-category-card {
    display: block;
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--chkhele-transition);
}
.chkhele-category-card:hover {
    box-shadow: var(--chkhele-shadow);
    transform: translateY(-5px);
}
.chkhele-category-card img {
    margin: 0 auto 20px auto;
    border-radius: var(--chkhele-radius);
    max-height: 150px;
    object-fit: contain;
}
.chkhele-category-card h3 { font-size: 1.1rem; }
.chkhele-category-card p {
    color: var(--chkhele-text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

.chkhele-product-card {
    display: block;
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    padding: 20px;
    text-align: center;
    transition: var(--chkhele-transition);
}
.chkhele-product-card:hover {
    box-shadow: var(--chkhele-shadow);
    border-color: var(--chkhele-color-primary);
}
.chkhele-product-card:hover .chkhele-btn {
    background-color: var(--chkhele-color-primary);
    color: #ffffff !important;
}
.chkhele-product-card img {
    margin: 0 auto 15px auto;
    max-height: 180px;
    object-fit: contain;
}
.chkhele-product-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.chkhele-category-tag {
    font-size: 0.75rem;
    background: var(--chkhele-bg-light);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--chkhele-text-muted);
}

/* =========================================
   Team Section
   ========================================= */
.chkhele-team-card {
    text-align: center;
}
.chkhele-team-card img {
    border-radius: 50%;
    margin: 0 auto 15px auto;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--chkhele-bg-light);
}
.chkhele-team-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}
.chkhele-team-role {
    font-size: 0.85rem;
    color: var(--chkhele-color-primary);
    font-weight: 600;
    margin-bottom: 10px;
}
.chkhele-team-desc {
    font-size: 0.85rem;
    color: var(--chkhele-text-muted);
    line-height: 1.4;
}

/* =========================================
   Testimonials
   ========================================= */
.chkhele-testimonial-card {
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    padding: 30px;
    border-radius: var(--chkhele-radius-lg);
    text-align: center;
    box-shadow: var(--chkhele-shadow);
}
.chkhele-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    object-fit: cover;
}
.chkhele-rating {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 600;
}
.chkhele-testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--chkhele-text-muted);
}
.chkhele-testimonial-card h4 { margin-bottom: 2px; }
.chkhele-testimonial-card span { font-size: 0.8rem; color: #94a3b8; }

/* =========================================
   Certifications
   ========================================= */
.chkhele-cert-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    align-items: center;
}
.chkhele-cert-grid img {
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    padding: 5px;
    background: var(--chkhele-bg-white);
    width: 100%;
}

/* =========================================
   Pagination
   ========================================= */
.navigation.pagination {
    margin-top: 50px;
    text-align: center;
}
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--chkhele-radius);
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    color: var(--chkhele-text-main);
    font-weight: 600;
}
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background: var(--chkhele-color-primary);
    color: #ffffff;
    border-color: var(--chkhele-color-primary);
}
.navigation.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* =========================================
   Forms & Footer
   ========================================= */
.chkhele-form-container {
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    padding: 40px;
    border-radius: var(--chkhele-radius-lg);
}
.chkhele-form input, .chkhele-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    font-family: inherit;
    font-size: 1rem;
}
.chkhele-form input:focus, .chkhele-form textarea:focus {
    outline: none;
    border-color: var(--chkhele-color-primary);
}

.chkhele-footer {
    background-color: #fafafa;
    border-top: 1px solid var(--chkhele-border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--chkhele-text-muted);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 1024px) {
    .chkhele-grid-4, .chkhele-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .chkhele-cert-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
    .chkhele-hero-grid, .chkhele-split { grid-template-columns: 1fr; }
    .chkhele-stats-grid-6 { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .chkhele-hero-content h1 { font-size: 3rem; }
}
@media (max-width: 768px) {
    .chkhele-grid-3, .chkhele-grid-4, .chkhele-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .chkhele-cert-grid { grid-template-columns: repeat(3, 1fr); }
    
    .chkhele-header-wrapper {
        position: relative;
    }
    .chkhele-logo {
        order: 1;
    }
    .chkhele-header .chkhele-btn-primary {
        display: inline-block;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .chkhele-mobile-menu-toggle {
        display: block;
        margin-left: 0;
        margin-right: 0;
        order: 3;
    }
    
    .chkhele-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--chkhele-bg-white);
        border-top: 1px solid var(--chkhele-border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
    }
    .chkhele-nav.active { display: flex; }
    .chkhele-nav ul { flex-direction: column; width: 100%; }
    .chkhele-nav a { display: block; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--chkhele-bg-light); }
    .chkhele-nav li:last-child a { border-bottom: none; }

    /* Prevent mobile slider arrows from overlapping text/content */
    .chkhele-hero-content,
    .categories-swiper,
    .cert-swiper {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 480px) {
    .chkhele-grid-3, .chkhele-grid-4, .chkhele-grid-5, .chkhele-cert-grid { grid-template-columns: 1fr; }
    .chkhele-stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
/* =========================================
   New Section: Industries We Serve
   ========================================= */
.chkhele-subtitle {
    color: var(--chkhele-text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}
.chkhele-industry-card {
    background: var(--chkhele-bg-light);
    border: 1px solid var(--chkhele-border-color);
    padding: 30px 20px;
    border-radius: var(--chkhele-radius-lg);
    text-align: center;
    transition: var(--chkhele-transition);
}
.chkhele-industry-card:hover {
    background: var(--chkhele-bg-white);
    box-shadow: var(--chkhele-shadow);
    transform: translateY(-5px);
    border-color: var(--chkhele-color-primary);
}
.chkhele-industry-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.chkhele-industry-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.chkhele-industry-card p {
    font-size: 0.9rem;
    color: var(--chkhele-text-muted);
}

/* =========================================
   Section: Manufacturing Process (Compact)
   ========================================= */
.chkhele-process-compact {
    gap: 20px;
}
.chkhele-process-card {
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius-lg);
    padding: 0 0 20px 0;
    text-align: center;
    transition: var(--chkhele-transition);
    overflow: hidden;
}
.chkhele-process-card:hover {
    box-shadow: var(--chkhele-shadow);
    transform: translateY(-5px);
    border-color: var(--chkhele-color-primary);
}
.chkhele-process-img-wrapper {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}
.chkhele-process-img-wrapper img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.chkhele-process-card:hover .chkhele-process-img-wrapper img {
    transform: scale(1.05);
}
.chkhele-process-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--chkhele-color-primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.chkhele-process-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--chkhele-text-main);
    padding: 0 15px;
}
.chkhele-process-card p {
    font-size: 0.85rem;
    color: var(--chkhele-text-muted);
    line-height: 1.5;
    padding: 0 15px;
}
/* =========================================
   New Section: Why Choose Us (Dark Background)
   ========================================= */
.chkhele-bg-dark {
    background-color: var(--chkhele-text-main); /* Uses the dark slate color */
    color: var(--chkhele-bg-white);
}
.chkhele-advantage-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: var(--chkhele-radius-lg);
    transition: var(--chkhele-transition);
}
.chkhele-advantage-box:hover {
    background: rgba(255, 255, 255, 0.1);
}
.chkhele-advantage-box h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.chkhele-advantage-box p {
    color: #cbd5e1; /* Light slate gray */
    font-size: 0.95rem;
}

/* =========================================
   Values Section
   ========================================= */
.chkhele-value-card {
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    padding: 30px 20px;
    border-radius: var(--chkhele-radius-lg);
    text-align: center;
    transition: var(--chkhele-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.chkhele-value-card:hover {
    box-shadow: var(--chkhele-shadow);
    transform: translateY(-5px);
    border-color: var(--chkhele-color-primary);
}
.chkhele-value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--chkhele-bg-light);
    color: var(--chkhele-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--chkhele-transition);
}
.chkhele-value-icon svg {
    width: 30px;
    height: 30px;
}
.chkhele-value-card:hover .chkhele-value-icon {
    background-color: var(--chkhele-color-primary);
    color: #ffffff;
}
.chkhele-value-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--chkhele-text-main);
}
.chkhele-value-card.highlight {
    background: var(--chkhele-color-primary);
    border-color: var(--chkhele-color-primary);
}
.chkhele-value-card.highlight .chkhele-value-icon {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff;
}
.chkhele-value-card.highlight h4 {
    color: #ffffff;
}
.chkhele-value-card.highlight:hover {
    background: var(--chkhele-color-primary-hover);
}

/* =========================================
   CTA Section
   ========================================= */
  .chkhele-cta-about{
    margin-bottom: 90px;
  } 
.chkhele-cta-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.chkhele-cta-desc {
    color: #ffffff;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}
.chkhele-btn-white {
    background-color: #ffffff;
    color: var(--chkhele-color-primary);
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
}
.chkhele-btn-white:hover {
    background-color: var(--chkhele-bg-light);
    color: var(--chkhele-color-primary-hover);
}

/* =========================================
   Expanded Full Footer
   ========================================= */
.chkhele-footer-expanded {
    background-color: #0f172a; /* Very dark blue/slate */
    color: #94a3b8;
    padding: 80px 0 20px 0;
}
.chkhele-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
.chkhele-footer-logo {
    max-height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes the logo white for the dark bg */
}
.chkhele-footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.chkhele-footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: var(--chkhele-color-primary);
}
.chkhele-footer-col ul {
    list-style: none;
}
.chkhele-footer-col ul li {
    margin-bottom: 12px;
}
.chkhele-footer-col ul a {
    color: #94a3b8;
    font-size: 0.9rem;
}
.chkhele-footer-col ul a:hover {
    color: var(--chkhele-color-primary);
    padding-left: 5px;
}
.chkhele-footer-contact li {
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}
.chkhele-footer-contact strong {
    color: #ffffff;
    margin-right: 10px;
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chkhele-social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.chkhele-social-links a {
    font-size: 0.85rem;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 4px;
}
.chkhele-social-links a:hover {
    background: var(--chkhele-color-primary);
}
.chkhele-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}
.chkhele-footer-bottom a {
    color: var(--chkhele-bg-white);
}

/* Responsive Footer adjustments */
@media (max-width: 1024px) {
    .chkhele-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}
@media (max-width: 768px) {
    .chkhele-footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================
   Swiper Customizations
   ========================================= */
.categories-swiper,
.cert-swiper {
    padding-bottom: 50px; /* Space for pagination */
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--chkhele-color-primary) !important;
}
.categories-swiper .swiper-slide {
    height: auto;
}
.categories-swiper .chkhele-category-card {
    height: 100%;
}
.cert-swiper img {
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    padding: 5px;
    background: var(--chkhele-bg-white);
    width: 100%;
}
/* =========================================
   WooCommerce Shop Header & Sorting
   ========================================= */
.woocommerce .woocommerce-result-count {
    color: var(--chkhele-text-muted);
    margin-bottom: 30px;
    float: left;
    font-size: 0.95rem;
}

.woocommerce .woocommerce-ordering {
    float: right;
    margin-bottom: 30px;
}

.woocommerce .woocommerce-ordering select {
    padding: 10px 15px;
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    font-family: var(--chkhele-font-family);
    color: var(--chkhele-text-main);
    background-color: var(--chkhele-bg-white);
    outline: none;
    transition: var(--chkhele-transition);
    cursor: pointer;
}

.woocommerce .woocommerce-ordering select:focus {
    border-color: var(--chkhele-color-primary);
}

/* Clearfix for the top bar */
.woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================
   WooCommerce Product Grid
   ========================================= */
/* Override default floats and use CSS Grid */
.woocommerce ul.products,
.woocommerce ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    clear: both;
}

.woocommerce ul.products li.product {
    width: 100% !important; /* Override WooCommerce inline widths */
    margin: 0 !important;
    background: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--chkhele-transition);
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--chkhele-shadow);
    transform: translateY(-5px);
    border-color: transparent;
}

/* Product Images */
.woocommerce ul.products li.product img {
    border-radius: var(--chkhele-radius);
    margin-bottom: 15px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--chkhele-bg-light); /* Adds a subtle background if images have transparency */
}

/* Product Titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    color: var(--chkhele-text-main);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
    padding: 0;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none;
    flex-grow: 1; /* Pushes the button to the bottom */
    display: flex;
    flex-direction: column;
}

/* Add to Cart / Read More Buttons */
.woocommerce ul.products li.product .button {
    display: inline-block;
    background-color: var(--chkhele-color-primary);
    color: var(--chkhele-bg-white);
    padding: 12px 20px;
    border-radius: var(--chkhele-radius);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--chkhele-transition);
    border: none;
    cursor: pointer;
    margin-top: auto; 
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--chkhele-color-primary-hover);
    color: var(--chkhele-bg-white);
}

/* =========================================
   WooCommerce Pagination
   ========================================= */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 50px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    overflow: hidden;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    color: var(--chkhele-text-main);
    font-weight: 500;
    transition: var(--chkhele-transition);
    background: var(--chkhele-bg-white);
    text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li .page-numbers:hover {
    background-color: var(--chkhele-color-primary);
    color: var(--chkhele-bg-white);
    border-color: var(--chkhele-color-primary);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        float: none;
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: 1fr;
    }
}
.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before{
    display: none;
}
/* Container styling */
.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
    font-family: var(--chkhele-font-family);
}

/* Base style for all page numbers and links */
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--chkhele-text-main);
    background-color: var(--chkhele-bg-white);
    border: 1px solid var(--chkhele-border-color);
    border-radius: var(--chkhele-radius);
    transition: var(--chkhele-transition);
    box-shadow: var(--chkhele-shadow);
}

/* Hover state for links (excluding the current page) */
.woocommerce-pagination a.page-numbers:hover {
    color: var(--chkhele-color-primary);
    border-color: var(--chkhele-color-primary);
    background-color: var(--chkhele-bg-light);
    transform: translateY(-2px);
}

/* Current active page styling */
.woocommerce-pagination .page-numbers.current {
    background-color: var(--chkhele-color-primary);
    color: #ffffff;
    border-color: var(--chkhele-color-primary);
    cursor: default;
}

/* Next/Previous arrow specific styling */
.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev {
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* Accessibility: Focus state for keyboard navigation */
.woocommerce-pagination .page-numbers:focus {
    outline: 2px solid var(--chkhele-color-primary-hover);
    outline-offset: 2px;
}
ul.page-numbers {
    list-style: none; /* Removes the dots */
    padding: 0;       /* Removes default indentation */
    margin: 0;
    display: flex;    /* Aligns the numbers in a horizontal row */
    gap: 10px;        /* Adds space between the numbers */
    align-items: center; 
}
/* =========================================
   Single Post Styles (single.php)
   ========================================= */

/* Container width for layout with sidebar */
.site-main.single .chkhele-container {
    max-width: 1200px;
    padding: 60px 20px;
}

.chkhele-single-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .chkhele-single-layout {
        grid-template-columns: 1fr;
    }
}

.chkhele-sidebar-widget {
    background: var(--chkhele-bg-light);
    border-radius: var(--chkhele-radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.chkhele-sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--chkhele-color-primary);
    display: inline-block;
    color: var(--chkhele-text-main);
}

.chkhele-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chkhele-sidebar-widget ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--chkhele-border-color);
    padding-bottom: 15px;
}

.chkhele-sidebar-widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.chkhele-sidebar-widget ul li a {
    color: var(--chkhele-text-main);
    font-weight: 500;
    transition: var(--chkhele-transition);
    display: block;
}

.chkhele-sidebar-widget ul li a:hover {
    color: var(--chkhele-color-primary);
    padding-left: 5px;
}

/* Post Header */
.single .entry-header {
    margin-bottom: 40px;
}

.single .entry-category {
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--chkhele-color-primary);
}

.single .entry-category a {
    color: var(--chkhele-color-primary);
}

.single .entry-category a:hover {
    color: var(--chkhele-color-primary-hover);
}

.single .entry-title {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Scales slightly down on mobile */
    line-height: 1.2;
    margin-bottom: 15px;
}

.single .entry-meta {
    font-size: 0.95rem;
    color: var(--chkhele-text-muted);
}

.single .entry-meta .meta-sep {
    margin: 0 10px;
}

/* Post Featured Image */
.single .post-thumbnail {
    margin-bottom: 30px;
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--chkhele-radius-lg);
    box-shadow: var(--chkhele-shadow);
}

/* Post Content Formatting */
.single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.single .entry-content ul,
.single .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single .entry-content li {
    margin-bottom: 0.5rem;
}

.single .entry-content img {
    border-radius: var(--chkhele-radius);
    margin: 1.5rem 0;
}

/* Styled Blockquotes for articles */
.single .entry-content blockquote {
    background-color: var(--chkhele-bg-light);
    border-left: 4px solid var(--chkhele-color-primary);
    padding: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--chkhele-text-muted);
    border-radius: 0 var(--chkhele-radius) var(--chkhele-radius) 0;
}

.single .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Links inside the article body */
.single .entry-content a {
    color: var(--chkhele-color-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    font-weight: 500;
}

.single .entry-content a:hover {
    text-decoration-color: var(--chkhele-color-primary);
}
/* Force the comment form fields to stack vertically */
.comment-form p {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Ensure the label has the correct spacing above the input */
.comment-form label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Ensure the textarea takes up the full width properly */
.comment-form-comment textarea {
    width: 100%;
    resize: vertical; /* Allows the user to make the box taller, but not wider */
}

/* =========================================
   Product Description Tabs
   ========================================= */
.chkhele-tabs-container {
    margin-top: 20px;
}
.chkhele-tab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid var(--chkhele-border-color);
    margin-bottom: 30px;
}
.chkhele-tab-link {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--chkhele-text-muted);
    cursor: pointer;
    transition: var(--chkhele-transition);
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}
.chkhele-tab-link:hover {
    color: var(--chkhele-text-main);
}
.chkhele-tab-link.active {
    color: var(--chkhele-color-primary);
    border-bottom-color: var(--chkhele-color-primary);
}
.chkhele-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.chkhele-tab-content.active {
    display: block;
}

/* =========================================
   Floating WhatsApp
   ========================================= */
.chkhele-floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.chkhele-floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background-color: #1ebe57;
    color: #ffffff !important;
}

.chkhele-floating-whatsapp svg,
.chkhele-floating-whatsapp img {
    width: 35px;
    height: 35px;
    fill: currentColor;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .chkhele-floating-whatsapp {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .chkhele-floating-whatsapp svg,
    .chkhele-floating-whatsapp img {
        width: 28px;
        height: 28px;
    }
}