/* =========================================
   GAL Codru Moma - EXACT CLONE
   ========================================= */

:root {
    --text-color: #333333;
    --text-menu: #444444;
    --accent-red: #731f24; /* Dark red/maroon for buttons and footer links */
    --link-blue: #0056b3;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Essential Image Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Elementor Widget Overrides */
.elementor-widget-image img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

/* Fake logo block to look like the image */
.logo-icon {
    width: 32px;
    height: 32px;
    background: repeating-linear-gradient(45deg, #731f24, #731f24 4px, transparent 4px, transparent 8px);
    transform: rotate(45deg);
    margin-right: 15px;
}
.logo-text {
    font-size: 24px;
    font-weight: 400;
    color: #444;
    letter-spacing: 1px;
}
.logo-text strong {
    color: #731f24;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
    padding: 10px 0;
}

.main-nav > ul > li > a {
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.active > a {
    color: #ffffff !important;
    background-color: #6b1d28 !important;
    box-shadow: 0 4px 12px rgba(107, 29, 40, 0.2);
}

/* Dropdown styling */
.sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 230px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    z-index: 1000;
    flex-direction: column;
    gap: 0 !important;
    padding: 8px 0;
    overflow: hidden;
}

.has-children:hover .sub-menu {
    display: flex !important;
}

.sub-menu li {
    padding: 0 !important;
    list-style: none;
    margin: 0 !important;
}

.sub-menu a {
    display: block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sub-menu a:hover,
.sub-menu li.current-menu-item > a {
    background-color: #6b1d28 !important;
    color: #ffffff !important;
    border-left-color: #f1c40f !important;
    padding-left: 26px !important;
}

/* =========================================
   SECTIONS
   ========================================= */
.full-width-img-container {
    position: relative;
    width: 100%;
    line-height: 0; /* remove bottom gap */
}

.full-width-img {
    width: 100%;
    height: auto;
    display: block;
}

.partner-logos-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    padding: 10px 0;
}

.partner-logos-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-img-group {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.partner-img-group img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Icons Section */
.icons-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.icon-item {
    text-align: center;
}
.icon-item img {
    width: 150px;
    height: auto;
}

/* Info Section */
.info-section {
    padding: 0 0 60px 0;
    background: var(--bg-white);
}

.info-content {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 15px;
    color: #444;
}

.info-content h2 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.info-content p {
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.btn-read-more:hover {
    opacity: 0.9;
    color: #fff;
}

/* Roots Section */
.roots-section {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.roots-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.roots-text-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    text-align: center;
}

.roots-text-bar h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--bg-light);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 40px;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-nav a {
    color: var(--accent-red);
    font-size: 16px;
    font-weight: 600;
}
.footer-nav a:hover {
    text-decoration: underline;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 40px;
}

.footer-copyright {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.useful-links {
    text-align: center;
}

.useful-links h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a2b4c;
}

.useful-links ul {
    list-style: none;
}

.useful-links a {
    color: var(--link-blue);
    font-size: 15px;
    font-weight: 500;
    line-height: 2;
}

.useful-links a:hover {
    text-decoration: underline;
}

/* =========================================
   ELEMENTOR FIXES (Migrated Content)
   ========================================= */

/* Hero Image full width fix (HOMEPAGE ONLY) */
body.elementor-page-1448 .elementor-page-wrapper > .e-con-full:first-child img {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    display: block;
    object-fit: cover;
    max-height: 450px;
}

/* Inner Page LEADER Logo Calibration (Match Image 2) */
.page-content .elementor-widget-image img,
img.wp-image-4017,
img[src*="logo-leader"] {
    max-width: 320px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 35px auto !important;
    object-fit: contain !important;
}

/* Center card container */
.elementor-page-wrapper .e-con-boxed {
    max-width: 1100px;
    margin: -40px auto 40px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 40px;
    position: relative;
    z-index: 10;
}

.elementor-widget-heading h2 {
    text-align: center;
    color: #1e293b;
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 20px;
}

/* Universal Elementor Tabs System (LEADER 2023-2027 & LEADER 2014-2020) */
@media (min-width: 769px) {
    /* 1. DEFAULT FOR ALL TAB PAGES (e.g. LEADER 2023-2027):
          Vertical Sidebar on Left (240px) + Content Panel on Right */
    .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs,
    .e-n-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading,
    .e-n-tabs-heading {
        display: flex;
        flex-direction: column; /* VERTICAL SIDEBAR! */
        flex: 0 0 240px;
        width: 240px;
        max-width: 240px;
        min-width: 240px;
        flex-shrink: 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin: 0;
        box-sizing: border-box;
    }

    .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title,
    .e-n-tabs-heading > .e-n-tab-title {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 12px 18px;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        background: #ffffff;
        color: #444;
        border: none;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
        flex: none;
    }

    .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"],
    .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active,
    .e-n-tabs-heading > .e-n-tab-title.e-active {
        background: var(--accent-red);
        color: #ffffff;
    }

    .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-content,
    .e-n-tabs-content {
        display: block;
        flex: 1 1 0px;
        min-width: 0;
        width: calc(100% - 270px);
        max-width: calc(100% - 270px);
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* ====================================================
       ELEGANT CARD CONTAINER & SECTION DIVIDER SYSTEM
       ==================================================== */
    .elementor-widget-n-tabs {
        background: #ffffff;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
        margin-bottom: 30px;
    }

    /* LEADER 2014-2020, PROIECTE FINALIZATE & ARHIVĂ SESIUNI PROFESSIONAL BUTTON SYSTEM */
    @media (min-width: 769px) {
        /* 1. TOP TAB BUTTONS SYSTEM (Leader 2014-2020 | Leader 2023-2027) */
        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs {
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
        }

        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            max-width: 100%;
            height: 46px;
            min-height: 46px;
            gap: 12px;
            margin: 0 0 25px 0;
            padding-bottom: 16px;
            border-bottom: 2px solid #edf2f7;
            background: transparent;
            position: relative;
        }

        /* Inactive Top Tab Buttons: Professional Soft Grey Background & Border */
        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title {
            flex: 1 1 0px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            height: 44px;
            padding: 0 12px;
            margin: 0;
            font-size: 14px;
            font-weight: 600;
            color: #333333;
            background: #f4f6f9;
            border: 1px solid #dcdfe6;
            border-radius: 6px;
            box-sizing: border-box;
            cursor: pointer;
            transition: all 0.25s ease-in-out;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title:hover,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title:hover,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title:hover,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title:hover {
            background: #e4e8ef;
            color: var(--accent-red);
            border-color: #c0c4cc;
        }

        /* Active Top Tab Button: Deep Burgundy Red (#6b1d28) */
        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active,
        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"],
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"],
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"],
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"] {
            background: var(--accent-red);
            color: #ffffff;
            border-color: var(--accent-red);
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(107, 29, 40, 0.25);
        }

        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active *,
        .elementor-element-13955e2 > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"] *,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active *,
        .elementor-element-1f33e4b > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"] *,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active *,
        .elementor-element-9aee56d > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"] *,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title.e-active *,
        .page-content > .elementor .e-parent > .e-con-inner > .e-con-child > .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"] * {
            color: #ffffff;
        }

        /* 2. REMOVE ALL INNER LEFT PADDING & MARGIN OFFSETS */
        .elementor-widget-n-tabs .e-n-tabs-content,
        .elementor-widget-n-tabs [role="tabpanel"],
        .elementor-widget-n-tabs [role="tabpanel"] .e-con,
        .elementor-widget-n-tabs [role="tabpanel"] .e-con-inner,
        .elementor-widget-n-tabs [role="tabpanel"] .elementor-widget-container {
            padding-left: 0 !important;
            margin-left: 0 !important;
        }

        .e-n-tabs-content .e-n-tabs {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 30px;
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
        }

        /* 3. LEFT SUB-TABS SIDEBAR SYSTEM (Măsura 1, Măsura 2...) */
        .e-n-tabs-content .e-n-tabs-heading,
        .elementor-element-e10779c .e-n-tabs-heading {
            display: flex;
            flex-direction: column;
            flex: 0 0 220px;
            width: 220px;
            max-width: 220px;
            min-width: 220px;
            flex-shrink: 0;
            margin: 0;
            padding: 0 12px 0 0;
            border-right: 2px solid #edf2f7;
            border-bottom: none;
            background: transparent;
            gap: 8px;
            align-items: stretch;
        }

        /* Inactive Sub-Tab Buttons: Light Card Background & Subtle Border */
        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title,
        .elementor-element-e10779c .e-n-tab-title {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            width: 100%;
            height: 42px;
            min-height: 42px;
            padding: 0 12px;
            margin: 0;
            font-size: 13.5px;
            font-weight: 600;
            color: #444444;
            background: #f8f9fa;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            box-sizing: border-box;
            cursor: pointer;
            transition: all 0.25s ease-in-out;
        }

        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title:hover,
        .elementor-element-e10779c .e-n-tab-title:hover {
            background: #edf2f7;
            color: var(--accent-red);
            border-color: #cbd5e0;
        }

        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title *,
        .elementor-element-e10779c .e-n-tab-title * {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 0;
            padding: 0;
            line-height: 1;
            height: 100%;
            width: 100%;
        }

        /* Active Sub-Tab Button: Solid Burgundy Red (#6b1d28), White Text & Elevation Shadow */
        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title.e-active,
        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"],
        .elementor-element-e10779c .e-n-tab-title.e-active,
        .elementor-element-e10779c .e-n-tab-title[aria-selected="true"] {
            background: var(--accent-red);
            color: #ffffff;
            border-color: var(--accent-red);
            border-radius: 6px;
            box-shadow: 0 3px 8px rgba(107, 29, 40, 0.2);
        }

        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title.e-active *,
        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title[aria-selected="true"] *,
        .elementor-element-e10779c .e-n-tab-title.e-active *,
        .elementor-element-e10779c .e-n-tab-title[aria-selected="true"] * {
            color: #ffffff;
        }
    }

    /* MOBILE RESPONSIVE OPTIMIZATIONS (<768px) */
    @media (max-width: 768px) {
        .elementor-widget-n-tabs {
            padding: 16px 12px !important;
            border-radius: 8px !important;
        }

        .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading {
            flex-direction: column !important;
            gap: 8px !important;
            height: auto !important;
            min-height: 0 !important;
            padding-bottom: 14px !important;
            margin-bottom: 18px !important;
            border-bottom: 2px solid #edf2f7 !important;
        }

        .elementor-widget-n-tabs > .elementor-widget-container > .e-n-tabs > .e-n-tabs-heading > .e-n-tab-title {
            width: 100% !important;
            max-width: 100% !important;
            height: 46px !important;
            min-height: 46px !important;
            font-size: 14.5px !important;
            border-radius: 6px !important;
        }

        .e-n-tabs-content .e-n-tabs {
            flex-direction: column !important;
            gap: 18px !important;
        }

        .e-n-tabs-content .e-n-tabs-heading,
        .elementor-element-e10779c .e-n-tabs-heading {
            width: 100% !important;
            max-width: 100% !important;
            flex: 1 1 100% !important;
            border-right: none !important;
            padding-right: 0 !important;
            padding-bottom: 12px !important;
            border-bottom: 1px solid #e2e8f0 !important;
            gap: 6px !important;
        }

        .e-n-tabs-content .e-n-tabs-heading > .e-n-tab-title {
            width: 100% !important;
            height: 44px !important;
            min-height: 44px !important;
            font-size: 14px !important;
        }
    }  } }

        /* ====================================================
           ELEMENTOR NESTED ACCORDIONS (.e-n-accordion) WHITE TEXT
           ==================================================== */
        .e-n-accordion-item-title,
        summary.e-n-accordion-item-title {
            background: #f8f        /* ====================================================
           HOMEPAGE 4 ICON SECTIONS CONTAINERS & CARDS (.elementor-element-9525d1e)
           ==================================================== */
        /* 1. OUTER MAIN CONTAINER BACKGROUND FOR ALL 4 SECTIONS */
        .elementor-element-9525d1e {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important; /* Kept on 1 single line on desktop */
            align-items: stretch !important;
            justify-content: space-between !important;
            gap: 16px !important;
            width: 100% !important;
            max-width: 1200px !important;
            margin: 40px auto !important;
            padding: 24px 24px !important;
            background: #f4f6f9 !important; /* Outer container background */
            border: 1px solid #e2e8f0 !important;
            border-radius: 16px !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
            box-sizing: border-box !important;
        }

        /* 2. INNER INDIVIDUAL BACKGROUND FOR EACH OF THE 4 SECTIONS */
        .elementor-element-9525d1e > a.e-con-child,
        .elementor-element-9525d1e > a.e-con,
        .elementor-element-9525d1e > a {
            flex: 1 1 25% !important;
            max-width: 25% !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: space-between !important;
            background: #ffffff !important; /* Individual section background */
            border: 1px solid #dcdfe6 !important;
            border-radius: 10px !important;
            padding: 22px 12px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
            text-decoration: none !important;
            transition: all 0.25s ease-in-out !important;
            box-sizing: border-box !important;
        }

        .elementor-element-9525d1e > a:hover {
            background: #ffffff !important;
            border-color: #6b1d28 !important;
            transform: translateY(-4px) !important;
            box-shadow: 0 8px 24px rgba(107, 29, 40, 0.15) !important;
        }

        .elementor-element-9525d1e img {
            max-width: 120px !important;
            height: auto !important;
            object-fit: contain !important;
            display: block !important;
            margin: 0 auto 14px auto !important;
            transition: transform 0.25s ease !important;
        }

        .elementor-element-9525d1e > a:hover img {
            transform: scale(1.05) !important;
        }

        .elementor-element-9525d1e .elementor-heading-title {
            color: #1a2b4c !important;
            font-size: 14.5px !important;
            font-weight: 700 !important;
            text-align: center !important;
            letter-spacing: 0.5px !important;
            margin: 0 !important;
            line-height: 1.3 !important;
            transition: color 0.25s ease !important;
        }

        .elementor-element-9525d1e > a:hover .elementor-heading-title {
            color: #6b1d28 !important;
        }

        /* Mobile & Tablet responsiveness: ABSOLUTE FORCE EXACT 2 CARDS PER LINE (2x2 GRID) */
        @media (max-width: 768px) {
            body .elementor-element.elementor-element-9525d1e {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: wrap !important;
                justify-content: space-between !important;
                align-items: stretch !important;
                padding: 10px !important;
                gap: 8px !important;
            }

            body .elementor-element.elementor-element-9525d1e > a,
            body .elementor-element.elementor-element-9525d1e > a.e-con,
            body .elementor-element.elementor-element-9525d1e > a.e-con-child,
            body .elementor-element.elementor-element-9525d1e > .e-con-child {
                flex: 0 0 calc(50% - 5px) !important;
                width: calc(50% - 5px) !important;
                max-width: calc(50% - 5px) !important;
                min-width: calc(50% - 5px) !important;
                flex-basis: calc(50% - 5px) !important;
                margin: 0 0 10px 0 !important;
                padding: 12px 6px !important;
                box-sizing: border-box !important;
                clear: none !important;
            }

            body .elementor-element.elementor-element-9525d1e img {
                max-width: 75px !important;
                height: auto !important;
                margin: 0 auto 8px auto !important;
            }

            body .elementor-element.elementor-element-9525d1e .elementor-heading-title {
                font-size: 11.5px !important;
                line-height: 1.2 !important;
                text-align: center !important;
            }
        }

        /* FOOTER NAVIGATION PROFESSIONAL BUTTON SYSTEM & DARK BURGUNDY HOVER */
        .site-footer .footer-nav ul li a {
            display: inline-block !important;
            background: #ffffff !important;
            color: #1a2b4c !important;
            font-weight: 700 !important;
            font-size: 14px !important;
            border: 1px solid #dcdfe6 !important;
            border-radius: 8px !important;
            padding: 10px 20px !important;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
            text-decoration: none !important;
            transition: all 0.25s ease-in-out !important;
            box-sizing: border-box !important;
        }

        .site-footer .footer-nav ul li a:hover {
            background: #6b1d28 !important;
            color: #ffffff !important;
            border-color: #6b1d28 !important;
            transform: translateY(-3px) !important;
            box-shadow: 0 8px 20px rgba(107, 29, 40, 0.25) !important;
        }

        .site-footer .useful-links ul li a {
            display: inline-block !important;
            background: #ffffff !important;
            color: #0274be !important;
            font-weight: 600 !important;
            font-size: 13px !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 20px !important;
            padding: 6px 14px !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
            text-decoration: none !important;
            transition: all 0.25s ease-in-out !important;
        }

        .site-footer .useful-links ul li a:hover {
            background: #6b1d28 !important;
            color: #ffffff !important;
            border-color: #6b1d28 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 16px rgba(107, 29, 40, 0.2) !important;
        }   margin: 4px 0 !important;
            cursor: pointer !important;
            transition: all 0.25s ease-in-out !important;
        }

        .e-n-accordion-item-title *,
        summary.e-n-accordion-item-title * {
            color: #222222 !important;
        }

        /* HOVER / OPENED / ACTIVE ACCORDIONS -> PURE WHITE TEXT & ICONS */
        details[open] > summary.e-n-accordion-item-title,
        summary.e-n-accordion-item-title[aria-expanded="true"],
        summary.e-n-accordion-item-title:hover,
        summary.e-n-accordion-item-title:focus,
        .e-n-accordion-item:hover > summary.e-n-accordion-item-title,
        details[open] .e-n-accordion-item-title,
        .elementor-accordion .elementor-tab-title.elementor-active,
        .elementor-accordion .elementor-tab-title.elementor-active *,
        .elementor-accordion .elementor-tab-title.elementor-active a,
        .elementor-accordion .elementor-tab-title:hover,
        .elementor-accordion .elementor-tab-title:hover *,
        .elementor-accordion .elementor-tab-title:hover a,
        .elementor-accordion .elementor-tab-title:focus,
        .elementor-accordion .elementor-tab-title:focus *,
        .elementor-accordion .elementor-tab-title:focus a,
        .elementor-accordion-title.elementor-active,
        .elementor-accordion-title.elementor-active *,
        .elementor-accordion-title:hover,
        .elementor-accordion-title:hover *,
        .elementor-accordion-item .elementor-active,
        .elementor-accordion-item .elementor-active *,
        .elementor-toggle .elementor-tab-title.elementor-active,
        .elementor-toggle .elementor-tab-title.elementor-active *,
        .elementor-toggle .elementor-tab-title.elementor-active a,
        .elementor-toggle .elementor-tab-title:hover,
        .elementor-toggle .elementor-tab-title:hover *,
        .elementor-toggle .elementor-tab-title:hover a,
        [class*="accordion"] .elementor-active,
        [class*="accordion"] .elementor-active *,
        [class*="accordion"] .e-active,
        [class*="accordion"] .e-active * {
            background: var(--accent-red) !important;
            border-color: var(--accent-red) !important;
            color: #ffffff !important;
        }

        details[open] > summary.e-n-accordion-item-title *,
        summary.e-n-accordion-item-title[aria-selected="true"] *,
        summary.e-n-accordion-item-title[aria-expanded="true"] *,
        summary.e-n-accordion-item-title:hover *,
        summary.e-n-accordion-item-title:focus *,
        .e-n-accordion-item:hover > summary.e-n-accordion-item-title *,
        details[open] .e-n-accordion-item-title *,
        .elementor-accordion .elementor-tab-title.elementor-active svg *,
        .elementor-accordion .elementor-tab-title:hover svg *,
        .elementor-toggle .elementor-tab-title.elementor-active svg *,
        .elementor-toggle .elementor-tab-title:hover svg * {
            color: #ffffff !important;
            fill: #ffffff !important;
            stroke: #ffffff !important;
        }

        /* Right Content Area (Expanded Width Rest of Card) */
        .elementor-element-e10779c .e-n-tabs-content,
        .elementor-element-e10779c [role="tabpanel"] {
            display: block;
            flex: 1 1 auto;
            width: calc(100% - 275px);
            max-width: calc(100% - 275px);
            min-width: 0;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .elementor-element-e10779c .e-n-tabs-content *,
        .elementor-element-e10779c [role="tabpanel"] * {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            white-space: normal;
            word-break: normal;
            overflow-wrap: break-word;
        }

        .elementor-element-e10779c .e-con,
        /* ----------------------------------------------------
           INFO LA ZI PAGE 1:1 REPLICA MATCH WITH galcodrumoma.ro/services/ (.elementor-element-9a0bdfc)
           ---------------------------------------------------- */
        /* Hide unwanted icons, paperclips, overlays, categories, author/date metas */
        .elementor-element-9a0bdfc .overlay,
        .elementor-element-9a0bdfc .tpg-post-link i,
        .elementor-element-9a0bdfc .fa-link,
        .elementor-element-9a0bdfc .fa-paperclip,
        .elementor-element-9a0bdfc .post-meta,
        .elementor-element-9a0bdfc .post-categories,
        .elementor-element-9a0bdfc .tpg-el-image-wrap {
            display: none !important;
        }

        /* Force outer container to stack vertically: Heading on Top, Content Below */
        .elementor-element-9a0bdfc > .elementor-widget-container > .e-n-tabs,
        .elementor-element-9a0bdfc .e-n-tabs {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            max-width: 100% !important;
            align-items: center !important;
            justify-content: flex-start !important;
        }

        /* TOP HORIZONTAL TABS BAR CENTRED IN MIDDLE */
        .elementor-element-9a0bdfc .e-n-tabs-heading {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 12px !important;
            width: 100% !important;
            max-width: 450px !important;
            margin: 0 auto 30px auto !important;
            padding: 0 !important;
            border: none !important;
        }

        .elementor-element-9a0bdfc .e-n-tab-title {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 0 1 auto !important;
            min-width: 140px !important;
            text-align: center !important;
            background: #ffffff !important;
            color: #444444 !important;
            font-weight: 700 !important;
            font-size: 14px !important;
            border: 1px solid #e0e0e0 !important;
            border-radius: 4px !important;
            padding: 10px 22px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
        }

        .elementor-element-9a0bdfc .e-n-tab-title[aria-selected="true"] {
            background: #6b1d28 !important;
            color: #ffffff !important;
            border-color: #6b1d28 !important;
            box-shadow: 0 2px 8px rgba(107, 29, 40, 0.25) !important;
        }

        /* TAB CONTENT CONTAINER SPANS 100% FULL WIDTH BELOW TABS */
        .elementor-element-9a0bdfc .e-n-tabs-content,
        .elementor-element-9a0bdfc .e-n-tab-content {
            width: 100% !important;
            max-width: 100% !important;
            display: block !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        /* POST GRID IN INFO LA ZI */
        .elementor-element-9a0bdfc .rt-row {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 20px !important;
            margin: 0 !important;
            width: 100% !important;
        }

        /* CARD 1: FULL WIDTH (100%) ACROSS TOP matching Image 2 */
        .elementor-element-9a0bdfc .rt-row > .rt-grid-item:first-child {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            width: 100% !important;
            margin-bottom: 25px !important;
        }

        .elementor-element-9a0bdfc .rt-row > .rt-grid-item:first-child .rt-holder {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 8px !important;
            padding: 30px 20px !important;
            text-align: center !important;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
        }

        /* REMAINING CARDS: 3-COLUMN GRID (33.33%) matching Image 2 */
        .elementor-element-9a0bdfc .rt-row > .rt-grid-item:not(:first-child) {
            flex: 0 0 calc(33.333% - 14px) !important;
            max-width: calc(33.333% - 14px) !important;
            width: calc(33.333% - 14px) !important;
            margin-bottom: 20px !important;
            box-sizing: border-box !important;
        }

        .elementor-element-9a0bdfc .rt-holder {
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 8px !important;
            padding: 26px 20px !important;
            text-align: center !important;
            height: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
            transition: all 0.25s ease-in-out !important;
            box-sizing: border-box !important;
        }

        .elementor-element-9a0bdfc .rt-holder:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
            border-color: #cbd5e1 !important;
        }

        .elementor-element-9a0bdfc .entry-title-wrapper {
            margin-bottom: 10px !important;
        }

        .elementor-element-9a0bdfc .entry-title,
        .elementor-element-9a0bdfc .entry-title a {
            color: #1a2b4c !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            text-align: center !important;
            line-height: 1.4 !important;
            text-decoration: none !important;
            margin: 0 !important;
            transition: color 0.2s ease !important;
        }

        .elementor-element-9a0bdfc .entry-title a:hover {
            color: #6b1d28 !important;
        }

        .elementor-element-9a0bdfc .tpg-excerpt,
        .elementor-element-9a0bdfc .tpg-excerpt-inner {
            color: #555555 !important;
            font-size: 13.5px !important;
            line-height: 1.5 !important;
            text-align: center !important;
            margin-top: 6px !important;
        }

        @media (max-width: 991px) {
            .elementor-element-9a0bdfc .rt-row > .rt-grid-item:not(:first-child) {
                flex: 0 0 calc(50% - 10px) !important;
                max-width: calc(50% - 10px) !important;
                width: calc(50% - 10px) !important;
            }
        }

        @media (max-width: 576px) {
            .elementor-element-9a0bdfc .rt-row > .rt-grid-item:not(:first-child) {
                flex: 0 0 100% !important;
                max-width: 100% !important;
                width: 100% !important;
            }
        }

        /* ----------------------------------------------------
           TOP HORIZONTAL TAB BARS (.elementor-element-13955e2, .elementor-element-1f33e4b, .elementor-element-9aee56d)
           ---------------------------------------------------- */
        .elementor-element-13955e2 .e-n-tabs-heading,
        .elementor-element-1f33e4b .e-n-tabs-heading,
        .elementor-element-9aee56d .e-n-tabs-heading {
            width: 100%;
            max-width: 100%;
            flex: 1 1 100%;
            display: block;
            float: none;
        }
    }
        /* 3. STRICT TAB PANEL VISIBILITY CONTROL: HIDE ALL INACTIVE TAB PANELS */
        .e-n-tabs-content > [role="tabpanel"] {
            display: none !important;
        }

        .e-n-tabs-content > [role="tabpanel"].e-active,
        .e-n-tabs-content > [role="tabpanel"][aria-hidden="false"] {
            display: block !important;
        }

        /* Inner content expansion */
        .elementor-widget-n-tabs .e-con,
        .elementor-widget-n-tabs .tpg-excerpt,
        .elementor-widget-n-tabs .tpg-excerpt-inner {
            width: 100% !important;
            max-width: 100% !important;
            flex: 1 1 100% !important;
        }
    }
}

@media (max-width: 768px) {
    .e-n-tabs {
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .e-n-tabs-heading {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .e-n-tabs-content {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .elementor-page-wrapper .e-con-boxed {
        margin: 15px auto !important;
        padding: 20px 15px !important;
        width: 100% !important;
    }
}

.e-n-tab-title {
    background: #ffffff;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: all 0.2s;
    text-align: center;
}

.e-n-tab-title:hover {
    background: #f9f9f9;
}

.e-n-tab-title[aria-selected="true"],
.e-n-tab-title.e-active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    font-weight: 600;
}

.e-n-tabs-content {
    flex-grow: 1;
    min-width: 0;
}

.e-n-tabs-content .e-con-child,
.e-n-tabs-content [role="tabpanel"] {
    display: none;
    padding: 0;
    background: transparent;
    border: none;
    animation: fadeIn 0.4s;
}

.e-n-tabs-content .e-con-child.e-active,
.e-n-tabs-content [role="tabpanel"].e-active {
    display: block;
}

/* Accordion fixes */
.e-n-accordion-item {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.e-n-accordion-item-title {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.e-n-accordion-item-title-text {
    font-size: 14px;
    color: #333;
}
.e-n-accordion-item[open] .e-closed { display: none; }
.e-n-accordion-item:not([open]) .e-opened { display: none; }

/* The Post Grid (TPG) Fixes */
.tpg-post-link {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.tpg-post-link::before {
    content: '\f0c1'; /* FontAwesome link icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #999;
    font-size: 13px;
}
.tpg-post-link:hover {
    color: var(--accent-red);
}
.rt-list-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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