/* Single Post Hero Section */
.single-post-hero {
    padding: 175px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #235A9D, #05ACDE) !important;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    margin: auto;
    max-width: 1440px;
}

.single-post-hero__background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: luminosity;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.single-post-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 50px;
    max-width: 1145px;
    width: 100%;
}

.single-post-hero__title {
    color: #FFF;
    font-weight: 700;
}

.single-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-hero__date {
    color: #fff;
    font-size: 32px;
    font-weight: 500;
}

.single-post-hero__category {
    display: inline-block;
    padding: 8px 15px;
    background-color: #F2EE1A;
    color: #265899;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

/* Post Content Section */
.single-post-content {
    padding: 100px 0;
    background-color: #fff;
}

.single-post-content__wrapper {
    display: grid;
    grid-template-columns: 1fr calc(100% - 1010px);
    gap: 100px;
    align-items: start;
}

.single-post-content__text {
    color: #666666;
    max-width: 910px;
    width: 100%;
}

.single-post-content__text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.single-post-content__text p:last-child {
    margin-bottom: 0;
}

.single-post-content__text h2,
.single-post-content__text h3,
.single-post-content__text h4,
.single-post-content__text h5,
.single-post-content__text h6 {
    color: #215FA0;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-content__text h2:first-child,
.single-post-content__text h3:first-child,
.single-post-content__text h4:first-child,
.single-post-content__text h5:first-child,
.single-post-content__text h6:first-child {
    margin-top: 0;
}

.single-post-content__text ul,
.single-post-content__text ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.single-post-content__text li {
    margin-bottom: 8px;
    color: #666666;
}

.single-post-content__text blockquote {
    border-left: 4px solid #05ACDD;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #24589A;
}

.single-post-content__text img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 30px 0;
}

.single-post-content__text a {
    color: #05ACDD;
    text-decoration: underline;
    transition: color 300ms ease;
}

.single-post-content__text a:hover {
    color: #36C166;
}

/* Sidebar Styles */
.single-post-sidebar {
    position: sticky;
    top: 175px;
}

.single-post-sidebar__section {
    padding: 0px 50px;
    margin-bottom: 30px;
}

.single-post-sidebar__section:last-child {
    margin-bottom: 0;
}

/* Categories Section Background */
.single-post-sidebar__section:nth-child(2) {
    background-color: #36C166;
    padding: 50px;
    border-radius: 50px;
}

/* Recent Posts Section Background */
.single-post-sidebar__section:nth-child(3) {
    background-color: #05ACDC;
    padding: 50px;
    border-radius: 50px;
}

.single-post-sidebar__title {
    color: #24589A;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0 0px 20px 0;
    border-bottom: 1px solid #24589A;
}

/* Remove border from first sidebar title */
.single-post-sidebar__section:first-child .single-post-sidebar__title {
    border-bottom: none;
    margin-bottom: 0;
}

/* Update title colors for sections with backgrounds */
.single-post-sidebar__section:nth-child(2) .single-post-sidebar__title,
.single-post-sidebar__section:nth-child(3) .single-post-sidebar__title {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* Share Section */
.single-post-sidebar__share {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single-post-sidebar__share-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    text-decoration: none;
    font-weight: 300;
    transition: all 300ms ease;
    color: #24589A;
    background: none;
    border: none;
    border-radius: 0;
}

.single-post-sidebar__share-link--facebook {
    color: #24589A;
}

.single-post-sidebar__share-link--facebook:hover {
    color: #05ACDD;
    transform: translateX(5px);
}

.single-post-sidebar__share-link--linkedin {
    color: #24589A;
}

.single-post-sidebar__share-link--linkedin:hover {
    color: #05ACDD;
    transform: translateX(5px);
}

.single-post-sidebar__share-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Categories Section */
.single-post-sidebar__categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-post-sidebar__category-link {
    display: block;
    padding: 0px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    transition: all 300ms ease;
    border: 2px solid transparent;
}

.single-post-sidebar__category-link:hover {
    color: #F3EE1A;
}

/* Recent Posts Section */
.single-post-sidebar__recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single-post-sidebar__recent-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 300ms ease;
}

.single-post-sidebar__recent-post-link:hover {
    transform: translateY(-2px);
}

.single-post-sidebar__recent-post-title {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

/* Responsive styles */
@media (max-width: 1440px) {
    .single-post-hero__date {
        font-size: 27px;
    }
    .single-post-hero {
        padding: 150px 0;
        border-bottom-left-radius: 100px;
        border-bottom-right-radius: 100px;
    }
    
    .single-post-content__wrapper {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
}

@media (max-width: 1194px) {
    .single-post-hero__date {
        font-size: 24px;
    }   
}

@media (max-width: 1024px) {
    .single-post-sidebar__section {
        padding: 0px 30px;
    }
    /* Categories Section Background */
    .single-post-sidebar__section:nth-child(2) {
        background-color: #36C166;
        padding: 30px;
        border-radius: 50px;
    }

    /* Recent Posts Section Background */
    .single-post-sidebar__section:nth-child(3) {
        padding: 30px;
    }
    .single-post-hero__content{
        padding: 0;
    }
    .single-post-hero {
        padding: 120px 0;
        border-bottom-left-radius: 90px;
        border-bottom-right-radius: 90px;
    }
    
    .single-post-content {
        padding: 80px 0;
    }
    
    .single-post-content__wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Ensure content comes before sidebar on mobile */
    .single-post-content__text {
        order: 1;
    }
    
    .single-post-sidebar {
        order: 2;
        position: static;
    }
}

@media (max-width: 768px) {
    .single-post-hero__date {
        font-size: 1.3rem;
    }   
    .single-post-hero {
        padding: 100px 0;
        border-bottom-left-radius: 80px;
        border-bottom-right-radius: 80px;
    }
    
    .single-post-content {
        padding: 60px 0;
    }
    
    .single-post-hero__meta {
        gap: 15px;
    }
    
    .single-post-hero__date {
        font-size: 16px;
    }
    
    .single-post-hero__category {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .single-post-sidebar__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .single-post-hero {
        padding: 80px 0;
        border-bottom-left-radius: 50px;
        border-bottom-right-radius: 50px;
    }
    
    .single-post-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .single-post-sidebar__share {
        gap: 12px;
    }
    
    .single-post-sidebar__recent-post-title {
        font-size: 22px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .single-post-content__text a,
    .single-post-sidebar__share-link,
    .single-post-sidebar__category-link,
    .single-post-sidebar__recent-post-link {
        transition: none;
    }
} 