/* Tsokura Articles & Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=PT+Sans+Narrow:wght@400;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ========== ARTICLES LISTING PAGE ========== */

/* Hero */
.articles-hero {
    background: linear-gradient(135deg, #121212 0%, #000000 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.articles-hero h1 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.articles-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout */
.articles-main {
    padding: 50px 0;
    background: #f5f5f5;
}

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Article Cards */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.article-category {
    background: #121212;
    color: #fff;
    padding: 3px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category:hover {
    background: #003366;
}

.article-date {
    color: #8e8e93;
}

.article-title {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-title a {
    color: #121212;
    text-decoration: none;
}

.article-title a:hover {
    color: #003366;
}

.article-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.article-author {
    color: #8e8e93;
    font-size: 0.9rem;
}

.read-more {
    color: #121212;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: #003366;
}

/* Sidebar */
.articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
}

.sidebar-widget h3 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #121212;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 5px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d1d1d6;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'PT Sans', Arial, sans-serif;
}

.search-form input:focus {
    outline: none;
    border-color: #121212;
}

.search-form button {
    padding: 10px 15px;
    background: #121212;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background: #003366;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 6px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.category-list a:hover,
.category-list a.active {
    background: #121212;
    color: #fff;
}

.category-list .count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #121212 0%, #000000 100%) !important;
    color: #fff;
    border-color: #121212 !important;
}

.sidebar-cta h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-cta p {
    margin-bottom: 15px;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sidebar-cta .btn {
    display: inline-block;
    background: #fff;
    color: #121212;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar-cta .btn:hover {
    background: #f2f2f2;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
}

.pagination a {
    padding: 10px 20px;
    background: #121212;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination a:hover {
    background: #003366;
}

.page-info {
    color: #8e8e93;
}

/* No Articles */
.no-articles {
    background: #fff;
    border-radius: 6px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
}

.no-articles h3 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    color: #121212;
    margin-bottom: 10px;
}

.no-articles p {
    color: #8e8e93;
    margin-bottom: 20px;
}

/* ========== INDIVIDUAL ARTICLE PAGE ========== */

.article-hero {
    background: linear-gradient(135deg, #121212 0%, #000000 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-category {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-category:hover {
    background: rgba(255,255,255,0.25);
}

.article-hero h1 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    font-size: 2.6rem;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-info {
    font-size: 1rem;
    opacity: 0.85;
}

.article-info .separator {
    margin: 0 10px;
}

/* Article Content */
.article-body-section {
    padding: 60px 0;
    background: #fff;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #333;
    font-family: 'PT Sans', Arial, sans-serif;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    color: #121212;
    margin: 35px 0 15px;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: #003366;
    text-decoration: underline;
}

.article-content a:hover {
    color: #121212;
}

.article-content blockquote {
    border-left: 4px solid #121212;
    padding: 15px 25px;
    margin: 30px 0;
    background: #f5f5f5;
    font-style: italic;
    color: #555;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
}

.article-content code {
    font-family: 'JetBrains Mono', monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content pre {
    background: #121212;
    color: #f2f2f2;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tags */
.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.article-tags .tag {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 3px;
    margin: 5px 5px 5px 0;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
}

/* Share */
.article-share {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #e0e0e0;
}

.article-share span {
    font-weight: 600;
    color: #333;
}

.share-btn {
    padding: 8px 15px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 600;
}

.share-btn:hover {
    background: #121212;
    color: #fff;
}

.share-linkedin {
    background: #0077b5;
    color: #fff;
}

.share-linkedin:hover {
    background: #005582;
}

.share-twitter {
    background: #1da1f2;
    color: #fff;
}

.share-twitter:hover {
    background: #0c85d0;
}

.share-email {
    background: #707070;
    color: #fff;
}

.share-email:hover {
    background: #121212;
}

/* Article Navigation */
.article-nav {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: #f5f5f5;
}

.related-articles h2 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    text-align: center;
    color: #121212;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
}

.related-card h3 {
    font-family: 'PT Sans Narrow', 'PT Sans', Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.related-card h3 a {
    color: #121212;
    text-decoration: none;
}

.related-card h3 a:hover {
    color: #003366;
}

.related-card p {
    color: #707070;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.related-card .date {
    color: #8e8e93;
    font-size: 0.85rem;
}

/* Not Found */
.not-found-message {
    text-align: center;
    padding: 60px 0;
}

.not-found-message p {
    margin-bottom: 20px;
    color: #707070;
}

/* Responsive */
@media (max-width: 992px) {
    .articles-layout {
        grid-template-columns: 1fr;
    }
    
    .articles-sidebar {
        order: -1;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .articles-hero h1,
    .article-hero h1 {
        font-size: 1.6rem;
    }
    
    .articles-hero {
        padding: 50px 0;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .container-narrow {
        padding: 0 15px;
    }
}