/* =========================================
   GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f4f4;
    color: #222;
    padding-top: 90px;

    animation: pageFade 0.6s ease-in;
}

/* =========================================
   HEADER (FIXED - ALL PAGES)
========================================= */

header {
    background: #800000;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #d4af37;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    object-fit: cover;
}

.logo-text {
    color: #d4af37;
    font-weight: 700;
    font-size: 18px;
}

/* NAVIGATION */
.nav {
    display: flex;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.nav a {
    color: gold;
    padding: 10px 15px;
    text-decoration: none;
    transition: 0.25s ease;
}

.nav a:hover {
    background: #800000;
    color: white;
}

/* MOBILE MENU ICON */
.menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* =========================================
   NOTICE BAR
========================================= */

.notice {
    background: #d4af37;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
}

/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    top: 0;
    left: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 1s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 4s ease;
}

.slide.active img {
    transform: scale(1.1);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: white;
}

.hero-text h1 {
    font-size: 55px;
    color: #d4af37;
    animation: slideDown 1s ease-out;
}

.tagline {
    font-size: 18px;
    animation: fadeIn 1.4s ease-out;
}

.motto {
    font-size: 22px;
    letter-spacing: 3px;
    animation: fadeIn 1.8s ease-out;
}

/* =========================================
   STATS
========================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.stat {
    background: white;
    padding: 25px;
    border-left: 5px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;

    opacity: 0;
    animation: popIn 1s ease forwards;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }
.stat:nth-child(4) { animation-delay: 0.8s; }

/* =========================================
   PORTAL
========================================= */

.portal {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.title {
    text-align: center;
    color: #800000;
    font-size: 32px;
    margin-bottom: 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-left: 5px solid #d4af37;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: 0.25s ease;
}

.card:hover {
    background: #800000;
    color: white;
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================================
   FOOTER
========================================= */

footer {
    background: #800000;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* =========================================
   🚀 GLOBAL MOBILE DROPDOWN (FIXED FOR ALL PAGES)
========================================= */

@media(max-width:768px){

.menu {
    display: block;
}

/* dropdown box */
.nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    width: 240px;
    background: #800000;
    border-radius: 12px;
    padding: 10px;
    border: 2px solid #d4af37;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 2000;
}

/* show menu */
.nav.show {
    display: flex;
    animation: dropdownFade 0.25s ease;
}

/* links */
.nav a {
    padding: 12px 15px;
    margin: 4px 0;
    color: gold;
    border-radius: 6px;
    text-align: left;
    font-size: 15px;
    transition: 0.2s;
}

.nav a:hover {
    background: #d4af37;
    color: black;
    padding-left: 18px;
}

.hero-text h1 {
    font-size: 32px;
}
}

/* =========================================
   🚀 ANIMATIONS
========================================= */

@keyframes pageFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}