/* Grid layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
}

/* Category cards */
.category-card {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-color: #111;
    /* border: 1px solid #202020; */
    display: flex;
    align-items: flex-end;
}

.category-content-header {
  display: flex;
  gap: 16px;
}

.category-content-header svg {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

.category-content:hover {
    background-color: #F96418;
    background-image: none;
}

.category-content:hover .category-content-header svg {
  opacity: 1;
}

.category-content:hover p {
  color: #E3E3ED;
}

.category-card h2 {
    font-size: 30px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #E3E3ED;
    line-height: 1.2;
}

.category-card p {
    font-size: 0.9rem;
    color: #B2B2B2;
    transition: color 0.3s ease;
}

.arrow-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

/* Artificial Intelligence Section Styles */
.ai-section header h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #E3E3ED;
    line-height: 1.2;
}

.ai-section header p {
    color: #A0A0A0;
    font-size: 16px;
    margin-bottom: 40px;
}

.featured-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
}

.main-article {
    overflow: hidden;
    background-color: #111;
    border: 1px solid #202020;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}


.main-article img {
    width: 100%;
    aspect-ratio: 1.97;
    object-fit: cover;
}

.main-article .article-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.main-article h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    line-height: 1.4;
}

.side-featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.featured-card {
    overflow: hidden;
    background-color: #111;
    border: 1px solid #202020;
    display: flex;
    flex-direction: column;
    height: 50%;
    transition: transform 0.3s ease;
}


.featured-card img {
    width: 100%;
    aspect-ratio: 1.97;
    object-fit: cover;
}

.featured-card .article-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.featured-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #E3E3ED;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categories section header */
.categories-section header h2 {
    font-size: 30px;
    font-weight: 700;
    color: #E3E3ED;
    line-height: 1.2;
}

/* Articles Grid Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 24px;
    margin-bottom: 40px;
}

.articles-grid .article-card {
    width: 100%;
}

.articles-grid .article-card img {
    aspect-ratio: 1.97;
    object-fit: cover;
    width: 100%;
}

.articles-grid .article-card p {
    margin-bottom: 12px;
}

.side-articles {
    grid-column: 3;
    grid-row: 1 / span 4;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border: 1px solid #7C7C7C1A;
}

.side-articles .side-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #E3E3ED;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

/* Article Card Styles */
.article-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(124, 124, 124, 0.10);
}

.article-card.large {
    grid-column: span 1;
}

.article-card.medium {
    grid-column: span 1;
}

.article-card.small {
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.article-card.small .article-image {
    width: 160px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
}

.article-card.small .article-content {
    padding: 0px;
    overflow: hidden;
    background: none;
}

.article-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    background-color: #0a0807;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.tag {
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #FF4D00;
    background-color: #FF4D001A;
    backdrop-filter: blur(20px);
    color: #fff;
}

.tag.model, 
.tag.education, 
.tag.research, 
.tag.ethics,
.tag.finance {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.tag.count {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #B2B2B2;
}

/* Typography */
.article-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #E3E3ED;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card p {
    font-size: 14px;
    color: #9B9B9B;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card.small h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0px;
    line-height: 1.2;
    color: #E3E3ED;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card p {
    font-size: 14px;
    color: #A0A0A0;
    margin-bottom: 16px;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.author {
    display: flex;
    align-items: center;
}

.articles-grid .article-card .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

body .author-info {
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
    margin: 0;
    gap: 0;
    justify-content: left;
    text-align: left;
    align-items: baseline;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: #E3E3ED;
    margin-bottom: 0 !important;
}

.article-date {
    font-size: 12px;
    color: #B2B2B2;
    margin-bottom: 0 !important;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-stats.small {
    gap: 12px;
}

.likes, .comments, .views {
    font-size: 12px;
    font-weight: 700;
    color: #7B7B7B;
    display: flex;
    align-items: center;
}

.likes::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 4px;
    display: inline-block;
    background-image: url("/wp-content/uploads/2025/05/elements.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.comments::before {
    content: '💬';
    margin-right: 4px;
    font-size: 12px;
}

.views::before {
    content: '👁️';
    margin-right: 4px;
    font-size: 12px;
}

/* View More Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.view-more-btn {
    background-color: transparent;
    color: #E3E3ED;
    border: 2px solid #333;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #F96418;
    border-color: #F96418;
    color: #fff;
}

.archive.category .wd-page-content.main-page-wrapper {
    padding-top: 100px;
}

section.ai-section {
    padding-top: 40px;
}

.article-content h3 {
    color: #FFF;
}

.article-card.small .article-image img {
    width: 160px;
    height: 100px;
    object-fit: cover;
}

section.categories-section h2 {
    margin-top: 96px;
    margin-bottom: 32px;
}

.articles-grid-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Hide articles beyond initial 8 */

.view-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 0;
}

.view-more-container button.view-more-btn {
    color: #E3E3ED;
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    background: #FF4D00;
    display: flex;
    height: 44px;
    padding: 8px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.side-articles {
    max-width: 446px;
}

.articles-grid {
    width: 100%;
}

.side-articles .side-articles-grid {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

section.categories-section article.article-card.large {
    border: 1px solid rgba(124, 124, 124, 0.10);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .side-articles {
        grid-column: span 2;
        grid-row: auto;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .featured-card {
        height: 100%;
        min-height: 219px;
    }
    
    .main-article {
        margin-bottom: 24px;
        height: 320px;
    }
    
    .side-featured {
        flex-direction: row;
        height: 250px;
    }
    
    .featured-card {
        width: 50%;
    }

    .articles-grid-container {
        flex-wrap: wrap;
    }

    .side-articles {
        max-width: 100%;
    }

    .articles-grid {
        width: 100%;
    }

    .category main.wd-content-layout .container {
        padding: 0;
    }

    .main-article {
        margin-bottom: 0;
    }

    .side-articles .side-articles-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .article-card.small {
        height: 100%;
        flex-direction: column;
        align-items: center;
    }

    .article-card.small .article-image {
        margin-right: 0;
    }

    .article-card.small .article-content h4 {
        margin-top: 16px;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card.large, 
    .article-card.medium {
        grid-column: 1;
    }
    
    .side-articles {
        grid-column: 1;
    }
    
    .side-featured {
        flex-direction: column;
        height: auto;
    }
    
    .featured-card {
        width: 100%;
    }

    section.ai-section {
        padding-top: 0;
    }

    .archive.category .wd-page-content.main-page-wrapper {
        padding-top: 88px;
    }

    .category .featured-card {
        height: 320px;
    }

    .main-article .article-content h3 {
        font-size: 16px;
        line-height: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    section.categories-section .side-articles {
        border: 0;
        padding: 0;
    }
} 

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
} 