@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,0,1;wght@200;300;400;500;600;700;800;900&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', 'Sukhumvit Set', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Force Kanit font loading */
.kanit-font {
    font-family: 'Kanit', 'Sukhumvit Set', 'Helvetica Neue', Arial, sans-serif !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.site-logo i {
    color: #ff6b6b;
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu i {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    color: white;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.btn-secondary:hover {
    background: rgba(52, 152, 219, 0.5);
}

.btn i {
    margin-right: 0.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.stat-label i {
    margin-right: 0.5rem;
    color: #ff6b6b;
}

/* Categories Section */
.categories-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 4rem 0;
    backdrop-filter: blur(10px);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.section-title i {
    color: #ff6b6b;
    margin-right: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

/* Categories Grid - บังคับแนวตั้ง 9:16 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    /* บังคับ width และ height แนวตั้ง 9:16 */
    width: 250px;
    height: 444px; /* 250 * 16/9 = 444.44px */
    max-width: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* รูปปกหมวดหมู่ - เต็มการ์ด */
.category-image {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* Placeholder สำหรับหมวดหมู่ที่ไม่มีรูป */
.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.placeholder-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-align: center;
    line-height: 1.3;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.placeholder-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    text-align: center;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

/* ชื่อหมวดหมู่อยู่ด้านล่างของรูป - ตามรูปตัวอย่าง */
.category-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    color: white;
    text-align: center;
}

.category-name-overlay {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.3;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif !important;
}

.category-name-en-overlay {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif !important;
}

/* Badge จำนวนบทความ */
.article-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

/* ไม่แสดง category-info */
.category-info {
    display: none;
}

.category-card:hover .article-count-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5);
}

/* Books Section */
.books-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.books-container {
    position: relative;
}

.bookshelf-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bookshelf-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.bookshelf-title i {
    color: #ff6b6b;
    margin-right: 0.5rem;
}

.bookshelf-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.bookshelf {
    background: linear-gradient(to bottom, #8B4513 0%, #654321 50%, #4A2C17 100%);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.bookshelf::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 15px;
    background: #654321;
    border-radius: 10px 10px 0 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.books-shelf {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    min-height: 300px;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.book-spine {
    width: 60px;
    height: 280px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border-radius: 0 0 8px 8px;
    position: relative;
    cursor: pointer;
    transform-origin: bottom;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3), inset -2px 0 5px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.book-spine:nth-child(odd) {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.book-spine:nth-child(even) {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.book-spine:nth-child(3n) {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.book-spine:nth-child(4n) {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.book-spine:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 2px -5px 20px rgba(0,0,0,0.4), inset -2px 0 5px rgba(255,255,255,0.2);
    z-index: 10;
}

.book-title-spine {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 1rem 0.5rem;
    text-align: center;
    line-height: 1.2;
    transform: rotate(180deg);
    max-height: 250px;
    overflow: hidden;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.book-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: translateX(-50%) rotate(0deg);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.book-spine:hover .book-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 110%;
}

.book-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
}

.books-view-all {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.btn-view-all:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-view-all i {
    margin-right: 0.5rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.feature-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem 0 1rem 0;
    color: white;
    backdrop-filter: blur(10px);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff6b6b;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.footer-section h3 i,
.footer-section h4 i {
    margin-right: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

.error-message {
    background: rgba(231, 76, 60, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 76, 60, 0.3);
    font-family: 'Kanit', 'Sukhumvit Set', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .category-card {
        width: 280px;
        height: 497px; /* 280 * 16/9 = 497.78px */
        margin: 0 auto;
    }
    
    .books-shelf {
        gap: 0.5rem;
        justify-content: space-around;
    }
    
    .book-spine {
        width: 50px;
        height: 240px;
    }
    
    .book-title-spine {
        font-size: 0.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        width: 250px;
        height: 444px; /* 250 * 16/9 = 444.44px */
    }
    
    .books-shelf {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .book-spine {
        width: 45px;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .category-image-overlay {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .category-name-overlay {
        font-size: 1.1rem;
    }
    
    .category-name-en-overlay {
        font-size: 0.8rem;
    }
}

/* Added Missing Classes for Category Page - 2025-09-24 10:24:16 */

/* Articles Grid - Missing CSS Classes */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px; /* Consistent height for titles */
}

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

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.read-more {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Pagination - Missing CSS Classes */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* Breadcrumb - Enhanced */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 30px;
    display: inline-block;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
    margin: 0 10px;
}

/* Category Page Specific */
.category-page-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.category-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.category-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.category-subtitle {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
}

.article-count {
    font-size: 24px;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 18px;
    opacity: 0.8;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .category-title {
        font-size: 32px;
    }
    
    .category-icon {
        font-size: 48px;
    }
}

/* Force Kanit Font for All Elements */
.articles-grid,
.article-card,
.article-title,
.article-excerpt,
.article-meta,
.read-more,
.pagination,
.breadcrumb,
.category-page-header,
.empty-state {
    font-family: 'Kanit', 'Sukhumvit Set', 'Helvetica Neue', Arial, sans-serif !important;
}

.article-content {
    color: white !important; /* Force white text */
}

.article-content h1,
.article-content h2, 
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.article-content p {
    color: white !important;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.article-content .article-title {
    color: white !important;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    text-align: center;
}

.article-content .article-meta {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.article-content .article-body {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-content .article-body p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Force white text for all content */
.main-content {
    color: white !important;
}

.main-content * {
    color: inherit !important;
}

/* Breadcrumb fix */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    color: #333 !important;
}

.breadcrumb a {
    color: #667eea !important;
}

/* Button fixes */
.btn, .read-more, .back-button {
    color: white !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* Link fixes */
a:not(.breadcrumb a) {
    color: #FFD700 !important;
    text-decoration: underline;
}

a:not(.breadcrumb a):hover {
    color: #FFF !important;
}

/* Force ALL TEXT to be WHITE */
body,
body *,
.main-content,
.main-content *,
.container,
.container *,
h1, h2, h3, h4, h5, h6,
p, span, div, a, li, td, th,
.article-title,
.article-content,
.article-body,
.article-meta,
.page-title,
.category-title {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* Main Article Title - HUGE WHITE */
.article-title,
.page-title,
.category-title,
h1 {
    color: white !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* All Paragraphs WHITE */
p {
    color: white !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4) !important;
    margin-bottom: 20px !important;
}

/* All Headers WHITE */
h1, h2, h3, h4, h5, h6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6) !important;
    font-weight: bold !important;
}

/* Article Container with Background */
.article-container,
.article-content,
.main-content .container {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 20px auto !important;
}

/* Links - Gold Color */
a:not(.breadcrumb a) {
    color: #FFD700 !important;
     text-decoration: none !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

a:not(.breadcrumb a):hover {
    color: #FFFFFF !important;
}

/* Navigation Links - Keep as is */
.nav-menu a,
.breadcrumb a {
    color: #667eea !important;
}

/* Meta Information */
.article-meta,
.meta-info {
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

/* Buttons */
.btn,
.button,
.read-more,
.back-button {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
}

/* Remove any dark text shadows or colors */
* {
    text-shadow: none;
    color: white !important;
}

/* Re-apply white with shadow */
body *, .main-content * {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

/* Navigation exceptions */
.nav-menu a,
.breadcrumb a,
.site-logo a {
    color: #667eea !important;
    text-shadow: none !important;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

.breadcrumb * {
    color: #333 !important;
    text-shadow: none !important;
}

/* Header Area - WHITE TEXT on PURPLE background */
.site-header,
.main-content .category-page-header,
.main-content .page-title,
.main-content .category-title,
.main-content .article-count,
.breadcrumb ~ .category-page-header,
.breadcrumb ~ .category-page-header * {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
}

/* Article Title - BIG WHITE on purple background */
.article-title,
.page-title,
.category-title {
    color: white !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8) !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* Article Content Area - DARK TEXT on WHITE/LIGHT background */
.article-body,
.article-content,
.main-content .container > *:not(.breadcrumb):not(.category-page-header),
.article-container p,
.content-area,
.post-content {
    color: #2c3e50 !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 30px !important;
    border-radius: 15px !important;
    margin: 20px 0 !important;
}

/* Article Paragraphs - DARK TEXT */
.article-body p,
.article-content p,
.content-area p,
.post-content p {
    color: #2c3e50 !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    text-shadow: none !important;
    margin-bottom: 20px !important;
}

/* Article Headers - DARK TEXT in content area */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #2c3e50 !important;
    text-shadow: none !important;
    margin: 25px 0 15px 0 !important;
}

/* Links in content - BLUE */
.article-body a,
.article-content a,
.content-area a,
.post-content a {
    color: #667eea !important;
    text-decoration: underline !important;
}

.article-body a:hover,
.article-content a:hover {
    color: #4a5d8a !important;
}

/* Navigation - keep as is */
.nav-menu a,
.breadcrumb a,
.site-logo * {
    color: #667eea !important;
    text-shadow: none !important;
}

/* Breadcrumb area */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

.breadcrumb * {
    color: #333 !important;
    text-shadow: none !important;
}

/* Meta information - GRAY in content area */
.article-meta,
.post-meta {
    color: #666 !important;
    text-shadow: none !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

/* Buttons */
.btn,
.button,
.read-more,
.back-button {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
}

/* Override white text in content areas */
.article-body *:not(a),
.article-content *:not(a),
.content-area *:not(a),
.post-content *:not(a) {
    color: #2c3e50 !important;
    text-shadow: none !important;
}


/* MINIMAL TARGETED FIX - Applied 2025-09-24 11:36:42 */
/* MINIMAL TARGETED FIX - Only fix broken parts */

/* Keep original logo and navigation WHITE */
.site-header .site-logo,
.site-header .site-logo *,
.nav-menu,
.nav-menu a {
    color: white !important;
    text-shadow: none !important;
}

/* Remove underlines from navigation links */
.nav-menu a,
.site-logo a {
    text-decoration: none !important;
}

/* Article content area - ONLY dark text on white backgrounds */
.main-content .container > div:not(.breadcrumb):not(.category-page-header),
.article-body,
.article-content {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

/* Article content paragraphs - dark text only */
.article-body p,
.article-content p {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Keep article title WHITE (on purple background) */
.main-content h1:first-of-type,
.category-title,
.page-title {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
}

/* Remove underlines from content links */
.article-body a,
.article-content a {
    text-decoration: none !important;
    color: #667eea;
}

/* Breadcrumb - clean state */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none !important;
}

/* Remove all forced underlines */
a {
    text-decoration: none !important;
}
