/**
 * Aradel Investor Centre — Grid Styles
 * File: /wp-content/mu-plugins/aradel-investor-grid.css
 *
 * Padding L/R  — Desktop 112px | Tablet 64px | Mobile 24px
 * Padding B    — Desktop 96px  | Tablet 72px  | Mobile 48px
 * Max-width    — 1440px
 * Border radius— 20px on cards
 * Brand red    — #C1000F
 * Brand blue   — #01303A
 * Font         — Nunito Sans
 */

/* ── Section wrapper ─────────────────────────────────────────────────────── */

.ar-investor-section {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 112px;
    padding-right: 112px;
    padding-bottom: 96px;
    box-sizing: border-box;
}

/* ── Grid container ──────────────────────────────────────────────────────── */

.ar-investor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

/* ── Base card ───────────────────────────────────────────────────────────── */

.ar-investor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
    height: 500px; /* fixed height — required for overflow:hidden to clip long titles */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
        0 4px 32px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.ar-investor-card:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.22) inset,
        0 8px 48px rgba(0, 0, 0, 0.24);
}

/* ── Card header ─────────────────────────────────────────────────────────── */

.ar-investor-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.ar-investor-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(193, 0, 15, 0.18);
    border: 1px solid rgba(193, 0, 15, 0.3);
    color: #ffffff;
    flex-shrink: 0;
}

.ar-investor-card__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.ar-investor-card__title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* ── Card body ───────────────────────────────────────────────────────────── */

.ar-investor-card__body {
    flex: 1;
    min-height: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Placeholder text ────────────────────────────────────────────────────── */

.ar-investor-card__placeholder {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ── Scrollable card — .ar-investor-card--scrollable ─────────────────────── */
/*
 * Card shell stays the same grid height (grid-template-rows: 1fr).
 * Overflow is applied only to the inner body, not the card itself.
 */

.ar-investor-card--scrollable .ar-investor-card__body {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ar-investor-card--scrollable .ar-investor-card__body::-webkit-scrollbar {
    display: none;
}

/* Fade hint at bottom edge */
.ar-investor-card--scrollable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(1, 48, 58, 0.6));
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* ── Typography helpers in card body ─────────────────────────────────────── */

.ar-investor-card__body p {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.ar-investor-card__body p:last-child {
    margin-bottom: 0;
}

.ar-investor-card__body a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ar-investor-card__body a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Key-value list rows */
.ar-investor-card__body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ar-investor-card__body ul li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.ar-investor-card__body ul li:last-child {
    border-bottom: none;
}

.ar-investor-card__body ul li strong {
    font-weight: 600;
    color: #ffffff;
}

/* [ar_action] buttons inside cards */
.ar-investor-card .ads-btn {
    margin-top: 20px;
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .ar-investor-section {
        padding-left: 64px;
        padding-right: 64px;
        padding-bottom: 72px;
    }

    .ar-investor-grid {
        gap: 20px;
    }

    .ar-investor-card {
        padding: 32px;
        height: 480px;
    }

    .ar-investor-card__title {
        font-size: 18px;
    }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .ar-investor-section {
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 48px;
    }

    .ar-investor-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .ar-investor-card {
        padding: 28px 24px;
        height: 450px;
    }

    .ar-investor-card__title {
        font-size: 17px;
    }

    .ar-investor-card--scrollable {
        min-height: 280px;
    }

    .ar-investor-card--scrollable .ar-investor-card__body {
        max-height: 240px;
        overflow-y: auto;
    }
}
