/**
 * Single Blog Post Styles
 */

/* =========================================
   Full-Width Layout - No Sidebar
   ========================================= */
.single-post {
    width: 100%;
}

/* Hide any WordPress sidebar */
.single-post~.sidebar,
.single-post~aside,
.single-post~#secondary,
.single-post~.widget-area,
body.single-post aside.sidebar,
body.single-post #secondary {
    display: none !important;
}

/* Ensure content takes full width */
body.single-post .site-content,
body.single-post .content-area,
body.single-post #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* ========================================= 
   Hero Image
   ========================================= */
.single-post__hero {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.single-post__hero-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.single-post__hero-image img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* ========================================= 
   Post Header
   ========================================= */
.single-post__header {
    margin-bottom: 50px;
    max-width: 100%;
    width: 100%;
}

.single-post__title {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 500;
    font-size: clamp(54px, 5vw, 64px);
    color: #0B0B0C;
    margin: 0 0 25px;
    line-height: 1.2;
}

.single-post__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 20px;
    color: #0B0B0C;
}

.single-post__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 500;
}

.single-post__author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.single-post__separator {
    color: #cba465;
}

/* ========================================= 
   Post Content
   ========================================= */
.single-post__content {
    max-width: 100%;
    width: 100%;
    margin-bottom: 80px;
}

.single-post__content p {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin: 0 0 20px;
}

.single-post__content h2 {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 500;
    font-size: 28px;
    color: #12235f;
    margin: 40px 0 20px;
}

.single-post__content h3 {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 500;
    font-size: 22px;
    color: #12235f;
    margin: 30px 0 15px;
}

.single-post__content img {
    border-radius: 8px;
    margin: 0;
}

.single-post__content blockquote {
    border-left: 4px solid #cba465;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555555;
}

.single-post__content ul,
.single-post__content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.single-post__content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Multi-column image layout (from reference) */
.single-post__content .wp-block-columns,
.single-post__content .elementor-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* ========================================= 
   Related Posts
   ========================================= */
.single-post__related {
    background: linear-gradient(to bottom, #fef9ed 0%, #f5f0e6 100%);
    padding: 80px 0;
    margin-top: 40px;
}

.single-post__related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.single-post__related-title {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 500;
    font-size: 32px;
    color: #0b0b0c;
    margin: 0;
}

.single-post__related-nav {
    display: flex;
    gap: 12px;
}

.single-post__related-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #0b0b0c;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-post__related-arrow:hover {
    background: #0b0b0c;
}

.single-post__related-arrow:hover img {
    filter: invert(1);
}

.single-post__related-arrow img {
    width: 20px;
    height: 20px;
    transition: filter 0.3s ease;
}

/* Carousel */
.single-post__related-carousel {
    overflow: hidden;
}

.single-post__related-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.single-post__related-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    background-color: #f5f0e6;
    border-radius: 8px;
    border: 1px solid #cba465;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post__related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.single-post__related-image {
    margin-bottom: 0;
    overflow: hidden;
    border-bottom: 1px solid #cba465;
}

.single-post__related-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.single-post__related-card:hover .single-post__related-image img {
    transform: scale(1.05);
}

.single-post__related-content {
    padding: 20px;
}

.single-post__related-card-title {
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.3;
    color: #0b0b0c;
    margin: 0 0 15px;
}

.single-post__related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post__related-card-title a:hover {
    color: #cba465;
}

.single-post__related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading, 'League Spartan', sans-serif);
    font-size: 20px;
    font-weight: 500;
    color: #12235f;
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}

.single-post__related-link:hover {
    color: #cba465;
    gap: 12px;
}

.single-post__related-link img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.single-post__related-link:hover img {
    transform: translateX(4px);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .single-post__related-card {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .single-post__hero {
        margin-bottom: 30px;
    }

    .single-post__hero-image,
    .single-post__hero-image img {
        max-height: 350px;
    }

    .single-post__header {
        margin-bottom: 30px;
    }

    .single-post__meta {
        font-size: 13px;
    }

    .single-post__content {
        margin-bottom: 50px;
    }

    .single-post__related {
        padding: 50px 0;
    }

    .single-post__related-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .single-post__related-title {
        font-size: 24px;
    }

    .single-post__related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .single-post__title {
        font-size: 28px;
    }

    .single-post__content p {
        font-size: 15px;
    }
}