/* ==========================
   Global Reset + Variables
========================== */
:root {
    --primary: #2a7ae2;
    --secondary: #f5f5f5;
    --dark: #222;
    --light: #fff;
    --accent: #f39c12;
    --radius: 8px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--secondary);
    color: var(--dark);
    line-height: 1.6;
}

/* ==========================
   Layout Grid
========================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* ==========================
   Ads Sections (left & right)
========================== */
.ads-left,
.ads-right {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 400px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* ==========================
   Main Content (center)
========================== */
.main-content {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ==========================
   Stats Section (Home)
========================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.95rem;
}

/* ==========================
   Marketplace Page
========================== */
.marketplace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
}

/* ==========================
   Responsive Design
========================== */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .ads-left,
    .ads-right {
        display: none;
    }
}
.page-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* space between columns */
    margin: 20px;
}

/* Ads sections */
.left-ads, .right-ads {
    width: 20%;              /* adjust as you want */
    background: #f9f9f9;     /* light background for clarity */
    padding: 10px;
    box-sizing: border-box;
}

/* Main content */
.main-content {
    flex: 1;                 /* take remaining space */
    min-width: 0;            /* prevents overflow in flexbox */
    background: #fff;        /* white background */
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Make it responsive on smaller screens */
@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
    }
    .left-ads, .right-ads, .main-content {
        width: 100%;
    }
}
