/* campus-premium.css */

/* Features Bar */
.campus-features-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
}

.campus-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Specific stability for the development journey thumbs */
.journey-thumb {
    width: 100%;
    aspect-ratio: 16/10; /* Lock dimensions to prevent jumpy scroll */
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.journey-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.campus-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 0 30px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.campus-feature-item:last-child {
    border-right: none;
}

.campus-feature-icon {
    width: 48px;
    height: 48px;
    color: #b38e5d;
    margin-bottom: 5px;
}

.campus-feature-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.25;
}

.campus-feature-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #444;
    font-family: var(--sans);
}

/* CTA Banner */
.campus-cta-banner {
    background-color: #01233c;
    padding: 40px 0;
    color: #fff;
}

.campus-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.campus-cta-text {
    font-size: 1.6rem;
    font-weight: 500;
    font-family: var(--serif);
    margin: 0;
}

.campus-cta-button {
    background-color: #b38e5d;
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.campus-cta-button:hover {
    background-color: #9a7a4f;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .campus-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 0;
    }
    .campus-feature-item {
        border-right: none;
    }
    .campus-feature-item:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .campus-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .campus-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .campus-feature-item {
        border-right: none !important;
        padding: 0;
    }
    .campus-cta-text {
        font-size: 1.4rem;
    }
}

/* Lightbox Modal Styles */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 35, 60, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Spinner Styles */
.modal-content::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    z-index: -1; /* Behind the image */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-content img {

    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal-overlay.active .modal-content img {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.journey-thumb img {
    cursor: zoom-in;
}

