/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Utility ========== */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* ========== Tiranga Games Mobile Section ========== */
.tiranga-games-mobile {
    background: linear-gradient(135deg, #ff6f00, #e53935);
    color: #fff;
    padding: 24px 16px;
    text-align: center;
}

.games-buttons-top,
.games-buttons-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.btn-register,
.btn-login {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}

.btn-register {
    background-color: #fff;
    color: #e53935;
    border: 2px solid #fff;
}

.btn-login {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-register:hover,
.btn-login:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.games-logo-container {
    margin: 16px auto;
    max-width: 200px;
}

.games-logo-image {
    width: 100%;
    border-radius: 8px;
}

.games-app-image {
    margin: 16px auto;
    max-width: 320px;
}

.games-app-img {
    width: 100%;
    border-radius: 10px;
}

.games-content-text {
    margin-top: 20px;
    padding: 0 8px;
}

.games-signup-heading {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.games-content-text p {
    font-size: 0.95rem;
    opacity: 0.95;
}

.has-text-align-center {
    text-align: center;
}

/* ========== Homepage Section ========== */
.homepage-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Main banner image */
.main-flag-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    margin-bottom: 36px;
}

.main-flag-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Content block */
.homepage-content {
    margin-bottom: 48px;
}

.homepage-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    line-height: 1.3;
}

.homepage-subheading {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e53935;
    margin: 28px 0 14px;
}

.homepage-text {
    font-size: 1rem;
    color: #444;
    max-width: 820px;
}

/* Gallery */
.homepage-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ========== Footer ========== */
.footer-nav {
    background-color: #1a1a2e;
    color: #ccc;
    padding: 20px 16px;
}

.footer-nav-bar {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
}

.footer-link {
    font-size: 0.9rem;
    color: #bbb;
    transition: color 0.2s;
    padding: 4px 0;
}

.footer-link:hover {
    color: #fff;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .homepage-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .homepage-title {
        font-size: 1.4rem;
    }

    .homepage-subheading {
        font-size: 1.1rem;
    }

    .homepage-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-image {
        height: 130px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .homepage-gallery {
        grid-template-columns: 1fr;
    }
}
