/* ========================================
   INDUSTRIES PAGE — Styles
   ======================================== */

/* ---- Page Hero ---- */
.ind-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.ind-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 108, 53, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #0A0A0F 0%, #0F0F18 100%);
    z-index: 0;
}

.ind-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ind-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 12px;
    animation: fadeInUp 0.7s ease both;
}

.ind-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    animation: fadeInUp 0.7s ease 0.1s both;
}

/* ---- Directory Grid (main industries page) ---- */
.ind-directory {
    padding: 80px 0 100px;
}

.ind-directory__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Premium Industry Card --- */
.ind-directory__card {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient accent bar at top */
.ind-directory__card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    z-index: 2;
}

/* Background glow on hover */
.ind-directory__card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--card-glow, rgba(255, 255, 255, 0.03)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.ind-directory__card:hover::after {
    opacity: 1;
}

.ind-directory__card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
        0 0 40px var(--card-glow, rgba(255, 255, 255, 0.03));
}

/* --- Card Header with icon + gradient bg --- */
.ind-directory__header {
    position: relative;
    z-index: 1;
    padding: 32px 28px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.ind-directory__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    position: relative;
}

.ind-directory__header-text {
    flex: 1;
    min-width: 0;
}

.ind-directory__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 4px;
    line-height: 1.3;
}

.ind-directory__subtitle {
    font-size: 0.82rem;
    color: var(--color-text-gray);
    line-height: 1.4;
}

/* --- Card Body --- */
.ind-directory__body {
    position: relative;
    z-index: 1;
    padding: 0 28px 20px;
}

.ind-directory__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.ind-directory__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-gray);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.ind-directory__card:hover .ind-directory__tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

/* --- Card Footer --- */
.ind-directory__footer {
    position: relative;
    z-index: 1;
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ind-directory__arrow {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ind-directory__arrow-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 108, 53, 0.15);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ind-directory__card:hover .ind-directory__arrow {
    color: var(--color-primary-light);
}

.ind-directory__card:hover .ind-directory__arrow-icon {
    background: rgba(0, 108, 53, 0.25);
    transform: translateX(-4px);
}

.ind-directory__stat {
    font-family: var(--font-en);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ind-directory__stat-num {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-white);
}

/* --- Card Color Variants --- */
.ind-directory__card--hosp {
    --card-glow: rgba(212, 175, 55, 0.08);
}

.ind-directory__card--hosp::before {
    background: linear-gradient(to left, #D4AF37, #F5D060);
}

.ind-directory__card--hosp .ind-directory__icon-wrap {
    background: rgba(212, 175, 55, 0.12);
}

.ind-directory__card--health {
    --card-glow: rgba(20, 184, 166, 0.08);
}

.ind-directory__card--health::before {
    background: linear-gradient(to left, #14B8A6, #2DD4BF);
}

.ind-directory__card--health .ind-directory__icon-wrap {
    background: rgba(20, 184, 166, 0.12);
}

.ind-directory__card--finance {
    --card-glow: rgba(59, 130, 246, 0.08);
}

.ind-directory__card--finance::before {
    background: linear-gradient(to left, #3B82F6, #60A5FA);
}

.ind-directory__card--finance .ind-directory__icon-wrap {
    background: rgba(59, 130, 246, 0.12);
}

.ind-directory__card--retail {
    --card-glow: rgba(249, 115, 22, 0.08);
}

.ind-directory__card--retail::before {
    background: linear-gradient(to left, #F97316, #FB923C);
}

.ind-directory__card--retail .ind-directory__icon-wrap {
    background: rgba(249, 115, 22, 0.12);
}

.ind-directory__card--gov {
    --card-glow: rgba(139, 92, 246, 0.08);
}

.ind-directory__card--gov::before {
    background: linear-gradient(to left, #8B5CF6, #A78BFA);
}

.ind-directory__card--gov .ind-directory__icon-wrap {
    background: rgba(139, 92, 246, 0.12);
}

/* ---- Industry Blocks (individual pages) ---- */
.ind-block {
    padding: 80px 0;
}

.ind-block--hosp {
    background: var(--color-bg-dark);
}

.ind-block--health {
    background: var(--color-bg-section);
}

.ind-block--finance {
    background: var(--color-bg-dark);
}

.ind-block--retail {
    background: var(--color-bg-section);
}

.ind-block--gov {
    background: var(--color-bg-dark);
}

/* ---- Industry Card ---- */
.ind-card {
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 48px 44px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.ind-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.ind-card[data-accent="#D4AF37"]::before {
    background: #D4AF37;
}

.ind-card[data-accent="#14B8A6"]::before {
    background: #14B8A6;
}

.ind-card[data-accent="#3B82F6"]::before {
    background: #3B82F6;
}

.ind-card[data-accent="#F97316"]::before {
    background: #F97316;
}

.ind-card[data-accent="#8B5CF6"]::before {
    background: #8B5CF6;
}

.ind-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.ind-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.ind-card__icon {
    font-size: 2.4rem;
}

.ind-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text-white);
}

/* Columns */
.ind-card__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.ind-card__col-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.ind-card__col-title--challenges {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.ind-card__col-title--solutions {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Lists */
.ind-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ind-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.ind-card__li-icon {
    flex-shrink: 0;
}

/* ========================================
   APPLICATION STORIES SECTION
   ======================================== */
.ind-stories {
    padding: 60px 0 80px;
}

.ind-stories__title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text-white);
    text-align: center;
    margin-bottom: 48px;
}

.ind-stories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   FLOW DIAGRAM — STRUCTURAL STORY CARDS
   ======================================== */

/* Flow Card Container */
.flow-card {
    background: #F0F2F5;
    border-radius: 20px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.flow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* Card Title */
.flow-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flow-card__title-icon {
    font-size: 1.3rem;
}

/* Flow Steps Container */
.flow-card__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Individual Flow Step ---- */
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border-right: 4px solid #ccc;
    /* RTL: visual left border */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: flowStepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flow-step:nth-child(1) {
    animation-delay: 0.1s;
}

.flow-step:nth-child(3) {
    animation-delay: 0.2s;
}

.flow-step:nth-child(5) {
    animation-delay: 0.3s;
}

.flow-step:nth-child(7) {
    animation-delay: 0.4s;
}

.flow-step:nth-child(9) {
    animation-delay: 0.5s;
}

.flow-step:nth-child(11) {
    animation-delay: 0.6s;
}

@keyframes flowStepIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Icon */
.flow-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: #f8f9fa;
}

/* Step Content */
.flow-step__content {
    flex: 1;
    min-width: 0;
}

.flow-step__actor {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.flow-step__text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #333;
    margin: 0;
}

.flow-step__lang {
    display: inline-block;
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 8px;
    border-radius: 4px;
    margin-right: 4px;
    color: #666;
}

/* ---- Actor Color Variants ---- */

/* Guest — Blue/Indigo */
.flow-step--guest {
    border-right-color: #4F46E5;
}

.flow-step--guest .flow-step__icon {
    background: rgba(79, 70, 229, 0.1);
}

.flow-step--guest .flow-step__actor {
    background: rgba(79, 70, 229, 0.12);
    color: #4338CA;
}

/* Nexus — Green */
.flow-step--nexus {
    border-right-color: #059669;
}

.flow-step--nexus .flow-step__icon {
    background: rgba(5, 150, 105, 0.1);
}

.flow-step--nexus .flow-step__actor {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

/* Staff — Orange */
.flow-step--staff {
    border-right-color: #D97706;
}

.flow-step--staff .flow-step__icon {
    background: rgba(217, 119, 6, 0.1);
}

.flow-step--staff .flow-step__actor {
    background: rgba(217, 119, 6, 0.12);
    color: #B45309;
}

/* Admin — Purple */
.flow-step--admin {
    border-right-color: #7C3AED;
}

.flow-step--admin .flow-step__icon {
    background: rgba(124, 58, 237, 0.1);
}

.flow-step--admin .flow-step__actor {
    background: rgba(124, 58, 237, 0.12);
    color: #6D28D9;
}

/* System/Info — Grey */
.flow-step--system {
    border-right-color: #6B7280;
}

.flow-step--system .flow-step__icon {
    background: rgba(107, 114, 128, 0.1);
}

.flow-step--system .flow-step__actor {
    background: rgba(107, 114, 128, 0.12);
    color: #4B5563;
}

/* ---- Connector Line Between Steps ---- */
.flow-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 0;
    position: relative;
}

.flow-connector__line {
    width: 2px;
    height: 22px;
    background: linear-gradient(to bottom, #d1d5db, #9ca3af);
    position: relative;
}

.flow-connector__line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 4px 0 4px;
    border-color: #9ca3af transparent transparent transparent;
}

/* ---- Branch Layout (horizontal split) ---- */
.flow-branch {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: relative;
    padding: 0 4px;
}

/* Connector lines above branch */
.flow-branch::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to left, #d1d5db, #9ca3af, #d1d5db);
}

.flow-branch__item {
    flex: 1;
    padding: 12px 10px;
    background: #fff;
    border-radius: 12px;
    border-top: 3px solid #ccc;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* Vertical line from horizontal bar into each branch item */
.flow-branch__item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #9ca3af;
}

.flow-branch__item-icon {
    font-size: 1.2rem;
}

.flow-branch__item-text {
    font-size: 0.78rem;
    color: #444;
    line-height: 1.5;
    font-weight: 500;
}

/* Branch item color variants */
.flow-branch__item--translate {
    border-top-color: #059669;
}

.flow-branch__item--staff {
    border-top-color: #D97706;
}

.flow-branch__item--admin {
    border-top-color: #7C3AED;
}

.flow-branch__item--search {
    border-top-color: #3B82F6;
}

.flow-branch__item--action {
    border-top-color: #EF4444;
}

/* ---- Result/Confirmation Step ---- */
.flow-step--result {
    border-right-color: #059669;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.flow-step--result .flow-step__icon {
    background: rgba(5, 150, 105, 0.15);
}

/* Buttons */
.ind-card__btn {
    border-radius: var(--border-radius-pill);
    font-weight: 600;
}

.ind-card__btn--gold {
    background: var(--color-secondary);
    color: #1a1a1a;
    border-color: var(--color-secondary);
}

.ind-card__btn--gold:hover {
    background: #c9a432;
    border-color: #c9a432;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.25);
}

.ind-card__btn--teal {
    background: var(--color-accent-teal);
    color: #0a0a0a;
    border-color: var(--color-accent-teal);
}

.ind-card__btn--teal:hover {
    background: #0d9488;
    border-color: #0d9488;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.25);
}

.ind-card__btn--blue {
    background: var(--color-accent-blue);
    color: #fff;
    border-color: var(--color-accent-blue);
}

.ind-card__btn--blue:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
}

.ind-card__btn--orange {
    background: var(--color-accent-orange);
    color: #1a1a1a;
    border-color: var(--color-accent-orange);
}

.ind-card__btn--orange:hover {
    background: #ea580c;
    border-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.25);
}

.ind-card__btn--purple {
    background: var(--color-accent-purple);
    color: #fff;
    border-color: var(--color-accent-purple);
}

.ind-card__btn--purple:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

/* ---- CTA ---- */
.ind-cta {
    background: linear-gradient(135deg, #006C35 0%, #004d28 50%, #006C35 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.ind-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.ind-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ind-cta__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.ind-cta__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.6;
}

.ind-cta__btn {
    background: var(--color-text-white);
    color: #006C35;
    border-color: var(--color-text-white);
    border-radius: var(--border-radius-pill);
    font-size: 1.05rem;
    font-weight: 600;
}

.ind-cta__btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .ind-card {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .ind-hero {
        padding: 120px 0 40px;
    }

    .ind-block {
        padding: 60px 0;
    }

    .ind-card {
        padding: 32px 24px;
    }

    .ind-card__columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ind-card__header {
        margin-bottom: 28px;
    }

    .ind-stories__grid {
        grid-template-columns: 1fr;
    }

    .flow-branch {
        flex-direction: column;
    }

    .flow-branch::before {
        display: none;
    }

    .ind-cta {
        padding: 60px 0;
    }

    .ind-directory__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ind-directory__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .ind-card {
        padding: 24px 18px;
    }
}