/* =============================================
   Gorriceta Positions Widget
   ============================================= */

.gp-positions-list {
    width: 100%;
}

/* Individual position item */
.gp-position-item {
    border-top: 1px solid #d6cfc4;
    overflow: hidden;
}

.gp-position-item:last-child {
    border-bottom: 1px solid #d6cfc4;
}

/* Header row */
.gp-position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    cursor: pointer;
    gap: 24px;
}

/* Left side: title + sub */
.gp-position-left {
    flex: 1;
    min-width: 0;
}

.gp-position-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 700;
    color: #1a2f5e;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.gp-position-sub {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Badge */
.gp-badge {
    display: inline-block;
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #b8973a;
    border: 1px solid #b8973a;
    padding: 3px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.gp-years {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #001F60;
}

/* Right side: meta + toggle */
.gp-position-meta {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-shrink: 0;
}

.gp-meta-department,
.gp-meta-location {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: #3a3a3a;
    white-space: nowrap;
}

/* Toggle chevron button */
.gp-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gp-item--open .gp-toggle-btn {
    transform: rotate(180deg);
}

/* Expandable body */
.gp-position-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.gp-item--open .gp-position-body {
    max-height: 600px;
    padding-bottom: 32px;
}

.gp-description {
    font-size: clamp(12px, 1.3vw, 16px);
    color: #3a3a3a;
    line-height: 1.7;
    margin: 0 0 28px 0;
    max-width: 720px;
}

/* Apply button */
.gp-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #1a2f5e;
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 28px;
    transition: background-color 0.2s ease;
}

.gp-apply-btn:hover {
    background-color: #243f7a;
    color: #ffffff;
    text-decoration: none;
}

.gp-btn-arrow {
    font-size: 1rem;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .gp-position-header {
        flex-wrap: wrap;
        padding: 20px 0;
    }

    .gp-position-left {
        width: 100%;
    }

    .gp-position-meta {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
        row-gap: 8px;
    }

    .gp-meta-department,
    .gp-meta-location {
        white-space: normal;
    }

    .gp-toggle-btn {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .gp-position-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gp-toggle-btn {
        margin-left: auto;
    }
}
