
/* ===========================
   Marvel Classes - Locations
   =========================== */

.mc-locations {
    --mcl-primary: #174ea6;
    --mcl-primary-dark: #103875;
    --mcl-text: #243247;
    --mcl-muted: #5c6879;
    --mcl-border: #e1e8f0;
    --mcl-soft: #f4f7fc;

    color: var(--mcl-text);
    font-family: inherit;
    line-height: 1.7;
}

.mc-locations *,
.mc-locations *::before,
.mc-locations *::after {
    box-sizing: border-box;
}

.mc-locations a {
    text-decoration: none;
}

.mc-locations-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.mc-locations-section {
    padding: 76px 0;
}

.mc-locations-soft {
    background: var(--mcl-soft);
}

.mc-locations-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--mcl-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.mc-locations h1,
.mc-locations h2,
.mc-locations h3,
.mc-locations p {
    margin-top: 0;
}

.mc-locations h1,
.mc-locations h2,
.mc-locations h3 {
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.mc-locations h1 {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 800;
}

.mc-locations h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 750;
}

.mc-locations h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 750;
}

.mc-locations p {
    margin-bottom: 16px;
    color: var(--mcl-muted);
}

.mc-locations p:last-child {
    margin-bottom: 0;
}

/* Hero */

.mc-locations-hero {
    padding: 100px 0;
    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(68, 135, 231, 0.16),
            transparent 32%
        ),
        linear-gradient(135deg, #f4f8ff, #fff);
    border-bottom: 1px solid var(--mcl-border);
}

.mc-locations-hero p {
    max-width: 720px;
    margin-bottom: 30px;
    font-size: 1.08rem;
    line-height: 1.85;
}

/* Buttons */

.mc-locations-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--mcl-primary);
    border-radius: 6px;
    background: var(--mcl-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.mc-locations .mc-locations-btn:hover {
    background: var(--mcl-primary-dark);
    border-color: var(--mcl-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.mc-locations a:focus-visible {
    outline: 3px solid #77a7f7;
    outline-offset: 4px;
}

/* Introduction */

.mc-locations-intro {
    max-width: 850px;
}

.mc-locations-intro h2 {
    max-width: 700px;
}

.mc-locations-intro p {
    font-size: 1rem;
}

/* Section headings */

.mc-locations-section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.mc-locations-section-heading p {
    max-width: 620px;
    margin-inline: auto;
}

/* Location card */

.mc-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mc-location-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--mcl-border);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(23, 50, 77, 0.04);
}

.mc-location-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.mc-location-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    background: #eaf2ff;
    color: var(--mcl-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.mc-location-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--mcl-primary);
}

.mc-location-pin svg {
    width: 24px;
    height: 24px;
}

.mc-location-description {
    margin-bottom: 24px;
}

.mc-location-detail {
    padding: 16px 0;
    border-top: 1px solid var(--mcl-border);
}

.mc-location-detail strong {
    display: block;
    margin-bottom: 4px;
    color: var(--mcl-text);
    font-size: 0.9rem;
}

.mc-location-detail p {
    font-size: 0.95rem;
}

.mc-location-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}

.mc-location-actions .mc-locations-btn {
    flex: 0 0 auto;
}

.mc-locations-text-link {
    color: var(--mcl-primary);
    font-weight: 750;
}

.mc-locations-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Programmes */

.mc-locations-programmes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.mc-locations-programme {
    padding: 28px 24px;
    border: 1px solid var(--mcl-border);
    border-radius: 10px;
    background: #fff;
}

.mc-locations-programme a {
    display: inline-block;
    margin-top: 18px;
    color: var(--mcl-primary);
    font-weight: 750;
}

.mc-locations-programme a:hover {
    color: var(--mcl-primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* CTA */

.mc-locations-cta {
    padding: 76px 0;
    background: var(--mcl-primary-dark);
    text-align: center;
}

.mc-locations-cta h2 {
    max-width: 760px;
    margin: 0 auto 16px;
    color: #fff;
}

.mc-locations-cta p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #e2eaf8;
}

.mc-locations-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.mc-locations-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--mcl-primary-dark);
}

.mc-locations .mc-locations-btn-light:hover {
    background: #eaf2ff;
    border-color: #eaf2ff;
    color: var(--mcl-primary-dark);
}

.mc-locations-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.mc-locations .mc-locations-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

/* Responsive */

@media (max-width: 768px) {
    .mc-locations-section {
        padding: 54px 0;
    }

    .mc-locations-hero {
        padding: 70px 0;
    }

    .mc-locations-grid,
    .mc-locations-programmes {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mc-location-card {
        padding: 24px;
    }

    .mc-locations-section-heading {
        margin-bottom: 30px;
        text-align: left;
    }

    .mc-locations-section-heading p {
        margin-inline: 0;
    }

    .mc-locations-cta {
        padding: 56px 0;
    }

    .mc-locations-cta h2 {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-locations-btn {
        transition: none;
    }

    .mc-locations-btn:hover {
        transform: none;
    }
}
