.content-wrapper {
    margin: 0rem 0;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
}

.image-container {
    width: 100%;
    height: 60vh;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.content-block {
    width: 100%;
    margin: 1.5rem auto;
    line-height: 1.8;
    color: #2d2d2d;
}

/* Side by Side Layout Styles */
.side-by-side-container {
    display: flex;
    gap: 2rem;
    /* margin: 2rem 0; */
    align-items: flex-start;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.side-image {
    flex: 0 0 300px;
    height: 250px;
    /* border-radius: 8px; */
    overflow: hidden;
}

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

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

.side-content {
    flex: 1;
    padding: 0.5rem 0;
}

/* Left Menu Styles */
.left-control {
    padding: 1.5rem;
    border-radius: 12px;
    position: sticky;
    top: 20px;
}

.left-control-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.70rem 1.0rem;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.left-control-link:hover {
    background: #e8e4dc;
    color: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Right Content Header */
.right-control-header {
    display: flex;
    justify-content: flex-end;
  
}

/* Share Button Styles */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border: 0px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d2d2d;
    font-weight: 500;
    /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);*/
}

.share-button:hover {
    background: #e8e4dc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    width: 320px;
}

.share-popup.active {
    display: block;
    animation: popupFade 0.3s ease;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.popup-overlay.active {
    display: block;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e4dc;
}

.popup-header h4 {
    color: #2d2d2d;
    font-weight: 600;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background-color: #f0ede5;
    color: #2d2d2d;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-whatsapp { 
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.share-facebook { 
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}
.share-twitter { 
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-icon {
    width: 20px;
    height: 20px;
    fill: white;
}



/* Post Meta Styles */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0;
}

hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background-color: #212529;
}

/* Section Title Styles */
h4 {
    color: #2d2d2d;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e8e4dc;
    border-radius: 2px;
}

#sections-heading {
    font-size: 1.75rem;
    color: #2d2d2d;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8e4dc;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .right-control-header {
        margin-top: 1rem;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }

    .side-by-side-container {
        flex-direction: column;
    }
    
    .side-image {
        width: 100%;
        height: 200px;
    }
    
    .side-content {
        padding: 1rem 0 0;
    }
}

.mobile-sections {
display: none;
margin: 1.5rem 0;
}

.select-wrapper {
position: relative;
width: 100%;
}

.section-select {
width: 100%;
padding: 1rem 3rem 1rem 1.25rem;
font-size: 1rem;
background-color: #ffffff;
border: 2px solid #e8e4dc;
border-radius: 12px;
appearance: none;
cursor: pointer;
color: #2d2d2d;
font-weight: 500;
transition: all 0.3s ease;
}

.section-select:focus {
outline: none;
border-color: #2d2d2d;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select-icon {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
color: #666;
transition: transform 0.3s ease;
}

.section-select:focus + .select-icon {
transform: translateY(-50%) rotate(180deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
.desktop-sections {
display: none;
}

.mobile-sections {
display: block;
}

.section-select {
background-color: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-select:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
}

/* Add this to the existing <style> section */

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}

.section-title {
flex: 1;
margin-bottom: 0 !important;  /* Override previous margin */
}

.author-info {
display: flex;
align-items: center;
gap: 1rem;
padding-left: 2rem;
}

.author-image {
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
}

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

.author-name {
font-size: 0.95rem;
color: #666;
font-weight: 500;
}

@media (max-width: 768px) {
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}

.author-info {
padding-left: 0;
}
}