/* ===================================================== 
   MCU ALUMNI SYSTEM
   Version 3.0
   Theme : Pink & Sky Blue
===================================================== */

:root{

    --pink:#EC6EAD;
    --pink-dark:#D84D95;

    --sky:#4FC3F7;
    --sky-dark:#2196F3;

    --white:#ffffff;

    --bg:#F5F8FC;

    --text:#333333;

    --border:#E6EAF0;

    --shadow:0 12px 30px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.30s;

}
/* Alumni System Version 2.1 */
*{margin:0;padding:0;box-sizing:border-box}
body{

    font-family:Tahoma,Arial,sans-serif;

    background:var(--background);

    color:var(--text);

    line-height:1.6;

}
.container{width:min(1100px,92%);margin:auto}
header{background:linear-gradient(90deg,#e91e63,#64b5f6,#d4af37);color:#fff;padding:20px 0}
.logo-area{display:flex;align-items:center;gap:16px}
.logo{font-size:48px}
.site-title h1{font-size:30px}
.site-title p{font-size:15px}
nav{background:#263238}
nav ul{display:flex;flex-wrap:wrap;list-style:none;justify-content:center}
nav a{display:block;color:#fff;padding:14px 18px;text-decoration:none}
nav a:hover{background:#e91e63}
.banner{padding:60px 20px;text-align:center;background:#fff}
.banner h2{font-size:38px;color:#e91e63;margin-bottom:10px}
.banner p{margin-bottom:20px}
.btn{display:inline-block;padding:12px 22px;border-radius:8px;text-decoration:none;font-weight:bold;margin:5px}
.btn-primary{background:#e91e63;color:#fff}
.btn-secondary{background:#64b5f6;color:#fff}
.card{background:#fff;border-radius:10px;padding:20px;margin:20px 0;box-shadow:0 2px 8px rgba(0,0,0,.08)}
form{background:#fff;padding:20px;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
label{display:block;margin-top:12px;font-weight:bold}
input,select,textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:6px;margin-top:6px}
textarea{min-height:100px;resize:vertical}
button{background:#e91e63;color:#fff;border:none;padding:12px 20px;border-radius:6px;cursor:pointer;margin-top:18px}
button:hover{opacity:.9}
.alert{padding:12px;border-radius:6px;margin:15px 0}
.success{background:#d4edda;color:#155724}
.error{background:#f8d7da;color:#721c24}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{border:1px solid #ddd;padding:10px}
th{background:#64b5f6;color:#fff}
footer{margin-top:40px;background:#263238;color:#fff;text-align:center;padding:25px}
@media(max-width:768px){
.logo-area{flex-direction:column;text-align:center}
.site-title h1{font-size:24px}
.banner h2{font-size:28px}
nav ul{flex-direction:column}
}
/* ===========================
   REGISTER PAGE
=========================== */

.form-section{
    padding:40px 0;
}

.form-section .container{
    max-width:800px;
    margin:auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.form-section h2{
    text-align:center;
    color:#b01273;
    margin-bottom:25px;
}

label{
    display:block;
    margin-top:15px;
    margin-bottom:6px;
    font-weight:bold;
}

input,
select,
textarea{

    width:100%;
    padding:12px;

    border:1px solid #ccc;

    border-radius:6px;

    font-size:15px;

    box-sizing:border-box;

}

textarea{

    resize:vertical;

    min-height:120px;

}

input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:#b01273;

}

.success{

    background:#d1e7dd;

    color:#0f5132;

    padding:15px;

    border-radius:6px;

    margin-bottom:20px;

}

.error{

    background:#f8d7da;

    color:#842029;

    padding:15px;

    border-radius:6px;

    margin-bottom:20px;

}

.btn{

    display:inline-block;

    background:#c59d2f;

    color:#fff;

    padding:12px 24px;

    border:none;

    border-radius:6px;

    text-decoration:none;

    cursor:pointer;

    font-size:15px;

    transition:.3s;

}

.btn:hover{

    opacity:.9;

}

.btn-secondary{

    background:#666;

    margin-left:10px;

}

@media(max-width:768px){

    .form-section .container{

        width:95%;

        padding:20px;

    }

}
/* ===========================
   Members Page
=========================== */

.member-section{
    padding:50px 0;
    background:#f4f7fb;
}

.member-section h2{
    text-align:center;
    margin-bottom:35px;
    color:#6d214f;
}

.member-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
}

.member-card{
    background:#fff;
    border-radius:15px;
    padding:25px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    border-top:5px solid #8e44ad;
}

.member-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.member-name{
    font-size:24px;
    font-weight:bold;
    color:#8e44ad;
    margin-bottom:15px;
}

.member-info{
    margin:8px 0;
    color:#555;
    line-height:1.8;
}

.member-info strong{
    color:#222;
}

/* Search */

.search-box{
    max-width:500px;
    margin:25px auto 40px;
}

.search-box input{
    width:100%;
    padding:15px 20px;
    border:2px solid #8e44ad;
    border-radius:50px;
    font-size:16px;
    outline:none;
    transition:.3s;
}

.search-box input:focus{
    box-shadow:0 0 10px rgba(142,68,173,.3);
}
/* =====================================
   HEADER V3
===================================== */

.main-header{

    background:linear-gradient(
        135deg,
        var(--pink),
        var(--sky)
    );

    color:var(--white);

    padding:45px 0;

    box-shadow:var(--shadow-lg);

}

.logo-circle{
    /* ==========================================
   Header Logo (Official)
========================================== */

.logo-circle{
    width:72px;
    height:72px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.header-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px;
    transition:.3s;
}

.logo-circle:hover .header-logo{
    transform:scale(1.06);
}

    width:100px;

    height:100px;

    background:var(--white);

    color:var(--pink);

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:48px;

    margin:auto;

    box-shadow:var(--shadow-lg);

    transition:var(--transition);

}

.logo-circle:hover{

    transform:scale(1.08);

}

.main-header h2{

    font-weight:700;

    margin-bottom:10px;

}

.main-header h5{

    font-weight:600;

    margin-bottom:8px;

}

.main-header p{

    margin-bottom:4px;

    opacity:.95;

}

/* =====================================
   HERO
===================================== */

.hero-section{
    padding:70px 20px;
    background:#f7f9fc;
    text-align:center;
}

.hero-section h1{
    color:#6a1b9a;
    font-size:42px;
    font-weight:bold;
}

.hero-section h3{
    margin:20px 0;
    color:#1565c0;
}

.hero-section p{
    max-width:700px;
    margin:auto;
    font-size:18px;
}

.hero-buttons{
    margin-top:35px;
}

.hero-buttons .btn{
    margin:8px;
}

/* =====================================
   STATISTICS
===================================== */

.statistics-section{
    padding:50px 0;
}

.stat-card{

    background:#fff;

    border-radius:15px;

    text-align:center;

    padding:30px;

    box-shadow:0 10px 20px rgba(0,0,0,.08);

    transition:.3s;

    margin-bottom:20px;

}

.stat-card:hover{

    transform:translateY(-8px);

}

.stat-card h2{

    color:#6a1b9a;

    font-size:42px;

    margin-bottom:10px;

}

.stat-card p{

    font-size:18px;

    color:#555;

}

/* =====================================
   CARD
===================================== */

.card{

    border:none;

    border-radius:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    padding:30px;

    margin-bottom:30px;

}

/* =====================================
   MOBILE
===================================== */

@media(max-width:768px){

.hero-section h1{

font-size:30px;

}

.logo-circle{

width:80px;
height:80px;
font-size:38px;

}

.main-header{

text-align:center;

}

}
/* ==========================
   FOOTER
========================== */

.footer{
    background:#263238;
    color:#ffffff;
    padding:50px 0 20px;
    margin-top:50px;
}

.footer h4{
    margin-bottom:15px;
    color:#ffd54f;
}

.footer p{
    margin-bottom:8px;
}

.footer-menu{
    list-style:none;
    padding:0;
}

.footer-menu li{
    margin-bottom:10px;
}

.footer-menu a{
    color:#ffffff;
    text-decoration:none;
}

.footer-menu a:hover{
    color:#ffd54f;
}

.footer hr{
    margin:30px 0;
    border-color:rgba(255,255,255,.2);
}
/* ===========================
   MEMBER DETAIL
=========================== */

.detail-card{

background:#fff;

padding:40px;

border-radius:20px;

box-shadow:0 10px 30px rgba(0,0,0,.1);

max-width:900px;

margin:auto;

}

.detail-avatar{

width:120px;

height:120px;

border-radius:50%;

background:#8e44ad;

color:#fff;

font-size:60px;

display:flex;

align-items:center;

justify-content:center;

margin:auto;

margin-bottom:20px;

}

.detail-card h2{

text-align:center;

margin-bottom:15px;

color:#8e44ad;

}

.detail-card table{

margin-top:30px;

}

.detail-card th{

background:#f4f4f4;

}

.detail-card td{

background:#fff;

}
.member-avatar{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;
}
.detail-card{
    max-width:900px;
    margin:auto;
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.detail-avatar{
    text-align:center;
    margin-bottom:20px;
}

.detail-card table th{
    width:220px;
    background:#f8f9fa;
}
/* =====================================================
   WATSUWANN ALUMNI COMMUNITY
   Header & Navigation UI
   Version 1.0 Foundation – Pilot Testing
===================================================== */

/* แถบแจ้งสถานะระบบ */
.pilot-testing-bar {
    background: linear-gradient(
        90deg,
        #fff2f7 0%,
        #f4f9ff 50%,
        #fff2f7 100%
    );
    color: #333333;
    padding: 8px 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f2d7e2;
}

.pilot-testing-bar strong {
    color: #1f3c88;
}

.pilot-testing-detail {
    margin-left: 6px;
}


/* ส่วนหัวเว็บไซต์ */
.main-header {
    background: linear-gradient(
        110deg,
        #ffffff 0%,
        #f6fbff 48%,
        #fff3f8 100%
    );
    padding: 28px 0;
    border-bottom: 1px solid #e7edf5;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-logo-link {
    text-decoration: none;
    flex-shrink: 0;
}

.logo-circle {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 6px solid transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #168bd2, #ec4f91);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 24px rgba(26, 72, 120, 0.15);
}

.logo-tree {
    font-size: 4.5rem;
    line-height: 1;
}

.header-title h1 {
    margin: 0 0 6px;
    color: #e94d8a;
    font-size: 2.25rem;
    font-weight: 700;
}

.header-title h2 {
    margin: 0 0 7px;
    color: #1677c8;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.system-name {
    margin: 0 0 12px;
    color: #dc4e96;
    font-size: 1.15rem;
    font-weight: 600;
}

.institution-name {
    margin: 0;
    color: #39404a;
    font-size: 1rem;
    line-height: 1.7;
}


/* เมนูหลัก */
.main-navbar {
    background: linear-gradient(
        90deg,
        #078fd2 0%,
        #336ec9 35%,
        #a95eb4 68%,
        #ec4f91 100%
    ) !important;
    padding: 5px 0;
}

.main-navbar .navbar-brand,
.main-navbar .nav-link {
    color: #ffffff !important;
}

.main-navbar .navbar-brand {
    font-weight: 700;
}

.main-navbar .nav-link {
    padding: 12px 10px !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-navbar .nav-link i {
    margin-right: 5px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.main-navbar .login-menu,
.main-navbar .member-menu,
.main-navbar .admin-menu,
.main-navbar .logout-menu {
    color: #ffffff !important;
}

.main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.7);
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}


/* รองรับหน้าจอมือถือ */
@media (max-width: 991.98px) {

    .header-brand {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }

    .logo-tree {
        font-size: 3.8rem;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .header-title h2 {
        font-size: 1.35rem;
    }

    .main-navbar .navbar-collapse {
        padding: 10px 0 14px;
    }

    .main-navbar .nav-link {
        padding: 10px 12px !important;
    }
}

@media (max-width: 575.98px) {

    .pilot-testing-detail {
        display: block;
        margin: 3px 0 0;
    }

    .main-header {
        padding: 22px 0;
    }

    .header-title h1 {
        font-size: 1.55rem;
    }

    .header-title h2 {
        font-size: 1.1rem;
    }

    .system-name {
        font-size: 1rem;
    }

    .institution-name {
        font-size: 0.9rem;
    }
}
/* =====================================================
   FIX: บังคับสีเมนูหลัก ไม่ให้คำสั่งเดิมเปลี่ยนเป็นสีดำ
===================================================== */

nav.navbar.main-navbar {
    background-color: transparent !important;

    background-image: linear-gradient(
        90deg,
        #078fd2 0%,
        #336ec9 35%,
        #a95eb4 68%,
        #ec4f91 100%
    ) !important;
}

nav.navbar.main-navbar .navbar-brand,
nav.navbar.main-navbar .nav-link,
nav.navbar.main-navbar .nav-link i {
    color: #ffffff !important;
}

nav.navbar.main-navbar .nav-link:hover,
nav.navbar.main-navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
}
/* =====================================================
   HOME HERO — REAL WAT SUWANN IMAGE
===================================================== */

.home-hero-image {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(42, 123, 185, .14);
    background: #eef6fb;
    box-shadow: 0 18px 40px rgba(36, 82, 122, .16);
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 28%;
    transition: transform .5s ease;
}

.home-hero-image:hover img {
    transform: scale(1.035);
}

.home-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(20, 62, 94, .78) 0%,
            rgba(20, 62, 94, .22) 43%,
            rgba(20, 62, 94, .03) 72%
        );
    pointer-events: none;
}

.home-hero-image-overlay {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 20px;
    color: #ffffff;
}

.home-hero-image-overlay span {
    display: block;
    margin-bottom: 4px;
    font-size: 1.35rem;
    font-weight: 800;
}

.home-hero-image-overlay p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .94);
}

@media (max-width: 991.98px) {

    .home-hero-image {
        height: 330px;
    }
}

@media (max-width: 575.98px) {

    .home-hero-image {
        height: 280px;
        border-radius: 20px;
    }

    .home-hero-image-overlay {
        left: 18px;
        right: 18px;
        bottom: 16px;
    }

    .home-hero-image-overlay span {
        font-size: 1.15rem;
    }

    .home-hero-image-overlay p {
        font-size: .85rem;
    }
}
/* =====================================================
   HOME PAGE COMPACT LAYOUT
   Step 3.5.2
===================================================== */

/* ป้องกันหน้าเว็บล้นแนวนอน */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ป้องกันรูปภาพทุกชนิดล้นกรอบ */
img {
    max-width: 100%;
    height: auto;
}

/* ลดพื้นที่ Hero */
.home-hero {
    padding: 34px 0 28px;
}

/* ลดช่องว่างของเนื้อหา */
.home-hero-content {
    max-width: 680px;
}

.home-hero-label {
    margin-bottom: 10px;
    padding: 5px 12px;
    font-size: .88rem;
}

.home-hero h1 {
    margin-bottom: 4px;
    font-size: 2.15rem;
}

.home-hero h2 {
    margin-bottom: 5px;
    font-size: 1.55rem;
}

.home-system-name {
    margin-bottom: 10px;
    font-size: 1rem;
}

.home-motto {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.55;
}

.home-description {
    font-size: .94rem;
    line-height: 1.65;
}

.home-hero-buttons {
    margin-top: 18px;
    gap: 8px;
}

.home-hero-buttons .btn {
    padding: 9px 15px;
    border-radius: 10px;
    font-size: .92rem;
}

/* ลดขนาดภาพวัด */
.home-hero-image {
    height: 235px;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(36, 82, 122, .14);
}

/* ให้ส่วนสำคัญของวัดอยู่ด้านบน */
.home-hero-image img {
    object-position: center 24%;
}

/* ลดขนาดข้อความทับบนภาพ */
.home-hero-image-overlay {
    left: 18px;
    right: 18px;
    bottom: 14px;
}

.home-hero-image-overlay span {
    font-size: 1.08rem;
}

.home-hero-image-overlay p {
    font-size: .82rem;
    line-height: 1.4;
}

/* ลดพื้นที่แถบ Pilot Testing ใต้ Hero */
.home-testing-section {
    padding: 12px 0 4px;
}

.home-testing-box {
    padding: 11px 16px;
    gap: 11px;
    border-radius: 12px;
}

.home-testing-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.home-testing-box strong {
    font-size: .92rem;
}

.home-testing-box p {
    font-size: .84rem;
}

/* ลดพื้นที่ส่วนสถิติ */
.home-statistics-section {
    padding: 34px 0;
}

.home-section-heading,
.home-section-header {
    margin-bottom: 20px;
}

.home-section-heading h2,
.home-section-header h2,
.home-purpose-title h2 {
    font-size: 1.65rem;
}

.home-stat-card {
    padding: 18px 12px;
    border-radius: 15px;
}

.home-stat-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 13px;
    font-size: 1.2rem;
}

.home-stat-card h3 {
    margin-bottom: 2px;
    font-size: 1.75rem;
}

.home-stat-card p {
    font-size: .9rem;
}

/* ลดพื้นที่ส่วนข่าว */
.home-news-section {
    padding: 38px 0;
}

.home-news-image {
    height: 165px;
}

.home-news-body {
    padding: 16px;
}

.home-news-body h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.home-news-body p {
    margin-bottom: 10px;
    font-size: .9rem;
    line-height: 1.55;
}

/* ลดพื้นที่ส่วนท้ายของหน้าแรก */
.home-purpose-section {
    padding: 38px 0;
}

.home-purpose-box {
    padding: 26px;
    border-radius: 20px;
}

.home-purpose-item {
    padding: 13px;
    gap: 12px;
}

.home-purpose-item > i {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
}

/* หน้าจอแท็บเล็ต */
@media (max-width: 991.98px) {

    .home-hero {
        padding: 28px 0;
    }

    .home-hero-image {
        height: 220px;
        margin-top: 8px;
    }
}

/* หน้าจอโทรศัพท์ */
@media (max-width: 575.98px) {

    .home-hero {
        padding: 24px 0;
    }

    .home-hero h1 {
        font-size: 1.55rem;
    }

    .home-hero h2 {
        font-size: 1.08rem;
    }

    .home-description {
        font-size: .88rem;
    }

    .home-hero-image {
        height: 190px;
    }

    .home-hero-image-overlay p {
        display: none;
    }

    .home-testing-box {
        padding: 10px 12px;
    }

    .home-testing-icon {
        display: none;
    }

    .home-statistics-section,
    .home-news-section,
    .home-purpose-section {
        padding: 28px 0;
    }
}
/* =====================================================
   HOME PAGE COMPACT LAYOUT
   Step 3.5.2
===================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* HERO */
.home-hero {
    padding: 28px 0 24px;
}

.home-hero-content {
    max-width: 680px;
}

.home-hero-label {
    margin-bottom: 8px;
    padding: 5px 12px;
    font-size: .86rem;
}

.home-hero h1 {
    margin-bottom: 3px;
    font-size: 2rem;
}

.home-hero h2 {
    margin-bottom: 4px;
    font-size: 1.42rem;
}

.home-system-name {
    margin-bottom: 8px;
    font-size: .95rem;
}

.home-motto {
    margin-bottom: 6px;
    font-size: 1.02rem;
    line-height: 1.5;
}

.home-description {
    max-width: 620px;
    font-size: .9rem;
    line-height: 1.55;
}

.home-hero-buttons {
    margin-top: 14px;
    gap: 8px;
}

.home-hero-buttons .btn {
    padding: 8px 14px;
    border-radius: 9px;
    font-size: .88rem;
}

/* ภาพวัดด้านขวา */
.home-hero-image {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(36, 82, 122, .14);
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 24%;
}

.home-hero-image-overlay {
    left: 16px;
    right: 16px;
    bottom: 12px;
}

.home-hero-image-overlay span {
    font-size: 1rem;
}

.home-hero-image-overlay p {
    font-size: .78rem;
    line-height: 1.35;
}

/* PILOT TESTING */
.home-testing-section {
    padding: 10px 0 2px;
}

.home-testing-box {
    padding: 9px 14px;
    gap: 10px;
    border-radius: 10px;
}

.home-testing-icon {
    width: 34px;
    height: 34px;
    font-size: .9rem;
}

.home-testing-box strong {
    font-size: .88rem;
}

.home-testing-box p {
    font-size: .8rem;
}

/* สถิติ */
.home-statistics-section {
    padding: 28px 0;
}

.home-section-heading,
.home-section-header {
    margin-bottom: 16px;
}

.home-section-heading h2,
.home-section-header h2,
.home-purpose-title h2 {
    font-size: 1.5rem;
}

.home-stat-card {
    padding: 15px 10px;
    border-radius: 14px;
}

.home-stat-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 1.05rem;
}

.home-stat-card h3 {
    margin-bottom: 1px;
    font-size: 1.55rem;
}

.home-stat-card p {
    font-size: .84rem;
}

/* ข่าวล่าสุด */
.home-news-section {
    padding: 30px 0;
}

.home-news-card {
    border-radius: 15px;
}

.home-news-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.home-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-body {
    padding: 14px;
}

.home-news-date {
    margin-bottom: 6px;
    font-size: .8rem;
}

.home-news-body h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.4;
}

.home-news-body p {
    margin-bottom: 8px;
    font-size: .84rem;
    line-height: 1.45;
}

.home-news-link {
    font-size: .86rem;
}

/* ส่วนแนะนำชุมชน */
.home-purpose-section {
    padding: 30px 0;
}

.home-purpose-box {
    padding: 22px;
    border-radius: 18px;
}

.home-purpose-title p {
    margin-top: 10px;
    font-size: .9rem;
    line-height: 1.55;
}

.home-purpose-list {
    gap: 10px;
}

.home-purpose-item {
    padding: 11px;
    gap: 10px;
}

.home-purpose-item > i {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.home-purpose-item h3 {
    font-size: .96rem;
}

.home-purpose-item p {
    font-size: .84rem;
    line-height: 1.45;
}

/* แท็บเล็ต */
@media (max-width: 991.98px) {

    .home-hero {
        padding: 24px 0;
    }

    .home-hero-image {
        height: 210px;
        margin-top: 6px;
    }
}

/* โทรศัพท์ */
@media (max-width: 575.98px) {

    .home-hero {
        padding: 20px 0;
    }

    .home-hero h1 {
        font-size: 1.45rem;
    }

    .home-hero h2 {
        font-size: 1rem;
    }

    .home-description {
        font-size: .84rem;
    }

    .home-hero-image {
        height: 180px;
    }

    .home-hero-image-overlay p {
        display: none;
    }

    .home-testing-icon {
        display: none;
    }

    .home-statistics-section,
    .home-news-section,
    .home-purpose-section {
        padding: 24px 0;
    }
}
/* =====================================================
   COMPACT FOOTER
===================================================== */

.footer {
    margin-top: 0;
    padding: 22px 0 12px;
    background: linear-gradient(135deg, #176fb4, #d84788);
    color: #ffffff;
}

.footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand h4 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-brand p {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
}

.footer-brand span {
    display: block;
    margin-top: 2px;
    font-size: .8rem;
    opacity: .9;
}

.footer-version {
    text-align: right;
}

.footer-version strong {
    display: block;
    font-size: .9rem;
}

.footer-version span {
    display: block;
    font-size: .8rem;
    opacity: .9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.25);
    font-size: .75rem;
    opacity: .92;
}

@media (max-width: 767.98px) {

    .footer-compact,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-version {
        text-align: left;
    }
}
/* =====================================================
   HEADER BRAND — LOGO SIZE
===================================================== */

.alumni-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.alumni-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.alumni-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.alumni-brand-thai {
    font-size: 1.15rem;
    font-weight: 800;
    color: #173d7a;
    white-space: nowrap;
}

.alumni-brand-english {
    margin-top: 3px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e83e83;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.alumni-brand-system {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #667085;
    white-space: nowrap;
}

/* จอคอมพิวเตอร์ขนาดเล็ก */
@media (max-width: 1399.98px) {

    .alumni-brand-logo {
        width: 62px;
        height: 62px;
    }

    .alumni-brand-thai {
        font-size: 1rem;
    }

    .alumni-brand-english {
        font-size: 0.72rem;
    }

    .alumni-brand-system {
        font-size: 0.66rem;
    }
}

/* โทรศัพท์และแท็บเล็ต */
@media (max-width: 767.98px) {

    .alumni-brand {
        gap: 8px;
        max-width: calc(100% - 60px);
    }

    .alumni-brand-logo {
        width: 52px;
        height: 52px;
    }

    .alumni-brand-thai {
        font-size: 0.87rem;
        white-space: normal;
    }

    .alumni-brand-english {
        font-size: 0.62rem;
        white-space: normal;
    }

    .alumni-brand-system {
        display: none;
    }
}
/* =========================================
   Dashboard Statistics - Compact 6 Cards
========================================= */

.dashboard-stats .stat-card {
    border-radius: 16px;
    min-height: 145px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stats .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

.dashboard-stats .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-stats .stat-card i {
    font-size: 1.8rem;
}

.dashboard-stats .stat-card h6 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-stats .stat-card h3 {
    font-size: 1.65rem;
    line-height: 1.1;
}

.dashboard-stats .stat-card small {
    font-size: 0.78rem;
}

/* หน้าจอขนาดกลาง */
@media (max-width: 991.98px) {
    .dashboard-stats .stat-card {
        min-height: 135px;
    }
}

/* โทรศัพท์ */
@media (max-width: 575.98px) {
    .dashboard-stats .stat-card {
        min-height: 125px;
        border-radius: 12px;
    }

    .dashboard-stats .stat-card i {
        font-size: 1.5rem;
    }

    .dashboard-stats .stat-card h6 {
        font-size: 0.82rem;
        min-height: 34px;
    }

    .dashboard-stats .stat-card h3 {
        font-size: 1.45rem;
    }
}

/* =====================================================
   HOME PAGE VERSION 4.0
   HERO — ORGANIC LANDING PAGE
===================================================== */

.home-hero-v4 {
    position: relative;
    overflow: hidden;
    padding: 42px 0 44px;
    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(236, 110, 173, 0.13),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 28%,
            rgba(79, 195, 247, 0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fcff 50%,
            #fff8fb 100%
        );
}

.home-hero-v4 .home-hero-content {
    position: relative;
    z-index: 3;
    max-width: 520px;
}

.home-hero-v4 .home-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 7px 14px;
    border: 1px solid rgba(232, 62, 131, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #d84d95;
    font-size: 0.87rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 83, 123, 0.07);
}

.home-hero-v4 h1 {
    margin: 0 0 8px;
    color: #173d7a;
    font-size: clamp(2.15rem, 4vw, 3.45rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.home-hero-v4 h1 span {
    color: #e84d91;
}

.home-hero-v4 .home-system-name {
    margin: 0 0 13px;
    color: #168bd2;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.35px;
}

.home-hero-v4 .home-motto {
    max-width: 480px;
    margin: 0;
    color: #4c5968;
    font-size: 1rem;
    line-height: 1.75;
}

.home-hero-v4 .home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-hero-v4 .home-hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    margin: 0;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.home-hero-v4 .home-hero-buttons .btn:hover {
    transform: translateY(-3px);
}

.home-hero-v4 .home-btn-primary {
    background: linear-gradient(135deg, #ec6ead, #d84d95);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(216, 77, 149, 0.24);
}

.home-hero-v4 .home-btn-secondary {
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(33, 150, 243, 0.22);
}

.home-hero-v4 .home-btn-outline {
    border-color: rgba(23, 61, 122, 0.18);
    background: #ffffff;
    color: #173d7a;
    box-shadow: 0 8px 18px rgba(37, 83, 123, 0.08);
}

.home-hero-v4 .home-btn-outline:hover {
    border-color: #4fc3f7;
    background: #f3fbff;
    color: #1677c8;
}


/* รูปภาพ Hero ด้านขวา */

.home-hero-visual {
    position: relative;
    min-height: 350px;
    padding: 9px 18px 15px 32px;
}

.home-hero-blob {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.92);
    border-radius: 39% 61% 45% 55% / 57% 42% 58% 43%;
    background: #eaf6fc;
    box-shadow:
        0 25px 52px rgba(25, 88, 135, 0.18),
        0 8px 20px rgba(232, 77, 145, 0.09);
    transform: rotate(1deg);
}

.home-hero-blob img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 38%;
    transform: scale(1.02) rotate(-1deg);
    transition: transform 0.5s ease;
}

.home-hero-blob:hover img {
    transform: scale(1.07) rotate(-1deg);
}


/* การ์ดลอยบนรูป */

.home-hero-floating-card {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 285px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 34px rgba(28, 71, 108, 0.18);
    backdrop-filter: blur(9px);
}

.home-hero-floating-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #ec6ead, #4fc3f7);
    color: #ffffff;
    font-size: 1.1rem;
}

.home-hero-floating-card strong {
    display: block;
    color: #173d7a;
    font-size: 0.91rem;
    line-height: 1.3;
}

.home-hero-floating-card small {
    display: block;
    margin-top: 2px;
    color: #657181;
    font-size: 0.74rem;
    line-height: 1.4;
}


/* จุดตกแต่ง */

.home-hero-decoration {
    position: absolute;
    display: block;
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-decoration.decoration-one {
    top: 2px;
    right: 4px;
    width: 52px;
    height: 52px;
    background: rgba(236, 110, 173, 0.19);
}

.home-hero-decoration.decoration-two {
    right: 24px;
    bottom: 1px;
    width: 27px;
    height: 27px;
    background: rgba(79, 195, 247, 0.30);
}


/* แท็บเล็ต */

@media (max-width: 991.98px) {

    .home-hero-v4 {
        padding: 34px 0 38px;
    }

    .home-hero-v4 .home-hero-content {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

    .home-hero-v4 .home-motto {
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero-v4 .home-hero-buttons {
        justify-content: center;
    }

    .home-hero-visual {
        max-width: 690px;
        min-height: 330px;
        margin: 12px auto 0;
        padding-left: 26px;
    }

    .home-hero-blob {
        height: 305px;
    }
}


/* โทรศัพท์ */

@media (max-width: 575.98px) {

    .home-hero-v4 {
        padding: 27px 0 31px;
    }

    .home-hero-v4 h1 {
        font-size: 2rem;
    }

    .home-hero-v4 .home-system-name {
        font-size: 0.9rem;
    }

    .home-hero-v4 .home-motto {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .home-hero-v4 .home-hero-buttons .btn {
        flex: 1 1 calc(50% - 6px);
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .home-hero-v4 .home-hero-buttons .home-btn-outline {
        flex-basis: 100%;
    }

    .home-hero-visual {
        min-height: 265px;
        padding: 4px 7px 12px 15px;
    }

    .home-hero-blob {
        height: 245px;
        border-width: 5px;
        border-radius: 35% 65% 44% 56% / 56% 39% 61% 44%;
    }

    .home-hero-floating-card {
        left: 0;
        bottom: 0;
        max-width: 245px;
        padding: 9px 11px;
    }

    .home-hero-floating-icon {
        width: 37px;
        height: 37px;
        font-size: 0.95rem;
    }

    .home-hero-floating-card strong {
        font-size: 0.82rem;
    }

    .home-hero-floating-card small {
        font-size: 0.67rem;
    }

    .home-hero-decoration.decoration-one {
        width: 38px;
        height: 38px;
    }
}

/* =====================================================
   HOME PAGE VERSION 4.1
   NEWS-FIRST COMPACT LAYOUT
===================================================== */

/* ลดความสูง Hero เพื่อดึงข่าวขึ้นมา */
.home-hero-v41 {
    padding: 26px 0 24px;
}


/* เหลือเฉพาะข้อความยินดีต้อนรับ */
.home-hero-v41 .home-hero-content {
    max-width: 100%;
}

.home-hero-v41 .home-hero-label {
    margin-bottom: 14px;
    padding: 7px 15px;
    font-size: 0.95rem;
}


/* ปุ่ม 3 ปุ่ม เรียงในแถวเดียว */
.home-hero-v41 .home-main-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.home-hero-v41 .home-main-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 8px;
    font-size: 0.82rem;
    white-space: nowrap;
}


/* สถิติใต้ปุ่ม */
.home-inline-statistics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.home-inline-stat-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(30, 114, 180, 0.11);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 7px 18px rgba(31, 79, 119, 0.07);
}

.home-inline-stat-item > i {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        rgba(236, 110, 173, 0.16),
        rgba(79, 195, 247, 0.18)
    );
    color: #1677c8;
    font-size: 0.95rem;
}

.home-inline-stat-item strong {
    display: block;
    color: #173d7a;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.1;
}

.home-inline-stat-item span {
    display: block;
    margin-top: 3px;
    color: #687485;
    font-size: 0.72rem;
    line-height: 1.25;
}


/* รูปวัดคงตำแหน่งและขนาดเดิม */
.home-hero-v41 .home-hero-visual {
    min-height: 350px;
}

.home-hero-v41 .home-hero-blob {
    height: 330px;
}


/* ดึงส่วนข่าวขึ้น */
.home-news {
    padding-top: 30px;
    padding-bottom: 36px;
}

.home-news .home-section-header {
    margin-bottom: 17px;
}


/* =====================================================
   COMMUNITY — SINGLE HORIZONTAL ROW
===================================================== */

.home-community-horizontal {
    padding: 16px 0;
    background: #f7faff;
}

.home-community-row {
    display: grid;
    grid-template-columns:
        minmax(155px, 0.85fr)
        repeat(3, minmax(190px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.home-community-heading,
.home-community-feature {
    min-width: 0;
    border-radius: 14px;
}

.home-community-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 15px;
    background: linear-gradient(
        135deg,
        rgba(236, 110, 173, 0.14),
        rgba(79, 195, 247, 0.16)
    );
}

.home-community-heading span {
    color: #d84d95;
    font-size: 0.75rem;
    font-weight: 800;
}

.home-community-heading strong {
    margin-top: 3px;
    color: #173d7a;
    font-size: 0.92rem;
    line-height: 1.35;
}

.home-community-feature {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e7edf5;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(32, 76, 113, 0.06);
}

.home-community-feature > i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #ec6ead, #4fc3f7);
    color: #ffffff;
    font-size: 0.92rem;
}

.home-community-feature strong {
    display: block;
    color: #173d7a;
    font-size: 0.82rem;
    line-height: 1.3;
}

.home-community-feature span {
    display: block;
    margin-top: 2px;
    color: #6b7480;
    font-size: 0.68rem;
    line-height: 1.35;
}


/* Footer ชิดกับแถวข้อมูล */
.home-community-horizontal + .footer {
    margin-top: 0;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991.98px) {

    .home-hero-v41 {
        padding: 24px 0 27px;
    }

    .home-hero-v41 .home-main-actions {
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }

    .home-inline-statistics {
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
        margin-top: 14px;
    }

    .home-hero-v41 .home-hero-visual {
        min-height: 330px;
    }

    .home-hero-v41 .home-hero-blob {
        height: 305px;
    }

    .home-community-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .home-hero-v41 {
        padding: 20px 0 23px;
    }

    .home-hero-v41 .home-main-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .home-hero-v41 .home-main-actions .btn {
        min-height: 40px;
        padding: 7px 4px;
        font-size: 0.67rem;
        border-radius: 9px;
    }

    .home-hero-v41 .home-main-actions .btn i {
        font-size: 0.7rem;
    }

    .home-inline-statistics {
        gap: 6px;
        margin-top: 10px;
    }

    .home-inline-stat-item {
        gap: 6px;
        padding: 8px;
    }

    .home-inline-stat-item > i {
        width: 31px;
        height: 31px;
        font-size: 0.8rem;
    }

    .home-inline-stat-item strong {
        font-size: 0.9rem;
    }

    .home-inline-stat-item span {
        font-size: 0.62rem;
    }

    .home-hero-v41 .home-hero-visual {
        min-height: 265px;
    }

    .home-hero-v41 .home-hero-blob {
        height: 245px;
    }

    .home-news {
        padding-top: 24px;
    }

    .home-community-row {
        grid-template-columns: 1fr;
    }

    .home-community-heading,
    .home-community-feature {
        padding: 10px 12px;
    }
}
/* =====================================================
   FONT SYSTEM — Noto Sans Thai
===================================================== */

html,
body,
button,
input,
select,
textarea,
.btn,
.nav-link {
    font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
    font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
}
/* =====================================================
   HOME WELCOME TITLE
===================================================== */

.home-hero-v41 .home-hero-label {
    display: inline-block;

    margin-top: 0;
    margin-bottom: 10px;
    padding: 0;

    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;

    color: #d84d95;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* แท็บเล็ต */
@media (max-width: 991.98px) {
    .home-hero-v41 .home-hero-label {
        font-size: 1.8rem;
    }
}

/* โทรศัพท์มือถือ */
@media (max-width: 575.98px) {
    .home-hero-v41 .home-hero-label {
        font-size: 1.45rem;
        margin-bottom: 8px;
    }
}
/* =====================================================
   HOME HERO COMPACT
   ลดความสูงส่วนบนและดึงข่าวขึ้น
===================================================== */

.home-hero-v41 {
    padding-top: 6px;
    padding-bottom: 6px;
}

.home-hero-v41 .container {
    padding-top: 0;
    padding-bottom: 0;
}

.home-hero-v41 .row {
    align-items: center;
}

/* ลดช่องว่างใต้หัวข้อ */
.home-hero-v41 .home-hero-label {
    margin-bottom: 8px;
}

/* ปุ่มหลัก */
.home-hero-v41 .home-main-actions {
    margin-top: 0;
    margin-bottom: 8px;
    gap: 8px;
}

/* กล่องสถิติ */
.home-inline-statistics {
    margin-top: 5px;
    gap: 6px;
}

.home-inline-stat-item {
    padding: 6px 8px;
}

/* ลดความสูงของภาพวัด */
.home-hero-v41 .home-hero-visual {
    min-height: 300px;
}

.home-hero-v41 .home-hero-blob {
    height: 290px;
}

/* ดึงหัวข้อข่าวขึ้นมา */
.home-news-section {
    padding-top: 12px;
}

.home-news-section .home-section-header {
    margin-bottom: 12px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991.98px) {

    .home-hero-v41 {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .home-hero-v41 .home-hero-visual {
        min-height: 270px;
    }

    .home-hero-v41 .home-hero-blob {
        height: 260px;
    }

    .home-news-section {
        padding-top: 10px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .home-hero-v41 {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .home-hero-v41 .home-main-actions {
        margin-bottom: 6px;
    }

    .home-inline-statistics {
        margin-top: 4px;
    }

    .home-hero-v41 .home-hero-visual {
        min-height: 230px;
    }

    .home-hero-v41 .home-hero-blob {
        height: 220px;
    }

    .home-news-section {
        padding-top: 8px;
    }
}
/* =====================================================
   HOME FINAL POSITION ADJUSTMENT
   ลดช่องว่างและเลื่อนรูปวัดขึ้น
===================================================== */

/* ลดพื้นที่ว่างระหว่างแถบเมนูกับเนื้อหาหน้าแรก */
.home-hero-v41 {
    margin-top: 0;
    padding-top: 0;
}

/* ป้องกัน container สร้างช่องว่างด้านบน */
.home-hero-v41 > .container {
    padding-top: 0;
}

/* เลื่อนข้อความฝั่งซ้ายขึ้นเล็กน้อย */
.home-hero-v41 .home-hero-content {
    transform: translateY(-12px);
}

/* เลื่อนรูปวัดขึ้น โดยไม่เปลี่ยนขนาด */
.home-hero-v41 .home-hero-visual {
    margin-top: 0;
    transform: translateY(-20px);
}

/* เลื่อนกรอบรูปวัดขึ้นพร้อมกัน */
.home-hero-v41 .home-hero-blob {
    margin-top: 0;
}

/* ลดพื้นที่ว่างที่เหลือใต้ Hero */
.home-hero-v41 {
    padding-bottom: 0;
}

/* ดึงส่วนข่าวขึ้นอีกเล็กน้อย */
.home-news-section {
    margin-top: -18px;
    padding-top: 0;
}


/* สำหรับแท็บเล็ต */
@media (max-width: 991.98px) {

    .home-hero-v41 .home-hero-content {
        transform: translateY(-6px);
    }

    .home-hero-v41 .home-hero-visual {
        transform: translateY(-10px);
    }

    .home-news-section {
        margin-top: -8px;
    }
}


/* สำหรับโทรศัพท์มือถือ */
@media (max-width: 575.98px) {

    .home-hero-v41 .home-hero-content,
    .home-hero-v41 .home-hero-visual {
        transform: none;
    }

    .home-news-section {
        margin-top: 0;
    }
}
/* =====================================================
   HOME NEWS MOVE UP
   ดึงส่วนข่าวขึ้น
===================================================== */

/* ดึงทั้ง Section ข่าวขึ้น */
.home-news-section{
    margin-top: -30px !important;
    padding-top: 0 !important;
}

/* ลดช่องว่างของหัวข้อ */
.home-news-section .home-section-header{
    margin-bottom: 10px !important;
}

/* ถ้ามีช่องว่างจาก Hero ให้ลดลง */
.home-hero-v41{
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* =====================================================
   HOME NEWS — MOVE UP
   เลื่อนส่วนข่าวขึ้นโดยไม่เปลี่ยนขนาด
===================================================== */

.home-news {
    margin-top: -45px !important;
    padding-top: 0 !important;
}

.home-news .home-section-header {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}


/* แท็บเล็ต */
@media (max-width: 991.98px) {

    .home-news {
        margin-top: -25px !important;
    }
}


/* โทรศัพท์มือถือ */
@media (max-width: 575.98px) {

    .home-news {
        margin-top: 0 !important;
        padding-top: 12px !important;
    }
}
/* =====================================================
   HOME NEWS META
   วันที่ซ้าย อ่านรายละเอียดขวา
===================================================== */

.home-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 8px;
}

.home-news-meta small {
    margin: 0;
    color: #6b7280;
    font-size: 0.82rem;
}

.home-news-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.home-news-meta-link:hover {
    color: #d84d95;
    text-decoration: underline;
}

.home-news-meta-link i {
    font-size: 0.72rem;
}


/* โทรศัพท์มือถือ */
@media (max-width: 575.98px) {

    .home-news-meta {
        gap: 6px;
    }

    .home-news-meta small,
    .home-news-meta-link {
        font-size: 0.76rem;
    }
}
/* =====================================================
   LOGO MEANING IMAGE
===================================================== */

.logo-meaning-image{

    max-width:700px;
    width:100%;
    height:auto;

    border-radius:18px;

    background:#ffffff;

    padding:10px;

    box-shadow:0 10px 25px rgba(0,0,0,.12);
}