/* =========================================================
   IMPRO MEDIA - HOME AUTOMATION PAGE
   CSS izolat pentru homepage.
   Nu folosește #banner, .main-slider, .slide-item, .overlay
   ca să nu intre în conflict cu app2.css.
   ========================================================= */

:root {
    --home-ai-blue: #1678ff;
    --home-ai-blue-dark: #0d49c7;
    --home-ai-turquoise: #00c8d7;
    --home-ai-violet: #6752f0;
    --home-ai-dark: #05070b;
    --home-ai-ink: #101820;
    --home-ai-muted: #2f4558;
    --home-ai-light-bg: #e8eef4;
}

/* HERO */

.home-ai-hero {
    position: relative;
    overflow: hidden;
    background: #05070b;
}

.home-ai-hero .swiper-container,
.home-ai-hero .swiper-wrapper,
.home-ai-hero .swiper-slide {
    min-height: 660px;
}

.home-ai-hero-slide {
    position: relative;
    min-height: 660px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-ai-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 30%, rgba(0, 200, 215, 0.30), transparent 31%),
        radial-gradient(circle at 74% 38%, rgba(22, 120, 255, 0.18), transparent 34%),
        linear-gradient(90deg, rgba(5, 7, 11, 0.82), rgba(5, 7, 11, 0.48), rgba(5, 7, 11, 0.22));
}

.home-ai-hero-content {
    position: relative;
    z-index: 5;
    min-height: 660px;
    display: flex;
    align-items: center;
    color: #fff;
}



.home-ai-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 4px 0 6px;
    color: var(--home-ai-turquoise);
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1.7;
}

.home-ai-hero-title {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.17;
    margin: 0 0 28px;
    text-transform: uppercase;
    letter-spacing: 4px;
    max-width: 1050px;
    color: #fff;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.home-ai-hero-title span {
    color: var(--home-ai-turquoise);
}

.home-ai-hero-text {
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 1.85;
    max-width: 900px;
    margin: 0 0 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.94);
}

.home-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.home-ai-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 24px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 1.2px;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.home-ai-btn-primary {
    background: linear-gradient(135deg, var(--home-ai-blue), var(--home-ai-turquoise));
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 200, 215, 0.32);
}

.home-ai-btn-primary:hover,
.home-ai-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(0, 200, 215, 0.42);
}

.home-ai-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.80);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.home-ai-btn-secondary:hover,
.home-ai-btn-secondary:focus {
    background: #fff;
    color: #111;
    text-decoration: none;
}

/* HERO NAV */

.home-ai-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.home-ai-hero-nav:hover {
    background: rgba(0, 200, 215, 0.28);
    border-color: rgba(0, 200, 215, 0.75);
}

.home-ai-hero-prev {
    left: 28px;
}

.home-ai-hero-next {
    right: 28px;
}

/* SECTIONS */

.home-ai-section {
    padding: 92px 0;
}

.home-ai-section-light {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 200, 215, 0.10), transparent 27%),
        radial-gradient(circle at 88% 10%, rgba(22, 120, 255, 0.08), transparent 30%),
        var(--home-ai-light-bg);
}

.home-ai-section-white {
    background: #fff;
}

.home-ai-section-dark {
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 200, 215, 0.15), transparent 28%),
        radial-gradient(circle at 82% 70%, rgba(22, 120, 255, 0.12), transparent 30%),
        #05070b;
    color: #fff;
}

.home-ai-section-title {
    text-align: center;
    margin-bottom: 58px;
}

.home-ai-section-title .small-title {
    display: block;
    margin-bottom: 18px;
    color: var(--home-ai-blue);
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 13px;
}

.home-ai-section-title h2 {
    font-family: "Lato", sans-serif;
    font-size: 34px;
    line-height: 1.48;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 22px;
    color: var(--home-ai-ink);
}

.home-ai-section-title p {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Open Sans", sans-serif;
    font-size: 17px;
    line-height: 1.85;
    font-weight: 300;
    color: #26313d;
}

.home-ai-section-dark .home-ai-section-title h2 {
    color: #fff;
}

.home-ai-section-dark .home-ai-section-title p {
    color: rgba(255, 255, 255, 0.82);
}

/* EQUAL ROWS */

.home-ai-equal-row {
    display: flex;
    flex-wrap: wrap;
}

.home-ai-equal-row > [class*="col-"] {
    display: flex;
}

/* CARDS */

.home-ai-card,
.home-ai-alt-card {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(16, 24, 32, 0.14);
    border: 1px solid rgba(16, 24, 32, 0.06);
}

.home-ai-card {
    padding: 38px 34px;
    margin-bottom: 30px;
    min-height: 255px;
    border-top: 4px solid var(--home-ai-turquoise);
}

.home-ai-card h3,
.home-ai-alt-card h3,
.home-ai-pain-item h3 {
    font-family: "Lato", sans-serif;
    color: var(--home-ai-ink);
    text-transform: uppercase;
}

.home-ai-card h3 {
    font-size: 21px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 2.5px;
    margin-top: 0;
    margin-bottom: 20px;
}

.home-ai-card p,
.home-ai-card li,
.home-ai-alt-card p,
.home-ai-pain-item p {
    color: var(--home-ai-muted);
    line-height: 1.85;
    font-size: 15px;
    font-weight: 300;
}

.home-ai-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}

/* PAIN POINTS */

.home-ai-pain-grid {
    counter-reset: pain-counter;
}

.home-ai-pain-item {
    position: relative;
    width: 100%;
    background: #fff;
    padding: 34px 34px 34px 98px;
    margin-bottom: 28px;
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(16, 24, 32, 0.11);
    border-left: 5px solid var(--home-ai-turquoise);
    min-height: 180px;
}

.home-ai-pain-item::before {
    counter-increment: pain-counter;
    content: "0" counter(pain-counter);
    position: absolute;
    top: 34px;
    left: 28px;
    font-family: "Lato", sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 300;
    color: var(--home-ai-turquoise);
    opacity: 0.72;
}

.home-ai-pain-item h3 {
    margin-top: 0;
    margin-bottom: 13px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2.5px;
}

/* PACKAGES */

#packages.home-ai-section-light {
    background:
        linear-gradient(180deg, #e8eef4 0%, #dde6ef 100%);
}

.home-ai-package {
    position: relative;
    overflow: hidden;
    min-height: 455px;
    border-top: none;
    box-shadow: 0 22px 55px rgba(16, 24, 32, 0.16);
}

.home-ai-package::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 118px;
    height: 118px;
    background: linear-gradient(135deg, rgba(0, 200, 215, 0.28), rgba(22, 120, 255, 0.04));
    border-bottom-left-radius: 118px;
}

.home-ai-package::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--home-ai-blue), var(--home-ai-turquoise));
}

.home-ai-package .tag {
    display: block;
    margin-bottom: 14px;
    color: var(--home-ai-blue);
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 4px;
}

.home-ai-package .package-cta {
    margin-top: 22px;
}

.home-ai-package .package-cta a {
    color: var(--home-ai-blue);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}

/* DARK AUTOMATION CARDS */

.home-ai-automation-tile {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    padding: 34px 30px 32px;
    border-radius: 10px;
    margin-bottom: 30px;
    min-height: 275px;
    border: 1px solid rgba(0, 200, 215, 0.16);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.23);
}

.home-ai-automation-tile::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -62px;
    bottom: -62px;
    border-radius: 50%;
    background: rgba(0, 200, 215, 0.12);
}

.home-ai-automation-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-ai-blue), var(--home-ai-turquoise));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 24px;
    box-shadow: 0 12px 34px rgba(0, 200, 215, 0.28);
}

.home-ai-automation-tile h3 {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.home-ai-automation-tile p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    margin-bottom: 0;
    font-weight: 300;
}

/* ALT CARDS */

.home-ai-alt-card {
    padding: 36px 34px;
    min-height: 330px;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--home-ai-turquoise);
}

#case-studies .home-ai-alt-card {
    min-height: 350px;
}

#other-services .home-ai-alt-card {
    min-height: 285px;
}

.home-ai-alt-card h3 {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 2.5px;
    margin-top: 0;
    margin-bottom: 18px;
}

.home-ai-theme-btn {
    display: inline-block;
    padding: 9px 25px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--home-ai-blue), var(--home-ai-turquoise));
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 9px 22px rgba(0, 200, 215, 0.22);
    text-decoration: none;
}

.home-ai-theme-btn:hover,
.home-ai-theme-btn:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(0, 200, 215, 0.32);
}

/* WHY US */

.home-ai-why-strip {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
    overflow: hidden;
}

.home-ai-why-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e5eaf0;
}

.home-ai-why-row:last-child {
    border-bottom: none;
}

.home-ai-why-number {
    width: 112px;
    min-width: 112px;
    background: linear-gradient(135deg, var(--home-ai-blue), var(--home-ai-turquoise));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Lato", sans-serif;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.home-ai-why-content {
    padding: 32px 38px;
}

.home-ai-why-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: "Lato", sans-serif;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--home-ai-ink);
}

.home-ai-why-content p {
    margin-bottom: 0;
    color: var(--home-ai-muted);
    line-height: 1.85;
    font-weight: 300;
}

/* FINAL CTA */

.home-ai-final-cta {
    background-image: url("../../images/backgrounds/footer.jpg");
    background-size: cover;
    background-position: center center;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 115px 0;
}

.home-ai-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 11, 0.78);
}

.home-ai-final-cta .container {
    position: relative;
    z-index: 2;
}

.home-ai-final-cta h2 {
    font-family: "Lato", sans-serif;
    font-size: 38px;
    line-height: 1.45;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #fff;
}

.home-ai-final-cta p {
    max-width: 850px;
    margin: 0 auto 34px;
    font-size: 18px;
    line-height: 1.85;
    font-weight: 300;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .home-ai-hero .swiper-container,
    .home-ai-hero .swiper-wrapper,
    .home-ai-hero .swiper-slide,
    .home-ai-hero-slide,
    .home-ai-hero-content {
        min-height: 600px;
    }

    .home-ai-hero-title {
        font-size: 42px;
        letter-spacing: 4px;
    }

    .home-ai-hero-text {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .home-ai-hero .swiper-container,
    .home-ai-hero .swiper-wrapper,
    .home-ai-hero .swiper-slide,
    .home-ai-hero-slide,
    .home-ai-hero-content {
        min-height: auto;
    }

    .home-ai-hero-content {
        padding: 120px 0 82px;
    }

    .home-ai-eyebrow {
        letter-spacing: 3px;
        line-height: 1.8;
    }

    .home-ai-hero-title {
        font-size: 30px;
        letter-spacing: 3px;
    }

    .home-ai-section {
        padding: 70px 0;
    }

    .home-ai-section-title h2 {
        font-size: 27px;
        letter-spacing: 3px;
    }

    .home-ai-equal-row {
        display: block;
    }

    .home-ai-equal-row > [class*="col-"] {
        display: block;
    }

    .home-ai-package,
    .home-ai-alt-card,
    .home-ai-automation-tile,
    .home-ai-card {
        min-height: auto !important;
    }

    .home-ai-pain-item {
        padding: 28px 24px 28px 76px;
    }

    .home-ai-pain-item::before {
        left: 22px;
        font-size: 28px;
    }

    .home-ai-why-row {
        display: block;
    }

    .home-ai-why-number {
        width: 100%;
        min-width: 100%;
        padding: 16px 0;
    }

    .home-ai-why-content {
        padding: 26px;
    }

    .home-ai-final-cta h2 {
        font-size: 27px;
        letter-spacing: 3px;
    }

    .home-ai-hero-nav {
        display: none;
    }
}

/* Stronger readable text inside white cards */

.home-ai-card p,
.home-ai-card li,
.home-ai-alt-card p,
.home-ai-pain-item p {
    color: #1f2a35;
}

.home-ai-card strong,
.home-ai-alt-card strong,
.home-ai-pain-item strong {
    color: #101820;
    font-weight: 700;
}

.home-ai-card h3,
.home-ai-alt-card h3,
.home-ai-pain-item h3 {
    color: #05070b;
    font-weight: 400;
}

/* Font stabilization for homepage content */

.home-ai-content {
    font-family: "Open Sans", sans-serif;
    color: #1f2a35;
    font-size: 15px;
    line-height: 1.85;
    font-weight: 300;
}

.home-ai-content p,
.home-ai-content li {
    font-family: "Open Sans", sans-serif;
    color: #1f2a35 !important;
    font-size: 15px;
    line-height: 1.85;
    font-weight: 300;
}

.home-ai-content h2,
.home-ai-content h3 {
    font-family: "Lato", sans-serif;
    color: #05070b;
}

.home-ai-content strong {
    color: #05070b;
    font-weight: 700;
}

.home-ai-content .home-ai-section-title h2 {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    letter-spacing: 5px;
    color: #05070b;
}

.home-ai-content .home-ai-section-title p {
    color: #26313d !important;
    font-size: 17px;
    line-height: 1.85;
}

/* FINAL CONSISTENT TEXT RENDERING */

body .home-ai-content .home-ai-section-title p,
body .home-ai-content .home-ai-card p,
body .home-ai-content .home-ai-card li,
body .home-ai-content .home-ai-alt-card p,
body .home-ai-content .home-ai-pain-item p {
    color: #3f5668 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body .home-ai-content .home-ai-card h3,
body .home-ai-content .home-ai-alt-card h3,
body .home-ai-content .home-ai-pain-item h3 {
    color: #05070b !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

body .home-ai-content .home-ai-section-title h2 {
    color: #05070b !important;
    font-weight: 300 !important;
    opacity: 1 !important;
}

body .home-ai-content strong {
    color: #05070b !important;
    font-weight: 700 !important;
}

body .home-ai-content .home-ai-section-title {
    margin-bottom: 68px !important;
}

body .home-ai-content .home-ai-section-title .small-title {
    margin-bottom: 22px !important;
}

body .home-ai-content .home-ai-section-title h2 {
    margin-bottom: 28px !important;
}

body .home-ai-content .home-ai-section-title p {
    max-width: 850px !important;
}

body .home-ai-content .home-ai-section-title h2 {
    font-family: "Open Sans", sans-serif !important;
    font-size: 28px !important;
    line-height: 1.45 !important;
    font-weight: 300 !important;
    letter-spacing: 2.8px !important;
    text-transform: uppercase !important;
    color: #05070b !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 28px !important;
}

/* =========================================================================
   IMPRO MEDIA - REFINARE PREMIUM (DOAR CASETE ȘI UMBRE) GEMINI
   Adăugați acest bloc strict la finalul fișierului original home-automation.css
   ========================================================================= */

/* 1. REFINARE CASETE BENEFICII (.home-ai-card)
   - Elimină linia de sus uniformă brută ce clipea peste marginile rotunjite.
   - Înlocuiește umbra grea și neagră cu o umbră aerisită multi-strat (soft ambient).
   - Adaugă o micro-interacțiune de lift fluid și schimbare de culoare pe text. */
.home-ai-card {
    border-top: none !important; /* Elimină accentul rigid direct lipit */
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 32, 0.05);
    padding: 38px 34px;
    margin-bottom: 30px;
    min-height: 255px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 16px rgba(16, 24, 32, 0.02),
        0 10px 32px rgba(16, 24, 32, 0.04);
}

/* Scurtarea / însetarea liniei superioare: nu se mai lipește de colțuri */
.home-ai-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;   /* Însetare elegantă */
    right: 24px;  /* Însetare elegantă */
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--home-ai-turquoise);
    transition: all 0.35s ease;
}

.home-ai-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 200, 215, 0.15);
    box-shadow: 
        0 8px 24px rgba(16, 24, 32, 0.04),
        0 20px 48px rgba(16, 24, 32, 0.08);
}

.home-ai-card:hover h3 {
    color: var(--home-ai-blue);
    transition: color 0.3s ease;
}

/* 2. REFINARE CASETE ALTERNATIVE (.home-ai-alt-card)
   - Elimină cota de jos rigidă ce deforma baza cardului.
   - Adaugă o linie eliptică însetată cu un gradient fluid modern. */
.home-ai-alt-card {
    border-bottom: none !important;
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 32, 0.05);
    padding: 36px 34px;
    margin-bottom: 30px;
    min-height: 330px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 16px rgba(16, 24, 32, 0.02),
        0 10px 32px rgba(16, 24, 32, 0.04);
}

.home-ai-alt-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 34px;
    right: 34px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--home-ai-blue), var(--home-ai-turquoise));
    transition: all 0.35s ease;
}

.home-ai-alt-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 120, 255, 0.15);
    box-shadow: 
        0 8px 24px rgba(16, 24, 32, 0.04),
        0 20px 48px rgba(16, 24, 32, 0.08);
}

.home-ai-alt-card:hover h3 {
    color: var(--home-ai-blue);
    transition: color 0.3s ease;
}

/* 3. REFINARE PUNCTE NEVRALGICE (.home-ai-pain-item)
   - Accentuează lateralul dintr-o linie fină cu degradé însetată (top-bottom 20px).
   - Tranziționează natural pe orizontală (+4px), dând o senzație tactilă deliberată. */
.home-ai-pain-item {
    border-left: none !important; /* Elimină linia masivă originală de 5px */
    position: relative;
    width: 100%;
    background: #ffffff;
    padding: 34px 34px 34px 84px; /* Spațiu intern optic corectat */
    margin-bottom: 28px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 32, 0.05);
    min-height: 180px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 16px rgba(16, 24, 32, 0.02),
        0 8px 28px rgba(16, 24, 32, 0.04);
}

/* Crearea unui accent stânga elegant centrat, care nu se bate cu colțurile rotunjite */
.home-ai-pain-item::before {
    content: "" !important;
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--home-ai-blue), var(--home-ai-turquoise));
    opacity: 0.85;
    transition: all 0.35s ease;
}

.home-ai-pain-item:hover {
    transform: translateX(4px); /* Traduce o mișcare laterală primitoare */
    border-color: rgba(0, 200, 215, 0.12);
    box-shadow: 
        0 8px 24px rgba(16, 24, 32, 0.05),
        0 16px 36px rgba(16, 24, 32, 0.06);
}

/* 4. REFINARE CASETE PACHETE (.home-ai-package)
   - Adresăm casetele de pachete (Pachet 3, Pachet 4) care au o linie rigidă de jos.
   - Rescriem pseudo-elementul ::after pentru a fi elegant însetat, fin, cu margini rotunjite și să plutească discret. */
.home-ai-package {
    border-top: none !important;
    border-bottom: none !important;
    position: relative;
    border-radius: 12px !important;
    border: 1px solid rgba(16, 24, 32, 0.05) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 16px rgba(16, 24, 32, 0.02), 0 10px 32px rgba(16, 24, 32, 0.04) !important;
    
    /* Afișare flexibilă pe verticală care forțează cardurile să poată alinia elementele intern */
    display: flex !important;
    flex-direction: column !important;
}

.home-ai-package::after {
    content: "" !important;
    position: absolute;
    bottom: 0;
    left: 34px !important;     /* Însetare premium identică cu restul elementelor */
    right: 34px !important;    /* Însetare premium identică cu restul elementelor */
    height: 3px !important;
    border-radius: 3px 3px 0 0 !important;
    background: linear-gradient(90deg, var(--home-ai-blue), var(--home-ai-turquoise)) !important;
    width: auto !important;     /* Previne extinderea pe 100% lățime masivă */
    transition: all 0.35s ease !important;
}

.home-ai-package:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(22, 120, 255, 0.15) !important;
    box-shadow: 0 8px 24px rgba(16, 24, 32, 0.04), 0 20px 48px rgba(16, 24, 32, 0.08) !important;
}

/* 4.1. ALINIERE AUTOMATĂ BUTOANE (ECHILIBRARE ÎNĂLȚIME)
   - Împinge în jos automat clasa ta de buton ".dt-btn" sau orice link sau container de buton.
   - Acest lucru echilibrează perfect designul chiar dacă textul din Pachetul 4 are mai puține rânduri!
   - Se elimină suprascrierea de stil pentru a lăsa clasa ta nativă ".dt-btn.small" să ruleze ideal. */
.home-ai-package .dt-btn,
.home-ai-package a,
.home-ai-package button,
.home-ai-package .btn {
    margin-top: auto !important; /* Împinge butonul la bază în mod elastic */
    align-self: flex-start !important; /* Menține butonul aliniat frumos la stânga conform mockup-ului */
    display: inline-block !important; /* Păstrează comportamentul de buton mic */
}

/* 5. REFINARE CASETE INCHISE / AUTOMATIZĂRI (.home-ai-automation-tile)
   - Stil de sticlă mată subtilă (Glassmorphism) pentru aspect premium, non-șablon.
   - Cercul din colțul dreapta devine un gradient ambient fluid.
   - Corectură completă contrast text: forțează titlurile să fie albe și descrierile să fie clar lizibile. */
.home-ai-automation-tile {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: 1px solid rgba(0, 200, 215, 0.22) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Forțează titlurile din casetele întunecate să rămână albe cu hover turcoaz */
.home-ai-automation-tile h1,
.home-ai-automation-tile h2,
.home-ai-automation-tile h3,
.home-ai-automation-tile h4,
.home-ai-automation-tile h5,
.home-ai-automation-tile h6,
.home-ai-automation-tile .home-ai-title,
.home-ai-automation-tile [class*="title"] {
    color: #ffffff !important;
    transition: color 0.3s ease !important;
}

.home-ai-automation-tile:hover h1,
.home-ai-automation-tile:hover h2,
.home-ai-automation-tile:hover h3,
.home-ai-automation-tile:hover h4,
.home-ai-automation-tile:hover h5,
.home-ai-automation-tile:hover h6,
.home-ai-automation-tile:hover .home-ai-title,
.home-ai-automation-tile:hover [class*="title"] {
    color: #00c8d7 !important;
}

/* Forțează paragrafele, span-urile și elementele de listă să aibă contrast premium deschis (slate-200 / 85% opacitate) */
.home-ai-automation-tile p,
.home-ai-automation-tile span,
.home-ai-automation-tile li,
.home-ai-automation-tile div:not(.logo):not(.icon):not(.home-ai-automation-icon) {
    color: rgba(241, 245, 249, 0.85) !important;
}

/* Păstrează comportamentul și culorile specifice ale iconiței din logo */
.home-ai-automation-tile .home-ai-automation-icon,
.home-ai-automation-tile [class*="icon"] {
    color: #ffffff !important;
}

.home-ai-automation-tile::after {
    background: radial-gradient(circle, rgba(0, 200, 215, 0.18) 0%, transparent 70%) !important;
    width: 180px !important;
    height: 180px !important;
    right: -50px !important;
    bottom: -50px !important;
    transition: transform 0.6s ease !important;
}

.home-ai-automation-tile:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(0, 200, 215, 0.32) !important;
    border-top-color: rgba(0, 200, 215, 0.50) !important;
    box-shadow: 0 18px 48px rgba(0, 200, 215, 0.12), 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.home-ai-automation-tile:hover::after {
    transform: scale(1.18);
}

.home-ai-automation-icon {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.home-ai-automation-tile:hover .home-ai-automation-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 200, 215, 0.40) !important;
}
/* Împiedică titlurile să iasă din casete pe hover (Protecție conflicte WordPress/Elementor) */
.home-ai-card:hover h1,
.home-ai-card:hover h2,
.home-ai-card:hover h3,
.home-ai-card:hover h4,
.home-ai-alt-card:hover h1,
.home-ai-alt-card:hover h2,
.home-ai-alt-card:hover h3,
.home-ai-alt-card:hover h4 {
    transform: none !important; /* Anulează orice deplasare pe verticală din constructor */
    margin-top: 0 !important;   /* Resetează marginile negative care împing textul în sus */
}



/* 1. Blochează mișcarea pe verticală a containerului de detalii la trecerea mouse-ului */
.service-box.home-ai-card:hover > .details,
.home-ai-card.service-box:hover > .details {
    transform: none !important;
    -webkit-transform: none !important;
    overflow: visible !important;
}

/* 2. Păstrează textul descriptiv original complet vizibil (nu-l face transparent) */
.service-box.home-ai-card:hover > .details > .content,
.home-ai-card.service-box:hover > .details > .content {
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* 3. Ascunde definitiv textul glisant secundar (.full) care dubla textul */
.service-box.home-ai-card:hover > .details > .full,
.home-ai-card.service-box:hover > .details > .full {
    opacity: 0 !important;
    display: none !important;
}

/* 4. Protejează titlul h3 împotriva oricăror margini parazite sau transformări */
.service-box.home-ai-card:hover h3,
.home-ai-card.service-box:hover h3 {
    color: #2d81e0 !important; /* Devine albastru elegant pe hover */
    transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}


.home-ai-section-title .small-title,
.small-title {
    line-height: 1.6 !important;    /* Înălțime verticală optimă */
    padding-top: 5px !important;     /* Spațiu de siguranță pentru diacritice */
    padding-bottom: 2px !important;  
    overflow: visible !important;    /* Forțează browserul să nu secționeze textul */
}