/* ============================================
   SOS Medical Liban - Engagement Page Styles
   ============================================ */

/* ---- Hero Section ---- */
.hero-engagement {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #073642 0%, #0a4a5a 40%, #0d5f73 100%);
}

.hero-engagement .hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 600px;
}

.hero-engagement .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    margin-bottom: 20px;
}

.hero-engagement h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-engagement p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-engagement .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
}

.hero-engagement .btn-white i {
    font-size: 12px;
}

/* ---- Pillars Section ---- */
.pillars-section {
    padding: 80px 0;
    background: var(--white);
}

.pillars-header {
    text-align: center;
    margin-bottom: 48px;
}

.pillars-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ---- Bento Grid ---- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.bento-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.bento-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.bento-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.bento-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.bento-card-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Dark card variant */
.bento-card-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.bento-card-dark .bento-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 16px;
}

.bento-card-dark .bento-card-title {
    color: var(--white);
    margin-bottom: 10px;
}

.bento-card-dark .bento-card-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Grid spans */
.bento-col-2 {
    grid-column: span 2;
}

.bento-row-2 {
    grid-row: span 2;
}

.bento-col-2-row-2 {
    grid-column: span 2;
    grid-row: span 2;
}

/* Card specific layouts */
.bento-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card-body .icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.bento-card-body .icon-row i {
    font-size: 24px;
    color: var(--primary);
}

.bento-card-body .icon-row .bento-card-title {
    color: var(--text-dark);
    margin: 0;
}

.bento-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.bento-card-footer-img {
    height: 160px;
    overflow: hidden;
}

.bento-card-footer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Side layout: image left, text right */
.bento-card-side {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.bento-card-side-img {
    flex: 0 0 45%;
    overflow: hidden;
	background-color: #DCEDF6;
}

.bento-card-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bento-card-side .bento-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background: var(--white);
}


/* ---- Assistance CTA Section ---- */
.assistance-section {
    padding: 80px 0;
    background: var(--offwhite);
}

.assistance-box {
    background: var(--white);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.assistance-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.assistance-box p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.assistance-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.assistance-buttons .btn {
    padding: 12px 28px;
    font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-col-2 {
        grid-column: span 2;
    }

    .bento-col-2-row-2 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hero-engagement h1 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-col-2,
    .bento-row-2,
    .bento-col-2-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-engagement {
        min-height: auto;
    }

    .hero-engagement .hero-content {
        padding: 48px 0;
    }

    .hero-engagement h1 {
        font-size: 26px;
    }

    .pillars-section {
        padding: 48px 0;
    }

    .assistance-section {
        padding: 48px 0;
    }

    .assistance-box {
        padding: 32px 24px;
    }
}