﻿/* HERO */
.home-hero {
    height: 75vh;
    background: url('/images/hero/school.jpg') center/cover no-repeat;
    position: relative;
    animation: fadeIn 1.2s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0,0,0,0.55), rgba(0,0,0,0.65) );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    animation: slideDown 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-actions .btn {
    margin: 0.5rem;
}

/* ADVERT STRIP */
.advert-strip {
    overflow: hidden;
    width: 100%;
}

    .advert-strip:hover .advert-track {
        animation-play-state: paused;
    }

.advert-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation: scrollAds 25s linear infinite;
}

.advert-card {
    min-width: 260px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

    .advert-card:hover {
        transform: scale(1.05);
    }

    .advert-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    .advert-card span {
        display: block;
        padding: 0.8rem;
        font-weight: 600;
    }

/* QUICK TILES */
.home-tile {
    display: block;
    padding: 2rem;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .home-tile:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

.tile-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scrollAds {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
