/* Blog Cards Section */
.blog-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    flex: 1 1 calc(33.333% - 20px);
    text-align: left;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.5em;
    color: #4CAF50;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: auto;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Author Meta Information in Blog Cards */
.blog-card .author-meta {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
}

.blog-card .author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.blog-card .author-name {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
}

.blog-card .author-name:hover {
    text-decoration: underline;
}

.blog-card .publish-date {
    color: #888;
    font-size: 0.85em;
}

/* Author Meta Information in Blog Posts */
.blog-post-meta {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.blog-post-meta .author-avatar-medium {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.blog-post-meta .author-info {
    flex: 1;
}

.blog-post-meta .author-name {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 4px;
    display: block;
}

.blog-post-meta .author-name:hover {
    text-decoration: underline;
}

.blog-post-meta .publish-date {
    color: #666;
    font-size: 0.9em;
}

/* Author Profile Page Styles */
.author-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.author-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.author-info h2 {
    color: #4CAF50;
    font-size: 2.2em;
    margin-bottom: 10px;
    margin-top: 0;
}

.author-credentials {
    color: #666;
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 15px;
}

.author-bio {
    color: #333;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

.author-expertise {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-expertise h3 {
    color: #4CAF50;
    font-size: 1.5em;
    margin-bottom: 15px;
    margin-top: 0;
}

.author-expertise ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.author-expertise li {
    background-color: #f0f8f0;
    color: #4CAF50;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    border-left: 3px solid #4CAF50;
}

.author-posts h3 {
    color: #4CAF50;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

/* Author Posts List Styles */
.author-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-posts-list li {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.author-posts-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.author-posts-list a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.author-posts-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.author-posts-list .post-info {
    flex: 1;
}

.author-posts-list h4 {
    color: #4CAF50;
    font-size: 1.2em;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.author-posts-list .post-date {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* Section Content Styling */
.container {
    margin-top: 40px;
    padding: 20px;
}

.section-content {
    margin-bottom: 40px;
}

.section-content h2 {
    font-size: 2em;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.responsive-img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
    flex-shrink: 0;
}

.text-content {
    flex: 1;
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
    text-align: justify;
}

.cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #388E3C;
}

/* Accordion Styling */
.accordion {
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    background-color: #fff;
    color: #4CAF50;
    font-size: 1.2em;
    padding: 15px;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e6f7e6;
}

.accordion-header.active {
    background-color: #4CAF50;
    color: #fff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
    padding: 0 15px;
    color: #333;
}

.accordion-content p {
    margin: 15px 0;
    font-size: 1em;
    line-height: 1.8;
}

/* Table Styling */
.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-content table th, 
.text-content table td {
    text-align: left;
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.text-content table th {
    background-color: #4CAF50;
    color: #fff;
    font-weight: bold;
}

.text-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.text-content table tr:hover {
    background-color: #e6f7e6;
}

.responsive-image {
    display: block; /* Ensures the image is treated as a block-level element */
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto; /* Centers the image horizontally */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container p {
    margin: 15px 0;
    font-size: 1em;
    line-height: 1.8;
}

.filter-controls {
    margin-bottom: 20px;
    text-align: center;
}

.filter-controls label {
    font-size: 1.2em;
    color: #333;
    margin-right: 10px;
}

.filter-controls select {
    font-size: 1em;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.risk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.risk-table th, .risk-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.risk-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.risk-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.cleanse-protocol-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.cleanse-protocol-table th, .cleanse-protocol-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.cleanse-protocol-table th {
    background-color: #e8f4f8;
    font-weight: bold;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Heading Styles within .container */
.container h2, 
.container h3, 
.container h4 {
    color: #4CAF50; /* Green color for headings */
    margin: 0 0 16px; /* Consistent spacing below headings */
    line-height: 1.4; /* Compact spacing between lines for headings */
}

/* Specific Heading Sizes */
.container h2 {
    font-size: 28px; /* Prominent main heading */
    font-weight: bold; /* Strong emphasis */
    text-transform: capitalize; /* Clean capitalization for titles */
}

.container h3 {
    font-size: 24px; /* Subheading size */
    font-weight: bold; /* Maintain emphasis */
    text-transform: capitalize;
}

.container h4 {
    font-size: 20px; /* Smaller subheading size */
    font-weight: bold; /* Subtle emphasis */
    text-transform: none; /* Maintain default text case */
}

/* Responsive Table */
@media (max-width: 768px) {
    .blog-card {
        flex: 1 1 calc(50% - 20px);
    }

    .content-wrapper {
        flex-direction: column;
    }

    .responsive-img {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .text-content {
        font-size: 1em;
    }

    .text-content table th, 
    .text-content table td {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    /* Author Profile Responsive */
    .author-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
        width: 80px;
        height: 80px;
        font-size: 1.8em;
    }

    .author-info h2 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .author-credentials {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .author-bio {
        font-size: 0.95em;
        line-height: 1.5;
    }

    .author-expertise {
        padding: 15px;
        margin-bottom: 25px;
    }

    .author-expertise h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .author-expertise ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .author-expertise li {
        font-size: 0.9em;
        padding: 8px;
    }

    /* Blog Post Meta Responsive */
    .blog-post-meta {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        margin: 15px 0;
    }

    .blog-post-meta .author-avatar-medium {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .blog-post-meta .author-name {
        font-size: 1em;
        margin-bottom: 3px;
    }

    .blog-post-meta .publish-date {
        font-size: 0.8em;
    }

    /* Blog Card Author Meta Responsive */
    .blog-card .author-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-top: 10px;
    }

    .blog-card .author-avatar-small {
        margin-right: 0;
        margin-bottom: 3px;
        width: 20px;
        height: 20px;
        font-size: 0.7em;
    }

    .blog-card .author-name {
        font-size: 0.8em;
    }

    .blog-card .publish-date {
        font-size: 0.75em;
    }

    /* Author Posts List Responsive */
    .author-posts-list a {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .author-posts-list img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 80px;
        height: 80px;
    }

    .author-posts-list h4 {
        font-size: 1em;
        margin-bottom: 5px;
    }

    .author-posts-list .post-date {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .blog-card {
        flex: 1 1 100%;
    }

    .section-content h2 {
        font-size: 1.8em;
    }

    .text-content {
        font-size: 0.95em;
    }

    .cta-button {
        font-size: 1.1em;
        padding: 10px 16px;
    }

    .author-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.5em;
    }

    .author-info h2 {
        font-size: 1.4em;
    }

    .author-credentials {
        font-size: 0.8em;
    }

    .author-bio {
        font-size: 0.9em;
    }

    .author-posts-list img {
        width: 60px;
        height: 60px;
    }

    .author-posts-list h4 {
        font-size: 0.9em;
    }

    .author-posts-list .post-date {
        font-size: 0.75em;
    }

    /* Blog Post Meta Extra Small */
    .blog-post-meta {
        padding: 10px;
        margin: 12px 0;
    }

    .blog-post-meta .author-avatar-medium {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .blog-post-meta .author-name {
        font-size: 0.9em;
    }

    .blog-post-meta .publish-date {
        font-size: 0.75em;
    }
}

/* List Styling */
.text-content ul, .text-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.text-content ul li, .text-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.text-content ul li::marker {
    color: #4CAF50;
    font-weight: bold;
}

.text-content ul li strong, 
.text-content ol li strong {
    color: #4CAF50;
    font-weight: bold;
}
