/* Article Page Styles */
.article-layout {
    display: flex;
    flex-direction: column;
    margin-top: 120px;
}

.article-hero {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    gap: 32px;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 10%, transparent 100%);
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.article-category {
    background: var(--menu-social-hover);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.article-date {
    color: #ccc;
    font-size: 0.9em;
}

.article-title {
    font-family: "Signika", sans-serif;
    font-size: 2.5em;
    color: #fff;
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #fff;
    font-weight: bold;
}

.read-time {
    color: #ccc;
    font-size: 0.9em;
}

/* Main content area */
.article-content {
    flex: 1;
    opacity: 0;
    transform: translateY(40px);
}

.article-content.fade-in-left {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(.4,2,.6,1);
}

/* Article body - full width */
.article-body {
    background: var(--article-bg);
    padding: 48px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.article-body p {
    color: var(--dark-text);
    line-height: 1.8;
    font-size: 1.1em;
    margin-bottom: 24px;
    /* Remove max-width constraint */
}

.article-body p:first-of-type::first-letter {
    float: left;
    font-size: 4em;
    padding: 0.1em 0.1em 0 0;
    color: var(--menu-social-hover);
    font-family: "Signika", sans-serif;
    line-height: 0.8;
    font-weight: bold;
    margin-right: 0.1em;
}

.article-body p:first-of-type {
    margin-top: 0;
}

.article-social {
    display: flex;
    justify-content: flex-end;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--menu-social-hover);
    color: var(--dark-text);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    background: #ffc107;
}

.right-sidebar-article {
    flex: 1;
    min-width: 320px;
    background: var(--sidebar-bg);
    border-radius: 16px;
    padding: 24px 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.24);
}

.right-sidebar-article h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.3em;
    color: #ffb400;
}

.right-sidebar-article ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.right-sidebar-article li {
    margin-bottom: 12px;
    font-size: 1.1em;
    color: var(--dark-text);
    cursor: pointer;
    transition: color 0.2s;
    background-color: var(--main-bg);
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 25px;
}

.right-sidebar-article li:hover {
    color: #ffb400;
    font-weight: bold;
    transition: all 0.2s;
}

.right-sidebar-article {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(.4,2,.6,1), transform 1.2s cubic-bezier(.4,2,.6,1);
}

.right-sidebar-article {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1.2s cubic-bezier(.4,2,.6,1), transform 1.2s cubic-bezier(.4,2,.6,1);
}



@media (max-width: 1260px) {
    .right-sidebar-article{
        display: none;
    }
}

@media (max-width: 900px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-hero-image {
        height: 300px;
    }
    
    .article-title {
        font-size: 2em;
    }
    
    .article-body {
        padding: 32px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .article-hero-image {
        height: 250px;
    }
    
    .article-hero-overlay {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.5em;
    }
    
    .article-body {
        padding: 24px;
    }
    
    .article-body p:first-of-type::first-letter {
        font-size: 3em;
    }
}



/* RELATED */

.related-section {
    margin: 64px 0;
    opacity: 0;
    transform: translateY(40px);
}

.related-section.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(.4,2,.6,1);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.related-card {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.related-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white
}

.related-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--menu-social-hover);
    color: white;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 16px;
}

.related-title {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 0 12px 0;
    font-family: "Signika", sans-serif;
}

.related-excerpt {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.related-card.fade-in-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(.4,2,.6,1);
}

.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

/* Taxonomy Styles */
.article-taxonomy {
    margin: 48px 0;
    opacity: 0;
    transform: translateY(20px);
}

.article-taxonomy.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(.4,2,.6,1);
}

.taxonomy-section {
    margin-bottom: 32px;
}

.taxonomy-section h3 {
    color: var(--menu-social-hover);
    font-size: 1.5em;
    margin-bottom: 24px;
    font-family: "Signika", sans-serif;
}

.taxonomy-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.taxonomy-item {
    opacity: 0;
    transform: translateY(10px);
    background: var(--taxonomy-bg);
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s, background 0.3s;
}

.taxonomy-item.fade-in-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(.4,2,.6,1);
}

.taxonomy-item:hover {
    background: #232323;
    transform: translateY(-3px);
}

.taxonomy-name {
    color: var(--dark-text);
    font-size: 1.1em;
}

.taxonomy-count {
    background: var(--menu-social-hover);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}

.taxonomy-count.hover-effect {
    transform: scale(1.1);
    background: #ffc107;
}

@media (max-width: 768px) {
    .related-grid {
        display: grid;
        grid-template-columns: none;
        gap: 32px;
        margin-top: 32px;
    }

    .taxonomy-grid {
        gap: 12px;
    }
    
    .taxonomy-item {
        padding: 10px 16px;
    }
    
    .taxonomy-name {
        font-size: 1em;
    }
}