/* Explain: App-specific layout and structural CSS utilities. */
.ks-shell {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .ks-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.ks-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .ks-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.bg-brand-gradient {
    background-image: linear-gradient(135deg, #00344f 0%, #004E78 45%, #0C81B0 100%);
}

.hero-overlay {
    background-image: linear-gradient(90deg, rgba(0, 26, 42, .78) 0%, rgba(0, 52, 80, .62) 48%, rgba(0, 52, 80, .26) 100%);
}

@media (max-width: 767px) {
    .hero-overlay {
        background-image: linear-gradient(180deg, rgba(0, 26, 42, .82) 0%, rgba(0, 34, 52, .68) 55%, rgba(0, 34, 52, .52) 100%);
    }
}

.hero-media {
    animation: ksHeroZoom 26s ease-in-out infinite alternate;
}

@keyframes ksHeroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.09); }
}

.hero-glow {
    position: absolute;
    right: -6rem;
    top: -8rem;
    width: 30rem;
    height: 30rem;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(127, 212, 245, .3) 0%, rgba(127, 212, 245, 0) 68%);
}

@media (max-width: 767px) {
    .hero-glow {
        right: -4rem;
        top: -4rem;
        width: 18rem;
        height: 18rem;
    }
}

.section-band-dark {
    background-color: var(--primary-color);
    color: #ffffff;
}

.ks-header {
    transition: box-shadow .3s ease;
}

.ks-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 40, 60, .10);
}

/* Portal pages (student, tutor, admin) use a wider container on desktop so
   tables and panels are not cramped. Mobile and tablet keep the standard width. */
@media (min-width: 1024px) {
    .ks-shell-portal {
        max-width: 1560px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media { animation: none; }
}