/* =========================================================
   Our Academic Schools — standalone section (no overrides)
   All selectors are oas-* prefixed to avoid collisions.
   ========================================================= */

.oas-section {
    background: #f7f6f2;
    padding: 40px 0 40px;
    color: #01233c;
    overflow: hidden;
}

.oas-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.oas-heading {
    text-align: center;
    margin: 0 auto 56px;
    max-width: 720px;
}

.oas-title {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #01233c;
    margin: 0 0 18px;
    line-height: 1.15;
    letter-spacing: -0.005em;
}

.oas-accent {
    display: block;
    width: 72px;
    height: 3px;
    background: #c9a04a;
    border-radius: 2px;
    margin: 0 auto;
}

.oas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.oas-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(1, 35, 60, 0.08);
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(1, 35, 60, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: inherit;
}

.oas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(1, 35, 60, 0.14);
    border-color: rgba(201, 160, 74, 0.45);
    text-decoration: none;
}

.oas-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #01233c;
}

.oas-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.oas-card:hover .oas-card-media img {
    transform: scale(1.08);
}

.oas-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 35, 60, 0) 45%, rgba(1, 35, 60, 0.35) 100%);
    pointer-events: none;
}

.oas-card-badge {
    position: absolute;
    top: 172px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #c9a04a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(201, 160, 74, 0.35);
    border: 3px solid #ffffff;
    z-index: 2;
    transition: transform 0.35s ease, background 0.35s ease;
}

.oas-card:hover .oas-card-badge {
    transform: scale(1.06);
    background: #b58c39;
}

.oas-card-body {
    padding: 36px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.oas-card-name {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #01233c;
    line-height: 1.35;
    margin: 0;
    min-height: 3.1em;
}

.oas-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #01233c;
    letter-spacing: 0.02em;
    margin-top: auto;
    transition: color 0.25s ease, gap 0.25s ease;
}

.oas-card:hover .oas-card-cta {
    color: #01233c;
    gap: 12px;
}

.oas-card-cta svg {
    transition: transform 0.25s ease;
}

.oas-card:hover .oas-card-cta svg {
    transform: translateX(2px);
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .oas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .oas-section { padding: 70px 0 80px; }
    .oas-heading { margin-bottom: 44px; padding: 0 24px; }
    .oas-title { font-size: 2rem; }
    .oas-grid { padding: 0 24px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
    .oas-section {
        padding: 48px 0 60px;
    }
    .oas-heading {
        margin: 0 auto 32px;
        padding: 0 20px;
    }
    .oas-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
        line-height: 1.2;
    }
    .oas-accent {
        width: 56px;
    }
    .oas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        max-width: 440px;
        margin: 0 auto;
    }
    .oas-card {
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(1, 35, 60, 0.08);
    }
    .oas-card-media {
        height: 200px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    .oas-card-badge {
        top: 172px;
        left: 18px;
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    .oas-card-badge svg {
        width: 22px;
        height: 22px;
    }
    .oas-card-body {
        padding: 30px 20px 22px;
        gap: 12px;
    }
    .oas-card-name {
        font-size: 1.08rem;
        line-height: 1.4;
        min-height: 0;
    }
    .oas-card-cta {
        font-size: 0.85rem;
    }
    .oas-card:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 380px) {
    .oas-grid { padding: 0 16px; gap: 18px; }
    .oas-heading { padding: 0 16px; }
    .oas-card-media { height: 180px; }
    .oas-card-badge {
        top: 154px;
        left: 16px;
        width: 46px;
        height: 46px;
    }
    .oas-card-badge svg { width: 20px; height: 20px; }
    .oas-card-body { padding: 28px 18px 20px; }
    .oas-card-name { font-size: 1.02rem; }
}
