/* General Styles */
:root {
    --primary-red: #EF9A9A; /* Light Red */
    --darker-red-accent: #E57373; /* Indian Red */
    --text-dark: #333333; /* Dark Grey */
    --text-medium: #666666; /* Medium Grey */
    --background-light: #FDFDFD; /* Near White */
    --background-very-light-red: #FFF8F8; /* Very Light Red */
    --border-color: #E0E0E0; /* Light Grey for borders */
    --shadow-color: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--darker-red-accent);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

a {
    color: var(--darker-red-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    color: var(--darker-red-accent);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Header */
.site-header {
    background-color: var(--background-light);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo {
    height: 40px; /* Adjust as needed */
}

.footer-col .site-logo-link{
    margin-bottom: 0;
}

.footer-col .site-logo-link h3{
    color: #fff;
    margin-bottom: 20px;
}

.site-logo-link {
    display:flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.site-logo-link h3{
    margin: 0;
}

/* Hero Section */
.hero-collage {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-very-light-red);
}

.hero-collage-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    opacity: 0.3;
    filter: grayscale(80%);
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.collage-img-1 { grid-area: 1 / 1 / 2 / 3; }
.collage-img-2 { grid-area: 1 / 3 / 2 / 5; }
.collage-img-3 { grid-area: 2 / 1 / 3 / 2; }
.collage-img-4 { grid-area: 2 / 2 / 3 / 5; }

.hero-content {
    display: flex;
    flex-direction: column
    ;align-items: center;
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-dark);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.hero-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.hero-slogan {
    font-family: 'Merriweather', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--darker-red-accent);
}

/* Featured Article Section */
.featured-article-section {
    background: linear-gradient(135deg, var(--background-very-light-red) 0%, var(--primary-red) 100%);
    padding: 80px 0;
    margin-top: 0;
}

.featured-article-section .article-content {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.article-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--darker-red-accent);
}

.article-meta {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9em;
    margin-bottom: 30px;
}

.article-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-text p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Latest Posts Feed */
.latest-posts-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure equal height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--darker-red-accent);
}

.post-meta {
    font-size: 0.85em;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 0;
    flex-grow: 1;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Team Blog / Author Cards */
.team-blog-section {
    background-color: var(--background-very-light-red);
    padding: 80px 0;
}

.author-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.author-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure equal height */
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: var(--darker-red-accent);
}

.author-role {
    font-size: 1.1em;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.author-bio {
    font-size: 0.95em;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--background-very-light-red);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure equal height */
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-red);
}

.review-text {
    font-style: italic;
    font-size: 1.05em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.reviewer-name {
    font-weight: 600;
    color: var(--darker-red-accent);
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.8em;
    color: var(--text-medium);
}

/* Footer */
.site-footer {
    background-color: var(--darker-red-accent);
    color: #ffffff;
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes logo white */
}

.footer-heading {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-about {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Material Symbols Icon Styling */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2em;
    }

    .article-title {
        font-size: 2.2em;
    }

    .hero-slogan {
        font-size: 1.5em;
    }

    .posts-grid, .author-cards-grid, .reviews-grid, .footer-columns {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-collage {
        height: 60vh;
    }

    .hero-collage-background {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .collage-img-1 { grid-area: 1 / 1 / 2 / 2; }
    .collage-img-2 { grid-area: 1 / 2 / 2 / 3; }
    .collage-img-3 { grid-area: 2 / 1 / 3 / 2; }
    .collage-img-4 { grid-area: 2 / 2 / 3 / 3; }

    .hero-logo {
        max-width: 200px;
    }

    .hero-slogan {
        font-size: 1.3em;
    }

    .featured-article-section .article-content {
        padding: 30px;
    }

    .article-title {
        font-size: 1.8em;
    }

    .article-text p {
        font-size: 1em;
    }

    .post-card, .author-card, .review-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-logo {
        height: 35px;
    }

    .hero-collage {
        height: 50vh;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-logo {
        max-width: 150px;
        margin-bottom: 15px;
    }

    .hero-slogan {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 1em;
    }

    .article-title {
        font-size: 1.5em;
    }

    .featured-article-section .article-content {
        padding: 20px;
    }

    .post-title {
        font-size: 1.3em;
    }

    .author-name {
        font-size: 1.5em;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

   .site-logo-link{
       justify-content: center;
    }

    .footer-links {
        padding-left: 0;
    }
}/* Styles for content blocks within .infoGuardBlock */
.infoGuardBlock {
    /* Padding for the block itself, top/bottom and sides */
    padding: 60px 20px;
    /* Max width to align with other content, and center it */
    max-width: 1200px;
    margin: 0 auto;
}

.infoGuardBlock h1 {
    /* Heading 1 styles */
    font-family: 'Merriweather', serif;
    font-size: 2em; /* Reduced size for content heading */
    color: var(--darker-red-accent);
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.infoGuardBlock h2 {
    /* Heading 2 styles */
    font-family: 'Merriweather', serif;
    font-size: 1.75em;
    color: var(--darker-red-accent);
    margin-top: 1.8em;
    margin-bottom: 0.7em;
    line-height: 1.3;
}

.infoGuardBlock h3 {
    /* Heading 3 styles */
    font-family: 'Merriweather', serif;
    font-size: 1.5em;
    color: var(--darker-red-accent);
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.4;
}

.infoGuardBlock h4 {
    /* Heading 4 styles */
    font-family: 'Merriweather', serif;
    font-size: 1.25em;
    color: var(--darker-red-accent);
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.infoGuardBlock h5 {
    /* Heading 5 styles */
    font-family: 'Merriweather', serif;
    font-size: 1.1em;
    color: var(--darker-red-accent);
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    line-height: 1.6;
}

.infoGuardBlock p {
    /* Paragraph styles */
    font-family: 'Open Sans', sans-serif;
    font-size: 1em; /* Base font size */
    line-height: 1.7; /* Slightly more spacious line height for readability */
    color: var(--text-dark);
    margin-bottom: 1em; /* Space between paragraphs */
}

.infoGuardBlock ul {
    /* Unordered list styles */
    list-style-type: disc; /* Default disc bullet */
    margin-left: 20px; /* Indent list items */
    margin-bottom: 1em; /* Space after the list */
    padding-left: 0; /* Reset default padding */
}

.infoGuardBlock li {
    /* List item styles */
    font-family: 'Open Sans', sans-serif;
    font-size: 1em; /* Inherit paragraph font size */
    line-height: 1.6; /* Line height for list items */
    color: var(--text-dark);
    margin-bottom: 0.5em; /* Space between list items */
}

/* Responsive adjustments for infoGuardBlock */
@media (max-width: 768px) {
    .infoGuardBlock {
        padding: 40px 15px; /* Adjust padding for smaller screens */
    }

    .infoGuardBlock h1 {
        font-size: 1.8em;
    }
    .infoGuardBlock h2 {
        font-size: 1.5em;
    }
    .infoGuardBlock h3 {
        font-size: 1.3em;
    }
    .infoGuardBlock h4 {
        font-size: 1.1em;
    }
    .infoGuardBlock h5 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .infoGuardBlock {
        padding: 30px 10px; /* Further adjust padding for very small screens */
    }

    .infoGuardBlock h1 {
        font-size: 1.6em;
    }
    .infoGuardBlock h2 {
        font-size: 1.4em;
    }
    .infoGuardBlock h3 {
        font-size: 1.2em;
    }
}
