/* programs.css */

.programs-section {
    padding: 50px 24px 70px;
    background: #f5f8fb;
}

/* ── Alternating row ── */
.prog-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(44,62,80,0.09);

    background: white;
}

.prog-row-flip {
    direction: rtl;
}
.prog-row-flip > * {
    direction: ltr;
}

/* Image panel */
.prog-row-img {
    overflow: hidden;
    min-height: 320px;
}

.prog-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.prog-row:hover .prog-row-img img {
    transform: scale(1.04);
}

/* Content panel */
.prog-row-content {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

/* Label */
.prog-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

/* Title */
.prog-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 900;
    color: var(--darkblue);
    line-height: 1.15;
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
}

/* Accent bar */
.prog-accent-bar {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 18px;
}

/* Description */
.prog-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #5a6a7a;
    margin: 0 0 20px;
}

/* Detail list */
.prog-details {
    list-style: none;
    padding: 12px 16px;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--accent-bg);
    border-radius: 8px;
}

.prog-details li {
    font-size: 13px;
    color: #5a6a7a;
    padding-left: 14px;
    position: relative;
}

.prog-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.prog-details li strong {
    color: var(--darkblue);
}

/* CTA */
.prog-cta {
    display: inline-block;
    color: var(--darkblue);
    border: 2px solid var(--accent);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}

.prog-cta:hover {
    background: var(--accent);
    color: white;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .prog-row {
        grid-template-columns: 1fr;
    }

    .prog-row-flip {
        direction: ltr;
    }

    .prog-row-img {
        min-height: 200px;
    }

    .prog-row-content {
        padding: 28px 24px 32px;
    }
}
