body {
    font-family: 'Kanit', sans-serif;
}
.hero-section {
    position: relative;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
#heroCarousel, .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#heroCarousel .carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    background: rgba(18, 35, 46, 0.7); /* #12232E with opacity */
}
.hero-text {
    position: relative;
    z-index: 2;
}
.features-section {
    background: #EEFBFB; /* เงาแห่งแสงสีฟ้า */
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #007CC7, #4DA8DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer a {
    color: #4DA8DA;
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}
.stats-section .stat-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stats-section .stat-box i {
    color: #007CC7;
    margin-bottom: 1rem;
}


/* --- CSS for Modern Info Box Stats --- */
.stats-infobox-section {
    padding: 10px 0;
    background-color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-info-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border-bottom: 4px solid transparent; /* เตรียมไว้สำหรับ hover effect */
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.stat-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.stat-icon-wrapper {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.stat-content .stat-number {
    font-family: 'Kanit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-color);
}
.stat-content .stat-label {
    font-size: 1rem;
    color: #6c757d;
}

/* --- สีไอคอน (สอดคล้องกับธีม) --- */
.icon-students { background-color: rgba(0, 86, 179, 0.1); color: #0056b3; } /* Primary */
.icon-male { background-color: rgba(23, 162, 184, 0.1); color: #17a2b8; } /* Info */
.icon-female { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; } /* Danger */
.icon-staff { background-color: rgba(40, 167, 69, 0.1); color: #28a745; } /* Success */

/* --- Rich Text (Quill) แสดงผล --- */
.richtext-content, .richtext-inline { line-height: 1.8; }
.richtext-content p, .richtext-inline p { margin: 0 0 1em 0; }
.richtext-content p:last-child, .richtext-inline p:last-child { margin-bottom: 0; }
.richtext-content strong, .richtext-content b, .richtext-inline strong, .richtext-inline b { font-weight: 700; }
.richtext-content em, .richtext-content i, .richtext-inline em, .richtext-inline i { font-style: italic; }
.richtext-content ul, .richtext-content ol, .richtext-inline ul, .richtext-inline ol { margin: 0 0 1em 0; padding-left: 1.5em; }
.richtext-content li, .richtext-inline li { margin-bottom: 0.35em; }
.richtext-content h2, .richtext-content h3, .richtext-content h4, .richtext-inline h2, .richtext-inline h3, .richtext-inline h4 { margin: 1em 0 0.5em 0; }
.richtext-content blockquote, .richtext-inline blockquote { margin: 1em 0; padding: 0.5em 0 0.5em 1em; border-left: 4px solid var(--primary-color, #0056b3); background: #f8f9fa; color: #555; }
.richtext-content a, .richtext-inline a { color: var(--primary-color, #0056b3); text-decoration: none; }
.richtext-content a:hover, .richtext-inline a:hover { text-decoration: underline; }
.richtext-content img, .richtext-inline img { max-width: 100%; height: auto; border-radius: 6px; }
.richtext-content table, .richtext-inline table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.richtext-content th, .richtext-content td, .richtext-inline th, .richtext-inline td { padding: 8px 12px; border: 1px solid #dee2e6; text-align: left; }
.richtext-content th, .richtext-inline th { background: #f4f4f4; font-weight: 600; }
.richtext-content hr, .richtext-inline hr { border: none; border-top: 1px solid #dee2e6; margin: 1.5em 0; }