/* blog.css - Complete CSS for blog.html */

/* --- BLOG HERO SECTION STYLES (MAIN PAGE HEADING) --- */
.blog-hero {
    /* Background: Light blue gradient for distinction from header */
    background: linear-gradient(135deg, #e6f2ff 0%, #cce0ff 100%); /* Lighter blue gradient */

    /* Spacing and Alignment */
    padding: 60px 0; /* Generous vertical padding for visual prominence */
    text-align: center; /* Center align content */

    /* Text Color Scheme: Adjusted for lighter background */
    color: #333; /* Default text color for the hero, darker for contrast */

    /* Visual Accents */
    border-bottom: 5px solid #ffd700; /* Yellow accent line at the bottom */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    margin-bottom: 0; /* Remove margin-bottom here, spacing handled by youtube section */
}

.blog-hero .container {
    max-width: 1200px; /* Adjust as per your site's main content width */
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding for content inside the container */
}

/* Main Blog Page Title (h1) Styling within the Hero */
.blog-hero h1 {
    font-family: Arial, serif; /* Matching the logo section's h2 font */
    font-size: 2em; /* Larger size for primary page title */
    color: #004d99; /* Darker blue for better contrast on light background */
    font-weight: bold; /* Consistent with logo h2 */
    font-style: normal; /* Consistent with logo h2 */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 25px; /* More space below the main title */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Slight shadow for readability */
    line-height: 1.2;
}

/* Main Blog Paragraph (p) Styling within the Hero */
.blog-hero p {
    font-family: Arial, sans-serif; /* Consistent with main body/tagline */
    font-size: 1.3em; /* Good readable size */
    color: black; /* Darker gray for readability on light background */
    max-width: 800px; /* Limits line length for better readability */
    margin: 0 auto; /* Centers the paragraph */
    line-height: 1.6; /* Good line spacing */
    opacity: 0.9; /* Slightly softer text */
}

/* --- YOUTUBE CHANNEL SECTION STYLES (NEW SECTION) --- */
.youtube-channel-section {
    background-color: white; /* White background for clear distinction */
    padding: 50px 0; /* Padding inside the section */
    text-align: center; /* Center align content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    margin-bottom: 0; /* REMOVED GAP: Set to 0 to remove space below this section */
    border-top: 5px solid #ffd700; /* Yellow accent line at the top */
}

/* YouTube Channel Heading (h2 with .youtube-heading) Styling */
.youtube-channel-section .youtube-heading {
    font-family: Calibri, serif; /* Using Calibri as requested, with serif fallback */
    font-size: 1.6em; /* Reduced font size for distinction from h1 */
    color: #003399; /* Use the main dark blue for strong emphasis */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 15px; /* Space below heading */
    font-weight: bold; /* Make it bold for distinction */
    font-style: normal; /* Ensure it's not italic */
    text-shadow: none; /* Remove shadow for a cleaner look */
}

/* YouTube Description Paragraph (.youtube-description) Styling */
.youtube-channel-section .youtube-description {
    font-size: 1.1em; /* Slightly smaller than main paragraph */
    color: black; /* A softer dark gray */
    margin-bottom: 25px; /* Space below description and above button */
    max-width: 700px; /* Limit width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* YouTube Button (.youtube-btn) Styling */
.youtube-channel-section .youtube-btn {
    margin-top: 0; /* Reset default margin-top if any */
    margin-bottom: 0; /* Ensure no extra margin below the button */
}

/* --- BLOG SECTION STYLES (WITH VIDEO AND ARTICLES SUB-SECTION) --- */
.blog-section {
    /* This section now acts as a container for both video and articles wrappers */
    background-color: #f0f2f5; /* Light gray background to show separation */
    padding: 0; /* Padding handled by internal wrappers */
    margin-bottom: 0; /* REMOVED GAP: Set to 0 to remove space below this section */
    /* No border-top or box-shadow here, as internal sections will have them */
}

.blog-section .blog-video-wrapper {
    background-color: white; /* White background for video part */
    padding: 60px 0; /* Generous padding */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    margin-bottom: 0; /* No margin here, handled by articles-section-wrapper */
    border-top: 5px solid #ffcc00; /* Yellow accent line at the top */
}

.blog-section .blog-video-heading {
    font-family: Calibri, serif;
    font-size: 2em; /* Consistent with YouTube heading size */
    color: #003399;
    margin-top: 0;
    margin-bottom: 25px; /* Space below video heading */
    font-weight: bold;
    font-style: normal;
}

/* Responsive video embed wrapper */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width = 9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Increased video window size for more horizontal space */
    margin: 0 auto; /* Center the video */
    background-color: #000; /* Black background for loading/empty state */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* NEW: Articles Section Wrapper */
.articles-section {
    background-color: #f9f9f9; /* Light gray background for articles part */
    padding: 60px 0; /* Generous padding */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    border-top: 5px solid #ffd700; /* Yellow accent line at the top */
}

.aricle-section .blog-posts-heading {
    font-family: Calibri, serif;
    font-size: 2em; /* Consistent with other sub-headings */
    color: #003399;
    margin-top: 0;
    margin-bottom: 30px; /* Space below heading */
    font-weight: bold;
    font-style: normal;
}

.article-section .blog-posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Space between blog cards */
}

/* Blog Post Cards Styling */
.blog-post-card {
    display: flex;
    flex-direction: column; /* Stack image and content on small screens */
    background-color: #fff; /* White background for cards on light gray background */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0; /* No margin-bottom here, controlled by grid gap */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1; /* Allow cards to grow/shrink */
    min-width: 280px; /* Minimum width before wrapping */
    max-width: 900px; /* Increased max-width for the card to be wider */
    margin: 0 auto; /* Center the single card */
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.blog-post-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 200px; /* Adjusted max height for blog image */
}

.blog-post-card .post-content {
    padding: 20px;
    text-align: left; /* Align text left within card */
}

.blog-post-card h3 {
    font-size: 1.5em; /* Adjusted size */
    color: #004d99;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-post-card p {
    font-size: 0.95em; /* Adjusted size */
    color: #555;
    line-height: 1.5;
}
