
/* =========================================
   ROK CORE - SEARCH EVERYTHING
========================================= */

.rok-se {
    --rok-se-bg: #07172D;
    --rok-se-card-bg: #142A47;
    --rok-se-heading: #FFFFFF;
    --rok-se-highlight: #FF690D;
    --rok-se-subtitle: #B9C7DA;
    --rok-se-blue: #0789FF;
    --rok-se-orange: #FF690D;
    --rok-se-card-text: #FFFFFF;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    background: var(--rok-se-bg);
    color: var(--rok-se-heading);
    font-family: inherit;
    box-sizing: border-box;
}

.rok-se *,
.rok-se *::before,
.rok-se *::after {
    box-sizing: border-box;
}

.rok-se__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Eyebrow */

.rok-se__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--rok-se-blue);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.rok-se__eyebrow-line {
    display: inline-block;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: var(--rok-se-blue);
}

/* Heading */

.rok-se__heading {
    max-width: 950px;
    margin: 0 auto 5px;
    color: var(--rok-se-heading);
}

.rok-se__heading-before,
.rok-se__highlight {
    display: inline;
}

.rok-se__heading-before {
    color: var(--rok-se-heading);
}

.rok-se__highlight {
    color: var(--rok-se-highlight);
    transition: text-shadow 0.3s ease;
}

.rok-se__highlight:hover {
    text-shadow: 0 0 20px rgba(255, 105, 13, 0.4);
}

/* Subtitle */

.rok-se__subtitle {
    max-width: 760px;
    margin: 0 auto 48px;
    color: var(--rok-se-subtitle);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
}

/* Feature grid */

.rok-se__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 42px;
}

/* Feature card */

.rok-se__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 24px 14px;
    overflow: hidden;
    border: 1px solid rgba(137, 174, 218, 0.12);
    border-radius: 12px;
    background: var(--rok-se-card-bg);
    color: var(--rok-se-card-text);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Soft decorative glow */

.rok-se__card::before {
    position: absolute;
    top: -55px;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(7, 137, 255, 0.08);
    content: "";
    filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.rok-se__card--orange::before {
    background: rgba(255, 105, 13, 0.10);
}

.rok-se__card:hover {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(7, 137, 255, 0.45);
    background: #1B3556;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.rok-se__card--orange:hover {
    border-color: rgba(255, 105, 13, 0.45);
}

.rok-se__card:hover::before {
    opacity: 1;
}

/* Icons */

.rok-se__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: var(--rok-se-blue);
    font-size: 27px;
    line-height: 1;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.rok-se__card--blue .rok-se__icon {
    color: var(--rok-se-blue);
}

.rok-se__card--orange .rok-se__icon {
    color: var(--rok-se-orange);
}

.rok-se__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: transform 0.35s ease;
}

.rok-se__icon i {
    display: inline-block;
    line-height: 1;
}

.rok-se__card:hover .rok-se__icon {
    transform: scale(1.14) rotate(-5deg);
    filter: drop-shadow(0 0 7px currentColor);
}

.rok-se__icon-fallback {
    font-size: 32px;
    font-weight: 400;
}

/* Card label */

.rok-se__label {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--rok-se-card-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

/* =========================================
   ENTRANCE ANIMATIONS
========================================= */

.rok-se {
    animation: rokSEFadeIn 0.8s ease-out both;
}

.rok-se__eyebrow {
    animation: rokSEFadeDown 0.7s ease-out 0.1s both;
}

.rok-se__heading {
    animation: rokSEFadeUp 0.8s ease-out 0.2s both;
}

.rok-se__subtitle {
    animation: rokSEFadeUp 0.8s ease-out 0.35s both;
}

.rok-se__card {
    opacity: 0;
    animation: rokSECardReveal 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Stagger each card */

.rok-se__card:nth-child(1)  { animation-delay: 0.35s; }
.rok-se__card:nth-child(2)  { animation-delay: 0.42s; }
.rok-se__card:nth-child(3)  { animation-delay: 0.49s; }
.rok-se__card:nth-child(4)  { animation-delay: 0.56s; }
.rok-se__card:nth-child(5)  { animation-delay: 0.63s; }
.rok-se__card:nth-child(6)  { animation-delay: 0.70s; }
.rok-se__card:nth-child(7)  { animation-delay: 0.77s; }
.rok-se__card:nth-child(8)  { animation-delay: 0.84s; }
.rok-se__card:nth-child(9)  { animation-delay: 0.91s; }
.rok-se__card:nth-child(10) { animation-delay: 0.98s; }

/* Animation keyframes */

@keyframes rokSEFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rokSEFadeDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rokSECardReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Disable animation through Elementor control */

.rok-se--no-animation,
.rok-se--no-animation .rok-se__eyebrow,
.rok-se--no-animation .rok-se__heading,
.rok-se--no-animation .rok-se__subtitle,
.rok-se--no-animation .rok-se__card {
    animation: none !important;
    opacity: 1 !important;
    transform: none;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1024px) {
    .rok-se {
        padding: 75px 24px;
    }

    .rok-se__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .rok-se__heading {
        font-size: clamp(32px, 5vw, 46px);
    }
}

@media (max-width: 767px) {
    .rok-se {
        padding: 60px 18px;
    }

    .rok-se__eyebrow {
        gap: 8px;
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .rok-se__eyebrow-line {
        width: 18px;
    }

    .rok-se__heading {
        margin-bottom: 16px;
        font-size: clamp(28px, 7vw, 38px);
        line-height: 1.22;
        letter-spacing: -0.7px;
    }

    .rok-se__subtitle {
        margin-bottom: 32px;
        font-size: 15px;
        line-height: 1.75;
    }

    .rok-se__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 30px;
    }

    .rok-se__card {
        min-height: 110px;
        gap: 12px;
        padding: 20px 10px;
        border-radius: 10px;
    }

    .rok-se__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 23px;
    }

    .rok-se__label {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .rok-se {
        padding-right: 12px;
        padding-left: 12px;
    }

    .rok-se__grid {
        gap: 9px;
    }

    .rok-se__card {
        padding: 16px 8px;
    }

    .rok-se__label {
        font-size: 12px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    .rok-se,
    .rok-se__eyebrow,
    .rok-se__heading,
    .rok-se__subtitle,
    .rok-se__card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .rok-se__card,
    .rok-se__card::before,
    .rok-se__icon,
    .rok-se__icon svg,
    .rok-se__highlight {
        transition: none !important;
    }
}
