@charset "UTF-8";

:root {
    --pbri-primary: #0a3d62;
    --pbri-secondary: #008b8b;
    --pbri-accent: #00b894;
    --pbri-light-bg: #f8fafc;
    
    /* ตัวแปรสำหรับเส้น Organization Chart */
    --org-line-color: #0f172a;       /* สีดำเข้ม */
    --org-line-width: 3px;           /* ความหนาเส้น */
}

body {
    font-family: 'Inter', 'Prompt', sans-serif;
    color: #334155;
    scroll-behavior: smooth;
    padding-top: 76px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.navbar-brand {
    font-weight: 700;
    color: var(--pbri-primary) !important;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--pbri-secondary) !important;
}

/* ==========================================================================
   Hero Section & Common Elements
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.7), rgba(0, 139, 139, 0.55)), 
                url('../images/banner.jpg') center 25% / cover no-repeat;
    /* สามารถลองปรับ 20%, 25%, หรือ 30% ตามความพอดีของภาพ */
    color: white;
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.badge-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.95rem;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--pbri-primary);
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--pbri-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.theme-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6fffa;
    color: var(--pbri-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.timeline-item {
    border-left: 2px solid var(--pbri-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 25px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--pbri-primary);
    border-radius: 50%;
}

.pricing-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.pricing-card.featured {
    border: 2px solid var(--pbri-secondary);
    transform: scale(1.03);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 139, 139, 0.15);
}

/* ==========================================================================
   Themes Section (Enhanced Depth & Organization Chart)
   ========================================================================== */
.themes-soft-section {
    background-color: #f1f5f9;
    min-height: 520px;
}

.soft-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 65%;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.6) 0%, rgba(241, 245, 249, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

.org-hub-wrapper {
    margin-bottom: 0;
    z-index: 3;
}

.soft-badge-wrapper {
    display: inline-block;
    padding: 6px;
    background: #e2e8f0;
    border-radius: 24px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.12), inset -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.soft-theme-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding: 10px 42px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

/* การ์ด Themes ลอยเด่น มิติชัดเจน ไม่กลืนกับพื้นหลัง */
.soft-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 38px 28px;
    position: relative;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 
                0 20px 35px -10px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.soft-card:hover {
    transform: translateY(-8px);
    border-color: #94a3b8;
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.2), 
                0 30px 45px -10px rgba(15, 23, 42, 0.12);
}

.theme-pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.pill-teal {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.pill-emerald {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pill-indigo {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.theme-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    margin: 0;
}

.soft-node-indicator {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 2;
}

.node-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.35;
    z-index: 1;
}

.node-teal .node-dot { background-color: #0284c7; }
.node-teal .node-ring { background-color: #38bdf8; }
.node-emerald .node-dot { background-color: #059669; }
.node-emerald .node-ring { background-color: #34d399; }
.node-indigo .node-dot { background-color: #4f46e5; }
.node-indigo .node-ring { background-color: #818cf8; }

/* ==========================================================================
   Organization Chart Logic: Desktop (>= 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .org-hub-wrapper {
        padding-bottom: 35px;
    }
    
    .org-stem-down {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: var(--org-line-width);
        height: 35px;
        background-color: var(--org-line-color);
    }

    .org-tree-grid {
        position: relative;
        padding-top: 40px;
    }

    .org-branch {
        position: relative;
    }

    .org-connector {
        position: absolute;
        top: -40px;
        left: 0;
        right: 0;
        height: 40px;
        pointer-events: none;
    }

    .org-connector::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: var(--org-line-width);
        height: 40px;
        background-color: var(--org-line-color);
    }

    .branch-first .org-connector::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        right: -12px;
        height: var(--org-line-width);
        background-color: var(--org-line-color);
    }

    .branch-middle .org-connector::before {
        content: '';
        position: absolute;
        top: 0;
        left: -12px;
        right: -12px;
        height: var(--org-line-width);
        background-color: var(--org-line-color);
    }

    .branch-last .org-connector::before {
        content: '';
        position: absolute;
        top: 0;
        left: -12px;
        right: 50%;
        height: var(--org-line-width);
        background-color: var(--org-line-color);
    }

    .org-arrow-head {
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 10px solid var(--org-line-color);
        z-index: 3;
    }
}

/* ==========================================================================
   Organization Chart Logic: Mobile & Tablet (< 992px)
   ไม่มีเส้น จัดเรียงการ์ดตามปกติ
   ========================================================================== */
@media (max-width: 991.98px) {
    .org-hub-wrapper {
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .org-tree-grid {
        margin-top: 0;
    }

    .org-branch {
        margin-bottom: 16px;
    }
    
    .org-branch:last-child {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Registration Rates Section
   ========================================================================== */
.registration-soft-section {
    background-color: #f8fafc;
}

.rate-soft-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 8px 12px 28px rgba(148, 163, 184, 0.12), -6px -6px 20px rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.rate-soft-card:hover {
    transform: translateY(-6px);
    box-shadow: 14px 20px 36px rgba(148, 163, 184, 0.2), -8px -8px 24px rgba(255, 255, 255, 1);
}

.rate-soft-card.featured {
    border: 2px solid rgba(14, 165, 233, 0.25);
    box-shadow: 12px 16px 36px rgba(14, 165, 233, 0.14), -6px -6px 20px rgba(255, 255, 255, 0.9);
}

.rate-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.04);
}

.rate-badge-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.rate-category-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rate-price-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 6px;
}

.rate-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 4px;
    margin-right: 2px;
}

.rate-amount {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.rate-unit {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   Timeline / Schedule Section
   ========================================================================== */
.soft-timeline-container {
    max-width: 900px;
    padding: 0 15px;
}

.soft-nav-pills {
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.soft-nav-pills .nav-link {
    color: #64748b;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.soft-nav-pills .nav-link:hover {
    color: #0284c7;
}

.soft-nav-pills .nav-link.active {
    background-color: #ffffff;
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.timeline-row {
    display: flex;
    margin-bottom: 24px;
    position: relative;
}

.time-col {
    width: 130px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 24px;
    font-weight: 600;
    color: #0ea5e9;
    font-size: 1.05rem;
    padding-top: 18px;
}

.dot-col {
    width: 24px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.dot-col::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.dot-col.last-dot::before {
    display: none;
}

.soft-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #0ea5e9;
    position: relative;
    z-index: 2;
    margin-top: 22px;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.dot-col.break-dot .soft-dot {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(203, 213, 225, 0.2);
}

.content-col {
    flex-grow: 1;
    padding-left: 24px;
}

.content-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.1);
}

.featured-card {
    border-left: 4px solid #0ea5e9;
    background-color: #f0f9ff;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.event-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Co-Hosts / University Section
   ========================================================================== */
.soft-ui-bg {
    background-color: #f8fafc;
}

.soft-stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 6px 8px 20px rgba(148, 163, 184, 0.08), -6px -6px 20px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.soft-stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.soft-content-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 10px 14px 32px rgba(148, 163, 184, 0.1), -8px -8px 24px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.04);
}

.soft-list-group .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
}

.region-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #334155;
}

.soft-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.03);
}

.university-names {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.thai-universities-wrapper {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    box-shadow: inset 2px 2px 6px rgba(148, 163, 184, 0.1), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.soft-simple-list li {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.soft-simple-list li:last-child {
    margin-bottom: 0;
}

.text-success-subtle {
    color: #34d399 !important;
    font-size: 1.1rem;
}

/* ==========================================================================
   Responsive Breakpoints for Timeline
   ========================================================================== */
@media (max-width: 767.98px) {
    .timeline-row {
        flex-direction: column;
        margin-bottom: 16px;
    }
    .time-col {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-bottom: 8px;
        padding-top: 0;
        padding-left: 16px;
        font-size: 0.95rem;
    }
    .dot-col {
        display: none;
    }
    .content-col {
        padding-left: 0;
    }
}

/* ==========================================================================
   Reusable Card Shadow Utilities (Modern Layered Shadows)
   ========================================================================== */

/* 1. คลาสการ์ดมาตรฐาน พร้อมเงาคมชัด ลอยเด่นสวยงาม (แนะนำสำหรับ Content ทั่วไป) */
.card-elevation {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.6); /* ตัดขอบบางๆ กันกลืนพื้นหลัง */
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 
                0 8px 10px -6px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease;
}

.card-elevation:hover {
    transform: translateY(-5px);
    border-color: #94a3b8;
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.18), 
                0 12px 15px -6px rgba(15, 23, 42, 0.1);
}

/* 2. เงาระดับพรีเมียม นุ่มลึก มิติสูง (เหมาะกับการ์ดราคา หรือไฮไลต์ที่ต้องการให้เด่นสุด) */
.card-elevation-high {
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.16), 
                0 25px 50px -12px rgba(15, 23, 42, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-elevation-high:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px -5px rgba(15, 23, 42, 0.22), 
                0 30px 60px -12px rgba(15, 23, 42, 0.18);
}

/* 3. คลาสเฉพาะ "เงา" (Utility Shadow Only) สำหรับเอาไปใส่เสริมคลาสเดิมที่มีอยู่แล้ว */
.shadow-crisp {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 
                0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
}

.shadow-crisp-lg {
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.16), 
                0 10px 15px -5px rgba(15, 23, 42, 0.1) !important;
}

/* 4. เงาแบบโทนสีฟ้า PBRI สำหรับกล่องสำคัญ / Call to Action */
.shadow-pbri-glow {
    box-shadow: 0 12px 28px -4px rgba(10, 61, 98, 0.18), 
                0 6px 12px -2px rgba(2, 132, 199, 0.12) !important;
}