/*
Theme Name: EveryDaySafe
Theme URI: https://everydaysafe.com
Author: Antigravity
Author URI: https://google.com
Description: A modern, minimalistic, and ultra-responsive theme for digital security news.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, security, responsive, dark-mode-header
Text Domain: everydaysafe
*/

:root {
    --primary-color: #000000;
    /* Deep Black/Navy */
    --accent-color: #D32F2F;
    /* Alert Red */
    --text-color: #333333;
    --bg-color: #ffffff;
    --font-primary: 'Inter', 'Roboto', sans-serif;
    --container-width: 1400px;
    --header-height: 80px;
}

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-container-fluid {
    width: 100%;
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
}

/* Header (Fortinet Style: Dark) */
.site-header {
    background-color: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--accent-color);
    /* Red line accent */
}

.site-title a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    color: #ccc;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: #fff;
}

/* Hero Grid (The "Bento" Layout) */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 and 1/3 */
    grid-template-rows: 250px 250px;
    gap: 20px;
    height: 520px;
    /* Fixed height for coherence */
}

.hero-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
}

/* 1st Item (Main) takes full left column */
.hero-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* 2nd Item (Top Right) */
.hero-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* 3rd Item (Bottom Right) */
.hero-card:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.hero-link {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    position: relative;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    color: #fff;
    width: 100%;
}

.hero-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
}

.hero-card:first-child .hero-title {
    font-size: 2rem;
    line-height: 1.2;
}

.hero-card:not(:first-child) .hero-title {
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Main Feed Below Hero */
.section-feed {
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-heading {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    color: #000;
}

.main-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.feed-item {
    display: flex;
    flex-direction: column;
}

.feed-thumb img {
    border-radius: 4px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feed-details {
    padding-top: 15px;
}

.feed-title {
    font-size: 1.1rem;
    margin: 5px 0 10px;
    line-height: 1.4;
}

.feed-title a {
    color: #000;
    font-weight: 700;
}

.feed-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .hero-card:nth-child(1),
    .hero-card:nth-child(2),
    .hero-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        height: 300px;
        /* Fallback height for mobile */
    }
}