/*
 Theme Name:   Divi Child
 Theme URI:    https://www.elegantthemes.com/gallery/divi/
 Description:  Divi Child Theme
 Author:       Elegant Themes
 Author URI:   https://www.elegantthemes.com
 Template:     Divi
 Version:      1.0.0
*/

/* =============================================================================
   1. IMPORT PARENT STYLES (Optional if functions.php handles it, but good backup)
   ============================================================================= */
@import url("../Divi/style.css");
@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap');

/* Apply Font to our Custom Navbar */
.as-navbar,
.as-navbar a,
.as-nav-ul,
.as-mobile-nav-ul,
.mega-column h4,
.as-btn-cta {
    font-family: 'ABeeZee', sans-serif !important;
}

/* =============================================================================
   2. MEGA MENU STYLES (Grid Desktop + Mobile Stack)
   ============================================================================= */

/* --- DESKTOP GRID LAYOUT (> 980px) --- */
@media (min-width: 981px) {

    /* Reset Item Positioning to allow Container Anchoring */
    .as-nav-ul>li {
        position: static !important;
    }

    /* Wrapper Container - Now Anchored to .as-container */
    .as-mega-menu-wrapper {
        position: absolute;
        top: 100%;
        /* Starts exactly below navbar */
        left: 0;
        width: 100%;
        /* Full Container Width */
        min-width: auto;

        background: #fff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 3px solid #2E8BC0;
        /* Accent Color */
        padding: 30px;
        opacity: 0;
        visibility: hidden;

        /* Just vertical animation */
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;

        border-radius: 0 0 8px 8px;
    }

    /* Hover Reveal */
    .as-has-mega-menu:hover .as-mega-menu-wrapper {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* GRID SYSTEM */
    .as-mega-menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 30px;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Column Styles */
    .mega-column h4 {
        margin-bottom: 20px;
        color: #0C2D48;
        /* Primary */
        font-size: 16px;
        font-weight: 700;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .mega-column h4 i {
        margin-right: 8px;
        color: #2E8BC0;
    }

    /* Item Links */
    .mega-column li a {
        display: block;
        padding: 8px 0;
        color: #666;
        font-size: 14px;
        transition: 0.2s;
        text-decoration: none;
        border-bottom: 1px dashed #f5f5f5;
        display: flex;
        align-items: center;
    }

    .mega-column li a:hover {
        color: #2E8BC0;
        transform: translateX(5px);
    }

    .hover-trigger {
        font-size: 10px;
        transition: opacity 0.2s;
        margin-right: 5px;
    }

    .mega-column li a:hover .hover-trigger {
        opacity: 1;
    }

    /* Footer Bottom Bar */
    .as-mega-menu-footer {
        margin: 30px -30px -30px -30px;
        background: #f9fafb;
        border-top: 1px solid #eee;
        padding: 15px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0 0 8px 8px;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }

    .as-mega-menu-footer .text-green {
        color: #10B981;
        margin-right: 5px;
    }

    .as-mega-menu-footer .highlight {
        color: #2E8BC0;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .as-mega-menu-footer .highlight i {
        margin-right: 5px;
    }

    /* Responsive Constraints for Laptops/Tablets Landscape (981px - 1300px) */
    @media (max-width: 1300px) {
        .as-mega-menu-wrapper {
            min-width: 700px;
            /* Reduce width from 900px */
            max-width: 90vw;
            /* Prevent screen overflow */
            padding: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
        }

        /* Ensure grid adapts */
        .as-mega-menu-grid {
            gap: 15px;
            grid-template-columns: repeat(3, 1fr) !important;
            /* Force 3 columns if possible, or let auto-fit handle it */
        }

        .mega-column h4 {
            font-size: 14px;
        }
    }

    /* UTILITY: Right Align for right-side items (prevents overflow) */
    /* Add CSS Class 'mega-align-right' to the Menu Item in WP Admin */
    .as-nav-ul>li.mega-align-right .as-mega-menu-wrapper {
        left: auto !important;
        right: 0 !important;
        transform: translateY(10px) !important;
    }

    .as-nav-ul>li.mega-align-right:hover .as-mega-menu-wrapper {
        transform: translateY(0) !important;
    }
}

/* --- MOBILE & TABLET LAYOUT (< 980px) --- */
@media (max-width: 980px) {

    /* Explicitly Hide Mobile Menu on Desktop (Safety) */
    .as-mobile-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f9fafb;
        display: none;
        /* Toggled via JS */
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 40;
        transform-origin: top;
        transition: all 0.3s ease;
    }

    .as-mobile-dropdown.is-open {
        display: flex;
    }


    /* Reset UL */
    .as-mobile-nav-ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Main Items */
    .as-mobile-nav-ul>li {
        border-bottom: 1px solid #f9fafb;
    }

    /* Items simples (INICIO, NOSOTROS, CONTACTO) - sin hijos */
    .as-mobile-nav-ul>li:not(.menu-item-has-children)>a {
        display: block;
        padding: 16px 24px;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 16px;
        font-weight: 600;
        color: #6b7280;
    }

    /* Primer item del menú sin hijos (normalmente INICIO): font-bold, text-primary (como referencia) */
    .as-mobile-nav-ul>li:not(.menu-item-has-children):first-of-type>a {
        font-weight: 700;
        color: #0C2D48;
    }

    /* Hover state for simple items */
    .as-mobile-nav-ul>li:not(.menu-item-has-children)>a:hover {
        background-color: #f9fafb;
        color: #2E8BC0;
    }

    /* Items con hijos (SERVICIOS con acordeón) */
    .as-mobile-nav-ul>li.menu-item-has-children>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        font-weight: 600;
        color: #6b7280;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 16px;
        width: 100%;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    /* Hover state for items con hijos (SERVICIOS) */
    .as-mobile-nav-ul>li.menu-item-has-children>a:hover {
        background-color: #f9fafb;
        color: #2E8BC0;
    }

    /* --- MEGA MENU WRAPPER (The Submenu Content) --- */
    .as-mega-menu-wrapper {
        position: relative !important;
        width: 100% !important;

        /* Reference Styles: bg-gray-50, px-6 pb-6 pt-2, shadow-inner */
        background: #f9fafb !important;
        box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06) !important;
        padding: 8px 24px 24px 24px !important;

        border: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;

        /* Reset spacing */
        margin: 0 !important;

        display: none;
        /* Hidden by default (Accordion) */
    }

    .as-mega-menu-wrapper.is-open {
        display: block !important;
    }

    .as-mega-menu-grid {
        display: block !important;
        padding: 0 !important;
    }

    /* Columns contain Categories */
    .mega-column {
        margin-bottom: 24px;
        /* Space between categories */
    }

    .mega-column:last-child {
        margin-bottom: 0;
    }

    /* LEVEL 1: Category Headers (e.g. Transmision) */
    /* Reference: text-primary font-bold text-sm uppercase tracking-wider mb-3 */
    .mega-column h4 {
        display: flex;
        align-items: center;
        color: #0C2D48;
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 12px;
        padding: 0;
        border: none;
        background: transparent;
    }

    /* Reference: Show Icon with accent color */
    .mega-column h4 i {
        display: inline-block;
        color: #2E8BC0;
        margin-right: 8px;
    }

    /* LEVEL 2: Links List (como referencia: pl-6 space-y-2 border-l-2) */
    .mega-column ul {
        padding-left: 24px !important;
        border-left: 2px solid #d1d5db;
        margin: 0 !important;
        list-style: none;
    }

    /* Primera columna usa borde azul (Transmisión), otras gris */
    .as-mega-menu-grid>li:first-child.mega-column ul {
        border-color: #2E8BC0;
    }

    .as-mega-menu-grid>li.mega-column ul {
        border-color: #d1d5db;
    }

    .mega-column li {
        margin-bottom: 8px;
    }

    .mega-column li:last-child {
        margin-bottom: 0;
    }

    /* Espaciado entre categorías (space-y-6 en referencia) */
    .as-mega-menu-grid>li.mega-column {
        margin-bottom: 24px;
    }

    .as-mega-menu-grid>li.mega-column:last-child {
        margin-bottom: 0;
    }

    /* Link Styles */
    /* Reference: text-sm text-gray-500 hover:text-accent block */
    .mega-column li a {
        display: block !important;
        padding: 0 !important;
        /* Reset padding */
        font-size: 14px !important;
        color: #6b7280 !important;
        /* Gray-500 */
        font-weight: 400 !important;
        text-transform: none;
        /* Normal case */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .mega-column li a:hover {
        color: #2E8BC0 !important;
        transform: translateX(4px);
        /* Subtle shift */
    }

    /* Remove the card-style chevrons and active states */
    .mega-column li a::after {
        display: none;
    }

    .mega-column li a:active {
        background: transparent;
    }

    /* Main Item Chevron Rotation (como referencia: mobile-chevron) */
    .as-mobile-nav-ul>li.menu-item-has-children>a::after {
        content: "\f078";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 12px;
        transition: transform 0.3s ease;
        color: inherit;
        margin-left: auto;
    }

    .as-mobile-nav-ul>li.menu-item-has-children.active>a::after {
        transform: rotate(180deg);
    }

    .as-mega-menu-footer {
        display: none;
    }

    /* CTA Wrapper (como referencia: p-6 bg-gray-50) */
    .mobile-cta-wrapper {
        padding: 24px;
        background: #f9fafb;
    }

    .as-btn-cta.mobile-cta {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 0;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 700;
        border-radius: 9999px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
    }

    .as-btn-cta.mobile-cta:active {
        transform: scale(0.95);
    }

    .as-btn-cta.mobile-cta:hover {
        background-color: #1a6aa0;
    }
}


/* =============================================================================
   3. CUSTOM HEADER STYLES (Replacement for standard Divi Header)
   ============================================================================= */

/* Navbar Container */
.as-navbar {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 99999;
    top: 0;
    left: 0;
    height: 110px;
    display: flex;
    align-items: center;
}

/* Fix Divi Body Padding */
body.et_fixed_nav #page-container {
    padding-top: 100px !important;
}

.as-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    /* Ensure container fills navbar height for correct dropdown positioning */
}

/* Brand */
.as-brand {
    display: flex;
    align-items: center;
}

.as-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

/* Logo Styles */
.as-logo-img {
    height: auto;
    max-height: 80px;
    /* Increased for better visibility */
    width: auto;
    transition: all 0.3s ease;
    display: block;
}

@media (min-width: 981px) {
    .as-logo-img {
        max-height: 90px;
        /* Larger on desktop */
    }
}

/* Desktop Menu */
.as-desktop-menu {
    display: none;
    height: 100%;
    /* For centering items */
}

@media (min-width: 981px) {
    .as-desktop-menu {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}

/* Links */
.as-menu-link,
.as-nav-ul>li>a {
    color: #0C2D48;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
}

.as-menu-link:hover,
.as-nav-ul>li>a:hover {
    color: #2E8BC0;
}

/* WP Menu Reset */
.as-nav-ul {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    align-items: center;
}

.as-nav-ul>li {
    /* position: relative;  <-- REMOVED FOR DESKTOP to use Container Anchoring */
    /* See Media Query below for specific override */
    height: 100%;
    display: flex;
    align-items: center;
}

/* CTA Button */
.as-btn-cta {
    background-color: #2E8BC0;
    color: white !important;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.as-btn-cta:hover {
    background-color: #1a6aa0;
}

/* Mobile Toggle */
.as-mobile-toggle {
    display: block;
}

@media (min-width: 981px) {
    .as-mobile-toggle {
        display: none;
    }
}

#as-mobile-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #0C2D48;
    cursor: pointer;
}

/* Explicitly Hide Mobile Menu on Desktop */
@media (min-width: 981px) {
    .as-mobile-dropdown {
        display: none !important;
    }
}

/* [Old Overlay Styles Removed] */


/* =============================================================================
   4. FORCE HIDE DEFAULT DIVI HEADER (INJECT STRATEGY)
   ============================================================================= */
#main-header,
#top-header {
    display: none !important;
}

/* #page-container margin reset removed to fix spacing issues */


/* =============================================================================
   5. HERO SECTION STYLES
   ============================================================================= */

/* Main Container */
.as-hero-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: #111827;
    /* Gray-900 */
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    font-family: 'ABeeZee', sans-serif !important;
    /* Force Font Global */
}

@media (min-width: 981px) {
    .as-hero-section {
        padding-top: 180px;
        padding-bottom: 120px;
        min-height: 80vh;
    }
}

/* Background Image */
.as-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.as-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.as-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #111827, transparent);
}

/* Content Grid */
.as-hero-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: relative;
    z-index: 10;
    width: 100%;
}

@media (min-width: 981px) {
    .as-hero-content {
        flex-direction: row;
        align-items: center;
    }
}

/* Left Column (Text) */
.as-hero-text {
    width: 100%;
    color: white;
    /* Fallback */
}

@media (min-width: 981px) {
    .as-hero-text {
        width: 50%;
    }
}

.as-hero-badge {
    background-color: #2E8BC0;
    /* Accent */
    color: white !important;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 16px;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-hero-title {
    font-size: 36px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
    /* Force White against Divi Overrides */
    font-family: 'ABeeZee', sans-serif !important;
}

@media (min-width: 981px) {
    .as-hero-title {
        font-size: 60px !important;
    }
}

.as-hero-title .highlight {
    color: #2E8BC0 !important;
}

.as-hero-desc {
    color: #d1d5db !important;
    /* Gray-300 */
    font-size: 18px !important;
    margin-bottom: 32px !important;
    line-height: 1.6 !important;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-hero-btn {
    background-color: #2E8BC0;
    color: white !important;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-hero-btn:hover {
    background-color: #2563EB;
    /* Blue-600 */
    transform: translateY(-4px);
}

/* Right Column (Form) */
.as-hero-form-col {
    width: 100%;
}

@media (min-width: 981px) {
    .as-hero-form-col {
        width: 50%;
        display: flex;
        justify-content: flex-end;
    }
}

.as-hero-form-card {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 450px;
    width: 100%;
    border-top: 4px solid #2E8BC0;
    margin-left: auto;
}

.as-hero-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0C2D48;
    margin-bottom: 8px;
}

.as-hero-form-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    display: block;
}

/* Contact Form 7 Overrides to Match Design */
.as-hero-form-card input[type="text"],
.as-hero-form-card input[type="email"],
.as-hero-form-card input[type="tel"],
.as-hero-form-card textarea {
    width: 100%;
    background-color: #f3f4f6;
    /* Gray-100 */
    border: 1px solid #e5e7eb;
    /* Gray-200 */
    padding: 12px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
    font-size: 14px;
}

.as-hero-form-card input:focus,
.as-hero-form-card textarea:focus {
    border-color: #2E8BC0;
}

.as-hero-form-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #374151;
    /* Gray-700 */
    margin-bottom: 4px;
}

/* WPForms Compatibility Overlay (To match visual design) */
.as-hero-form-card .wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
}

.as-hero-form-card .wpforms-field-label {
    display: block;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #374151 !important;
    /* Gray-700 */
    margin-bottom: 4px !important;
}

.as-hero-form-card input[type="text"],
.as-hero-form-card input[type="email"],
.as-hero-form-card input[type="tel"],
.as-hero-form-card textarea,
.as-hero-form-card .wpforms-field input:not([type="checkbox"]),
.as-hero-form-card .wpforms-field textarea {
    width: 100% !important;
    background-color: #f3f4f6 !important;
    /* Gray-100 */
    border: 1px solid #e5e7eb !important;
    /* Gray-200 */
    padding: 12px !important;
    border-radius: 4px !important;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0 !important;
    /* WPForms handles spacing differently */
    font-size: 14px !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

.as-hero-form-card .wpforms-field {
    margin-bottom: 16px !important;
    padding: 0 !important;
    clear: both !important;
}

/* FIX: Privacy Policy Checkbox */
.as-hero-form-card .wpforms-field input[type="checkbox"] {
    width: auto !important;
    display: inline-block !important;
    margin-right: 8px !important;
    height: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

.as-hero-form-card input:focus,
.as-hero-form-card textarea:focus {
    border-color: #2E8BC0 !important;
}

.as-hero-form-card .wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
}

.as-hero-form-card button[type="submit"],
.as-hero-form-card .wpforms-submit {
    width: 100% !important;
    background-color: #0C2D48 !important;
    /* Primary */
    color: white !important;
    font-weight: 700 !important;
    padding: 12px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit !important;
    text-transform: uppercase !important;
}

.as-hero-form-card button[type="submit"]:hover,
.as-hero-form-card .wpforms-submit:hover {
    background-color: #1f2937 !important;
    /* Gray-800 */
}

.as-hero-form-card input[type="submit"] {
    width: 100%;
    background-color: #0C2D48;
    /* Primary */
    color: white;
    font-weight: 700;
    padding: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* =============================================================================
   6. FEATURES SECTION (ICON GRID)
   ============================================================================= */

.as-features-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: white;
    font-family: 'ABeeZee', sans-serif !important;
}

/* FIX: Reset container behavior specific sections */
.as-features-section .as-container,
.as-services-section .as-container,
.as-tech-section .as-container {
    display: block !important;
    /* Disable Navbar Flexbox */
    height: auto !important;
    text-align: center;
    /* Helper for centering inline content if needed */
}

.as-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile by default */
    gap: 1.5rem;
    /* gap-6 equivalent */
    width: 100%;
}

@media (min-width: 768px) {
    .as-features-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on tablet/desktop */
    }
}

.as-feature-item {
    text-align: center;
    padding: 1rem;
}

.as-feature-item i {
    font-size: 1.875rem;
    /* text-3xl */
    line-height: 2.25rem;
    color: #2E8BC0 !important;
    /* text-accent */
    margin-bottom: 0.75rem;
    /* mb-3 */
    display: inline-block;
}

.as-feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0C2D48 !important;
    /* text-primary */
    margin: 0;
    font-family: 'ABeeZee', sans-serif !important;
}

/* =============================================================================
   8. TECH & COMMITMENT SECTION
   ============================================================================= */

.as-tech-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: white;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-tech-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: left;
    /* Reset text align */
}

@media (min-width: 992px) {
    .as-tech-grid {
        flex-direction: row;
        gap: 4rem;
    }
}

.as-tech-col-half {
    width: 100%;
}

@media (min-width: 992px) {
    .as-tech-col-half {
        width: 50%;
    }
}

/* Image Wrapper */
.as-tech-img-wrapper {
    position: relative;
    padding: 1rem;
    /* Space for blobs */
}

/* Decorative Blobs (Pseudo-elements) */
.as-tech-img-wrapper::before,
.as-tech-img-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.as-tech-img-wrapper::before {
    top: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    background-color: rgba(46, 139, 192, 0.2);
    /* Accent opacity */
}

.as-tech-img-wrapper::after {
    bottom: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    background-color: rgba(12, 45, 72, 0.1);
    /* Primary opacity */
}

.as-tech-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Content Styling */
.as-tag-label {
    background-color: #eff6ff;
    /* Blue-50 */
    color: #2E8BC0;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: inline-block;
}

.as-tech-title {
    font-size: 30px;
    font-weight: 700;
    color: #0C2D48;
    margin-bottom: 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .as-tech-title {
        font-size: 36px;
    }
}

.as-tech-paragraph {
    color: #4b5563;
    /* Gray-600 */
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 16px;
}

.as-tech-paragraph strong {
    color: #0C2D48;
}

/* Solutions Box */
.as-solutions-box {
    background-color: #f9fafb;
    /* Gray-50 */
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 24px;
}

.as-solutions-title {
    font-weight: 700;
    color: #0C2D48;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.as-solutions-title i {
    color: #2E8BC0;
    margin-right: 8px;
}

.as-solutions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-solution-tag {
    background-color: white;
    border: 1px solid #e5e7eb;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* =============================================================================
   9. FACILITIES CAROUSEL SECTION
   ============================================================================= */

.as-carousel-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #111827;
    /* Gray-900 */
    font-family: 'ABeeZee', sans-serif !important;
    position: relative;
    overflow: hidden;
}

.as-carousel-section .as-container {
    display: block !important;
    height: auto !important;
    text-align: center;
}

.as-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.as-carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    /* gap-6 */
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    /* Space for scrollbar or shadow */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.as-carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.as-carousel-item {
    flex: 0 0 90%;
    /* Mobile: 90% width to see previous/next hint */
    scroll-snap-align: center;
    background-color: #1f2937;
    /* Gray-800 */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .as-carousel-item {
        flex: 0 0 calc(33.333% - 1rem);
        /* Desktop: 3 items minus gap */
    }
}

.as-carousel-img {
    width: 100%;
    height: 16rem;
    /* h-64 */
    object-fit: cover;
}

.as-carousel-content {
    padding: 1.5rem;
    /* p-6 */
    text-align: left;
}

.as-carousel-title {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    /* text-lg */
    margin-bottom: 0.5rem;
}

.as-carousel-desc {
    color: #9ca3af;
    /* Gray-400 */
    font-size: 0.875rem;
    /* text-sm */
    margin: 0;
}

/* Navigation Buttons */
.as-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #2E8BC0;
    /* Accent */
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, color 0.2s;
}

.as-carousel-btn:hover {
    background-color: white;
    color: #0C2D48;
    /* Primary */
}

.as-carousel-btn.prev {
    left: 0;
}

.as-carousel-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .as-carousel-btn {
        display: none;
        /* Optional: Hide buttons on mobile if touch scroll is enough */
    }
}

/* =============================================================================
   10. FINAL CTA SECTION (Accent Box)
   ============================================================================= */

.as-cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: white;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-cta-section .as-container {
    display: block !important;
    height: auto !important;
    text-align: center;
}

.as-cta-box {
    background-color: #2E8BC0;
    /* Accent */
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 1000px;
    margin: 0 auto;
}

/* Decorative Blobs */
.as-cta-box::before,
.as-cta-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.as-cta-box::before {
    top: -4rem;
    left: -4rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.as-cta-box::after {
    bottom: -4rem;
    right: -4rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(12, 45, 72, 0.2);
    /* Primary opacity */
}

.as-cta-content {
    position: relative;
    z-index: 1;
}

.as-cta-title {
    color: white !important;
    font-size: 1.875rem;
    /* 30px */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .as-cta-title {
        font-size: 2.25rem;
        /* 36px */
    }
}

.as-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    /* 18px */
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.as-cta-btn {
    background-color: #0C2D48;
    /* Primary */
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    /* Pill */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.as-cta-btn:hover {
    background-color: #111827;
    /* Gray-900 */
    transform: translateY(-2px);
    color: white;
}

.as-services-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #F9FAFB;
    /* Gray-50 */
    font-family: 'ABeeZee', sans-serif !important;
}

.as-section-header {
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.as-section-subtitle {
    color: #2E8BC0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.as-section-title {
    font-size: 30px;
    font-weight: 700;
    color: #0C2D48;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .as-section-title {
        font-size: 36px;
    }
}

.as-section-separator {
    width: 80px;
    height: 4px;
    background-color: #2E8BC0;
    border-radius: 2px;
    margin: 0 auto;
}

/* Grid */
.as-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    align-items: start;
    /* Prevent stretching if content differs */
    text-align: left;
    /* Reset text align from container */
}

@media (min-width: 768px) {
    .as-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.as-service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
    border-top: 4px solid transparent;
    /* Base for coloring */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.as-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.as-service-card.border-accent {
    border-color: #2E8BC0;
}

.as-service-card.border-dark {
    border-color: #1f2937;
    /* Gray-800 */
}

.as-service-card.border-gray {
    border-color: #d1d5db;
    /* Gray-300 */
}

/* Card Header */
.as-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.as-service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
    background-color: #eff6ff;
    /* Blue-50 */
    color: #2E8BC0;
}

.as-service-icon-box.gray {
    background-color: #f3f4f6;
    /* Gray-100 */
    color: #4b5563;
    /* Gray-600 */
}

.as-service-title {
    font-size: 20px;
    font-weight: 700;
    color: #0C2D48;
    margin: 0;
}

/* Service List */
.as-service-list {
    list-style: none !important;
    /* Force remove bullets */
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    color: #4b5563;
    /* Gray-600 */
}

.as-service-list li {
    list-style-type: none !important;
    /* Double check for li specific */
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
}

/* Remove any Divi/WordPress generated pseudo-elements for lists */
.as-service-list li::before {
    content: none !important;
    display: none !important;
}

.as-service-list li:last-child {
    border-bottom: none;
}

.as-service-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s, transform 0.2s;
}

.as-service-list a:hover {
    color: #2E8BC0;
    transform: translateX(4px);
}

.as-service-list i {
    color: #2E8BC0;
    font-size: 12px;
    margin-right: 12px;
    min-width: 16px;
    /* Align icons */
}

/* =============================================================================
   11. GLOBAL FOOTER
   ============================================================================= */

.as-footer {
    background-color: #111827;
    /* Gray-900 */
    color: #9ca3af;
    /* Gray-400 */
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-family: 'ABeeZee', sans-serif !important;
    border-top: 1px solid #1f2937;
    /* Gray-800 */
    font-size: 14px;
}

.as-footer .as-container {
    display: block !important;
    height: auto !important;
}

.as-footer a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s;
}

.as-footer a:hover {
    color: #2E8BC0;
    /* Accent */
}

/* Footer Grid */
.as-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
}

@media (min-width: 768px) {
    .as-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

/* Brand Column */
.as-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: white;
}

.as-brand-box {
    background-color: #2E8BC0;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.as-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Social Icons */
.as-social-list {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.as-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #1f2937;
    /* Gray-800 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: background-color 0.2s;
    text-decoration: none !important;
}

.as-social-icon:hover {
    background-color: #2E8BC0;
}

.as-social-icon.whatsapp:hover {
    background-color: #22c55e;
}

.as-social-icon i {
    font-size: 16px;
}

/* Footer Widgets / Lists */
.as-footer h4 {
    color: white !important;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-bottom: 2px solid #2E8BC0;
    padding-bottom: 0.25rem;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-footer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.as-footer-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.as-footer-list li i {
    color: #2E8BC0;
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.as-footer-list strong {
    color: white;
}

/* Copyright Bar */
.as-copyright-bar {
    border-top: 1px solid #1f2937;
    margin-top: 3rem;
    padding-top: 2rem;
    font-size: 0.75rem;
    /* text-xs */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    color: #6b7280;
    /* Gray-500 */
}

@media (min-width: 768px) {
    .as-copyright-bar {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.as-badges i {
    margin-right: 0.5rem;
}

/* =============================================================================
   12. BLOG POSTS MODERNIZATION (Code Sandwich Support)
   AGGRESSIVE RESET & FORCE STYLES
   ============================================================================= */

/* --- Container Reset & Layout --- */
.as-blog-layout {
    display: flex !important;
    gap: 3rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (min-width: 992px) {
    .as-blog-layout {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .as-blog-main {
        width: 66.666% !important;
        flex: 0 0 66.666% !important;
        max-width: 66.666% !important;
    }

    .as-blog-sidebar {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        margin-left: auto !important;
    }
}

@media (max-width: 991px) {
    .as-blog-layout {
        flex-direction: column !important;
    }

    .as-blog-main,
    .as-blog-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* --- Dynamic Hero --- */
.as-blog-hero {
    position: relative !important;
    padding-top: 150px !important;
    padding-bottom: 80px !important;
    background-color: #0C2D48 !important;
    background-size: cover !important;
    background-position: center !important;
    text-align: center !important;
    color: white !important;
    margin-bottom: 4rem !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 480px !important;
}

.as-blog-hero::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(12, 45, 72, 0.85) !important;
    z-index: 1 !important;
}

.as-blog-hero-content {
    position: relative !important;
    z-index: 10 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.as-category-badge {
    background-color: #2E8BC0 !important;
    color: white !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
    margin-bottom: 24px !important;
}

.as-blog-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    line-height: 1.2 !important;
    color: white !important;
    font-family: 'ABeeZee', sans-serif !important;
}

@media (min-width: 768px) {
    .as-blog-title {
        font-size: 3rem !important;
    }
}

.as-blog-meta {
    display: flex !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    color: #d1d5db !important;
    font-size: 0.875rem !important;
    flex-wrap: wrap !important;
}

.as-blog-meta span {
    display: flex !important;
    align-items: center !important;
}

.as-blog-meta i {
    margin-right: 0.5rem !important;
    color: #2E8BC0 !important;
}

/* --- Main Layout Grid --- */
.as-blog-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 992px) {
    .as-blog-layout {
        flex-direction: row;
    }
}

.as-blog-main {
    width: 100%;
}

@media (min-width: 992px) {
    .as-blog-main {
        width: 66.666%;
    }
}

.as-blog-sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .as-blog-sidebar {
        width: 33.333%;
    }
}

/* --- Post Content Typography (.prose equivalent) --- */
.as-featured-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}

.as-blog-prose {
    color: #4b5563;
    /* Gray-600 */
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8;
}

.as-blog-prose p {
    margin-bottom: 1.5rem;
}

.as-blog-prose h2 {
    color: #0C2D48;
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-family: 'ABeeZee', sans-serif;
}

.as-blog-prose h3 {
    color: #2E8BC0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'ABeeZee', sans-serif;
}

.as-blog-prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.as-blog-prose li {
    margin-bottom: 0.5rem;
}

.as-blog-prose blockquote {
    border-left: 4px solid #2E8BC0;
    background-color: #f9fafb;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    border-radius: 0 8px 8px 0;
}

.as-blog-prose a {
    color: #2E8BC0;
    font-weight: 700;
    text-decoration: underline;
}

/* --- In-Content CTA --- */
.as-content-cta {
    background-color: #f9fafb;
    border-left: 4px solid #2E8BC0;
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .as-content-cta {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.as-cta-text-group h4 {
    margin: 0 0 0.5rem 0;
    color: #0C2D48;
    font-size: 1.25rem;
}

.as-cta-small-btn {
    background-color: #0C2D48;
    color: white !important;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.as-cta-small-btn:hover {
    background-color: #1f2937;
}

/* --- Sidebar Widgets --- */
.as-widget {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.as-widget-gray {
    background-color: #f9fafb;
}

.as-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0C2D48;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* Category List Widget */
.as-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.as-cat-list li a:hover {
    color: #2E8BC0;
}

.as-cat-count {
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Sticky CTA Widget */
.as-sticky-widget {
    position: sticky;
    top: 100px;
    background-color: #0C2D48;
    color: white;
    text-align: center;
    padding: 2rem;
}

.as-sticky-icon {
    width: 4rem;
    height: 4rem;
    background-color: #2E8BC0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
}

.as-sticky-btn {
    display: block;
    width: 100%;
    background-color: white;
    color: #0C2D48 !important;
    padding: 12px;
    border-radius: 99px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-decoration: none !important;
}

.as-sticky-btn-outline {
    display: block;
    width: 100%;
    border: 1px solid #9ca3af;
    color: #d1d5db !important;
    padding: 12px;
    border-radius: 99px;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: all 0.2s;
}

.as-sticky-btn-outline:hover {
    border-color: white;
    color: white !important;
}

/* =============================================================================
   13. LAYOUT FIXES (Divi Builder Compatibility)
   ============================================================================= */

/* 1. Remove Top Margin/Padding from Hero Transition */
.single-post .et_pb_section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 2. Fix Featured Image Overflow & Placement */
.as-featured-img,
.as-blog-main img,
.as-blog-hero img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 3. Tame Divi Builder Content inside Blog Main */
.as-blog-main .et_pb_section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    position: static !important;
}

.as-blog-main .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force container width stability - REMOVED: Causing overlap on standard pages */
/* .et_pb_row { width: 90% !important; max-width: 1280px !important; } */

/* FIX 3: Reset Width for Contact Text Block (User Reported 50% issue) */
@media only screen and (min-width: 981px) {
    .et_pb_text_1 {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

.as-blog-main .et_pb_module {
    color: #4b5563 !important;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-blog-main h1,
.as-blog-main h2,
.as-blog-main h3,
.as-blog-main h4,
.as-blog-main h5,
.as-blog-main h6 {
    color: #0C2D48 !important;
    font-family: 'ABeeZee', sans-serif !important;
}

.as-blog-main p {
    color: #4b5563 !important;
    margin-bottom: 1rem !important;
}

/* =============================================================================
   14. RELATED POSTS & FINAL LAYOUT FIXES
   ============================================================================= */

/* Force Max Width on Layout */
.as-blog-layout {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Kill Top Margin Globals */
.single-post #main-content,
.single-post .et_pb_section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Related Posts Section */
.as-related-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 20px;
}

.as-related-title {
    font-size: 1.5rem;
    color: #0C2D48;
    margin-bottom: 2rem;
    border-bottom: 2px solid #2E8BC0;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.as-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.as-related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

.as-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.as-related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.as-related-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.as-related-cat {
    font-size: 0.75rem;
    color: #2E8BC0;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.as-related-card-title {
    font-size: 1rem;
    color: #0C2D48;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* Response Related Grid */
@media (max-width: 980px) {
    .as-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .as-related-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   15. FINAL HERO FIX (User Identified)
   ============================================================================= */
/* Remove default Divi padding when Fixed Nav is active, only for blog posts */
.single-post.et_fixed_nav #page-container {
    padding-top: 0 !important;
}

/* =============================================================================
   6. EMERGENCY FIXES (2025-02-17 RE-APPLIED)
   ============================================================================= */

/* FIX 1: Mobile Hamburger Icon (Standard Divi) */
.mobile_menu_bar:before,
.et_toggle_slide_menu:after,
.et_pb_header_toggle:before {
    font-family: 'ETmodules' !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    content: '\61';
}

/* FIX 2: Text Truncation in Call-To-Action Bubbles */
.et_pb_text_inner,
.et_pb_module_inner {
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* FIX 3: Reset Width for Contact Text Block */
@media only screen and (min-width: 981px) {
    .et_pb_text_1 {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

/* FIX 4: Eliminar box-shadow global de secciones Divi */
.et_pb_section {
    box-shadow: none !important;
}

/* =============================================================================
   16. SHORTCODE [rcdc_zonas_entradas] — Grid entradas (delegaciones / zonas)
   ============================================================================= */
.as-rcdc-zonas {
    --as-rcdc-z-primary: #0C2D48;
    --as-rcdc-z-accent: #2E8BC0;
    --as-rcdc-z-muted: #6b7280;
    font-family: 'ABeeZee', sans-serif;
    background-color: #fff;
    padding: 5rem 1.5rem;
    box-sizing: border-box;
}

.as-rcdc-zonas *,
.as-rcdc-zonas *::before,
.as-rcdc-zonas *::after {
    box-sizing: border-box;
}

.as-rcdc-zonas__inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.as-rcdc-zonas__header {
    margin-bottom: 2.5rem;
}

.as-rcdc-zonas__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--as-rcdc-z-accent);
}

.as-rcdc-zonas__title {
    margin: 0.25rem 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    color: var(--as-rcdc-z-primary);
    line-height: 1.2;
}

.as-rcdc-zonas__subtitle {
    margin: 0.5rem 0 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--as-rcdc-z-muted);
}

.as-rcdc-zonas__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .as-rcdc-zonas__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .as-rcdc-zonas__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.as-rcdc-zonas__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.as-rcdc-zonas__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.as-rcdc-zonas__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12rem;
    padding: 1rem;
    background-color: #f3f4f6;
    overflow: hidden;
    text-decoration: none;
}

.as-rcdc-zonas__img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.as-rcdc-zonas__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.as-rcdc-zonas__card-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.as-rcdc-zonas__card-title a {
    color: var(--as-rcdc-z-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.as-rcdc-zonas__card-title a:hover {
    color: var(--as-rcdc-z-accent);
}

.as-rcdc-zonas__excerpt {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--as-rcdc-z-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.as-rcdc-zonas__readmore {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--as-rcdc-z-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.as-rcdc-zonas__readmore:hover {
    color: var(--as-rcdc-z-primary);
}

.as-rcdc-zonas__empty {
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: var(--as-rcdc-z-muted);
}

.as-rcdc-zonas__footer {
    margin-top: 3rem;
    text-align: center;
}

.as-rcdc-zonas__more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.as-rcdc-zonas__more:hover {
    background-color: #f9fafb;
    color: var(--as-rcdc-z-primary);
}