/* ===================================
   Elementor Advanced Plugin - Frontend
   =================================== */

/* ─────────────── Read More / Less ─────────────── */
.eap-readmore-widget {
    position: relative;
}

.eap-readmore-content {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.eap-readmore-content.eap-fade.eap-collapsed::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

.eap-readmore-btn-wrap {
    margin-top: 12px;
}

.eap-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
    padding: 0;
    transition: opacity 0.2s;
    line-height: 1.4;
}

.eap-readmore-btn:hover {
    opacity: 0.75;
}

.eap-readmore-btn i,
.eap-readmore-btn svg {
    font-size: 12px;
    width: 12px;
    height: 12px;
    transition: transform 0.25s;
}

/* ─────────────── Mobile Menu Hamburger ─────────────── */
.eap-hamburger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.eap-hamburger:hover {
    background-color: rgba(0,0,0,0.05);
}

.eap-hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

/* Three-bars style */
.eap-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Three-dots style */
.eap-hamburger-icon .eap-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #333;
}

.eap-hamburger-label {
    font-size: 14px;
    font-weight: 500;
}

/* Active state (bars → X) */
.eap-hamburger[aria-expanded="true"] .eap-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.eap-hamburger[aria-expanded="true"] .eap-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.eap-hamburger[aria-expanded="true"] .eap-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────── Overlay ─────────────── */
.eap-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}
.eap-mobile-overlay.eap-overlay-active {
    display: block;
}
.eap-mobile-overlay.eap-overlay-visible {
    opacity: 1;
}

/* ─────────────── Panel Base ─────────────── */
.eap-mobile-panel {
    position: fixed;
    top: 0;
    z-index: 9999;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
    box-sizing: border-box;
}

/* ── Layout: Slide from left ── */
.eap-mobile-panel.eap-layout-slide {
    left: 0;
    width: 280px;
    transform: translateX(-100%);
}
.eap-mobile-panel.eap-layout-slide.eap-panel-open {
    transform: translateX(0);
}

/* ── Layout: Slide from right ── */
.eap-mobile-panel.eap-layout-right {
    right: 0;
    left: auto;
    width: 280px;
    transform: translateX(100%);
}
.eap-mobile-panel.eap-layout-right.eap-panel-open {
    transform: translateX(0);
}

/* ── Layout: Full overlay ── */
.eap-mobile-panel.eap-layout-overlay {
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    transform: none;
    pointer-events: none;
}
.eap-mobile-panel.eap-layout-overlay.eap-panel-open {
    opacity: 1;
    pointer-events: all;
}

/* ── Layout: Dropdown ── */
.eap-mobile-panel.eap-layout-dropdown {
    top: auto;
    left: 0;
    right: 0;
    height: auto;
    max-height: 80vh;
    width: 100%;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}
.eap-mobile-panel.eap-layout-dropdown.eap-panel-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.eap-panel-inner {
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ─────────────── Close Button ─────────────── */
.eap-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-bottom: 16px;
    align-self: flex-end;
    color: #333;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.eap-close-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* ─────────────── Navigation ─────────────── */
.eap-menu-list,
.eap-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eap-menu-item {
    border-bottom: 1px solid #eee;
    position: relative;
}

.eap-menu-item:last-child {
    border-bottom: none;
}

.eap-menu-item > a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    line-height: 1.4;
}

.eap-menu-item > a:hover {
    color: #007cba;
}

.eap-menu-item.current-menu-item > a,
.eap-menu-item.current-menu-ancestor > a {
    color: #007cba;
}

/* Submenu toggle arrow */
.eap-sub-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #888;
    transition: transform 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eap-sub-toggle svg {
    transition: transform 0.25s;
}
.eap-sub-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Submenu */
.eap-sub-menu {
    display: none;
    padding-left: 16px;
    border-left: 2px solid #eee;
    margin: 0 0 8px;
}
.eap-sub-menu.eap-sub-open {
    display: block;
}
.eap-sub-menu .eap-menu-item > a {
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
    color: #555;
}

.eap-no-menu {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* ─────────────── Social Icons ─────────────── */
.eap-social-section {
    margin: 20px 0 0;
}

.eap-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 10px;
}

.eap-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eap-social-item {
    margin: 0;
    padding: 0;
}

.eap-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #444;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.eap-social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.eap-social-icon i,
.eap-social-icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Default brand backgrounds (overridden per-item via inline style) */
.eap-social-facebook  { background-color: #1877F2; }
.eap-social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.eap-social-twitter   { background-color: #000; }
.eap-social-youtube   { background-color: #FF0000; }
.eap-social-tiktok    { background-color: #010101; }
.eap-social-linkedin  { background-color: #0A66C2; }
.eap-social-pinterest { background-color: #E60023; }
.eap-social-whatsapp  { background-color: #25D366; }
.eap-social-telegram  { background-color: #26A5E4; }
.eap-social-snapchat  { background-color: #FFFC00; color: #000; }

/* ─────────────── Language Switcher ─────────────── */
.eap-language-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.eap-lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eap-lang-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.eap-lang-item a:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.eap-lang-item.eap-lang-active a {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.eap-lang-flag {
    font-size: 18px;
    line-height: 1;
}

.eap-lang-flag-img {
    width: 20px;
    height: auto;
    display: block;
}

.eap-lang-code {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* ─────────────── Body lock when panel open ─────────────── */
body.eap-menu-open {
    overflow: hidden;
}

/* ─────────────── Focus visible ─────────────── */
.eap-hamburger:focus-visible,
.eap-close-btn:focus-visible,
.eap-readmore-btn:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* ─────────────── Reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    .eap-mobile-panel,
    .eap-mobile-overlay,
    .eap-readmore-content,
    .eap-bar,
    .eap-social-icon {
        transition: none !important;
    }
}

