/*
Theme Name: My First Theme
Theme URI: https://example.com/
Author: Developer
Author URI: https://example.com/
Description: ธีมเริ่มต้นแบบ Clean & Minimal สำหรับเรียนรู้การพัฒนา WordPress Theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: my-first-theme
*/

:root {
    /* ==============================================
       Poh-Chang Corporate Identity (CI): แดง - ดำ - ทอง
    ============================================== */
    --color-red: #8b1820;          /* สีแดงชาด / เลือดหมูเพาะช่าง */
    --color-red-hover: #701117;
    --color-red-light: #fef2f2;
    --color-black: #121214;        /* สีดำสนิท / ดำกราไฟต์ */
    --color-black-soft: #1f1f23;
    --color-black-muted: #3f3f46;
    --color-gold: #c59b27;         /* สีทองอร่ามเพาะช่าง */
    --color-gold-hover: #a88118;
    --color-gold-light: #fffbeb;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);

    /* Theme Semantic Mapping */
    --primary-color: var(--color-red);
    --primary-hover: var(--color-red-hover);
    --accent-color: var(--color-gold);
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --container-width: 1140px;
    --font-serif: 'Noto Serif Thai', Georgia, 'Times New Roman', serif;
    --font-sans: 'Prompt', system-ui, -apple-system, sans-serif;
    --font-heading: var(--font-sans);
    --font-body: 'Sarabun', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Headings: ใช้ฟอนต์ Serif ไทยที่ทรงคุณค่า สื่อถึงศิลปกรรมและสถาบัน */
h1, h2, h3, h4, h5, h6, 
.site-title, 
.hero-title, 
.section-title, 
.post-card-title, 
.entry-title {
    font-family: var(--font-serif);
    letter-spacing: -0.2px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==============================================
   Site Header (2-Tier Layout)
============================================== */
.site-header {
    background-color: var(--card-bg);
}

/* ==============================================
   Audience Quick Bar (KMUTT Style: ทางลัดตามกลุ่มเป้าหมาย)
============================================== */
.header-audience-bar {
    background-color: #16171a;
    border-bottom: 1px solid rgba(197, 155, 39, 0.25);
    padding: 0.35rem 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

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

.audience-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.audience-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.4px;
}

.audience-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.audience-link:hover {
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.audience-tagline {
    font-size: 0.74rem;
    color: #94a3b8;
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
}

/* Tier 1: Branding Bar */
.header-top-bar {
    background-color: #ffffff;
    border-top: 4px solid var(--color-red);
    border-bottom: 2px solid var(--color-gold);
    padding: 1rem 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-hover) 100%);
    color: #ffd700;
    border: 2px solid var(--color-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(139, 24, 32, 0.25);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}

.site-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s;
}

.site-title a:hover {
    color: var(--color-red);
    text-decoration: none;
}

.site-description {
    margin: 0.15rem 0 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* ==============================================
   Header Social Icons (เปิด/ปิด ได้ผ่าน Customizer)
============================================== */
.header-social-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.header-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    flex-shrink: 0;
}

.header-social-icon:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.header-social-icon.social-fb:hover {
    background-color: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

.header-social-icon.social-yt:hover {
    background-color: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.35);
}

.header-social-icon.social-line:hover {
    background-color: #06c755;
    color: #ffffff;
    border-color: #06c755;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.35);
}

.header-social-icon.social-ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(214, 36, 159, 0.35);
}

/* ==============================================
   Header Search Box (เปิด/ปิด ได้ผ่าน Customizer)
============================================== */
.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.header-search-input {
    width: 175px;
    height: 34px;
    padding: 0 32px 0 14px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    background-color: #f8fafc;
    color: var(--text-color);
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.header-search-input:focus {
    width: 220px;
    background-color: #ffffff;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

.header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
}

.header-search-btn:hover {
    color: var(--color-red);
    transform: translateY(-50%) scale(1.1);
}


.apply-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-gradient);
    color: var(--color-black);
    border: 1.5px solid var(--color-gold);
    border-radius: 9999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.25);
}

.apply-btn-pill:hover {
    background: var(--color-red);
    color: #ffffff;
    border-color: var(--color-gold);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(139, 24, 32, 0.3);
}

/* Tier 2: Dedicated Navigation Bar */
.header-nav-bar {
    background-color: var(--color-black);
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%;
}

.header-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Soliur Sticky Header (เมื่อเลื่อน Scroll จอลงมา): Glassmorphism Blur ชัดเจน */
.site-header.is-sticky .header-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(18, 18, 20, 0.80) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 2px solid var(--color-gold) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45) !important;
    animation: soliurStickySlide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes soliurStickySlide {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* โลโก้ขนาดกะทัดรัดที่จะปรากฏบน Sticky Navigation Bar แบบ Soliur */
.sticky-brand {
    display: none;
}

.site-header.is-sticky .sticky-brand {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.sticky-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.sticky-brand-badge {
    background: var(--color-red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 0.22rem 0.55rem;
    border-radius: 0 6px 0 6px;
    border: 1px solid var(--color-gold);
    line-height: 1;
}

.sticky-brand-name {
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation > ul > li > a {
    color: #f3f4f6;
    font-weight: 600;
    font-size: 0.93rem;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 1.15rem;
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    position: relative;
}

/* Soliur Animated Gliding Underline */
.main-navigation > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 3px 3px 0 0;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-navigation > ul > li:hover > a,
.main-navigation > ul > li.current-menu-item > a {
    color: #ffd700;
    text-decoration: none;
}

.main-navigation > ul > li:hover > a::before,
.main-navigation > ul > li.current-menu-item > a::before {
    width: calc(100% - 1.5rem);
}

/* Soliur Smooth Rotating Chevron for Dropdown */
.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    transform: rotate(45deg) translateY(-2px);
    margin-left: 0.55rem;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

.main-navigation li:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
    border-color: #ffd700;
}

/* Desktop Dropdown Sub-menu: Butter-smooth fade & slide */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--color-gold);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
    padding: 0.6rem 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;

    /* Smooth Transition Properties (No instant snapping) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.32s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.32s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.32s;
    pointer-events: none;
}

/* Invisible bridge above submenu to prevent cursor dropout */
.main-navigation .sub-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-navigation .sub-menu a {
    padding: 0.62rem 1.35rem;
    color: #1e293b;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 500;
    width: 100%;
    border-bottom: 1px solid #f8fafc;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.main-navigation .sub-menu li:last-child > a {
    border-bottom: none;
}

/* Soliur Submenu Item: Arrow indicator that glides in on hover */
.main-navigation .sub-menu a::after {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--color-red);
    font-size: 0.92rem;
    font-weight: 700;
}

.main-navigation .sub-menu a:hover {
    background-color: #fff9f9;
    color: var(--color-red);
    border-left-color: var(--color-gold);
    padding-left: 1.65rem;
    text-decoration: none;
}

.main-navigation .sub-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Nested Dropdowns (3rd level) */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 2px;
    border-radius: 0 12px 12px 12px;
    transform: translateX(12px);
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.3s;
}

.main-navigation .sub-menu li:hover > .sub-menu {
    transform: translateX(0);
}

/* Mega-Menu Grid: จัดหลักสูตรที่มีหลายรายการเป็น 2 คอลัมน์ ไม่ให้ยาวล้นจอ */
.main-navigation li:has(.sub-menu > li:nth-child(8)) > .sub-menu {
    min-width: 540px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem;
    gap: 0.35rem;
}

.main-navigation li:has(.sub-menu > li:nth-child(8)) .sub-menu a {
    border-radius: 8px;
    border-bottom: none;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
}

.main-navigation li:has(.sub-menu > li:nth-child(8)) .sub-menu a:hover {
    background-color: #fff5f5;
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-around;
    width: 42px;
    height: 40px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: #f3f4f6;
}

.hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 3px auto;
}

/* Animate Hamburger to "X" */
.menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Backdrop Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Navigation for Mobile/Tablet */
@media (max-width: 960px) {
    .header-nav-bar {
        background: transparent;
        border: none;
        box-shadow: none;
        position: static;
        height: 0;
        padding: 0;
        overflow: visible;
    }

    /* Mobile Header: แสดงเฉพาะ Logo กะทัดรัด และปุ่ม Hamburger เพื่อไม่ให้กินพื้นที่หน้าจอมือถือ */
    .header-top-bar {
        padding: 0.45rem 0 !important;
        border-top-width: 3px;
    }

    .header-top-container {
        padding: 0 1rem;
    }

    /* ซ่อนข้อความชื่อสถาบันยาวๆ และคำบรรยายบนมือถือ */
    .site-branding .brand-text {
        display: none !important;
    }

    .site-branding {
        gap: 0;
    }

    .brand-badge {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .custom-logo-wrap img {
        max-height: 40px;
        width: auto;
    }

    /* ซ่อนแถบกลุ่มเป้าหมาย ปุ่มสมัครเรียน โซเชียลมีเดีย และช่องค้นหาบนแถบหัวเว็บมือถือ เพื่อให้แสดงแค่ Logo เท่านั้นตามความต้องการ */
    .header-audience-bar,
    .header-top-actions .apply-btn-pill,
    .header-top-actions .header-social-group,
    .header-top-actions .header-search-wrap {
        display: none !important;
    }

    .menu-toggle {
        width: 40px;
        height: 38px;
        padding: 0.3rem;
    }

    /* Mobile Sticky Top Bar with Glassmorphism */
    .site-header.is-sticky-mobile .header-top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.90) !important;
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        border-bottom: 2px solid var(--color-gold);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        animation: soliurStickySlide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .menu-toggle {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--card-bg);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
        padding: 5rem 1.5rem 2.5rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation > ul > li > a {
        color: var(--text-color);
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        border-radius: 6px;
    }

    .main-navigation > ul > li > a::before {
        display: none;
    }

    .main-navigation > ul > li > a:hover {
        background-color: #f8fafc;
        color: var(--primary-color);
    }

    /* Sub-menu on Mobile Drawer */
    .main-navigation .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-gold);
        padding: 0.35rem 0 0.35rem 0.85rem;
        margin: 0.25rem 0 0.5rem 0.5rem;
        background: #f8fafc;
        border-radius: 6px;
        min-width: auto;
    }

    .main-navigation .sub-menu::before {
        display: none;
    }

    .main-navigation .sub-menu a {
        font-size: 0.88rem;
        color: #4b5563;
        border-bottom: none;
        padding: 0.4rem 0.5rem;
    }

    .main-navigation .sub-menu a::after {
        display: none;
    }

    .main-navigation .sub-menu a:hover {
        background-color: transparent;
        color: var(--primary-color);
        padding-left: 0.75rem;
    }

    .main-navigation li:has(.sub-menu > li:nth-child(8)) > .sub-menu {
        display: none;
        min-width: auto;
        grid-template-columns: 1fr;
    }

}




/* Main Content Area */
.site-main {
    flex: 1;
    padding: 3rem 0;
}

/* Post Cards Grid (รองรับเลือก 2, 3 หรือ 4 ใบต่อแถว พร้อมสไลด์โชว์ Carousel) */
.posts-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.posts-carousel-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.posts-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--color-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.posts-carousel-btn:hover {
    background: var(--gold-gradient);
    border-color: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(197, 155, 39, 0.3);
}

.posts-carousel-btn:active {
    transform: translateY(0) scale(0.96);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.85rem;
}

.posts-grid.posts-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.posts-grid.posts-cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.85rem;
}

.posts-grid.posts-cols-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

@media (max-width: 1100px) {
    .posts-grid.posts-cols-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .posts-grid,
    .posts-grid.posts-cols-2,
    .posts-grid.posts-cols-3,
    .posts-grid.posts-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .posts-grid,
    .posts-grid.posts-cols-2,
    .posts-grid.posts-cols-3,
    .posts-grid.posts-cols-4 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Post Cards Carousel Mode (Slide Show) */
.posts-grid-outer.posts-carousel-wrap {
    position: relative;
    width: 100%;
    overflow: visible;
}

.posts-grid.is-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem 1.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) #f1f5f9;
}

.posts-grid.is-carousel::-webkit-scrollbar {
    height: 6px;
}

.posts-grid.is-carousel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 9999px;
}

.posts-grid.is-carousel::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 9999px;
}

.posts-grid.is-carousel .post-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 290px;
    scroll-snap-align: start;
}

.posts-grid.posts-cols-2.is-carousel .post-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: 320px;
}

.posts-grid.posts-cols-4.is-carousel .post-card {
    flex: 0 0 calc((100% - 4.5rem) / 4);
    min-width: 250px;
}

@media (max-width: 1100px) {
    .posts-grid.posts-cols-4.is-carousel .post-card {
        flex: 0 0 calc((100% - 3rem) / 3);
    }
}

@media (max-width: 860px) {
    .posts-grid.is-carousel .post-card,
    .posts-grid.posts-cols-2.is-carousel .post-card,
    .posts-grid.posts-cols-3.is-carousel .post-card,
    .posts-grid.posts-cols-4.is-carousel .post-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        min-width: 260px;
    }
}

@media (max-width: 600px) {
    .posts-grid.is-carousel .post-card,
    .posts-grid.posts-cols-2.is-carousel .post-card,
    .posts-grid.posts-cols-3.is-carousel .post-card,
    .posts-grid.posts-cols-4.is-carousel .post-card {
        flex: 0 0 85%;
        min-width: 250px;
    }
}

.post-card {
    background: #ffffff;
    border-radius: 0 24px 0 24px; /* CI ทรงเหลี่ยมสลับมนของเพาะช่าง */
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(18, 18, 20, 0.07);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(18, 18, 20, 0.14), 0 0 0 1px rgba(197, 155, 39, 0.45);
    border-color: var(--color-gold);
}

/* ==============================================
   KMUTT Style: Featured Lead Card (2 คอลัมน์ แนวนอน ขนาดใหญ่)
============================================== */
.post-card.featured-lead-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 0 28px 0 28px;
    border: 1.5px solid rgba(197, 155, 39, 0.35);
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(18, 18, 20, 0.09);
    margin-bottom: 0.75rem;
}

.post-card.featured-lead-card .post-thumbnail {
    width: 48%;
    aspect-ratio: 16 / 11 !important;
    flex-shrink: 0;
}

.post-card.featured-lead-card .post-thumbnail img {
    aspect-ratio: 16 / 11 !important;
}

.post-card.featured-lead-card .post-card-content {
    width: 52%;
    padding: 2.25rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-lead-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-hover) 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-right: 0.75rem;
    box-shadow: 0 2px 6px rgba(139, 24, 32, 0.3);
}

.post-card.featured-lead-card .post-card-title {
    font-size: 1.65rem;
    line-height: 1.35;
    margin: 0.85rem 0 0.85rem;
}

.post-card.featured-lead-card .post-card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.post-card.featured-lead-card .post-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: var(--color-black);
    padding: 0.55rem 1.35rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid var(--color-gold);
    width: fit-content;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
    transition: all 0.25s ease;
}

.post-card.featured-lead-card .post-read-link:hover {
    background: var(--color-red);
    color: #ffffff;
    border-color: var(--color-gold);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(139, 24, 32, 0.35);
}

@media (max-width: 860px) {
    .post-card.featured-lead-card {
        flex-direction: column;
    }
    .post-card.featured-lead-card .post-thumbnail,
    .post-card.featured-lead-card .post-card-content {
        width: 100%;
    }
    .post-card.featured-lead-card .post-card-content {
        padding: 1.5rem;
    }
}

/* Post Thumbnail: สัดส่วนจัตุรัส 1:1 แน่นอน */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
}

.post-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08); /* Soliur smooth image zoom */
}

/* ป้ายหมวดหมู่ลอยเด่นบนภาพ (Top-Left) */
.card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffd700;
    border: 1px solid var(--color-gold);
    font-size: 0.76rem;
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 0.3rem 0.8rem;
    border-radius: 0 8px 0 8px; /* สอดคล้องกับ CI มุมเหลี่ยม/มนของเพาะช่าง */
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* สีของ Badge แยกตามหมวดหมู่ (Category Color Palettes) */
.card-category-badge.badge-palette-0 {
    background: rgba(139, 24, 32, 0.88); /* แดงเพาะช่าง Crimson */
    border-color: #ef4444;
    color: #ffffff;
}

.card-category-badge.badge-palette-1 {
    background: rgba(180, 130, 20, 0.88); /* สีทองอร่าม Gold */
    border-color: #facc15;
    color: #ffffff;
}

.card-category-badge.badge-palette-2 {
    background: rgba(30, 64, 175, 0.88); /* สีน้ำเงินแซฟไฟร์ Sapphire Blue */
    border-color: #60a5fa;
    color: #ffffff;
}

.card-category-badge.badge-palette-3 {
    background: rgba(21, 128, 61, 0.88); /* สีเขียวมรกต Emerald Green */
    border-color: #4ade80;
    color: #ffffff;
}

.card-category-badge.badge-palette-4 {
    background: rgba(126, 34, 206, 0.88); /* สีม่วงอเมทิสต์ Royal Purple */
    border-color: #c084fc;
    color: #ffffff;
}

.card-category-badge.badge-palette-5 {
    background: rgba(194, 65, 12, 0.88); /* สีส้มอิฐเผา Burnt Terracotta */
    border-color: #fb923c;
    color: #ffffff;
}

.card-category-badge.badge-palette-6 {
    background: rgba(15, 118, 110, 0.88); /* สีเขียวหัวเป็ด Dark Teal */
    border-color: #2dd4bf;
    color: #ffffff;
}

.card-category-badge.badge-palette-7 {
    background: rgba(39, 39, 42, 0.88); /* สีดำกราไฟต์ Slate Graphite */
    border-color: #e4e4e7;
    color: #ffd700;
}

/* Soliur Style: Floating Date Box (ซ้อนทับมุมล่างซ้ายของภาพ) */
.post-date-box {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--color-red);
    color: #ffffff;
    border: 1.5px solid var(--color-gold);
    border-radius: 0 10px 0 10px;
    padding: 0.35rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    box-shadow: 0 6px 18px rgba(18, 18, 20, 0.35);
    z-index: 3;
    line-height: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.post-card:hover .post-date-box {
    transform: scale(1.06);
    background: var(--color-black);
}

.post-date-box .date-day {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.post-date-box .date-month {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--color-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Soliur Card Content: ข้อมูลและพาดหัว */
.post-card-content {
    padding: 1.15rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    gap: 0.5rem;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
}

.meta-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-weight: 500;
}

.meta-author svg {
    color: var(--color-gold);
}

.post-card-title {
    margin: 0;
    font-size: 0.90rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover,
.post-card:hover .post-card-title a {
    color: var(--color-red);
}

.post-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    padding-top: 0.65rem;
    border-top: 1px solid #f8fafc;
    margin-top: auto;
}

.post-read-link {
    color: var(--color-red);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-read-link .read-arrow {
    display: inline-block;
    font-size: 1.05rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.post-card:hover .post-read-link {
    color: var(--color-gold);
    text-decoration: none;
}

.post-card:hover .post-read-link .read-arrow {
    transform: translateX(6px);
}

.read-more-btn:hover {
    background-color: var(--color-black);
    color: var(--color-gold);
    border-color: var(--color-gold);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 18, 20, 0.2);
}

/* Single & Page Views */
.single-article, .page-content-wrapper {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 0 28px 0 28px; /* ดีไซน์กรอบเหลี่ยมซ้ายบน ขวาล่าง */
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.single-article h1, .page-content-wrapper h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-top: 0;
}

.single-featured-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
    height: auto;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Site Footer (สีดำสนิท ขลิบทอง) */
.site-footer {
    background-color: var(--color-black);
    border-top: 4px solid var(--color-gold);
    padding: 2.5rem 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--color-gold);
    font-weight: 600;
}

.site-footer a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ==============================================
   Hero Section Carousel & Animated Slider
============================================== */
.hero-section {
    padding-top: 2.5rem;
}

.hero-carousel {
    position: relative;
    border-radius: 0 36px 0 36px; /* ซ้ายบนเหลี่ยม ขวาล่างเหลี่ยม ขวาบนและซ้ายล่างมน */
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(18, 18, 20, 0.28);
    background-color: var(--color-black);
    outline: none;
}

.hero-slides {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 0.85s;
    z-index: 1;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    z-index: 2;
    pointer-events: auto;
}

.hero-content {
    padding: 2.25rem 3rem 2.25rem;
    max-width: 660px;
    z-index: 3;
    color: #ffffff;
}

/* Stagger animation for content when slide becomes active */
.hero-slide .hero-badge,
.hero-slide .hero-title,
.hero-slide .hero-meta,
.hero-slide .hero-excerpt,
.hero-slide .hero-cta-btn {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.hero-slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.hero-slide.active .hero-meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-slide.active .hero-excerpt {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.38s;
}

.hero-slide.active .hero-cta-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.46s;
}

.hero-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--color-black);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 0.25rem 0.8rem;
    border-radius: 0 8px 0 8px;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(197, 155, 39, 0.3);
}

.hero-title {
    margin: 0 0 0.65rem 0;
    font-size: 1.55rem; /* ขนาดกะทัดรัด ไม่บดบังรูปภาพ */
    line-height: 1.35;
    font-weight: 700;
}

.hero-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-title a:hover {
    color: #ffd700;
    text-decoration: none;
}

.hero-meta {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.hero-meta a {
    color: #fde047;
}

.hero-excerpt {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-red);
    color: #ffffff;
    border: 1.2px solid var(--color-gold);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 0 10px 0 10px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(139, 24, 32, 0.3);
}

.hero-cta-btn:hover {
    background: var(--gold-gradient);
    color: var(--color-black);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(197, 155, 39, 0.4);
}

/* Navigation Arrows (Prev / Next) */
.hero-prev-btn,
.hero-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18, 18, 20, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--color-gold);
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    outline: none;
}

.hero-prev-btn {
    left: 1.5rem;
}

.hero-next-btn {
    right: 1.5rem;
}

.hero-prev-btn:hover,
.hero-next-btn:hover {
    background: var(--color-red);
    border-color: #ffd700;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(139, 24, 32, 0.5);
}

/* Indicators / Dots */
.hero-indicators {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
    background: rgba(18, 18, 20, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.4rem 0.85rem;
    border-radius: 30px;
    border: 1px solid rgba(197, 155, 39, 0.3);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
    width: 28px;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Progress Bar */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
    overflow: hidden;
}

.hero-progress {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
}

@keyframes heroProgressAnim {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.section-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.85rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-red);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-block;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    color: var(--color-black);
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .hero-slides {
        min-height: 420px;
        height: auto;
    }

    .hero-content {
        padding: 1.75rem 1.25rem 2.75rem;
    }

    .hero-title {
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .hero-excerpt {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-prev-btn,
    .hero-next-btn {
        width: 38px;
        height: 38px;
    }

    .hero-prev-btn {
        left: 0.75rem;
    }

    .hero-next-btn {
        right: 0.75rem;
    }

    .hero-indicators {
        right: 50%;
        transform: translateX(50%);
        bottom: 0.85rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==============================================
   Announcements Section (ข่าวประกวดราคา / ประกาศเฉพาะหัวข้อ)
============================================== */
.announcements-section {
    margin-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.announcements-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.announcements-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.announcements-heading-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcements-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-hover) 100%);
    color: #ffffff;
    border-radius: 0 10px 0 10px;
    box-shadow: 0 3px 8px rgba(139, 24, 32, 0.25);
}

.announcements-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-black);
}

.announcements-view-all {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-red);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.announcements-view-all:hover {
    color: var(--color-gold);
    transform: translateX(3px);
    text-decoration: none;
}

.announcements-list-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0 20px 0 20px; /* CI ทรงเหลี่ยมสลับมนของเพาะช่าง */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.announcements-list-card:hover {
    box-shadow: 0 8px 24px rgba(18, 18, 20, 0.08);
}

.announcements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.announcement-item {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background-color: #fff9f9;
}

.announcement-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.6rem;
    text-decoration: none;
    color: inherit;
    gap: 1.25rem;
}

.announcement-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.announcement-item:hover .announcement-bullet {
    transform: scale(1.5);
    background-color: var(--color-red);
}

.announcement-text {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1.02rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.55;
    transition: color 0.2s ease;
}

.announcement-item:hover .announcement-text {
    color: var(--color-red);
}

.announcement-date {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .announcements-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .announcement-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    .announcement-date {
        align-self: flex-start;
        font-size: 0.78rem;
    }
}

/* ==============================================
   What We Do / Academic Disciplines (Soliur Style)
   สาขาวิชาและหลักสูตรเด่น วิทยาลัยเพาะช่าง
============================================== */
.services-section {
    padding: 3.5rem 0 1.5rem;
    position: relative;
}

.services-container {
    max-width: 1400px;
}

.services-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.25rem;
    gap: 2rem;
}

.services-header-wrap .section-header {
    margin-bottom: 0;
    padding-bottom: 0.75rem;
}

.services-intro-text {
    max-width: 480px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* 6 การ์ดจัดวางใน 1 แถวเดียว สมบูรณ์แบบทุกขนาดหน้าจอ ไม่มี scroll bar */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.5rem, 1vw, 1rem);
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Service Card: สัดส่วนจัตุรัส 1:1 สมบูรณ์แบบ พร้อมภาพพื้นหลัง */
.service-card {
    background-color: var(--color-black);
    border-radius: 0 18px 0 18px; /* CI ทรงเหลี่ยมสลับมนของเพาะช่าง */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(18, 18, 20, 0.15);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1 !important;
    display: flex;
    flex-direction: column;
    min-width: 0; /* ป้องกัน flex/grid child overflow */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ภาพพื้นหลังของสาขาวิชา */
.service-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.service-card:hover .service-card-bg {
    transform: scale(1.12);
}

/* เลเยอร์ Overlay มืดสลัวในสภาวะปกติ เพื่อให้อ่านข้อความชัดเจน */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 20, 0.94) 0%, rgba(18, 18, 20, 0.52) 55%, rgba(18, 18, 20, 0.28) 100%);
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Soliur Rollover Effect: แผ่นสีกวาดขึ้นมาจากด้านล่างทับรูปภาพแบบ Butter-Smooth */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    opacity: 0.94;
}

.service-card:hover::before {
    transform: scaleY(1);
}

/* เลย์เอาต์ภายในกล่องจัตุรัส 1:1 ปรับขนาดอัตโนมัติตามความกว้างหน้าจอ */
.service-card-inner {
    padding: clamp(0.6rem, 1.1vw, 1.15rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.service-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-icon-box {
    width: clamp(28px, 2.3vw, 38px);
    height: clamp(28px, 2.3vw, 38px);
    border-radius: 0 8px 0 8px;
    background-color: rgba(18, 18, 20, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-icon-box svg {
    width: clamp(15px, 1.3vw, 22px);
    height: clamp(15px, 1.3vw, 22px);
}

.service-card:hover .service-icon-box {
    transform: rotate(5deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.service-number {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.4vw, 1.45rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    letter-spacing: -0.5px;
    transition: color 0.35s ease, transform 0.35s ease;
}

.service-card:hover .service-number {
    transform: scale(1.05);
}

.service-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.service-category {
    font-family: var(--font-heading);
    font-size: clamp(0.52rem, 0.65vw, 0.65rem);
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffd700;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-title {
    margin: 0;
    font-size: clamp(0.78rem, 1.05vw, 1.05rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    transition: color 0.3s ease;
    word-break: break-word;
}

.service-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: clamp(0.3rem, 0.5vw, 0.55rem);
    margin-top: 0.15rem;
    transition: border-color 0.3s ease;
}

.service-link {
    font-family: var(--font-heading);
    font-size: clamp(0.68rem, 0.82vw, 0.82rem);
    font-weight: 700;
    color: #f3f4f6;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.service-arrow {
    font-size: 0.95rem;
    color: #ffd700;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-arrow {
    transform: translateX(4px);
}

/* ===================================================
   Soliur Rollover Theme Colors:
   1. วิจิตรศิลป์ -> สีเหลือง (Yellow / Golden Amber)
   2. ศิลปะไทย -> สีม่วง (Royal Amethyst Purple)
   3. ออกแบบ -> สีฟ้า (Vibrant Cyan Blue)
   4. หัตถกรรม -> สีแดง (Poh-Chang Crimson Red)
=================================================== */

/* 1. วิจิตรศิลป์: สีเหลือง (Yellow / Golden Amber) */
.service-card.card-yellow .service-category {
    color: #b45309;
}

.service-card.card-yellow .service-link {
    color: var(--color-black);
}

.service-card.card-yellow .service-arrow {
    color: #d97706;
}

.service-card.card-yellow::before {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.service-card.card-yellow:hover {
    border-color: #f59e0b;
    box-shadow: 0 20px 42px rgba(217, 119, 6, 0.32);
}

.service-card.card-yellow:hover .service-title,
.service-card.card-yellow:hover .service-title a,
.service-card.card-yellow:hover .service-link {
    color: #121214;
}

.service-card.card-yellow:hover .service-category {
    color: #78350f;
}

.service-card.card-yellow:hover .service-desc {
    color: #27272a;
}

.service-card.card-yellow:hover .service-number {
    color: rgba(0, 0, 0, 0.16);
}

.service-card.card-yellow:hover .service-arrow {
    color: #78350f;
}

.service-card.card-yellow:hover .service-icon-box {
    background-color: #ffffff;
    color: #d97706;
    border-color: #ffffff;
}

.service-card.card-yellow:hover .service-footer {
    border-top-color: rgba(0, 0, 0, 0.12);
}

/* 2. ศิลปะไทย: สีม่วง (Royal Purple) */
.service-card.card-purple .service-category {
    color: #7c3aed;
}

.service-card.card-purple .service-link {
    color: var(--color-black);
}

.service-card.card-purple .service-arrow {
    color: #7c3aed;
}

.service-card.card-purple::before {
    background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.service-card.card-purple:hover {
    border-color: #7c3aed;
    box-shadow: 0 20px 42px rgba(109, 40, 217, 0.35);
}

.service-card.card-purple:hover .service-title,
.service-card.card-purple:hover .service-title a,
.service-card.card-purple:hover .service-link {
    color: #ffffff;
}

.service-card.card-purple:hover .service-category {
    color: #ffd700;
}

.service-card.card-purple:hover .service-desc {
    color: rgba(255, 255, 255, 0.92);
}

.service-card.card-purple:hover .service-number {
    color: rgba(255, 255, 255, 0.22);
}

.service-card.card-purple:hover .service-arrow {
    color: #ffd700;
}

.service-card.card-purple:hover .service-icon-box {
    background-color: #ffffff;
    color: #6d28d9;
    border-color: #ffffff;
}

.service-card.card-purple:hover .service-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* 3. การออกแบบ: สีฟ้า (Vibrant Cyan Blue) */
.service-card.card-blue .service-category {
    color: #0284c7;
}

.service-card.card-blue .service-link {
    color: var(--color-black);
}

.service-card.card-blue .service-arrow {
    color: #0284c7;
}

.service-card.card-blue::before {
    background: linear-gradient(145deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
}

.service-card.card-blue:hover {
    border-color: #0284c7;
    box-shadow: 0 20px 42px rgba(2, 132, 199, 0.35);
}

.service-card.card-blue:hover .service-title,
.service-card.card-blue:hover .service-title a,
.service-card.card-blue:hover .service-link {
    color: #ffffff;
}

.service-card.card-blue:hover .service-category {
    color: #e0f2fe;
}

.service-card.card-blue:hover .service-desc {
    color: rgba(255, 255, 255, 0.92);
}

.service-card.card-blue:hover .service-number {
    color: rgba(255, 255, 255, 0.22);
}

.service-card.card-blue:hover .service-arrow {
    color: #ffffff;
}

.service-card.card-blue:hover .service-icon-box {
    background-color: #ffffff;
    color: #0284c7;
    border-color: #ffffff;
}

.service-card.card-blue:hover .service-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* 4. ศิลปหัตถกรรม: สีแดง (Poh-Chang Crimson Red) */
.service-card.card-red .service-category {
    color: var(--color-red);
}

.service-card.card-red .service-link {
    color: var(--color-black);
}

.service-card.card-red .service-arrow {
    color: var(--color-red);
}

.service-card.card-red::before {
    background: linear-gradient(145deg, #b91c1c 0%, #8b1820 60%, #701117 100%);
}

.service-card.card-red:hover {
    border-color: var(--color-gold);
    box-shadow: 0 20px 42px rgba(139, 24, 32, 0.38);
}

.service-card.card-red:hover .service-title,
.service-card.card-red:hover .service-title a,
.service-card.card-red:hover .service-link {
    color: #ffffff;
}

.service-card.card-red:hover .service-category {
    color: #ffd700;
}

.service-card.card-red:hover .service-desc {
    color: rgba(255, 255, 255, 0.92);
}

.service-card.card-red:hover .service-number {
    color: rgba(255, 255, 255, 0.22);
}

.service-card.card-red:hover .service-arrow {
    color: #ffd700;
}

.service-card.card-red:hover .service-icon-box {
    background-color: #ffffff;
    color: var(--color-red);
    border-color: #ffffff;
}

.service-card.card-red:hover .service-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* 5. ศิลปะศึกษา: สีทอง (Radiant Gold / Golden Amber) */
.service-card.card-gold .service-category {
    color: #b45309;
}

.service-card.card-gold .service-link {
    color: var(--color-black);
}

.service-card.card-gold .service-arrow {
    color: #d97706;
}

.service-card.card-gold::before {
    background: linear-gradient(145deg, #ffd700 0%, #f59e0b 45%, #b45309 100%);
}

.service-card.card-gold:hover {
    border-color: #ffd700;
    box-shadow: 0 20px 42px rgba(217, 119, 6, 0.38);
}

.service-card.card-gold:hover .service-title,
.service-card.card-gold:hover .service-title a,
.service-card.card-gold:hover .service-link {
    color: #121214;
}

.service-card.card-gold:hover .service-category {
    color: #78350f;
}

.service-card.card-gold:hover .service-desc {
    color: #1f1f23;
}

.service-card.card-gold:hover .service-number {
    color: rgba(0, 0, 0, 0.16);
}

.service-card.card-gold:hover .service-arrow {
    color: #78350f;
}

.service-card.card-gold:hover .service-icon-box {
    background-color: #ffffff;
    color: #b45309;
    border-color: #ffffff;
}

.service-card.card-gold:hover .service-footer {
    border-top-color: rgba(0, 0, 0, 0.12);
}

/* 6. ปริญญาโท: สีแดงดำ (Poh-Chang Jet Black & Crimson) */
.service-card.card-redblack .service-category {
    color: var(--color-red);
}

.service-card.card-redblack .service-link {
    color: var(--color-black);
}

.service-card.card-redblack .service-arrow {
    color: var(--color-red);
}

.service-card.card-redblack::before {
    background: linear-gradient(145deg, #121214 0%, #270608 40%, #8b1820 100%);
}

.service-card.card-redblack:hover {
    border-color: var(--color-gold);
    box-shadow: 0 20px 45px rgba(18, 18, 20, 0.55);
}

.service-card.card-redblack:hover .service-title,
.service-card.card-redblack:hover .service-title a,
.service-card.card-redblack:hover .service-link {
    color: #ffffff;
}

.service-card.card-redblack:hover .service-category {
    color: #ffd700;
}

.service-card.card-redblack:hover .service-desc {
    color: rgba(255, 255, 255, 0.92);
}

.service-card.card-redblack:hover .service-number {
    color: rgba(255, 255, 255, 0.22);
}

.service-card.card-redblack:hover .service-arrow {
    color: #ffd700;
}

.service-card.card-redblack:hover .service-icon-box {
    background-color: #ffffff;
    color: #8b1820;
    border-color: #ffffff;
}

.service-card.card-redblack:hover .service-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .services-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}

/* Responsive สำหรับแท็บเล็ตและมือถือ: แสดงผลครบทุก Card สวยงาม ไม่มี scroll bar โผล่มากวนใจเด็ดขาด */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .service-card {
        border-radius: 0 14px 0 14px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .service-card {
        border-radius: 0 12px 0 12px;
    }
}

/* ==============================================
   SECTION E: แกลเลอรีผลงานศิลปะ (Gallery Showcase)
   ============================================== */
.gallery-section {
    padding: 4.5rem 0 2rem;
    position: relative;
}

.gallery-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.25rem;
    gap: 2rem;
}

.gallery-intro-text {
    max-width: 520px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.gallery-card {
    position: relative;
    border-radius: 0 20px 0 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 12px 30px rgba(18, 18, 20, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 42px rgba(18, 18, 20, 0.22);
}

.gallery-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 18, 20, 0.92) 0%, rgba(18, 18, 20, 0.45) 50%, rgba(18, 18, 20, 0.1) 100%);
    transition: opacity 0.35s ease;
}

.gallery-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.35rem 1.25rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gallery-cat-badge {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-gold);
    text-transform: uppercase;
}

.gallery-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    transition: color 0.3s ease;
}

/* ==============================================
   SECTION F: แนะนำสถาบันและติดต่อ (About Poh-Chang & CTA)
   ============================================== */
.about-section {
    padding: 5rem 0 3.5rem;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 24, 32, 0.035) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 0 28px 0 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(18, 18, 20, 0.18);
    border: 2px solid rgba(197, 155, 39, 0.35);
}

.about-main-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-main-image {
    transform: scale(1.04);
}

.about-badge-card {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: rgba(18, 18, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--color-gold);
    border-radius: 0 16px 0 16px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.about-badge-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.about-badge-text {
    display: flex;
    flex-direction: column;
}

.about-badge-text strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-gold);
    line-height: 1.3;
}

.about-badge-text span {
    font-size: 0.75rem;
    color: #d1d5db;
}

.about-description-text {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-color);
    margin: 1.5rem 0 2rem;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    margin-bottom: 2.25rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(197, 155, 39, 0.25);
    border-radius: 0 14px 0 14px;
    padding: 1.15rem 1rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(18, 18, 20, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--color-crimson);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
    display: block;
    line-height: 1.35;
}

.about-cta-wrap {
    margin-top: 2.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ปุ่มข้อมูลสมัครเรียน: ดีไซน์เด่นสะดุดตา สไตล์ Soliur Luxury Gold & Crimson ไม่จม */
.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 55%, #d97706 100%);
    color: #121214 !important;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    padding: 1rem 2.25rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.42), 0 4px 12px rgba(18, 18, 20, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* แสง Shimmer กวาดผ่านปุ่มเพิ่มความพรีเมียม */
.about-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

.about-cta-btn:hover::before {
    left: 150%;
}

.about-cta-btn:hover {
    background: linear-gradient(135deg, #8b1820 0%, #a61c26 100%);
    color: #ffffff !important;
    border-color: #ffd700;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 38px rgba(139, 24, 32, 0.45), 0 0 20px rgba(255, 215, 0, 0.35);
}

.about-cta-btn .btn-text {
    position: relative;
    z-index: 1;
}

.about-cta-btn .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(18, 18, 20, 0.15);
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
}

.about-cta-btn:hover .btn-arrow {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.25);
}

/* ==============================================
   SECTION FOOTER: ส่วนท้ายเว็บไซต์ (Footer Information)
   ============================================== */
.site-footer {
    background-color: #0e0e11;
    color: #a1a1aa;
    padding: 4.5rem 0 0;
    border-top: 2px solid rgba(197, 155, 39, 0.25);
    position: relative;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

/* Column 1: 9-image gallery */
.footer-gallery-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.footer-gallery-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #18181b;
}

.footer-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.footer-gallery-thumb:hover img {
    transform: scale(1.12);
}

/* Column 2: Info & Brand */
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.25;
}

.footer-brand-parent {
    font-size: 0.78rem;
    color: #a1a1aa;
    line-height: 1.35;
    display: block;
    margin-top: 2px;
}

.footer-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    color: var(--color-gold);
    display: block;
    font-weight: 600;
    margin-top: 3px;
}

.footer-founding-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.75rem;
    background: rgba(197, 155, 39, 0.12);
    border: 1px solid rgba(197, 155, 39, 0.35);
    border-radius: 9999px;
    color: #fef08a;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.35rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-social-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f4f6;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-pill:hover {
    background: var(--color-crimson);
    border-color: var(--color-gold);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-pill.fb-pill {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.4);
    color: #60a5fa;
}

.social-pill.fb-pill:hover {
    background: #1877f2;
    border-color: #3b82f6;
    color: #ffffff;
}

.social-pill.line-pill {
    background: rgba(6, 199, 85, 0.15);
    border-color: rgba(6, 199, 85, 0.4);
    color: #4ade80;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.5px;
    margin: 0 0 1.25rem 0;
}

.footer-accordion-chevron {
    display: none;
}


.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #d1d5db;
}

.contact-item .contact-icon {
    font-size: 1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.contact-phone-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.contact-item a.contact-text {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a.contact-text:hover {
    color: var(--color-gold);
}

/* Column 3: Facebook Plugin */
.footer-facebook-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #16171b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    min-height: 320px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    color: #71717a;
}

.back-to-top {
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    opacity: 0.8;
}

/* ==============================================
   RESPONSIVE: SECTION E, F, และ FOOTER
   ============================================== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-col-about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer Mobile Accordion (KMUTT Style) */
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.95rem 0;
    }

    .footer-heading.footer-accordion-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        user-select: none;
        margin-bottom: 0;
        padding: 0.35rem 0;
        transition: color 0.2s ease;
    }

    .footer-heading.footer-accordion-btn:hover {
        color: #ffd700;
    }

    .footer-accordion-chevron {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--color-gold);
        border-bottom: 2px solid var(--color-gold);
        transform: rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    .footer-col .footer-col-body {
        display: none;
        padding-top: 1rem;
        animation: footerFadeSlide 0.3s ease;
    }

    .footer-col.is-open .footer-col-body {
        display: block;
    }

    .footer-col.is-open .footer-accordion-chevron {
        transform: rotate(-135deg);
    }

    @keyframes footerFadeSlide {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .footer-col-about {
        grid-column: span 1;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

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

    .about-badge-card {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.65rem 0.85rem;
    }
}

/* ==============================================
   SECTION G: สถิติข้อมูลสถาบัน (Clean Luxury Edition)
   ============================================== */
.stats-section {
    padding: 5rem 0;
    position: relative;
    background: #111215;
    background-image: radial-gradient(circle at 50% 0%, rgba(197, 155, 39, 0.06) 0%, transparent 60%);
    color: #f3f4f6;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-container {
    position: relative;
    z-index: 2;
}

/* Header: เรียบหรู ไม่กินพื้นที่ */
.stats-header-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.stats-kicker {
    display: inline-block;
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.stats-main-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    line-height: 1.3;
    margin: 0 0 0.85rem;
    font-family: var(--font-serif);
    font-weight: 700;
}

.stats-lead {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 620px;
}

/* Tabs: สไตล์ Minimalist Pills */
.stats-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
    flex-wrap: wrap;
}

.stats-tabs-nav .stats-tab-btn {
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #a1a1aa;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.stats-tabs-nav .stats-tab-btn:hover {
    color: #ffffff;
    border-color: rgba(197, 155, 39, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.stats-tabs-nav .stats-tab-btn.active {
    background: #8b1820;
    border-color: var(--color-gold);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(139, 24, 32, 0.4);
}

/* Tab Panels */
.stats-tab-content {
    display: none;
}

.stats-tab-content.active {
    display: block;
    animation: statsSimpleFade 0.35s ease forwards;
}

@keyframes statsSimpleFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean Cards Grid */
.stats-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Single Clean Card (Soliur Cut-corner) */
.clean-stat-card {
    background: #16171b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0 18px 0 18px;
    padding: 2rem 1.65rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.clean-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 155, 39, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 16px rgba(197, 155, 39, 0.1);
}

/* Top Tag Pill */
.stat-top-row {
    margin-bottom: 1.25rem;
}

.stat-tag-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* Hero Number & Unit */
.stat-figure-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.stat-hero-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 40%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-hero-unit {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 500;
    font-family: var(--font-sans);
}

/* Card Title */
.stat-clean-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 1.15rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

/* Sleek Graphic Bar (เส้นกราฟบาง คลีน สบายตา) */
.clean-graphic-bar {
    margin-top: auto;
    padding-top: 0.5rem;
}

.clean-bar-track {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.clean-bar-fill {
    height: 100%;
    transition: width 0.8s ease;
}

.fill-gold {
    background: linear-gradient(90deg, #d4af37, #f59e0b);
}

.fill-crimson {
    background: #8b1820;
    margin-left: 2px;
}

.fill-slate {
    background: #475569;
    margin-left: 2px;
}

.fill-muted {
    background: rgba(255, 255, 255, 0.12);
}

/* Range bar mode */
.clean-bar-track.range-mode {
    background: rgba(255, 255, 255, 0.08);
}

.clean-range-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #d97706, #fbbf24);
    border-radius: 9999px;
}

/* Caption Text */
.stat-clean-caption {
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0.75rem 0 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-clean-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3.5rem 0;
    }

    .stats-tabs-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .stats-tabs-nav .stats-tab-btn {
        text-align: center;
        padding: 0.65rem 1rem;
    }

    .stats-clean-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .clean-stat-card {
        padding: 1.65rem 1.4rem;
    }
}

/* ========================================================
   Author Archive Page & Author Bio Box (สไตล์ Soliur & Poh-Chang)
   ======================================================== */

/* Breadcrumbs Navigation */
.site-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    color: #64748b;
    margin-bottom: 2rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    width: fit-content;
}

.site-breadcrumbs a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-breadcrumbs a:hover {
    color: var(--color-red);
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: var(--color-black);
    font-weight: 600;
}

/* Author Profile Hero Card */
.author-profile-hero {
    position: relative;
    background: linear-gradient(135deg, #18181c 0%, #121214 100%);
    border-radius: 0 32px 0 32px; /* CI ทรงเหลี่ยมสลับมนของเพาะช่าง */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(18, 18, 20, 0.22);
    padding: 3rem 3.5rem;
    color: #ffffff;
    margin-bottom: 3.5rem;
    overflow: hidden;
}

.author-hero-bg-accent {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.2) 0%, rgba(139, 24, 32, 0.1) 60%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.author-profile-card {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2.75rem;
}

.author-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.author-avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3.5px solid var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 155, 39, 0.25);
    object-fit: cover;
    display: block;
    background: #2a2a2e;
}

.author-verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: var(--gold-gradient);
    color: #121214;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #18181c;
}

.author-details {
    flex: 1;
}

.author-badge-row {
    margin-bottom: 0.45rem;
}

.author-role-tag {
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--color-gold);
}

.author-display-name {
    font-size: 2.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0.15rem 0 0.85rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.author-bio-content {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    max-width: 780px;
}

.author-bio-content p {
    margin: 0;
}

.author-empty-bio {
    font-style: italic;
    color: #94a3b8;
}

.author-stats-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.author-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 0.86rem;
    color: #e2e8f0;
    font-family: var(--font-sans);
    transition: all 0.25s ease;
}

.author-stat-pill svg {
    color: var(--color-gold);
}

.author-stat-pill strong {
    color: #ffffff;
    font-weight: 700;
}

.author-website-link {
    text-decoration: none;
    color: var(--color-gold);
}

.author-website-link:hover {
    background: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.author-website-link:hover svg {
    color: var(--color-black);
}

/* Empty posts state */
.author-empty-posts {
    text-align: center;
    padding: 4.5rem 2rem;
    background: #ffffff;
    border-radius: 0 24px 0 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.author-empty-posts .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.author-empty-posts h3 {
    font-size: 1.35rem;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.author-empty-posts p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.author-empty-posts .btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: var(--color-black);
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.author-empty-posts .btn-back-home:hover {
    background: var(--color-red);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Author Links in Post Meta */
.meta-author-link,
.post-author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.meta-author-link:hover,
.post-author-link:hover {
    color: var(--color-red);
    text-decoration: underline;
}

/* Author Bio Box inside Single Post (single.php) */
.author-bio-box {
    margin-top: 3.5rem;
    padding: 2.25rem 2.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--color-gold);
    border-radius: 0 20px 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.author-bio-avatar {
    flex-shrink: 0;
}

.bio-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2.5px solid var(--color-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.author-bio-details {
    flex: 1;
}

.bio-label {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--color-red);
    text-transform: uppercase;
}

.bio-name {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.bio-name a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bio-name a:hover {
    color: var(--color-red);
}

.bio-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 0.85rem;
}

.bio-more-link {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.bio-more-link:hover {
    color: var(--color-black);
    gap: 0.6rem;
}

/* Responsive Author Header */
@media (max-width: 860px) {
    .author-profile-hero {
        padding: 2.25rem 1.75rem;
    }

    .author-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .author-stats-pills {
        justify-content: center;
    }

    .author-bio-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.75rem;
        gap: 1.25rem;
    }

    .author-display-name {
        font-size: 1.75rem;
    }
}

