
    :root {
    --jp-black: #2c2c2c;
    --jp-red: #bc002d; /* Japanese Sun Red */
    --gold: #b38b4d;
    --bg-light: #fdfcf8; /* Paper-like background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kantumruy Pro', sans-serif;
    background-color: var(--bg-light);
    color: var(--jp-black);
    line-height: 1.8;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ប្តូរស្ទាយ Navbar ទូទៅ */
.jp-navbar {
    padding: 20px 5%;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column; /* បញ្ឈរជាមូលដ្ឋាន (សម្រាប់ Mobile) */
    align-items: center;    /* ដាក់ឱ្យនៅកណ្តាលទាំងអស់ */
    gap: 15px;             /* ចន្លោះរវាង Logo និង Menu */
}

/* រៀបចំ Logo ឱ្យនៅចំកណ្តាល */
.logo-modern {
    display: flex;
    flex-direction: column;
    align-items: center;    /* អក្សរជប៉ុន និងអង់គ្លេសនៅកណ្តាលគ្នា */
    border-left: none;      /* ដកបន្ទាត់ឆ្វេងចេញពេលនៅកណ្តាល */
    padding-left: 0;
    text-align: center;
}

/* បន្ថែមបន្ទាត់ក្រហមតូចមួយនៅពីក្រោម Logo ជំនួសវិញ (Style ជប៉ុន) */
.logo-modern::after {
    content: "";
    width: 30px;
    height: 2px;
    background-color: #bc002d;
    margin-top: 8px;
}

/* រៀបចំ Menu Links */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #bc002d;
}

/* --- សម្រាប់អេក្រង់ធំ (Desktop) --- */
@media (min-width: 768px) {
    .jp-navbar {
        flex-direction: row;        /* ដាក់ជាជួរដេកវិញ */
        justify-content: space-between; /* Logo ម្ខាង Menu ម្ខាង */
        text-align: left;
    }

    .logo-modern {
        align-items: flex-start;    /* តម្រឹមទៅឆ្វេងវិញ */
        border-left: 3px solid #bc002d; /* ដាក់បន្ទាត់ក្រហមខាងឆ្វេងវិញ */
        padding-left: 15px;
    }

    .logo-modern::after {
        display: none;              /* លាក់បន្ទាត់ក្រោមវិញ */
    }

    .nav-links {
        gap: 30px;
    }
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    text-decoration: none;
    color: var(--jp-black);
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--jp-red); }

/* Hero */
/* =========================================
   CSS: HERO HEADER (NEW & IMPROVED)
   ========================================= */

:root {
    --jp-red: #bc002d; /* ពណ៌ក្រហមជប៉ុន */
    --gold: #b38b4d;   /* ពណ៌មាសអង្គរ */
}

.hero-section {
    position: relative; /* សម្រាប់ដាក់ Overlay ពីលើ */
    width: 100%;
    height: 80vh; /* កម្ពស់ ៨០% នៃអេក្រង់ */
    display: flex;
    align-items: center; /* ដាក់អក្សរនៅកណ្តាលតាមកម្ពស់ */
    
    /* ១. បន្ថែមរូបភាព Background ធំ */
    background-image: url('https://angkor-wado.com/blog/images/20260401_060913.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    
    color: #fff; /* ពណ៌អក្សរស */
    text-align: center;
    overflow: hidden;
}

/* ២. Overlay (ស្រទាប់ពណ៌ខ្មៅស្រាល ដើម្បីឱ្យអក្សរលេច) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1; /* នៅពីក្រោមអក្សរ */
}

.hero-section .container {
    position: relative;
    z-index: 2; /* នៅពីលើ Overlay */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ៣. អក្សរជប៉ុន (JP Text Style) */
.jp-title {
    display: block;
    font-family: 'Noto Serif JP', serif; /* ហ្វុនសិល្បៈជប៉ុន */
    font-size: 1.2rem;
    letter-spacing: 3px; /* គម្លាតអក្សរ */
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.9;
}

.jp-title::before, .jp-title::after {
    content: " — "; /* បន្ថែមបន្ទាត់សងខាង */
    color: var(--jp-red);
}

.hero-section h1 {
    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 3.5rem; /* ទំហំអក្សរធំ */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* ស្រមោលអក្សរ */
}

.hero-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* ៤. ប៊ូតុងសកម្មភាព (Buttons Style) */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--jp-red);
    color: #fff;
}

.btn-primary:hover {
    background-color: #a00026;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

/* Mobile Responsive (សម្រាប់ទូរស័ព្ទ) */
@media (max-width: 768px) {
    .hero-section { height: 60vh; }
    .hero-section h1 { font-size: 2.2rem; }
    .jp-title { font-size: 1rem; }
    .hero-btns { flex-direction: column; gap: 10px; }
}
.jp-subtitle {
    display: block;
    font-family: 'Noto Serif JP', serif;
    color: var(--jp-red);
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Section Titles */
.section-title {
    margin: 50px 0 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.section-title h2 span {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    display: block;
    color: #999;
}

/* News List Styles */
.news-list { margin-bottom: 40px; }

.news-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
}

.news-item .date {
    min-width: 150px;
    font-size: 13px;
    color: #888;
}

.news-item a {
    text-decoration: none;
    color: var(--jp-black);
    font-weight: 500;
}

.news-item a:hover { text-decoration: underline; }

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.blog-card {
    background: transparent;
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
    transition: 0.5s;
}

.blog-card:hover .card-image {
    filter: grayscale(0%);
}

.card-body { padding: 20px 0; }

.category {
    color: var(--jp-red);
    font-size: 12px;
    font-weight: bold;
}

.post-title {
    font-size: 1.4rem;
    margin: 10px 0;
}

.excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* Author Style (រង្វង់មូលតូច) */
.author-meta {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid #ddd;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 13px;
    font-weight: bold;
}

.post-date {
    font-size: 11px;
    color: #999;
}

.jp-footer {
    text-align: center;
    padding: 60px;
    font-size: 12px;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .hero-section h1 { font-size: 1.8rem; }
}
/* Video Section Styles */
.video-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* វីដេអូធំជាងអត្ថបទរៀបរាប់ */
    gap: 30px;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 50px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* សមាមាត្រ 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--jp-black);
}

.video-description p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}
.logo-modern {
    display: flex;
    flex-direction: column;
    border-left: 3px solid #bc002d; /* បន្ទាត់ក្រហមជប៉ុន */
    padding-left: 15px;
    line-height: 1.2;
}

.jp-main {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
}
/* --- ការកំណត់ទំហំអក្សរសម្រាប់ទូរស័ព្ទ (Responsive Typography) --- */

@media (max-width: 768px) {
    /* កែសម្រួល Header ធំ (h1) */
    .hero-section h1 {
        font-size: 1.4rem !important; /* បន្ថយពី ៣.៥ មកត្រឹម ១.៨ */
        line-height: 1.3;
        margin-bottom: 15px;
        padding: 0 10px; /* បន្ថែមគម្លាតសងខាងកុំឱ្យជាប់គែមអេក្រង់ */
    }

    /* កែសម្រួលចំណងជើងផ្នែក (h2) */
    .section-title h2 {
        font-size: 1.1rem !important; /* បន្ថយទំហំឱ្យល្មមអានលើទូរស័ព្ទ */
        padding-left: 10px;
    }

    /* កែសម្រួលអក្សរជប៉ុននៅក្បាលទំព័រ */
    .jp-title, .jp-tag {
        font-size: 0.7rem !important;
        letter-spacing: 1px;
    }

    /* កែសម្រួលអត្ថបទពិពណ៌នា (p) */
    .hero-section p {
        font-size: 0.9rem !important;
        line-height: 1.6;
        padding: 0 15px;
    }

    /* ប្រសិនបើ h3 ក្នុងប្លក់ធ្លាក់ដែរ */
    .post-title {
        font-size: 1.1rem !important;
    }
}
.jp-main span {
    color: #bc002d; /* ធ្វើឱ្យសញ្ញាចុចកណ្តាលមានពណ៌ក្រហម */
}

.en-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: #888;
    margin-top: 5px;
}

/* Responsive សម្រាប់ទូរស័ព្ទ */
@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr; /* ដាក់វីដេអូនៅពីលើ អត្ថបទនៅពីក្រោម */
    }
}
/* Container សម្រាប់ដាក់ Card ជួរដេក */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ផ្លាកប្រភេទអត្ថបទ */
.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(188, 0, 45, 0.9); /* ពណ៌ក្រហមជប៉ុន */
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-body {
    padding: 20px;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1a1a1a;
    /* បង្ហាញត្រឹម ២ ជួរ បើវែងពេកវាដាក់ ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ព័ត៌មានអ្នកសរសេរ */
.author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9;
}

.author-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.post-date {
    font-size: 0.75rem;
    color: #999;
}
.read-more-container {
    margin-bottom: 15px;
    text-align: right; /* រុញប៊ូតុងទៅខាងស្តាំដៃ ស្ទាយជប៉ុនចូលចិត្តបែបនេះ */
}

.read-more-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: #bc002d; /* ពណ៌ក្រហមជប៉ុន */
    position: relative;
    transition: all 0.3s ease;
}

/* បន្ថែមសញ្ញាព្រួញតូចមួយនៅខាងចុង */
.read-more-btn::after {
    content: ' →';
    font-size: 1rem;
    transition: margin-left 0.3s ease;
}

/* ពេលដាក់ Mouse ពីលើ ឱ្យសញ្ញាព្រួញរំកិលបន្តិច */
.blog-card:hover .read-more-btn::after {
    margin-left: 8px;
}

.blog-card:hover .read-more-btn {
    text-decoration: underline;
}
