/* Single Post Styles */

.single-post {
    background-color: var(--white);
    /* padding: 0px 0 0px; */
}

/* News Page Hero */
.news-page-hero {
    background-image: url('../images/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 60px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.news-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.news-page-hero .section-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.news-page-hero-logo {
    width: auto;
    max-height: 60px;
    display: none;
}

/* Post Hero Section */
.post-hero {
    padding: 40px 0 0px;
    margin-bottom: 60px;
    overflow: hidden;
}

.post-hero .section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.post-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Featured Image */
.post-featured-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%;
    max-height: 300px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.featured-image {
    width: 100%;
    height: 100%;
    /* aspect-ratio: 4/3; */
    object-fit: contain;
    display: block;
}

/* Post Header Content */
.post-header-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.post-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 32px;
    font-weight: 400;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.post-details {
    display: flex;
    gap: 16px;
    color: #666;
    font-size: 0.875rem;
}

.post-details span::after {
    content: "•";
    margin-left: 16px;
    color: #ccc;
}

.post-details span:last-child::after {
    display: none;
}

.post-share {
    display: flex;
    gap: 12px;
}

.share-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #666;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.share-link:hover {
    color: var(--text-dark);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .post-hero .section-container {
        padding: 0 var(--spacing-lg);
    }

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

    .post-subtitle {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 992px) {
    .post-hero-grid {
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    .single-post {
        /* padding: 20px 0 60px; */
    }

    .post-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-header-content {
        padding: 0;
    }

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

    .post-subtitle {
        font-size: 1.125rem;
        margin-bottom: 24px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .post-share {
        align-self: flex-end;
    }

    .post-hero .section-container {
        padding: 0 var(--spacing-md);
    }

    .post-featured-image {
        width: 100%;
        margin: 0;
        border-radius: 8px;
    }

    .section-container,
    .post-content .section-container,
    .post-featured-image {
        padding: 0 var(--spacing-md);
    }
}

@media screen and (max-width: 480px) {
    .post-hero .section-container {
        padding: 0 var(--spacing-md);
    }

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

    .post-details {
        flex-direction: column;
        gap: 4px;
    }

    .post-details span::after {
        display: none;
    }

    .post-hero .section-container {
        padding: 0 8px;
    }

    .post-hero-grid {
        gap: 24px;
    }

    .post-featured-image {
        border-radius: 4px;
    }

    .single-event .post-featured-image {
        width: 80%!important;
        aspect-ratio: 4/3;
    }

    .single-event .post-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .section-container,
    .post-content .section-container,
    .post-featured-image {
        padding: 0 var(--spacing-md);
    }
}

/* Post Content */
.post-content {
    padding: 40px 0;
}

.post-content .section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.post-body {
    /* width: 60%; */
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body h2 {
    font-size: 1.75rem;
    margin: 48px 0 24px;
    color: var(--text-dark);
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

/* Post Tags */
.post-tags {
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.tag-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-right: 8px;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 24px;
    padding: 32px;
    background-color: #f8f8f8;
    border-radius: 12px;
    margin: 48px 0;
}

.author-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-details .author-name {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.author-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-post {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.related-post-image {
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: #666;
}

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

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .post-header {
        padding: 60px var(--spacing-md) 32px;
    }

    .post-featured-image,
    .post-content {
        padding: 0 var(--spacing-md);
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .post-share {
        align-self: flex-end;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
}

@media screen and (max-width: 480px) {
    .post-title {
        font-size: 1.75rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-details {
        flex-direction: column;
        gap: 4px;
    }
}

/* Event Specific Styles */
.single-event .event-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 1rem;
}

.event-datetime,
.event-participants {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #666;
}

.event-datetime i,
.event-participants i {
    color: var(--text-dark);
    width: 16px;
    text-align: left;
}

.event-datetime span + i {
    margin-left: 12px;
}

.event-introduction {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin-bottom: 40px;
}

.event-introduction .section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.introduction-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
}

.introduction-content p:last-child {
    margin-bottom: 0;
}

/* Event Related Posts */
.single-event .related-post-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-event .event-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-dark);
}

.single-event .event-date .day {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.single-event .event-date .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-event .event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.875rem;
}

.single-event .event-time i {
    font-size: 0.875rem;
}

@media screen and (max-width: 768px) {
    .event-introduction {
        padding: 40px 0;
    }

    .event-introduction .section-container {
        padding: 0 var(--spacing-md);
    }

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

.event-header {
    padding: 40px 0;
    border-bottom: 1px solid #E5E5E5;
    background-color: var(--white);
}

.event-header .section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.event-datetime {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.event-datetime .date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.event-datetime .day {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-dark);
}

.event-datetime .month {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-datetime .time {
    font-size: 1.125rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-datetime .time::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    color: var(--color-accent);
}

.event-participants,
.event-intro {
    margin-top: 24px;
}

.event-participants .label,
.event-intro .label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.event-participants .text,
.event-intro .text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.event-intro {
    max-width: 800px;
    margin-bottom: 32px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .event-header {
        padding: 30px 0;
    }

    .event-header .section-container,
    .post-content .section-container {
        padding: 0 var(--spacing-md);
    }

    .event-datetime {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .event-datetime .date-box {
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
    }
}

@media screen and (max-width: 480px) {
    .event-header {
        padding: 20px 0;
    }

    .event-header .section-container,
    .post-content .section-container {
        padding: 0 var(--spacing-md);
    }

    .event-datetime {
        gap: 12px;
    }

    .event-datetime .day {
        font-size: 2rem;
    }

    .event-datetime .time {
        font-size: 1rem;
    }

    .event-participants,
    .event-intro {
        margin-top: 16px;
    }

    .event-participants .text,
    .event-intro .text {
        padding: 0;
    }

    .post-featured-image {
        padding: 0;
    }

    .featured-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.single-event .post-featured-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin: 32px 0;
    border-radius: 8px;
}

.single-event .post-featured-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Keep existing styles */
.post-featured-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.featured-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Update section-container styles to be consistent */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Update post-content styles */
.post-content {
    padding: 40px 0;
}

.post-content .section-container {
    max-width: var(--container-width); /* Update from 800px to match other containers */
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Update post-featured-image container */
.post-featured-image {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Media queries for responsive padding */
@media screen and (max-width: 768px) {
    .section-container,
    .post-content .section-container,
    .post-featured-image {
        padding: 0 var(--spacing-md);
    }
}

@media screen and (max-width: 480px) {
    .section-container,
    .post-content .section-container,
    .post-featured-image {
        padding: 0 var(--spacing-md);
    }
} 