/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    overflow-x:hidden;
}

section{
    padding:60px 20px;
}

h1,h2,h3{
    margin-bottom:15px;
}

p{
    line-height:1.6;
}

/* =========================
   HERO
========================= */
/* ==================================
   HERO BACKGROUND SLIDESHOW
================================== */

.hero{
    position:relative;
    min-height:80vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
    color:#fff;

    overflow:hidden;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    animation:heroSlider 20s infinite;
}

.hero::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:rgba(11,31,58,.65);
    z-index:1;
}

.hero-overlay{
    position:relative;
    z-index:2;
    max-width:900px;
    padding:20px;
}

.hero h1{
    font-size:56px;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    margin-bottom:30px;
}

.cta{
    display:inline-block;
    background:#22c55e;
    color:#fff;
    padding:12px 25px;
    border-radius:5px;
    text-decoration:none;
    font-weight:bold;
}

.cta:hover{
    background:#16a34a;
}

/* HERO IMAGE ROTATION */

@keyframes heroSlider{

    0%{
        background-image:url('assets/images/about1.jpg');
    }

    25%{
        background-image:url('assets/images/about2.jpg');
    }

    50%{
        background-image:url('assets/images/about3.jfif');
    }

    75%{
        background-image:url('assets/images/about4.jpg');
    }

    100%{
        background-image:url('assets/images/about1.jpg');
    }
}


/* =========================
   HERO SLIDESHOW
========================= */
.hero-slideshow{
    position:relative;
    width:100%;
    max-width:1100px;
    height:300px;
    margin-top:40px;
    overflow:hidden;
    border-radius:12px;
}

.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1.5s ease-in-out;
}

.hero-slide.active{
    opacity:1;
}

/* =========================
   FEATURES
========================= */
.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    max-width:1200px;
    margin:auto;
}

.card{
    background:#fff;
    border-radius:10px;
    padding:25px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.card a{
    display:inline-block;
    margin-top:15px;
    color:#22c55e;
    text-decoration:none;
    font-weight:bold;
}

/* =========================
   ABOUT FULL WIDTH
========================= */
.about{
    background:#22c55e;
    color:#fff;

    width:100vw;

    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);

    padding:100px 30px;
    text-align:center;
}

.about h2{
    font-size:36px;
    margin-bottom:20px;
}

.about p{
    max-width:1000px;
    margin:auto;
    font-size:18px;
    line-height:1.8;
}
/* =========================
   COURSES
========================= */
.courses{
    padding:60px 20px;
}

.courses h2{
    text-align:center;
    margin-bottom:30px;
}

.course-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    max-width:1200px;
    margin:auto;
}

.course{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

/* =========================
   ANNOUNCEMENTS
========================= */
.announcements{
    background:#f8fafc;
}

.announcements h2{
    text-align:center;
    color:#0b1f3a;
    margin-bottom:30px;
}

.announcement-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
    max-width:1200px;
    margin:auto;
}

.announcement-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    color:#333;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.announcement-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,.15);
}

.announcement-content{
    padding:20px;
}

.announcement-content h3{
    color:#0b1f3a;
    margin-bottom:10px;
}

.announcement-content p{
    color:#666;
}

.announcement-date{
    color:#22c55e;
    font-weight:bold;
    display:block;
    margin-bottom:15px;
}

.read-more{
    color:#0b1f3a;
    font-weight:bold;
}

/* =========================
   NAVIGATION
========================= */
.nav-menu{
    display:flex;
    gap:20px;
}

.hamburger{
    display:none;
    font-size:24px;
    cursor:pointer;
}

/* =========================
   FOOTER
========================= */
.footer{
    background:#0b1f3a;
    color:#ccc;
    padding:40px 20px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.footer-col h3{
    color:#fff;
    margin-bottom:15px;
}

.logo{
    color:#22c55e;
}

.footer-col p,
.footer-col a{
    color:#ccc;
    text-decoration:none;
    display:block;
    margin-bottom:8px;
}

.footer-col a:hover{
    color:#22c55e;
}

.footer-col ul{
    list-style:none;
}

.footer-bottom{
    border-top:1px solid #24405f;
    margin-top:20px;
    padding-top:15px;
    text-align:center;
}

/* =========================
   TABLET
========================= */
@media(max-width:768px){

    .hero{
        min-height:70vh;
        padding:100px 20px 60px;
    }

    .hero h1{
        font-size:36px;
    }

     .hero p{
        font-size:18px;
    }

    .about{
        padding:70px 20px;
    }
    
    .hero-slideshow{
        height:220px;
    }

    .nav-menu{
        display:none;
        flex-direction:column;
    }

    .nav-menu.active{
        display:flex;
    }

    .hamburger{
        display:block;
    }

    .footer-container{
        grid-template-columns:1fr;
    }
}

/* =========================
   DESKTOP
========================= */
@media(min-width:1024px){

    .hero h1{
        font-size:56px;
    }

    .hero-slideshow{
        height:350px;
    }
}