/* ==================== RESEARCH PROGRAMS STYLES ==================== */
.research-programs {
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Row 1: Essay Header */
.essay-header-row {
    background-color: var(--navy);
    padding: 80px 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.essay-header-content {
    max-width: 700px;
}

.essay-header-content h2 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.1;
}

.essay-header-content p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.essay-header-content .btn-primary {
    display: inline-block;
}

/* Prompts Section Title */
.prompts-section {
    background-color: var(--bg-cream);
    padding: 60px 40px 30px;
    text-align: center;
}

.prompts-title {
    font-size: 1.8rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Row 2: Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.program-card {
    min-height: 500px;
    padding: 60px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.program-card:last-child {
    border-right: none;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover::after {
    opacity: 1;
}

.program-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

.program-card h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.card-image-placeholder {
    height: 100px;
    width: 100px;
    align-self: flex-end;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.program-card.teal {
    background-color: var(--teal);
}

.program-card.blue-gray {
    background-color: var(--blue-gray);
}

.program-card.olive {
    background-color: var(--olive);
}

.program-card.terracotta {
    background-color: var(--terracotta);
}

.program-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 30px;
}

.submit-section {
    display: flex;
    justify-content: center;
    padding: 100px 0;
    background-color: #fff;
}

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
    }
}