/**
 * Theme Name:     Depp3
 * Author:         Elementor Team
 * Template:       hello-elementor
 * Text Domain:	   depp3
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 */
.energy-tabs-wrap {
    gap: 30px !important;
    align-items: flex-start;
    background: #fff !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    font-family: "Montserrat", sans-serif;
}

/* chỉ flex ở desktop */
@media (min-width: 768px) {
    .energy-tabs-wrap {
        display: flex !important;
    }
}

/* ===== NAV (TAB) ===== */
.energy-tabs-wrap .nav {
    width: 400px !important;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.energy-tabs-wrap .nav-link {
    width: 100%;
    text-align: left;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
    color: #333 !important;
    padding: 18px 0 !important;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-wrap: auto;
}

.energy-tabs-wrap .nav-link.active {
    color: #000 !important;
    font-weight: 800 !important;
}

/* ===== CONTENT ===== */
.energy-tabs-wrap .tab-content {
    flex: 1;
    padding-left: 20px;
}

.energy-tabs-wrap .tab-pane {
    font-size: 16px;
    line-height: 1.8 !important;
    color: #333;
}

/* .energy-tabs-wrap .tab-pane p {
    margin-bottom: 25px !important;
} */
.energy-tabs-wrap .tab-pane ol , .elementor-widget-theme-post-content ul {
	margin-bottom: 15px !important;
}

.energy-tabs-wrap .tab-pane img {
    max-width: 100%;
    height: auto;
    margin: 30px 0 !important;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .energy-tabs-wrap {
        flex-direction: column;
        gap: 30px !important;
        padding: 20px !important;
    }

    .energy-tabs-wrap .nav {
        width: 100% !important;
    }

    .energy-tabs-wrap .tab-content {
        padding-left: 0;
    }
}

/* =========================
   MOBILE ACCORDION
========================= */

/* show/hide layout */
.energy-tabs-desktop {
    display: none;
}

.energy-tabs-mobile {
    display: block;
    border-top: 1px solid #eee;
}

@media (min-width: 768px) {
    .energy-tabs-desktop {
        display: flex;
        gap: 20px;
        width: 100%;
    }

    .energy-tabs-mobile {
        display: none;
    }
}

/* accordion item */
.energy-tabs-mobile .accordion-item {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    border-radius: 0 !important;
    background: transparent;
}

/* accordion header button */
.energy-tabs-mobile .accordion-button {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 18px 0 !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333 !important;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
}

/* active state giống tab */
.energy-tabs-mobile .accordion-button:not(.collapsed) {
    color: #000 !important;
    font-weight: 800 !important;
    background: none !important;
    box-shadow: none !important;
}

/* bỏ icon bootstrap nếu muốn giống tab 100% */
.energy-tabs-mobile .accordion-button::after {
    display: none;
}

/* body content */
.energy-tabs-mobile .accordion-body {
    padding: 10px 0 20px 0 !important;
    font-size: 16px;
    line-height: 1.8 !important;
    color: #333;
}

/* paragraph */
.energy-tabs-mobile .accordion-body p {
    margin-bottom: 25px !important;
}

/* image */
.energy-tabs-mobile .accordion-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0 !important;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher nav ul {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher nav ul li a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.language-switcher nav ul li img {
    display: block;
    width: 20px;
    height: auto;
}

.accordion-body table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sửa lỗi tiêu đề Accordion bị dài tràn màn hình trên mobile */
.energy-tabs-mobile .accordion-button {
    white-space: normal !important; /* Cho phép chữ tự động xuống dòng */
    word-break: break-word;        /* Ngắt từ nếu từ quá dài */
    display: flex;                 /* Giữ đúng cấu trúc flex của Bootstrap */
    align-items: center;
    text-align: left;              /* Đảm bảo chữ canh trái khi xuống dòng */
    padding-right: 2.5rem;         /* Chừa chỗ cho mũi tên sổ xuống */
}

/* Đảm bảo toàn bộ khối accordion không vượt quá chiều rộng màn hình */
.energy-tabs-mobile.accordion, 
.energy-tabs-mobile .accordion-item {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Cắt bỏ phần thừa nếu có */
    box-sizing: border-box;
}