/*
Theme Name: Antares Base
Theme URI: https://example.com/antares-base
Author: Antares
Author URI: https://example.com
Description: A lightweight base theme for development.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antares-base
*/

body {
    background-color: #f0f0f0;
    font-family: 'Merriweather', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header.site-header {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.site-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-branding {
    margin-bottom: 1rem;
    width: 100%;
}

.site-branding .custom-logo-link img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.newsletter-subscribe {
    background: transparent; /* visual card moved to inner container */
    color: #222;
    padding: 1.5rem 0; /* vertical spacing only */
    margin: 1.75rem 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.main-navigation li {
    display: block;
}

.main-navigation a {
    display: block;
    padding: 0.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* Footer styles moved to Footer Redesign section below */


a {
    color: #0073aa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-banner {
    background: #2c3e50;
    color: #fff;
    padding: 6rem 1rem;
    margin-bottom: 3rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.5); /* Overlay */
    z-index: 1;
}

.hero-banner .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner h2 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-banner h2 a {
    color: #fff;
    text-decoration: none;
}

.hero-banner .entry-excerpt {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-banner .btn {
    display: inline-block;
    background: #ffffff;
    color: #333;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-banner .btn:hover {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 1fr; /* make grid rows equal height so items align */
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    align-self: stretch; /* ensure item fills its grid cell */
}

.grid-item .post-thumbnail {
    margin-bottom: 0.6rem;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1/1; /* enforce square thumbnails */
    background: #f4f4f4;
}

.grid-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item .post-thumbnail:hover img {
    transform: scale(1.05);
}

.grid-item .entry-title {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #222; /* stronger, header-like color */
}

.grid-item .entry-content {
    flex: 1 1 auto; /* allow excerpt/content to take remaining space so titles align */
}

.grid-item .entry-title a {
    color: #2c3e50;
    text-decoration: none;
}

.grid-item .entry-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.grid-item .entry-meta a {
    color: #7f8c8d;
}

.grid-item .entry-content p {
    margin: 0; /* Tighten excerpt */
}

/* Single Post Page */
.single-post {
    margin-bottom: 0;
}

.post-featured-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.single-post .entry-header {
    margin-bottom: 2rem;
    text-align: left;
}

.single-post .entry-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.single-post .entry-meta a {
    color: #7f8c8d;
}

.single-post .entry-meta .sep {
    margin: 0 0.5rem;
}

.single-post .entry-title {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0;
    color: #2c3e50;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}

.single-post .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.single-post .tags-links {
    font-size: 0.95rem;
}

.single-post .tags-links a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f0f0f0;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    transition: background 0.3s ease;
}

.single-post .tags-links a:hover {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    background: #f9f9f9;
    padding: 4rem 0;
    margin-top: 4rem;
}

.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .single-post .entry-title {
        font-size: 2rem;
    }

    .post-featured-image {
        max-height: 400px;
    }
}

/* Footer Redesign */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    border-top: none;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-branding {
    flex: 0 0 200px;
}

.footer-branding h3 {
    margin: 0;
    font-size: 1.5rem;
}

.footer-branding h3 a {
    color: #fff;
    text-decoration: none;
}

.footer-branding img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    flex: 1;
    padding-left: 2rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-right {
        align-items: flex-end;
        text-align: right;
    }
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-social svg {
    width: 28px;
    height: 28px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Category Sections */
.category-section {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c3e50;
    color: #2c3e50;
    font-weight: 700;
}

.category-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-title a:hover {
    color: #3498db;
}

/* Newsletter subscribe block - eye catching styles */
.newsletter-subscribe {
    background: #fff;
    color: #222;
    padding: 1.5rem 2rem; /* add horizontal padding */
    margin: 1.75rem 0;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    position: relative;
    overflow: visible;
    border-left: 6px solid #2c3e50; /* blockquote-style accent */
}

.newsletter-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* Add padding on the inner container only (doesn't change global .container) */
.newsletter-inner.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.newsletter-text {
    flex: 1 1 auto;
}

.newsletter-title {
    margin: 0 0 0.25rem;
    font-family: Merriweather, Georgia, serif; /* serif to match theme */
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2933;
}

.newsletter-desc {
    margin: 0;
    color: #4b5563;
    font-size: 0.98rem;
}

.newsletter-extra {
    margin: 0.5rem 0 0;
    color: #374151;
    font-family: Merriweather, Georgia, serif;
    font-size: 1rem;
}

.newsletter-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.newsletter-note a {
    color: #1f2933;
    text-decoration: underline;
}

/* Stack the note under the email input and align it with the input */
.newsletter-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* keep the form aligned to the right in desktop layout */
    gap: 0.5rem;
}

.newsletter-actions .newsletter-form {
    width: 100%;
    max-width: 360px;
}

.newsletter-actions .newsletter-note {
    align-self: flex-start; /* align note under the left edge of the input */
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .newsletter-actions { align-items: stretch; }
    .newsletter-actions .newsletter-form { max-width: none; }
    .newsletter-actions .newsletter-note { align-self: stretch; }
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex: 0 0 360px;
}

.newsletter-form input[type="email"] {
    flex: 1 1 auto;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder { color: #9ca3af; }

.newsletter-btn {
    padding: 0.6rem 0.95rem;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(44,62,80,0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.newsletter-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(44,62,80,0.12); }

@media (max-width: 900px) {
    .newsletter-inner { flex-direction: column; align-items: stretch; }
    .newsletter-form { width: 100%; flex: none; }
    .newsletter-form input[type="email"] { width: 100%; }
}

@media (min-width: 1200px) {
    .newsletter-inner.container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 480px) {
    .newsletter-subscribe { padding: 1rem; }
}

@media (min-width: 1200px) {
    .newsletter-subscribe { padding: 1.75rem 3.5rem; }
}
