/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    /* overflow: hidden;  <-- REMOVED: Caused scrolling issues on some devices */
    background: #f4f6fb;
    color: #222;
}

/* ===============================
   HEADER / NAVBAR
================================ */
.main-header {
    height: 60px;
    background: linear-gradient(90deg, #4b4ac8, #2b1fa8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.main-header .logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-header nav a {
    text-decoration: none;
    color: #eaeaff;
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.main-header nav a:hover {
    color: #ffffff;
}

.login-btn {
    background: #0d0b6f;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.login-btn:hover {
    background: #090760;
}

/* ===============================
   SMALL IMAGE / SLIDER SECTION (CLEANED UP)
================================ */
/* Basic structure only. Specific sizing handled in individual pages (like index.php) */
.mini-banner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    background: #fff;
    /* Removed fixed max-width/height constraints here */
}

.mini-slide {
    width: 100%;
    height: 100%; /* Force fill */
    /* Removed max-height and object-fit: contain clash */
    display: none;
    border-radius: 14px;
}

.mini-slide.active {
    display: block;
}

/* ===============================
   CONTENT SECTIONS (COMMON)
================================ */
.content {
    max-width: 900px;
    margin: auto;
    padding: 15px 25px;
    text-align: center;
    animation: slideUp 0.6s ease;
}

.content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #1f1f7a;
}

.content p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Compact variant (Home page) */
.content.compact {
    padding-top: 5px;
}

/* ===============================
   TEAMS / CARDS
================================ */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.card {
    background: #fff;
    width: 260px;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #2b1fa8;
}

.card p {
    font-size: 14px;
    color: #555;
}

/* ===============================
   EVENT DETAILS / SCHEDULE
================================ */
.schedule {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 15px;
}

.schedule-item {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.schedule-item h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #1f1f7a;
}

.schedule-item span {
    font-size: 13.5px;
    color: #555;
}

/* ===============================
   RULES PAGE
================================ */
.rules-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin-top: 20px;
}

.rules-box a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    background: #2b1fa8;
    color: #fff;
    padding: 8px 18px;
    border-radius: 18px;
    font-size: 14px;
}

.rules-box a:hover {
    background: #1c1780;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fade {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===============================
   RESPONSIVE (Laptop & Tablet)
================================ */
@media (max-width: 1024px) {
    .cards {
        flex-wrap: wrap;
    }
    .schedule {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-y: auto; /* allow scroll on mobile */
    }

    .main-header {
        padding: 0 20px;
    }

    /* REMOVED conflicting mini-banner styles here so index.php controls it */

    .schedule {
        grid-template-columns: 1fr;
    }
}