/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Inter', sans-serif;
    background-color: #ffffff;
    color: #212121;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 35px 102px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #2e3133;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6941c6;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon,
.share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon img,
.share-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Content */
.main-content {
    padding-top: 118px;
    padding-bottom: 72px;
}

.content-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

/* Author Sidebar */
.author-sidebar {
	width:20%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 15px;
    padding-top: 27px;
}

.author-profile {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.author-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

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

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

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #212121;
    line-height: 24px;
    margin: 0;
}

.author-role {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #757575;
    line-height: 24px;
    margin: 0;
}

.author-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 56px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #202020;
    text-transform: uppercase;
    line-height: 20px;
    margin: 0;
}

.author-description p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #757575;
    line-height: 20px;
    max-width: 343px;
    margin: 0;
}

.share-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 56px;
}

.share-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Article Content */
.article-content {
    width:80%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.article-header {
    display: flex;
    flex-direction: column;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #212121;
    line-height: 56px;
    margin: 0;
}

.reading-time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #757575;
    line-height: 24px;
    margin: 0;
}

.article-summary {
    margin: 0;
}

.article-summary p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #757575;
    line-height: 24px;
    margin: 0;
}

.article-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f6f6f6;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body hr.wp-block-separator {
    border-top: 1px solid #ccc;
}
.article-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #212121;
    line-height: 24px;
    margin: 0;
    margin-top: 12px;
}

.article-body p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #212121;
    line-height: 24px;
    margin: 0;
}

.article-body ol {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #212121;
    line-height: 24px;
    margin: 0;
    padding-left: 24px;
}

.article-body ol li {
    margin-bottom: 0;
}

.article-body ol li strong {
    font-weight: 600;
}

.article-body ul {
    list-style-type: disc;
    padding-left: 24px;
    margin: 0;
}

.article-body ul li {
    margin-bottom: 0;
}

/* Trending Sidebar */
.trending-sidebar {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #212121;
    line-height: 32px;
    margin-bottom: 32px;
}

.trending-list,
.related-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.trending-card {
    display: flex;
    gap: 16px;
    align-items: center;
    max-width: 400px;
}

.trending-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

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

.trending-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.trending-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #212121;
    line-height: 16px;
    margin: 0;
}

.trending-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #212121;
    line-height: 32px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-author {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.trending-author img {
    width: 32px;
    height: 32px;
    border-radius: 81.92px;
    object-fit: cover;
}

.trending-author span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #212121;
    line-height: 20px;
}

/* Featured Post */
.featured-post {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-image {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #f6f6f6;
}

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

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 12, 41, 0.8), rgba(48, 43, 99, 0.9));
}

.featured-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 360px;
    max-width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.featured-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    line-height: 16px;
    margin: 0;
}

.featured-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #ffffff;
    line-height: 32px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-author {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.featured-author img {
    width: 32px;
    height: 32px;
    border-radius: 81.92px;
    object-fit: cover;
}

.featured-author span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
    line-height: 20px;
}

.slider-dots {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d5dd;
}

.dot.active::before {
    background-color: #6941c6;
}

/* Footer */
.footer {
    background-color: rgba(207, 239, 255, 0.24);
    width: 100%;
    padding: 54px 102px;
    padding-bottom: 0;
}

.footer-content {
    margin-bottom: 0;
}

.footer-columns {
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 6px;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #000000;
    line-height: 0;
    margin: 0;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, fit-content(100%));
    grid-auto-rows: fit-content(100%);
    gap: 0 34px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.86);
    line-height: 28.8px;
}

.footer-col:first-child ul {
    grid-template-columns: repeat(3, fit-content(100%));
    grid-template-rows: repeat(6, fit-content(100%));
}

.footer-col:not(:first-child) ul {
    grid-template-columns: 1fr;
    gap: 4px;
}

.footer-col li {
    white-space: nowrap;
}

.footer-col a {
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #6941c6;
}

.footer-divider {
    width: 0;
    height: 267px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-divider::before {
    content: '';
    position: absolute;
    width: 267px;
    height: 1px;
    background-color: #000000;
    transform: rotate(90deg);
}

.footer-social-section {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 12px 0;
    margin-top: 40px;
    justify-content: center;
}

.footer-divider-line {
    width: 312.9px;
    height: 1px;
    background-color: #000000;
}

.footer-social-icons {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-social-icons a {
    width: 26px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0;
    padding-bottom: 30px;
    margin-top: 24px;
}

.footer-logo {
    height: 28px;
    width: 287px;
    margin-bottom: 0;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.copyright {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 11.6px;
    color: rgba(0, 0, 0, 0.62);
    line-height: 20px;
    margin: 0;
    margin-top: 24px;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13.8px;
    color: #000000;
    line-height: 24.5px;
    margin-top: 0;
}

.footer-links a {
    text-decoration: underline;
    text-underline-position: from-font;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6941c6;
}

.footer-links span {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    line-height: 21px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-wrapper {
        gap: 48px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .author-sidebar {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }

    .article-content {
        width: 600px;
        max-width: 600px;
    }

    .trending-sidebar {
        width: 350px;
        max-width: 350px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        padding: 24px 48px;
    }

    .content-wrapper {
        flex-wrap: wrap;
        gap: 48px;
    }

    .author-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        gap: 32px;
        padding-top: 0;
    }

    .article-content {
        width: 100%;
        max-width: 100%;
    }

    .trending-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .footer {
        padding: 40px 48px;
    }

    .footer-columns {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-col:first-child ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-content {
        padding-top: 100px;
    }

    .content-wrapper.detailPage {
        padding: 0 16px 24px;
        gap: 32px;
    }

    .author-sidebar {
        flex-direction: column;
        gap: 24px;
    }

    .author-description,
    .share-section {
        padding-right: 0;
    }

    .article-title {
        font-size: 32px;
        line-height: 44px;
    }

    .trending-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .trending-image {
        width: 100%;
        height: 200px;
    }

    .footer {
        padding: 32px 24px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 32px;
    }

    .footer-col:first-child ul {
        grid-template-columns: 1fr;
    }

    .footer-divider {
        display: none;
    }

    .footer-social-section {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
    }

    .footer-divider-line {
        width: 100%;
    }

    .footer-bottom {
        margin-top: 32px;
    }

    .copyright {
        margin-top: 24px;
        transform: none;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
        line-height: 38px;
    }

    .article-image {
        height: 240px;
    }

    .featured-image {
        height: 280px;
    }

    .featured-content {
        width: calc(100% - 24px);
        left: 12px;
        bottom: 12px;
    }
}
.featured-carousel-wrapper {
    width: 100%;
    overflow: hidden; /* hide extra cards */
    position: relative;
}

.featured-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.featured-image {
    flex: 0 0 100%; /* full width of wrapper */
    box-sizing: border-box;
}

