body {
    font-family: 'Poppins', sans-serif
}

.hero {
    background: url('../images/hero-bg.jpg') center/cover
}

.cta {
    background: url('https://images.unsplash.com/photo-1523580494863-6f3031224c94?q=80&w=1920&auto=format&fit=crop') center/cover
}

.footercta {
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=1920&auto=format&fit=crop') center/cover
}

.overlay {
    background: rgba(0, 0, 0, .65)
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
}

#mobile-menu.open {
    max-height: 24rem
}

/* Feature & icon cards */
.feature-icon,
.course-icon,
.facility-icon,
.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
    font-size: 1rem;
}

.feature-icon {
    background: #1d4ed8;
    color: #fff;
}

.course-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    font-size: 1.35rem;
    background: #eff6ff;
    color: #1d4ed8;
}

.course-icon-gold {
    background: #fef9c3;
    color: #a16207;
}

.facility-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.why-icon {
    background: #eab308;
    color: #1e3a5f;
}

.feature-card,
.course-card,
.facility-card,
.why-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover,
.course-card:hover,
.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(29, 78, 216, .12);
}

.why-card:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, .85);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 240px;
        gap: 1.25rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
    border-radius: 1.25rem;
    cursor: pointer;
    background: #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(29, 78, 216, .18);
}

.gallery-item-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(30, 58, 138, .15) 0%, rgba(30, 58, 138, .75) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    transform: translateY(12px);
    transition: transform .35s ease;
}

.gallery-overlay-inner i {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #eab308;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.gallery-item:hover .gallery-overlay-inner {
    transform: translateY(0);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(6px);
}

.gallery-lightbox.hidden {
    display: none;
}

.gallery-lightbox-content {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 4rem);
}

.gallery-lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .45);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transition: background .25s ease, transform .25s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: #eab308;
    color: #1e3a8a;
}

.gallery-lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    font-size: 1.25rem;
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    font-size: 1rem;
}

.gallery-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-prev {
    left: 1.25rem;
}

.gallery-lightbox-next {
    right: 1.25rem;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-auto-rows: 180px;
    }

    .gallery-item-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-lightbox-nav {
        display: none;
    }
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.testimonial-card {
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(29, 78, 216, .12);
}

.testimonial-quote {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: #dbeafe;
    line-height: 1;
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Contact */
.contact-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    transition: background .25s ease, transform .25s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateX(4px);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #eab308;
    color: #1e3a8a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-form .input-group {
    position: relative;
}

.contact-form .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.contact-form .input-icon-top {
    top: 1.1rem;
    transform: none;
}

.contact-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #1d4ed8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}

.contact-input::placeholder {
    color: #94a3b8;
}
