.single-news-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease;
}

.single-news-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.single-news-content {
    flex: 1;
    max-width: 100%;
}

.news-article {
    background: var(--lavender-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    animation: slideInUp 0.5s ease-out;
}

.news-article h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--violet-dark);
}

.news-article .meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.news-article .featured-img {
    position: relative;
    width: 100%; /* or fixed width */
    overflow: hidden;
    border-radius: 12px;
    display: inline-block; /* shrink-wrap */
}

.news-article .featured-img img {
    width: 100%;
    height: auto; /* natural height to keep aspect ratio */
    display: block;
    border-radius: 12px; /* round corners on image itself */
}

.image-overlay-wrapper {
    padding: 0 0 2rem 0;
}

.news-content-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.news-content-text > div,
.news-content-text > p {
    margin-bottom: 1.5em;
}

.contact-cta {
    background-color: var(--violet-dark); /* violet */
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-radius: 12px;
    text-align: center;
    color: var(--white-bg);
    box-shadow: 0 4px 12px rgba(110, 15, 121, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.contact-cta-inner p {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.contact-cta-button {
    background-color:var(--white-bg);
    color: var(--violet-dark);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.contact-cta-button:hover,
.contact-cta-button:focus {
    background-color: var(--violet);
    color: var(--white-bg);
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .news-article .featured-img {
        position: relative;
        width: 100%; /* or fixed width */
        overflow: hidden;
        border-radius: 12px;
        display: inline-block; /* shrink-wrap */
    }

    .news-article .featured-img img {
        width: 100%;
        height: auto; /* natural height to keep aspect ratio */
        display: block;
        border-radius: 12px; /* round corners on image itself */
    }

    .single-news-container {
        flex-direction: column-reverse;
    }

    .news-article h1 {
        text-align: center;
    }
}

.news-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.news-sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.news-sidebar-scroll h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color:var(--violet-dark);
    margin-bottom: 1rem;
    border-radius: 12px;
}

.news-sidebar-scroll ul {
    list-style: none;
    padding: 0.3rem;
    margin: 0;
    overflow: scroll;
}

.news-sidebar-scroll li {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-sidebar-scroll li:hover {
    transform: translateY(-2px);
}

.news-sidebar-scroll li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding-right: 0.75rem;
    gap: 0.75rem;
}

.news-sidebar-scroll .thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
    margin: 0;
}

.news-sidebar-scroll .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.news-sidebar-scroll span {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .news-sidebar-scroll {
        max-height: none;
        margin-top: 2rem;
    }

    .single-news-container {
        flex-direction: column; /* ensures main content is first, sidebar is last */
    }

    .news-sidebar-scroll li {
        flex-direction: row;
    }
}

.news-sidebar-scroll {
    position: sticky;
    top: 75px;
    flex: 0 0 300px;
    height: 600px;
    overflow-y: auto;
    background: var(--lavender-bg);
    border-radius: 12px;
    padding: 0rem 1rem 1rem 1rem;
    box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.05),
            0 6px 12px rgba(0, 0, 0, 0.08); /* layered shadow for depth */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    display: flex;
    flex-direction: column;
}

.news-sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.news-sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.news-sidebar-scroll h2 {
    position: sticky;
    top: 0;
    padding: 1rem 0;
    z-index: 1;
    font-size: 1.2rem;
    color: var(--violet-dark);
    margin-bottom: 1rem;
}

.news-sidebar-scroll h2::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: absolute;
    bottom: 0;
    left: 0;
}

.news-sidebar-scroll ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-scroll li {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
    background: var(--white-bg);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-sidebar-scroll li:hover {
    transform: translateY(-2px);
}

.news-sidebar-scroll li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding-right: 0.75rem;
    gap: 0.75rem;
}

.news-sidebar-scroll .thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
    margin: 0;
}

.news-sidebar-scroll .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.news-sidebar-scroll span {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .news-sidebar-scroll {
        position: static;
        height: auto;
        max-height: none;
        margin-top: 2rem;
    }

    .news-sidebar-scroll li {
        flex-direction: row;
    }
}
