/* Core Layout */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #efefef;
}

.grid-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.inside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
}

/* Sections */
section {
    background: #fff;
    padding: 40px;
    margin-bottom: 20px;
}

.top-wrapper h1 {
    font-size: 42px;
    margin-top: 0;
}

.top-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Hero Image */
.top-1-2 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Search Bar */
.search-container {
    text-align: center;
    background: #222;
    color: #fff;
}

.search-text {
    padding: 12px;
    width: 300px;
    border-radius: 4px 0 0 4px;
    border: none;
}

.search-btn {
    padding: 12px 24px;
    background: #1e73be;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* Team Section */
.team-info {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}

.avatar img {
    border-radius: 50%;
}

.name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Subscription */
.subscribe-wrapper {
    background: #f9f9f9;
    text-align: center;
}

.section-header {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.subscribe-input {
    padding: 12px;
    margin: 5px;
    border: 1px solid #ddd;
    width: 200px;
}

.subscribe-button {
    padding: 12px 30px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Posts */
.home-posts-wrapper h3 {
    border-bottom: 2px solid #1e73be;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.home-posts-info {
    list-style: none;
    padding: 0;
}

.home-post {
    margin-bottom: 15px;
}

.home-post a {
    text-decoration: none;
    color: #1e73be;
    font-size: 18px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 60px 0 20px;
    font-size: 14px;
}

.menu-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.menu-footer a {
    color: #fff;
    text-decoration: none;
}

.affiliate-disclosure {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.4;
}

.copyright-bar {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .top-container, .team-info {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .hide-on-mobile {
        display: none;
    }
    
    .subscribe-input {
        width: 100%;
        box-sizing: border-box;
    }
}
/* Article / Page Specific Styling */
.inside-article {
    padding: 40px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 2px;
}

.entry-title {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
}

.entry-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content p {
    margin-bottom: 1.5em;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.entry-content a {
    color: #1e73be;
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: none;
}

/* Ensure content looks good on standard S3 deployment */
#primary {
    padding: 30px 0;
}
/* Contact Form Styling */
.contact-us-page .affiliate-notice {
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box; /* Crucial for width: 100% */
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    background-color: #1e73be;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1a62a3;
}

/* Specific button spacing from the source logic */
button[name="send"] {
    margin-top: 10px;
}
/* Page Header */
.page-header {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.taxonomy-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
}

/* Post Grid Architecture */
.featured-column {
    margin-bottom: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Post Card Styling */
.inside-article {
    background: #fff;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.entry-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: #1e73be;
}

.entry-meta {
    font-size: 13px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
}

.read-more.button {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: auto;
    font-weight: 600;
}

.read-more.button:hover {
    background: #1e73be;
}
/* Better image handling for the grid */
.post-image img {
    width: 100%;
    height: 250px; /* Fixed height for grid alignment */
    object-fit: cover; /* This crops the image to fit without stretching */
    display: block;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

/* Specific height for the featured image */
.featured-column .post-image img {
    height: 450px; 
}

/* Hover effect for a more modern feel */
.post-image img:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .post-image img, 
    .featured-column .post-image img {
        height: 200px; /* Shorter images on mobile */
    }
}