/*
Theme Name: News Elegant Blue Theme
Theme URI: http://example.com/news-elegant-blue-theme
Author: Tu Nombre
Author URI: http://example.com
Description: Un theme de WordPress elegante para sitios de noticias con un diseño moderno y profesional.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-elegant-blue-theme
Tags: news, modern, blue, elegant, responsive
*/

body {
    background-color: #f4f4f9;
    color: #333;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #0044cc;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

a {
    color: #0044cc;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    background: #fff;
}

.hero h1 {
    font-size: 3rem;
    color: #222;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

.hero .hero-btns {
    margin-top: 20px;
}

.hero .btn {
    background: #0044cc;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    margin-right: 10px;
    display: inline-block;
}

.hero .btn-outline {
    border: 2px solid #0044cc;
    color: #0044cc;
    background: none;
}

.hero .btn:hover {
    opacity: 0.9;
}

.hero img {
    max-width: 500px;
    border-radius: 10px;
}

/* Grid de artículos */
.grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 50px 10%;
}

.article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.article:hover {
    transform: translateY(-5px);
}

.article img {
    width: 100%;
    height: auto;
}

.article-content {
    padding: 15px;
}

.article h3 {
    margin: 10px 0;
    font-size: 1.4rem;
    color: #222;
}

/* Página de artículo */
.single-content {
    display: flex;
    flex-wrap: wrap;
    padding: 50px 10%;
}

.main-content {
    width: 70%;
    padding: 20px;
    background: #ffffff;
}

.sidebar {
    width: 30%;
    padding: 20px;
    background: #f8f8f8;
}

/* Caja de autor mejorada */
.author-box {
    background: #e0ebff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
}

.author-box h3 {
    margin-bottom: 5px;
    color: #0044cc;
}

@media (max-width: 768px) {
    .single-content {
        flex-direction: column;
    }

    .main-content, .sidebar {
        width: 100%;
    }

    .grid-home {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        max-width: 100%;
    }
}
