/* --- Basic Reset & Defaults --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: #0077cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin-bottom: 0.8em; line-height: 1.3; color: #2c3e50; }
.section-padding { padding: 60px 0; }
.bg-light { background-color: #ffffff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.text-center { text-align: center; }

/* --- Header & Main Nav --- */
.site-header { background-color: #ffffff; padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo img { max-height: 60px; }
.main-nav ul { display: flex; list-style: none; padding: 0; }
.main-nav li { margin-left: 25px; }
.main-nav a { color: #333; font-weight: bold; }
.social-icons a { color: #555; margin-left: 15px; font-size: 1.2em; }

/* --- Hero Section --- */
.hero-section { background-size: cover; background-position: center; color: #fff; text-align: center; padding: 100px 0; position: relative; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero-section h1 { color: yellow; text-shadow: 2px 2px 4px #FFFFFF; }


/* --- Intro Section --- */
.intro-section p {
    max-width: 800px; /* Improve readability */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Optional: center the text */
}
.placeholder-media {
    text-align: center;
    margin-top: 30px;
}
.placeholder-media img {
    max-width: 600px;
    margin: 0 auto 10px auto;
    border: 1px solid #ddd;
    padding: 5px;
}

/* --- Featured Content --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.featured-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden; /* Ensures image fits */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.featured-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image nicely */
}
.featured-item h3 {
    font-size: 1.2em;
    padding: 15px 20px 5px 20px;
    margin-bottom: 0.5em;
}
.featured-item h3 a {
    color: #333;
}
.featured-item h3 a:hover {
    color: #0077cc;
    text-decoration: none;
}
.featured-item p {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
    color: #555;
}
.read-more {
    display: inline-block;
    padding: 0 20px 15px 20px;
    font-weight: bold;
    color: #0077cc;
}

/* --- Lead Magnets --- */
.email-form {
    background-color: #eef;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid #ccd;
}
/* Removed specific email input width from here - handled by form-group now */
.email-form button {
    padding: 10px 20px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Added margin for spacing */
}
.email-form button:hover {
    background-color: #0056b3;
}

.lead-magnet-grid {
    display: grid; /* <<< THIS IS IMPORTANT FOR GRID LAYOUT */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lead-magnet-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    display: flex; /* Added for better internal alignment */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push button towards bottom */
}
.lead-magnet-item img {
    max-width: 150px; /* Adjust size */
    margin: 0 auto 15px auto;
    border-radius: 3px;
}
.lead-magnet-item h3 {
    font-size: 1.1em;
    margin-bottom: 0.5em;
}
.lead-magnet-item p {
     flex-grow: 1; /* Allow text to take available space */
     margin-bottom: 15px; /* Add space before button */
}
.button-secondary {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    border: none; /* Make sure buttons look like buttons */
    cursor: pointer; /* Add pointer cursor */
}
.button-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
    color: white;
}
/* Hide summary content div */
.summary-content {
    display: none;
}


/* --- Affiliate Section --- */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6f61; /* Engaging color */
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #e65a4f;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* Blinking Button Effect */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.blinking {
    /* Changed 1s to 2s for slower blink */
    animation: blink-animation 2s steps(2, start) infinite;
}
/* Keep the @keyframes blink-animation rule as is */

/* --- Tools Section --- */
.tool-placeholder, .chart-placeholder {
    background: #fff;
    border: 1px dashed #ccc;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 5px;
}
.tool-placeholder h3, .chart-placeholder h3 {
    color: #555;
}
.chart-placeholder img {
    max-width: 500px;
    margin: 20px auto 0 auto;
    border: 1px solid #eee;
}

/* --- Blog & Podcast Page Specifics --- */
.page-title-section {
    text-align: center;
    background-color: #e9ecef; /* Slightly different background */
}
.page-title-section h1 {
    margin-bottom: 0.2em;
}
.post-meta, .episode-meta {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 10px;
}
.player-placeholder {
    background: #f0f0f0;
    padding: 15px;
    text-align: center;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

/* --- Blog Post Grid Layout --- */
.blog-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.blog-grid-container .blog-post-summary { background-color: #ffffff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.08); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.blog-grid-container .blog-post-summary:hover { transform: translateY(-5px); }
.blog-grid-container .blog-post-summary img { width: 100%; height: 200px; object-fit: cover; }
.blog-grid-container .blog-post-summary .post-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-grid-container .blog-post-summary h3 { font-size: 1.3em; margin-bottom: 10px; }
.blog-grid-container .blog-post-summary .post-meta { font-size: 0.85em; color: #6c757d; margin-bottom: 15px; }
.blog-grid-container .blog-post-summary p { flex-grow: 1; }
.blog-grid-container .blog-post-summary .read-more { margin-top: 15px; font-weight: bold; }
.blog-pagination { text-align: center; margin-top: 50px; }
.blog-pagination a { margin: 0 10px; }


/* --- Responsive Adjustments for Blog Grid --- */
@media (max-width: 992px) {
    .blog-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 640px) {
    .blog-grid-container {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}

.podcast-subscribe {
    margin-top: 20px;
}
.podcast-subscribe .button-secondary {
    margin: 5px;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c3e50; /* Dark background */
    color: #ecf0f1;
    padding: 40px 0 20px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Space between columns */
    margin-bottom: 30px;
}

.footer-logo img {
    max-height: 50px; /* Adjust footer logo size */
    /* filter: brightness(0) invert(1); /* Make logo white if it's dark */
}

.footer-nav h4, .footer-disclaimer h4 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #7f8c8d;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-disclaimer {
    flex-basis: 40%; /* Allow disclaimer to take more space */
    max-width: 500px; /* Limit width */
}

.footer-disclaimer p {
    color: #bdc3c7;
    margin-bottom: 0.5em; /* Smaller margin */
}
.footer-disclaimer small {
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* --- Pagination --- */
.pagination {
    text-align: center;
    margin-top: 40px;
}
.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #0077cc;
    border-radius: 3px;
}
.page-numbers.current {
    background-color: #0077cc;
    color: #fff;
    border-color: #0077cc;
}
.page-numbers:hover {
    background-color: #eee;
    text-decoration: none;
}
.page-numbers.current:hover {
     background-color: #0077cc; /* Prevent hover change on current */
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    .hero-section h1 { font-size: 2.2em; }

    .header-flex {
        flex-direction: column;
        align-items: center; /* Center items */
    }
    .main-nav { margin: 15px 0; }
    .main-nav li { margin: 0 10px; }
    .social-icons { margin-top: 10px; }

    .featured-grid, .lead-magnet-grid {
        grid-template-columns: 1fr; /* Stack items */
    }
    .blog-post-summary, .podcast-episode-summary {
        flex-direction: column;
    }
    .blog-post-summary img, .podcast-episode-summary img {
        width: 100%; /* Full width image */
        height: 200px; /* Adjust height */
    }
    .email-form input[type="email"] { /* Adjust specific inputs if needed */
       /* width: 95%; - Let form-group handle width */
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
     .footer-disclaimer {
        flex-basis: 100%; /* Full width on small screens */
    }
}

/* --- Form Group Styling --- */
.form-group {
    margin-bottom: 15px;
    text-align: left; /* Align labels left if desired */
    max-width: 450px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.email-form input[type="text"],
.email-form input[type="email"],
.email-form select {
    width: 100%; /* Make inputs fill the group width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1em; /* Ensure readable font size */
}

/* --- Summary Modal Styling --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
}

.modal-overlay.active {
    display: flex; /* Show when active class is added */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Adjust width */
    max-width: 600px; /* Max width */
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1; /* Ensure good alignment */
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#modal-body p {
    margin-bottom: 1em; /* Standard paragraph spacing */
}

/* --- Homepage Tools Carousel --- */
.tools-swiper {
    width: 100%;
    margin-top: 30px; /* Space below heading */
    padding-bottom: 60px; /* Generous space at bottom for controls */
    position: relative; /* Needed for absolute positioning of controls if Swiper forces it */
    overflow: hidden; /* Good practice for containers */
}

/* Keep the original .tool-slide rule for the homepage */
.swiper-slide.tool-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    height: auto;
    display: flex; /* Keep flex for homepage slides */
    flex-direction: column;
    justify-content: space-between;
}

.tool-slide img {
    max-width: 200px; /* Your preferred image size */
    max-height: 160px; /* Your preferred image size */
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

.tool-slide h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #333;
}

.tool-slide p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Removed min-height, letting flexbox handle space */
}


/* --- Pagination Dots Styling --- */
.swiper-pagination {
    position: relative; /* Take out of absolute flow */
    bottom: auto; /* Reset default bottom positioning */
    width: 100%; /* Ensure it can center correctly */
    margin-top: 20px; /* Add space ABOVE dots */
    margin-bottom: 10px; /* Add space BELOW dots */
    text-align: center; /* Ensure bullets are centered */
}

.swiper-pagination-bullet {
    background-color: #0077cc;
    opacity: 0.6;
    margin: 0 5px !important; /* Add horizontal space between bullets */
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- Remove Default Arrows --- */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

/* --- Custom Navigation Buttons Styling --- */
.swiper-custom-nav {
    width: 100%; /* Take full width */
    text-align: center; /* Center the buttons */
    margin-top: 15px; /* Space below pagination dots */
    /* No need for position relative/z-index usually */
}

#swiper-prev-btn,
#swiper-next-btn {
    margin-left: 8px;
    margin-right: 8px;
    padding: 8px 20px;
    display: inline-block;
    /* Add these lines explicitly */
    background-color: #0077cc; /* Blue background */
    color: white;             /* White text */
    border: none;             /* Ensure no border interferes */
    border-radius: 3px;       /* Match other buttons */
    cursor: pointer;          /* Ensure pointer cursor */
    font-size: 0.9em;         /* Match .button-secondary size */
    transition: background-color 0.3s ease; /* Add hover effect */
    /* Inherits .button-secondary styles comment is less relevant now */
}
/* Add a hover effect */
#swiper-prev-btn:hover,
#swiper-next-btn:hover {
     background-color: #0056b3; /* Darker blue on hover */
}
/* --- Blog Post Specific Styling --- */

/* Center the main blog post image */
.blog-post-image {
    display: inline-block; /* Make the figure a block */
    max-width: 700px; /* Optional: Limit max width for large images */
    width: 90%;       /* Optional: Adjust width relative to container */
    margin: 0; /* Top/Bottom margin + Auto Left/Right for centering */
    vertical-align: middle; /* Good practice for inline-block images */
    /* New rule to center the inline-block figure */
{
.centered-image-wrapper {
    text-align: center; /* Center the inline-block figure within */
    margin-top: 20px;    /* Re-apply vertical margins here */
    margin-bottom: 30px;
}

.blog-post-image img { /* Ensure image within figure behaves */
    display: block;
    max-width: 100%;
    height: auto;
}

/* Center the buttons within their paragraphs */
.cta-paragraph {
    text-align: center;
    margin-top: 25px;  /* Add some space above/below buttons */
    margin-bottom: 25px;
}

 /* Plus the rules for img, h3, p inside .tool-slide */

/* Style the slides within the blog carousel */

/* --- Hosts Banner Section --- */
#hosts-banner .container {
    padding: 0; /* Allow banner to be flush with container edges if desired */
}
#hosts-banner img {
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.podcast-player-container { margin-top: 15px; }
.player-controls { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.play-pause-btn, .download-btn { /* Inherits .button-secondary styles or define new */
    padding: 5px 15px; font-size: 0.9em;
    background-color: #6c757d; color: white; border-radius: 3px;
    text-decoration: none; border: none; cursor: pointer; }
.download-btn { background-color: #5a6268; }
.time-info { font-family: monospace; font-size: 1.1em; color: #333; }