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 */