/* static/css/components/opportunities.css */

/* ========================
   Section
======================== */
.opp {
    width: 100%;
    padding: clamp(48px, 8vw, 128px) 0;
    background: #fff;
    padding-top: 0%;
}

.opp__inner {
    max-width: 1094px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* ========================
   Header
======================== */
.opp__header {
    max-width: 758px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.opp__title {
    color: var(--Primary-Text, #353535);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    align-self: stretch;
}

.opp__subtitle {
    color: var(--Secondary-Text, #334155);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

/* ========================
   Cards grid — mobile first: 1 column
======================== */
.opp__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-self: stretch;
}

/* ========================
   Card
======================== */
.opp-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* Image */
.opp-card__image-wrap {
    width: 100%;
    height: 165px;
    overflow: hidden;
    flex-shrink: 0;
}

.opp-card__image {
    width: 100%;
    height: 165px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Content section */
.opp-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 0 0 25px 25px;
    border: 1px solid var(--Borders, #E0E0E0);
    background: #FFF;
    border-top: none;
}

/* Title + description */
.opp-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    padding: 18px 16px;
    height: 120px;
    flex-shrink: 0;
}

.opp-card__title {
    color: var(--Primary-Text, #353535);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.opp-card__desc {
    color: var(--Secondary-Text, #334155);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail rows */
.opp-card__details {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    flex: 1;
}

.opp-card__row {
    display: flex;
    width: 100%;
    height: 51px;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 0.5px solid rgba(128, 128, 128, 0.40);
}

.opp-card__row:last-child {
    border-bottom: none;
}

.opp-card__row-label {
    color: var(--Primary-Text, #353535);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.opp-card__row-value {
    color: var(--Primary-Text, #353535);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-align: right;
}

/* ========================
   Tablet (640px+): 2 columns
======================== */
@media (min-width: 640px) {
    .opp__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ========================
   Desktop (1024px+): 3 columns
======================== */
@media (min-width: 1024px) {
    .opp__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}
