/* Core Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #ffffff;
}

/* Top Navbar */
.navbar {
    background-color: #0c0d21;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.menu-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #12142b 0%, #631fd2 100%);
    padding: 60px 20px 100px;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Search Bar (Overlapping) */
.search-container {
    background: white;
    width: 100%;
    max-width: 650px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px auto -140px; /* Positions bar to overlap */
    position: relative;
    z-index: 10;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.search-icon {
    color: #0042ff;
    font-size: 1.2rem;
}

/* Main Content Container */
.main-container {
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

/* Product Cards (Wallet & Exchange) */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.product-card {
    background: #f3f8ff; /* Light blue tint from image */
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e1e9f5;
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-card h3 {
    color: #0042ff;
    font-size: 1.1rem;
}

.product-card p {
    color: #0042ff;
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Featured Articles */
.section-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    background: white;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
}

.category {
    display: block;
    color: #0042ff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.article-card h4 {
    font-size: 1.1rem;
    color: #111;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Floating Blue Button */
.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0042ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 66, 255, 0.4);
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .product-row {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
}
