/**
 * Single Post Styles
 */

.post-header {
    position: relative;
    margin-bottom: 3rem;
}

.post-thumbnail {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
    margin: 0 0 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
    margin-top: -50px;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to top, rgba(12, 177, 225, 0.85), rgba(12, 177, 225, 0.1));
    color: #0B3367;
}

.post-title-container {
    display: flex;
    align-items: flex-end;
    height: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.post-title {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.event-date-pill {
    display: inline-block;
    background-color: #0B3367;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.post-meta {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #666;
}

/* Main content styles */
.site-content {
    margin: 0 auto;
}

.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4c4f4e;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #040F30;
    margin: 2rem 0 1rem;
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Entry Footer Styles */
.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(4, 15, 48, 0.1);
    color: #666;
    font-size: 0.9rem;
}

.entry-footer span {
    display: inline-block;
    margin-right: 1.5rem;
}

.entry-footer a {
    color: #040F30;
    text-decoration: none;
}

.entry-footer a:hover {
    text-decoration: underline;
}

/* Supporting Images and Testimonial */
.post-supporting-images-section,
.post-testimonial-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.supporting-images-title,
.testimonial-title {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #0B3367;
}

.supporting-images-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(2, 1fr); */
    /* gap: 1rem; */
}

.supporting-image-item {
    /* Styles for when it was in a grid */
}

.supporting-image-item img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius: 4px; */
}

/* Testimonial styles moved to style.css */

/* Recent posts widget styles */
.widget-area {
    /* background: white; */
    /* padding: 2rem; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.widget-title {
    color: #0B3367;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0CB1E1;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.recent-post-content h4 a {
    color: #0B3367;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #0CB1E1;
}

.recent-post-date {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .post-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .post-thumbnail {
        height: 45vh;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        font-size: 1rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .recent-posts-widget {
        margin-top: 2rem;
    }
    
    .recent-post-thumbnail {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .recent-post-content h4 {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .post-thumbnail {
        height: 45vh;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .entry-content {
        font-size: 1rem;
    }
}

/* New Two-Column Layout Styles */
.single-post-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    margin-top: 2rem;
}

.single-post-main-content {
    flex: 3;
    min-width: 0;
}

.single-post-sidebar {
    flex: 1;
    min-width: 0;
}

/* Circular Supporting Images styles moved to style.css and made global */

/* Gradient for post-header-content */
.post-header-content .post-title, 
.post-header-content .post-meta,
.post-header-content .event-date-pill {
    color: white;
}
.post-header-content .event-date-pill {
    background-color: #0B3367;
    color: white;
}

/* Responsive adjustments for two-column layout AND supporting images */
@media screen and (max-width: 768px) {
    .single-post-container {
        flex-direction: column;
    }


    /* Reset erratic positioning for tablet if sidebar is full width */
    .single-post-sidebar .supporting-image-item,
    .single-post-sidebar .supporting-image-item:nth-child(1),
    .single-post-sidebar .supporting-image-item:nth-child(2),
    .single-post-sidebar .supporting-image-item:nth-child(3),
    .single-post-sidebar .supporting-image-item:nth-child(4) {
        width: 150px;
        height: 150px;
        margin-top: 0;
        margin-left: 0;
        z-index: auto;
        margin: 10px;
    }
}

/* Mobile specific: Hide supporting images section */
@media screen and (max-width: 767px) { 
    .single-post-sidebar .post-supporting-images-section { /* Target the whole section */
        display: none; /* Hide on mobile */
    }

    /* The following rules for 2x2 grid can be removed or commented out if not needed for any other breakpoint */
    /*
    .single-post-sidebar .supporting-images-grid {
        display: grid; 
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; 
        width: 100%; 
        padding: 1rem 0; 
        justify-items: center; 
    }

    .single-post-sidebar .supporting-image-item,
    .single-post-sidebar .supporting-image-item:nth-child(1),
    .single-post-sidebar .supporting-image-item:nth-child(2),
    .single-post-sidebar .supporting-image-item:nth-child(3),
    .single-post-sidebar .supporting-image-item:nth-child(4) {
        width: 130px; 
        height: 130px;
        margin: 0; 
    }

    .single-post-sidebar .supporting-images-title {
        display: none; 
    }
    */
} 