/* ========================================
   COMPLETE DIVI ICON FIX
   Fixes all broken icons on your site:
   - Button icons (LEARN MORE)
   - Scroll down arrow
   - Video player controls
   - Any other ETmodules icons
   ======================================== */

/* ========================================
   1. FIX BUTTON ICONS
   ======================================== */

/* Remove broken data-icon attributes from buttons */
.et_pb_button[data-icon]:before {
    content: none !important;
    display: none !important;
}

/* Add clean Unicode arrow to buttons */
.et_pb_button_0:after,
.et_pb_button_1:after,
.et_pb_button[data-icon]:after {
    content: "→" !important;
    font-family: Arial, sans-serif !important;
    margin-left: 10px;
    font-size: 1.1em;
    font-weight: normal !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* ========================================
   2. FIX SCROLL DOWN ARROW
   ======================================== */

/* Hide broken HTML entity */
.scroll-down.et-pb-icon {
    font-size: 0 !important; /* Hide the broken text */
}

/* Add proper down arrow using :after */
.scroll-down.et-pb-icon:after {
    content: "↓" !important;  /* Unicode down arrow */
    font-family: Arial, sans-serif !important;
    font-size: 32px !important;  /* Adjust size as needed */
    display: block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: scroll-bounce 2s infinite;
}

/* Optional: Bounce animation for scroll arrow */
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ========================================
   3. FIX VIDEO PLAYER CONTROLS
   ======================================== */

/* If you have video controls with broken icons */
.et_pb_video_overlay .et_pb_video_play:before {
    content: "▶" !important;  /* Play button */
    font-family: Arial, sans-serif !important;
    font-size: 48px;
}

/* ========================================
   4. FIX ALL et-pb-icon ELEMENTS
   Generic fix for any broken icon
   ======================================== */

/* Hide all broken HTML entities in icon elements */
.et-pb-icon {
    font-size: 0 !important;
}

/* Restore size for the :before/:after pseudo-elements */
.et-pb-icon:before,
.et-pb-icon:after {
    font-size: 32px !important;
}

/* ========================================
   5. SPECIFIC ICON REPLACEMENTS
   Add icons for common Divi elements
   ======================================== */

/* Search icon */
.et_pb_icon.et_pb_search_icon:after {
    content: "🔍" !important;
    font-size: 24px !important;
}

/* Close/X icon */
.et_pb_icon.et_pb_close_icon:after {
    content: "✕" !important;
    font-size: 24px !important;
}

/* Menu icon */
.et_pb_icon.et_pb_menu_icon:after {
    content: "☰" !important;
    font-size: 24px !important;
}

/* Social media icons (if needed) */
.et_pb_social_icon.et_pb_facebook:after {
    content: "f" !important;
    font-family: Arial, sans-serif !important;
}

.et_pb_social_icon.et_pb_twitter:after {
    content: "🐦" !important;
}

.et_pb_social_icon.et_pb_instagram:after {
    content: "📷" !important;
}

/* ========================================
   6. ENSURE ETMODULES FONT LOADS
   (Keep this for any icons that do work)
   ======================================== */

@font-face {
    font-family: 'ETmodules';
    src: url('../fonts/modules.eot');
    src: url('../fonts/modules.eot?#iefix') format('embedded-opentype'),
         url('../fonts/modules.woff2') format('woff2'),
         url('../fonts/modules.woff') format('woff'),
         url('../fonts/modules.ttf') format('truetype'),
         url('../fonts/modules.svg#ETmodules') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   7. OPTIONAL: CUSTOM ARROW STYLES
   ======================================== */

/* Different arrow options - uncomment the one you prefer */

/* Style 1: Regular arrows (current) */
/* Buttons: → | Scroll: ↓ */

/* Style 2: Bold arrows */
/*
.et_pb_button[data-icon]:after { content: "➔" !important; }
.scroll-down.et-pb-icon:after { content: "⬇" !important; }
*/

/* Style 3: Filled arrows */
/*
.et_pb_button[data-icon]:after { content: "➜" !important; }
.scroll-down.et-pb-icon:after { content: "⇩" !important; }
*/

/* Style 4: Double arrows */
/*
.et_pb_button[data-icon]:after { content: "⇒" !important; }
.scroll-down.et-pb-icon:after { content: "⇓" !important; }
*/

/* ========================================
   8. HOVER EFFECTS (OPTIONAL)
   ======================================== */

/* Button arrow slides on hover */
.et_pb_button:hover:after {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* Scroll arrow bounces more on hover */
.scroll-down.et-pb-icon:hover:after {
    animation-duration: 1s;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

#back-to-top {
    position: fixed;
    bottom: 150px !important;  /* ← CHANGED: moved higher */
    right: 30px;
    z-index: 9999;
    display: none;
    width: 50px;
    height: 50px;
    background-color: #c41230;
    color: #ffffff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
    background-color: #a00f28;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(196, 18, 48, 0.4);
}

#back-to-top:before {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
    display: block;
    line-height: 50px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#back-to-top.show {
    display: block !important;
    animation: fadeInUp 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 140px !important;  /* ← Stack above WhatsApp on mobile */
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 45px;
    }
    
    #back-to-top:before {
        font-size: 20px;
        line-height: 45px;
    }
}

/* ========================================
   MOBILE MENU COMPLETE FIX
   ======================================== */

/* Make hamburger clickable */
.mobile_menu_bar {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
    position: relative !important;
    display: block !important;
}

.mobile_menu_bar:before {
    pointer-events: none !important;
}

#et-top-navigation {
    position: relative !important;
    z-index: 99999 !important;
}

/* Mobile menu container - FORCE VISIBILITY */
.et_mobile_menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    z-index: 9998 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Show menu when opened */
.mobile_menu_bar.opened ~ .et_mobile_menu,
.mobile_menu_bar.opened + .et_mobile_menu,
body.mobile-menu-open .et_mobile_menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style the menu items */
.et_mobile_menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.et_mobile_menu li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #e5e5e5 !important;
    margin: 0 !important;
}

.et_mobile_menu li:last-child {
    border-bottom: none !important;
}

.et_mobile_menu a {
    display: block !important;
    padding: 15px 20px !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease !important;
}

.et_mobile_menu a:hover {
    background-color: #f5f5f5 !important;
    color: #c41230 !important;
    padding-left: 25px !important;
}

/* Submenu styling */
.et_mobile_menu .sub-menu {
    background-color: #f9f9f9 !important;
    display: none !important;
    padding-left: 0 !important;
}

.et_mobile_menu .menu-item-has-children.visible .sub-menu {
    display: block !important;
}

.et_mobile_menu .sub-menu li {
    border-bottom: 1px solid #e0e0e0 !important;
}

.et_mobile_menu .sub-menu a {
    padding-left: 35px !important;
    font-size: 14px !important;
}

/* Only show on mobile */
@media (max-width: 980px) {
    .mobile_menu_bar {
        display: block !important;
    }
    
    .et_mobile_menu {
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
}

@media (min-width: 981px) {
    .et_mobile_menu {
        display: none !important;
    }
    
    .mobile_menu_bar {
        display: none !important;
    }
}
/* Hide scroll down arrow */
.scroll-down.et-pb-icon,
.scroll-down-container,
.et_pb_fullwidth_header_scroll {
    display: none !important;
}