/* =========================================================
   SOEL TECHNOLOGIES — HOMEPAGE SOLUTION CARD ENHANCEMENTS
   Scoped to .soel-solutions-modern so the rest of the theme
   keeps its original styling.
   ========================================================= */

.soel-solutions-modern .row {
    align-items: stretch;
}

.soel-solutions-modern .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card {
    --soel-accent: #6548a9;
    --soel-accent-rgb: 101, 72, 169;

    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 485px;
    padding: 42px 34px 34px;
    margin-bottom: 0;
    overflow: hidden;

    background: linear-gradient(145deg, #ffffff 0%, #ffffff 72%, rgba(var(--soel-accent-rgb), 0.035) 100%);
    border: 1px solid rgba(var(--soel-accent-rgb), 0.20);
    border-radius: 34px 6px 34px 6px;
    box-shadow: 0 10px 34px rgba(25, 20, 52, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Animated accent line */
.soel-solutions-modern .single-solutions-box.soel-solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--soel-accent), #ff5d22);
    transition: width 0.45s ease;
    z-index: 2;
}

/* Soft decorative glow */
.soel-solutions-modern .single-solutions-box.soel-solution-card::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--soel-accent-rgb), 0.13) 0%, rgba(var(--soel-accent-rgb), 0) 70%);
    transform: scale(0.82);
    opacity: 0.75;
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--soel-accent-rgb), 0.38);
    box-shadow: 0 22px 55px rgba(25, 20, 52, 0.13);
}

.soel-solutions-modern .single-solutions-box.soel-solution-card:hover::before {
    width: 100%;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card:hover::after {
    transform: scale(1.08);
    opacity: 1;
}

/* Category eyebrow */
.soel-solutions-modern .soel-card-label {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(var(--soel-accent-rgb), 0.08);
    color: var(--soel-accent);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.soel-solutions-modern .soel-card-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--soel-accent);
    box-shadow: 0 0 0 4px rgba(var(--soel-accent-rgb), 0.10);
}

/* Icon treatment */
.soel-solutions-modern .single-solutions-box.soel-solution-card .icon {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    border-radius: 28px;
    background: rgba(var(--soel-accent-rgb), 0.07);
    transition: transform 0.35s ease, background 0.35s ease;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card .icon img {
    width: 82px !important;
    height: 82px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card:hover .icon {
    transform: translateY(-3px) rotate(-2deg);
    background: rgba(var(--soel-accent-rgb), 0.11);
}

.soel-solutions-modern .single-solutions-box.soel-solution-card:hover .icon img {
    transform: scale(1.08);
}

/* Text */
.soel-solutions-modern .single-solutions-box.soel-solution-card h2 {
    position: relative;
    z-index: 3;
    margin-bottom: 15px;
    font-size: 27px;
    line-height: 1.22;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card h2 a {
    color: #101038;
    transition: color 0.3s ease;
}

.soel-solutions-modern .single-solutions-box.soel-solution-card:hover h2 a {
    color: var(--soel-accent);
}

.soel-solutions-modern .single-solutions-box.soel-solution-card p {
    position: relative;
    z-index: 3;
    margin-bottom: 24px;
    color: #66647a;
    font-size: 16px;
    line-height: 1.75;
}

/* CTA stays at the bottom of cards with different text lengths */
.soel-solutions-modern .soel-card-link {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: auto;
    color: var(--soel-accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.soel-solutions-modern .soel-card-link i {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.soel-solutions-modern .soel-card-link:hover {
    color: #ff5d22;
}

.soel-solutions-modern .soel-card-link:hover i,
.soel-solutions-modern .single-solutions-box.soel-solution-card:hover .soel-card-link i {
    transform: translateX(5px);
}

/* Accent variants — all within the existing SOEL blue/purple/orange family */
.soel-solutions-modern .soel-accent-blue {
    --soel-accent: #315fca;
    --soel-accent-rgb: 49, 95, 202;
}

.soel-solutions-modern .soel-accent-purple {
    --soel-accent: #744fc6;
    --soel-accent-rgb: 116, 79, 198;
}

.soel-solutions-modern .soel-accent-teal {
    --soel-accent: #168ca1;
    --soel-accent-rgb: 22, 140, 161;
}

.soel-solutions-modern .soel-accent-violet {
    --soel-accent: #8c4dc0;
    --soel-accent-rgb: 140, 77, 192;
}

.soel-solutions-modern .soel-accent-indigo {
    --soel-accent: #4459a9;
    --soel-accent-rgb: 68, 89, 169;
}

.soel-solutions-modern .soel-accent-magenta {
    --soel-accent: #a43f9d;
    --soel-accent-rgb: 164, 63, 157;
}

/* Keyboard accessibility */
.soel-solutions-modern .soel-card-link:focus-visible,
.soel-solutions-modern .single-solutions-box.soel-solution-card h2 a:focus-visible {
    outline: 3px solid rgba(255, 93, 34, 0.40);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Tablet */
@media only screen and (max-width: 991px) {
    .soel-solutions-modern .single-solutions-box.soel-solution-card {
        min-height: 455px;
        padding: 34px 26px 30px;
    }

    .soel-solutions-modern .single-solutions-box.soel-solution-card h2 {
        font-size: 24px;
    }
}

/* Mobile — hover effects should not create awkward jumps */
@media only screen and (max-width: 767px) {
    .soel-solutions-modern .row > [class*="col-"] {
        display: block;
    }

    .soel-solutions-modern .single-solutions-box.soel-solution-card {
        min-height: 0;
        border-radius: 28px 6px 28px 6px;
        padding: 30px 22px 28px;
    }

    .soel-solutions-modern .single-solutions-box.soel-solution-card .icon {
        width: 96px;
        height: 96px;
    }

    .soel-solutions-modern .single-solutions-box.soel-solution-card .icon img {
        width: 70px !important;
        height: 70px;
    }

    .soel-solutions-modern .single-solutions-box.soel-solution-card h2 {
        font-size: 23px;
    }

    .soel-solutions-modern .single-solutions-box.soel-solution-card:hover {
        transform: translateY(-4px);
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .soel-solutions-modern .single-solutions-box.soel-solution-card,
    .soel-solutions-modern .single-solutions-box.soel-solution-card::before,
    .soel-solutions-modern .single-solutions-box.soel-solution-card::after,
    .soel-solutions-modern .single-solutions-box.soel-solution-card .icon,
    .soel-solutions-modern .single-solutions-box.soel-solution-card .icon img,
    .soel-solutions-modern .soel-card-link i {
        transition: none !important;
    }
}
