/* Filename: blog.css */

/* 1. GENERAL SETTINGS */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* 2. HEADER */
header {
    background-color: #000000;
    padding: 15px 0;
    color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.nav-links a {
    color: #4da6ff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* 3. BLOG SECTION */
.blog-section {
    padding: 40px 0;
}

.section-title {
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* =====================================================
   PREMIUM MIX LAYOUT UPGRADE
   Featured Box + 3 Cards + Grid Cards
===================================================== */

/* ------ FEATURED BOX (BIG TOP STORY) ------ */
.featured-box {
    width: 100%;
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.featured-box img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: 20px;
}

.featured-content h1 {
    font-size: 1.9rem;
    margin-bottom: 10px;
    color: #000;
}

.featured-content p {
    font-size: 1rem;
    color: #555;
}

/* ------ TOP 3 CARDS GRID ------ */
.top-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ------ MAIN BLOG GRID (3 per row) ------ */
.blog-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

/* ------ CARD DESIGN (universal for all) ------ */
.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ------ IMAGE FIX: FULL IMAGE ALWAYS VISIBLE (NO CROP) ------ */
.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* full image visible */
    display: block;
}

/* CONTENT */
.card-content {
    padding: 18px;
    flex: 1;
}

.card-category {
    color: #0066cc;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card h2 {
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.card h2 a {
    color: #000000;
    text-decoration: none;
    font-size: 1.2rem;
}

.card h2 a:hover {
    color: #0066cc;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.read-more {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* 5. FOOTER */
footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-links a {
    color: #4da6ff;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 992px) {

    .featured-content h1 {
        font-size: 1.6rem;
    }

    .top-3-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {

    .featured-content h1 {
        font-size: 1.4rem;
    }

    .featured-box img {
        aspect-ratio: 16/10;
    }

    .top-3-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .blog-list {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .card-img {
        aspect-ratio: 16/10;
    }

    .card h2 a {
        font-size: 1.1rem;
    }
}
