/* --- Global & Root Styles --- */
:root { --brand-red: #9b0000; --brand-dark: #222222; --brand-green: #4CAF50; --brand-brown: #795548; --primary-blue: #0d6efd; --light-grey: #f0f2f5; --text-dark: #333; --text-medium: #6c757d; }
 body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; 
     background-color: var(--light-grey);
    color: var(--text-dark);
 }
a { text-decoration: none; color: inherit; }
 .page-container { 
    max-width: 1200px; 
    margin: auto; 
    background-color: white;
    padding: 1rem 1.5rem;
 }
.section-title { font-size: 1.5rem;
 color: var(--text-dark); border-bottom: 2px solid #ccc; padding-bottom: 0.5rem;
 margin-top: 0; margin-bottom: 1.5rem;
 }

/* --- Spacing Adjustments --- */
.about-section { padding: 2.5rem 0;
 }
.testimonies-section { padding-top: 2rem;
 }
.main-content-grid { padding-top: 2rem;
 }

/* --- Homepage: Static Banner --- */
.static-banner-container { position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden;
 background-color: #333;
 }
.static-banner-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
 display: block;
 }
.banner-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0) 70%);
}
.banner-text { 
    color: white; 
    padding: 0 5%; 
    max-width: 50%; 
    box-sizing: border-box; 
    text-align: right;
}
.banner-text h1 { font-size: clamp(1.8rem, 4vw, 3.2rem);
 margin: 0 0 0.5rem 0; line-height: 1.2; font-weight: 700; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
 }
.banner-text p { font-size: clamp(1rem, 2.5vw, 1.5rem); margin: 0; font-weight: 300; text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
 }

/* --- About Section Styles --- */
.about-section { background-color: white; border-bottom: 1px solid #eee; }
.about-container { max-width: 1200px; margin: auto;
 padding: 0 1.5rem; } 
.about-content { max-width: 800px; margin: 0; text-align: left;
 }
.about-content h2 { font-size: 1.5rem; color: var(--brand-brown); margin-top: 0; }
.about-content p { line-height: 1.7; color: var(--text-medium); font-size: 0.9rem;
 }
.about-buttons { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: flex-start; }
.btn { padding: 10px 20px; border-radius: 5px; font-weight: bold;
 text-transform: uppercase; transition: all 0.2s ease; font-size: 0.9rem; }
 .btn-primary { background-color: var(--brand-red); color: white; border: 2px solid var(--brand-red);
 }
.btn-primary:hover { background-color: #800000; border-color: #800000; }

.btn-read-more {
    display: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
 border-radius: 4px;
    margin-top: 0.75rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
 }

/* --- Testimonies Section Styles --- */
.testimonies-grid { display: grid; grid-template-columns: 1fr 1fr;
 gap: 1.5rem; align-items: center;
 }
 .video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute;
 top: 0; left: 0;
 width: 100%; height: 100%; border-radius: 0;
 }

/* --- Homepage: Trending Section --- */
.trending-section { background-color: var(--light-grey); padding: 2.5rem 0;
 } 
.trending-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
 } 
.trending-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.trending-header h2 { margin: 0;
 font-size: 1.8rem; color: var(--text-dark); border-bottom: 2px solid var(--brand-red); padding-bottom: 0.5rem;}
 .trending-card { background: transparent; border: none; border-radius: 0;
 overflow: hidden;
 height: 100%; display: block; box-shadow: none; transition: none; }
 .trending-card:hover { transform: none; box-shadow: none;
 }
.trending-card-img { position: relative;
 }
.trending-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 0;
 }
.trending-card-content .category-tags { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 0.5rem;
 }
.trending-card-content .category-tags .category { 
    background-color: var(--primary-blue); 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 0.8em;
 font-weight: bold; 
    display: inline-block;
}
.trending-card-content { padding: 1rem 0; }
.trending-card-content .date { font-size: 0.8rem; color: var(--text-medium); margin-bottom: 0.5rem;
 }

.trending-card-content h3 { 
    font-size: 1.1rem;
    margin: 0; 
    line-height: 1.4; 
    color: var(--brand-red);
 }

/* --- Main Content Grid (Sticky Layout) --- */
.main-content-grid { display: grid; grid-template-columns: 2fr 5fr 2.5fr; gap: 2rem; padding-top: 2rem;
 }
.sidebar-title { font-size: 1.5rem; margin-top: 0; color: var(--text-dark); border-bottom: 2px solid var(--brand-red); padding-bottom: 0.5rem;
 margin-bottom: 1.5rem;}

.sidebar-left, .sidebar-right { 
    position: sticky;
    top: 20px;
    align-self: start;
 }
 
.sidebar-post-list { display: flex; flex-direction: column; gap: 1rem;
 } 
.sidebar-post-item-sm { 
    display: block; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 1rem; 
    margin-bottom: 0.5rem;
 transition: color 0.2s ease;
}
.sidebar-post-item-sm:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0;
 }
.sidebar-post-item-sm .date { 
    font-size: 0.75rem; 
    color: var(--text-medium);
 display: block; 
    margin-bottom: 0.3rem;
 }
 
/* === CORRECTION: SIDEBAR TITLE FONT WEIGHT === */
.sidebar-post-item-sm h4 { 
    margin: 0; 
    font-size: 0.95rem;
     line-height: 1.3; 
    color: var(--text-dark); 
    font-weight: normal; /* Changed from bold to normal */
 }
.sidebar-post-item-sm:hover h4 { color: var(--brand-red); }

.sidebar-post-item-lg { 
    display: flex;
 gap: 1rem; 
    align-items: flex-start;
     padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
 margin-bottom: 0.5rem;
     transition: color 0.2s ease;
}
.sidebar-post-item-lg:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0;
 }
.sidebar-post-item-lg img { 
    width: 90px; 
    height: 60px;
 object-fit: cover; 
    border-radius: 0;
     flex-shrink: 0; 
}

/* === CORRECTION: SIDEBAR TITLE FONT WEIGHT === */
.sidebar-post-item-lg h4 { 
    margin: 0;
 font-size: 0.95rem; 
    line-height: 1.3; 
    color: var(--text-dark); 
    font-weight: normal; /* Changed from bold to normal */
 }
.sidebar-post-item-lg:hover h4 { color: var(--brand-red); }


.middle-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
 }
.main-news-card { 
    display: block; 
    background-color: white;
    transition: all 0.2s ease;
 }
.main-news-card:hover {
    transform: none;
}
.main-news-card-img { position: relative; margin-bottom: 0;
 }
.main-news-card-img img { 
    width: 100%;
     height: 200px;
    object-fit: cover;
    display: block;
 }
.main-news-card-img .category-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0;
 }
.main-news-card-img .category-tags .category {
    background-color: var(--primary-blue);
    color: white;
    padding: 4px 10px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
 }
.main-news-card-img .category-tags .separator {
    color: white;
    padding: 4px 2px;
    font-size: 0.8em;
    font-weight: bold;
    background-color: var(--primary-blue);
 }
.main-news-card-content { 
    padding: 1rem 0;
 }
.main-news-card-content .date { 
    font-size: 0.8rem; 
    color: var(--text-medium);
 margin-bottom: 0.5rem; 
}

/* This title remains bold */
.main-news-card-content h3 { 
    font-size: 1.2rem;
 margin: 0 0 0.5rem 0;
    line-height: 1.4; 
    color: var(--brand-red); 
    font-weight: bold; /* Explicitly keep this bold */
 }


/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .main-content-grid { grid-template-columns: 3fr 5fr;
 }
}
@media (max-width: 900px) {
    .about-content { text-align: left;
     margin: 0; max-width: none;
 }
    .about-buttons { justify-content: flex-start;
 }
}
@media (max-width: 768px) {
    .main-content-grid { display: block;
 }
    .sidebar-left, .sidebar-right { position: static;
     margin-bottom: 2rem; }
    .middle-content-grid { grid-template-columns: 1fr;
 }
    .banner-text { max-width: 90%; text-align: center;
 }
    .testimonies-grid { grid-template-columns: 1fr;
 }
    .sidebar-post-item-lg { flex-direction: row; align-items: flex-start;
 }
    .btn-read-more {
        display: block;
        width: fit-content;
 }
    
    /* Make sidebar titles bold again on mobile if needed */
    .sidebar-post-item-sm h4,
    .sidebar-post-item-lg h4 {
        font-weight: bold;
    }
}
@media (max-width: 600px) {
    body { background-color: white;
 } 
    .page-container { padding: 1rem;
 }
    .static-banner-container { padding-bottom: 100%;
 } 
    .banner-overlay { background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
 align-items: flex-end; }
    .banner-text { max-width: 95%; text-align: center; padding-bottom: 8%;
 }
    .about-section { 
        padding: 1.5rem 0;
         background-color: white;
 } 
    .about-container { padding: 0 1rem;
 }
    .about-content h2 { font-size: 1.3rem;
 }
    .about-content p { font-size: 0.9rem; }
    .trending-section { 
        padding: 1.5rem 0;
 background-color: var(--light-grey);
     }
    .trending-container { padding: 0 1rem;
 }
    .trending-header h2 { font-size: 1.3rem;
 }
    .testimonies-section { padding-top: 1.5rem; }
    .main-content-grid { padding-top: 1.5rem;
 }
    .trending-card-img img,
    .main-news-card-img img {
        height: 250px;
 }
}

/* --- Footer and Single Post Styles remain unchanged --- */

/* --- Footer Styles --- */
.main-footer {
    background-color: var(--brand-red);
    color: #f0f0f0;
    padding-top: 3rem;
 }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
    display: grid;
 grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 2.5rem;
}

.footer-logo {
    max-width: 150px;
    height: auto;
 }

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 0.8rem;
 }

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
 background-color: rgba(255, 255, 255, 0.5);
}

.footer-contact .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
 flex-direction: column;
    gap: 1.2rem;
}

.footer-contact .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
 line-height: 1.6;
}

.footer-contact .contact-list i {
    font-size: 1.1rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
    width: 20px;
 text-align: center;
}

.footer-contact .contact-list a {
    color: white;
     text-decoration: none;
    transition: opacity 0.2s;
 }
.footer-contact .contact-list a:hover {
    opacity: 0.8;
 }

.footer-connect .social-icons {
    display: flex;
    gap: 1rem;
 margin-bottom: 1.5rem;
 }

.footer-connect .social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
 background-color: rgba(0,0,0,0.2);
     color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.footer-connect .social-icons a:hover {
    background-color: white;
 color: var(--brand-red);
 }

.footer-connect p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
 }

.newsletter-form {
    display: flex;
 }

.newsletter-form input {
    flex-grow: 1;
    border: 1px solid rgba(255,255,255,0.3);
 background-color: rgba(0,0,0,0.2);
    padding: 12px;
    color: white;
     border-radius: 5px 0 0 5px;
    font-size: 1rem;
 }
.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
 }

.newsletter-form button {
    background-color: white;
    color: var(--brand-red);
    border: none;
 padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
     font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
 }

.footer-credit-bar {
    background-color: var(--brand-dark);
    color: #aaa;
    text-align: center;
    padding: 1rem;
     font-size: 0.85rem;
 }
.footer-credit-bar p {
    margin: 0;
 }

/* --- Footer Responsive Styles --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
 }

    .footer-section {
        text-align: center;
 }

    .footer-section .footer-title::after {
        left: 50%;
         transform: translateX(-50%);
 }

    .footer-contact {
        text-align: left;
 }
    .footer-contact .footer-title::after {
        left: 0;
        transform: none;
 }
    
    .social-icons {
        justify-content: center;
 }

    .footer-about {
        display: flex;
         justify-content: center;
 }
    
    .newsletter-form {
        max-width: 400px;
 width: 100%;
        margin: 0 auto;
    }
}

/* --- Single Post Page Styles --- */
.single-post-layout {
    display: grid;
 grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
 }

.post-main-content .preview-banner {
    background-color: #ffc107;
    color: black;
 text-align: center;
    padding: 10px;
    font-weight: bold;
    margin-bottom: 1.5rem;
 }

.post-header .post-meta-categories {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
 gap: 0.5rem;
 }
.post-header .post-category-tag {
    background-color: var(--primary-blue);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
 font-weight: bold;
 }

.post-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 0 0 1rem 0;
    line-height: 1.2;
 }

.post-header .post-meta {
    font-size: 0.9rem;
    color: var(--text-medium);
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
 }
.post-header .post-meta .date {
    margin-left: 1rem;
}

.share-section {
    display: flex;
    gap: 1rem;
    align-items: center;
 margin-bottom: 1.5rem;
}
.share-button {
    background-color: #eee;
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
 cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-fallback {
    display: flex;
    gap: 0.5rem;
 }
.share-fallback .social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
 }
.social-icon.facebook { background-color: #1877F2; }
.social-icon.twitter { background-color: #1DA1F2; }
.social-icon.whatsapp { background-color: #25D366; }

.post-image {
    width: 100%;
 height: auto;
    margin-bottom: 2rem;
    border-radius: 0;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--text-dark);
 }
.post-content p { margin: 0 0 1.5em 0; }
.post-content h2, .post-content h3 { margin-top: 2em;
 }

.post-content img {
    max-width: 100%;
     height: auto;
     display: block;
     margin: 1.5em auto;
     border-radius: 0;
 }

.post-sidebar .sidebar-widget {
    position: sticky;
    top: 20px;
 }

/* Comment Section */
.comment-section {
    margin-top: 3rem;
 border-top: 1px solid #eee;
    padding-top: 2rem;
 }
.comment-section h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
 }
.comment-section p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}
.comment-form .form-group {
    margin-bottom: 1.5rem;
 display: flex;
    flex-direction: column;
}
.comment-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
 }
.comment-form input,
.comment-form textarea {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
 }
.comment-form button {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 5px;
 }

/* Responsive styles for single post */
@media (max-width: 900px) {
    .single-post-layout {
        display: block;
 }
    .post-sidebar {
        margin-top: 3rem;
 }
    .post-sidebar .sidebar-widget {
        position: static;
    }
}