/* Infrastructure detail pages */
.infrastructure-detail-page .about-school-legacy__media-frame {
    overflow: hidden;
}

.infrastructure-detail-page .about-school-legacy__media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.infra-detail-lightbox {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    cursor: zoom-in;
}

.infra-detail-lightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.infra-detail-lightbox__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 15, 144, 0.45);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infra-detail-lightbox:hover img,
.infra-detail-lightbox:focus-visible img {
    transform: scale(1.04);
}

.infra-detail-lightbox:hover .infra-detail-lightbox__overlay,
.infra-detail-lightbox:focus-visible .infra-detail-lightbox__overlay {
    opacity: 1;
}

/* Gallery */
.infrastructure-detail-gallery {
    padding: 48px 0 64px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.infrastructure-detail-gallery__title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 32px;
}

.infrastructure-detail-gallery__title-accent {
    color: #d59308;
}

.infrastructure-detail-gallery__item {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(11, 15, 144, 0.1);
    background: #fff;
}

/* Other Infrastructure */
.infrastructure-detail-other {
    position: relative;
    padding: 72px 0;
    background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 45%, #faf8f5 100%);
    overflow: hidden;
}

.infrastructure-detail-other::before,
.infrastructure-detail-other::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.infrastructure-detail-other::before {
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(213, 147, 8, 0.1) 0%, transparent 70%);
}

.infrastructure-detail-other::after {
    bottom: -120px;
    left: -90px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(11, 15, 144, 0.07) 0%, transparent 70%);
}

.infrastructure-detail-other .container {
    position: relative;
    z-index: 1;
}

.infrastructure-detail-other__header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.infrastructure-detail-other__label {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d59308;
    margin-bottom: 12px;
}

.infrastructure-detail-other__title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.25;
}

.infrastructure-detail-other__title-accent {
    color: #d59308;
}

.infrastructure-detail-other__intro {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4a4a5a;
    margin: 0;
}

.infrastructure-detail-other__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.infrastructure-detail-other__link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(11, 15, 144, 0.08);
    box-shadow: 0 8px 28px rgba(11, 15, 144, 0.07);
    text-decoration: none;
    color: #1a1a2e;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.infrastructure-detail-other__link:hover,
.infrastructure-detail-other__link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(213, 147, 8, 0.45);
    box-shadow: 0 14px 36px rgba(11, 15, 144, 0.12);
    color: #0b0f90;
    text-decoration: none;
}

.infrastructure-detail-other__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 15, 144, 0.1) 0%, rgba(213, 147, 8, 0.14) 100%);
    color: #0b0f90;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.infrastructure-detail-other__link:hover .infrastructure-detail-other__link-icon,
.infrastructure-detail-other__link:focus-visible .infrastructure-detail-other__link-icon {
    background: linear-gradient(135deg, #0b0f90 0%, #1a1faa 100%);
    color: #fff;
}

.infrastructure-detail-other__link-text {
    flex: 1;
    font-family: 'Raleway', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.infrastructure-detail-other__link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(11, 15, 144, 0.06);
    color: #0b0f90;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.infrastructure-detail-other__link:hover .infrastructure-detail-other__link-arrow,
.infrastructure-detail-other__link:focus-visible .infrastructure-detail-other__link-arrow {
    background: #d59308;
    color: #fff;
    transform: translateX(2px);
}

/* Our Credo */
.infrastructure-detail-page .infrastructure-detail-credo {
    position: relative;
    padding: 80px 0;
    margin: 0;
    background: linear-gradient(135deg, #0b0f90 0%, #1a1a6e 48%, #5743ac 100%);
    overflow: hidden;
}

.infrastructure-detail-page .infrastructure-detail-credo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #d59308 50%, transparent 100%);
    opacity: 0.85;
}

.infrastructure-detail-page .infrastructure-detail-credo::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 196, 120, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.infrastructure-detail-page .infrastructure-detail-credo__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 20px 0;
}

.infrastructure-detail-page .infrastructure-detail-credo .about-school-credo__label {
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.2em;
}

.infrastructure-detail-page .infrastructure-detail-credo .about-school-credo__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.infrastructure-detail-page .infrastructure-detail-credo .about-school-credo__subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    .infrastructure-detail-other__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .infrastructure-detail-gallery {
        padding: 40px 0 48px;
    }

    .infrastructure-detail-other {
        padding: 56px 0;
    }

    .infrastructure-detail-other__header {
        margin-bottom: 28px;
    }

    .infrastructure-detail-other__grid {
        grid-template-columns: 1fr;
    }

    .infrastructure-detail-other__link {
        min-height: 64px;
        padding: 14px 16px;
    }

    .infrastructure-detail-page .infrastructure-detail-credo {
        padding: 64px 0;
    }
}
