/* ========== Base Styles ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
}

/* ========== Header ========== */
.site-header {
    width: 100%;
    background-color: #2a2a2a;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    z-index: 999;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1240px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ffcc00;
}

/* ========== Container Layout ========== */
.container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 20px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
}

.column {
    flex: 0 1 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.column:hover {
    transform: translateY(-4px);
}

/* ========== Featured Section ========== */
.featured-section {
    background-color: #fdfdfd;
    padding: 40px 20px 20px;
    margin: 0 auto;
    max-width: 1240px;
}

.section-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    display: inline-block;
    padding-bottom: 10px;
}

.featured-heading {
    text-align: left;
    font-size: 1.2em;
}

.full-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* ========== Image Styles ========== */
.column img,
.compact img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ========== Compact Column (for featured articles) ========== */
.compact {
    flex: 0 1 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

/* ========== Responsive Breakpoints ========== */

/* Tablet: 2 columns main and featured */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .column {
        flex: 0 1 calc(50% - 20px);
    }

    .compact {
        flex: 0 1 calc(50% - 20px);
    }
}

/* Desktop: 3 columns main, 4 columns featured */
@media screen and (min-width: 1025px) {
    .column {
        flex: 0 1 calc(33.333% - 20px);
    }

    .compact {
        flex: 0 1 calc(25% - 20px);
    }
}
