/* Global Reset & Typography */
:root {
    --primary-blue: #00305b;
    --secondary-blue: #004d80;
    --accent-gold: #ffcc00;
    --text-dark: #333;
    --text-white: #fff;
    --bg-light: #f4f4f4;
    --max-width: 1200px;
    --bottom-nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 5px 0;
    text-align: right;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-gold);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--primary-blue);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--secondary-blue);
}

/* Auth Buttons in Header */
.auth-buttons a {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 10px;
}

.btn-login {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-register {
    background-color: #c00;
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #fff, #f0f8ff);
    padding: 40px 0;
    text-align: center;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.cta-item {
    display: block;
    text-align: center;
    transition: transform 0.3s;
}

.cta-item:hover {
    transform: translateY(-5px);
}

.cta-image {
    width: 100%;
    max-width: 250px;
    height: 150px;
    /* Placeholder height */
    background: #eee;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Specialized image placeholders using CSS gradients to mimic the screenshot */
.cta-register .cta-image {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.cta-app .cta-image {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.cta-deposit .cta-image {
    background: linear-gradient(to top, #fcc5e4 0%, #fda34b 15%, #ff7882 35%, #c8699e 52%, #7046aa 71%, #0c1db8 87%, #020f75 100%);
}

.cta-withdraw .cta-image {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
}

.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    width: 90%;
}

.cta-register .cta-btn {
    background: #ff3333;
    /* Red trigger */
}

.cta-app .cta-btn {
    background: #ff9900;
}

.cta-deposit .cta-btn {
    background: #ffcc00;
    color: #333;
}

.cta-withdraw .cta-btn {
    background: #ffcc00;
    color: #333;
}


/* Main Content / SEO Text */
.seo-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.seo-content h1 {
    color: #c00;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.seo-content p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.seo-content strong {
    color: var(--primary-blue);
}

/* Blog/Content Generator Section */
.latest-news {
    background-color: #f9f9f9;
    padding: 50px 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-image {
    height: 180px;
    background-color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: bold;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #c00;
    font-weight: bold;
    font-size: 0.9rem;
}

footer {
    background-color: var(--primary-blue);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


/* --- Mobile & Responsive Styles --- */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

.nav-item svg {
    margin-bottom: 4px;
    fill: #666;
    transition: fill 0.3s;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-blue);
}

.nav-item.active svg,
.nav-item:hover svg {
    fill: var(--primary-blue);
}


/* Media Queries */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: var(--bottom-nav-height);
        /* Make space for bottom nav */
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile */
    }

    .nav-container {
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hide standard desktop nav and auth buttons in header on mobile */
    /* (Assuming we rely on bottom nav or specialized mobile header logic) */
    .main-nav {
        display: none;
    }

    .auth-buttons {
        display: flex;
        gap: 5px;
    }

    .auth-buttons a {
        padding: 5px 10px;
        font-size: 0.75rem;
        margin-left: 5px;
    }

    /* Option: Keep simplified Login/Register if needed in header, or rely on Bottom Nav 'Me' */
    /* Let's keep a simplified Login button in header if needed, but for now we hide to clean up */

    .hero {
        padding: 20px 0;
    }

    .cta-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on mobile is standard for "apps" feel */
        gap: 15px;
        padding: 10px;
    }

    .cta-image {
        max-width: 100%;
        height: 100px;
        /* Smaller height for mobile */
    }

    .cta-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
        width: 100%;
    }

    .seo-content {
        padding: 0 15px;
        margin: 20px auto;
    }

    .seo-content h1 {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        /* 1 column for news */
    }

    .news-image {
        height: 160px;
    }

    footer {
        padding-bottom: calc(20px + var(--bottom-nav-height));
        /* Extra padding for footer so it's not covered */
    }
}