/* ===========================================
   MCYO WEBSITE
   style.css - Part 1
===========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fa;
    color:#333;
}

/* ===========================
      NAVIGATION
=========================== */

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
}

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 70px;

    background:#003366;

    box-shadow:0 3px 10px rgba(0,0,0,.15);

}

.logo{

    display:flex;

    align-items:center;

}

.logo img{

    width:55px;

    height:55px;

    object-fit:cover;

    margin-right:12px;

    border-radius:50%;

    background:white;

}

.logo h2{

    color:white;

    font-size:28px;

}

.nav-links{

    display:flex;

    list-style:none;

}

.nav-links li{

    margin-left:30px;

}

.nav-links a{

    color:white;

    text-decoration:none;

    font-size:17px;

    transition:.3s;

}

.nav-links a:hover{

    color:#FFD700;

}

/* ===========================
      HERO SECTION
=========================== */

.hero{

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:20px;

    background:
    linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ),
    url("../images/hero.jpeg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    color:white;

}

.hero-content{

    max-width:900px;

}

.hero h1{

    font-size:60px;

    margin-bottom:20px;

    line-height:1.2;

}

.hero h3{

    font-size:30px;

    color:#FFD700;

    margin-bottom:20px;

}

.hero p{

    font-size:22px;

    line-height:36px;

    margin-bottom:15px;

}

.hero h4{

    margin-bottom:40px;

    font-style:italic;

}

/* ===========================
      BUTTONS
=========================== */

.buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.btn{

    text-decoration:none;

    background:#FFD700;

    color:#003366;

    padding:15px 35px;

    border-radius:40px;

    font-weight:bold;

    transition:.3s;

}

.btn:hover{

    background:white;

    transform:translateY(-4px);

}

.btn-outline{

    background:transparent;

    color:white;

    border:2px solid white;

}

.btn-outline:hover{

    background:white;

    color:#003366;

}

/* ===========================
      SECTION COMMON
=========================== */

section{

    padding:90px 10%;

}

section h2{

    text-align:center;

    color:#003366;

    margin-bottom:30px;

    font-size:38px;

}

/* ===========================
      ABOUT
=========================== */

.about-preview p{

    max-width:900px;

    margin:auto;

    text-align:center;

    line-height:34px;

    font-size:20px;

}

/* ===========================
      NOTICE
=========================== */

.notice-section{

    background:#eef5ff;

}

.notice-card{

    max-width:900px;

    margin:auto;

    background:white;

    padding:35px;

    border-left:8px solid #FFD700;

    border-radius:10px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.notice-card h3{

    color:#003366;

    margin-bottom:15px;

}

.notice-card p{

    line-height:30px;

}

/* ===========================
      EVENTS
=========================== */

.event-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.event-card{

    background:white;

    padding:30px;

    border-radius:12px;

    text-align:center;

    transition:.3s;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.event-card:hover{

    transform:translateY(-8px);

}

.event-card h3{

    color:#003366;

    margin-bottom:15px;

}
/* ===========================
      DROPDOWN MENU
=========================== */

.dropdown{
    position:relative;
}

.dropdown-content{

    display:none;

    position:absolute;

    top:100%;

    left:0;

    background:white;

    min-width:220px;

    border-radius:8px;

    box-shadow:0 8px 20px rgba(0,0,0,.2);

    overflow:hidden;

    z-index:999;

}

.dropdown-content li{

    list-style:none;

    margin:0;

}

.dropdown-content li a{

    display:block;

    color:#003366;

    padding:12px 18px;

    text-decoration:none;

    font-size:15px;

}

.dropdown-content li a:hover{

    background:#003366;

    color:white;

}

.dropdown:hover .dropdown-content{

    display:block;

}
/* ===========================
   PAGE BANNER
=========================== */

.page-banner{

padding:170px 20px 80px;

text-align:center;

background:linear-gradient(rgba(0,40,90,.8),rgba(0,40,90,.8)),url("../images/banner.jpg");

background-size:cover;

background-position:center;

color:white;

}

.page-banner h1{

font-size:55px;

margin-bottom:15px;

}

.page-banner p{

font-size:22px;

}

/* ===========================
   CONTENT
=========================== */

.content-section{

width:85%;

margin:auto;

padding:70px 0;

}

.content-section h2{

color:#003366;

margin-bottom:25px;

font-size:36px;

}

.content-section p{

line-height:34px;

font-size:20px;

text-align:justify;

}

.content-section ul{

margin-left:30px;

line-height:35px;

font-size:20px;

}

/* ===========================
   CARDS
=========================== */

.cards{

width:90%;

margin:auto;

display:grid;

grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

gap:30px;

padding-bottom:80px;

}

.card{

background:white;

padding:30px;

border-radius:12px;

box-shadow:0 8px 20px rgba(0,0,0,.12);

transition:.3s;

}

.card:hover{

transform:translateY(-8px);

}

.card h3{

color:#003366;

margin-bottom:15px;

}

.card p{

line-height:28px;

}
/* =======================
      KEY NOTE SECTION
======================= */

.keynote{

    padding:80px 10%;

    background:white;

}

.keynote-container{

    display:flex;

    align-items:center;

    gap:50px;

    flex-wrap:wrap;

}

.keynote-image{

    flex:1;

    text-align:center;

}

.keynote-image img{

    width:320px;

    border-radius:15px;

    box-shadow:0 8px 25px rgba(0,0,0,0.25);

}

.keynote-text{

    flex:2;

}

.keynote-text h2{

    color:#0b3d91;

    font-size:38px;

    margin-bottom:10px;

}

.keynote-text h3{

    color:#d4a017;

    margin-bottom:25px;

}

.keynote-text p{

    font-size:18px;

    line-height:1.9;

    text-align:justify;

    color:#444;

}

.gallery-preview{
    padding:80px 10%;
    text-align:center;
    background:#f8f9fa;
}

.gallery-preview h2{
    font-size:40px;
    color:#0b3d91;
    margin-bottom:40px;
}

.gallery-grid{
    display:flex;
    justify-content:center;   /* Centers the photos */
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
}

.gallery-grid img{
    width:350px;
    height:250px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:0.3s;
}

.gallery-grid img:hover{
    transform:scale(1.05);
}

/* ================= UPCOMING EVENT ================= */

.events{

    padding:80px 10%;
    background:#f8f9fa;

}

.events h2{

    text-align:center;
    font-size:42px;
    color:#0b3d91;
    margin-bottom:50px;

}

.featured-event{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:60px;
    flex-wrap:wrap;

}

.event-poster img{

    width:380px;
    border-radius:15px;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
    transition:.3s;

}

.event-poster img:hover{

    transform:scale(1.03);

}

.event-info{

    max-width:550px;

}

.event-badge{

    display:inline-block;
    background:#d32f2f;
    color:#fff;
    padding:8px 18px;
    border-radius:30px;
    margin-bottom:20px;
    font-weight:bold;

}

.event-info h3{

    color:#0b3d91;
    font-size:36px;
    margin-bottom:20px;

}

.event-info p{

    font-size:18px;
    line-height:1.8;
    color:#444;
    margin-bottom:15px;

}

.event-button{

    display:inline-block;
    margin-top:20px;
    background:#0b3d91;
    color:white;
    text-decoration:none;
    padding:14px 30px;
    border-radius:30px;
    transition:.3s;

}

.event-button:hover{

    background:#d4a017;

}