:root {
    /* School Theme Colors */
    --school-red: #C62828;
    /* Slightly deeper red for better text contrast/premium feel */
    --school-red-hover: #B71C1C;

    --school-gray: #455A64;
    /* Darker Blue-Gray for readable text */
    --school-gray-light: #F8F9FA;
    /* Very light gray for backgrounds */
    --school-gray-medium: #CFD8DC;

    --text-dark: #263238;
    /* Almost black for main text */
    --text-muted: #607D8B;
    /* Muted text color that is still readable */

    /* Global Settings */
    --font-primary: 'Sarabun', sans-serif;
    --header-height: 70px;
}

body {
    font-family: var(--font-primary);
    background-color: #FFFFFF;
    color: var(--text-dark);
    margin-top: var(--header-height);
}

/* Navbar Customization */
/* Navbar Customization */
/* Navbar Customization */
.navbar-custom {
    background-color: #ffffff !important;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /* Shadow transparency is acceptable/standard */
    min-height: var(--header-height);
    transition: all 0.3s;
    opacity: 1 !important;
    /* Ensure full opacity */
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff !important;
        background: #ffffff !important;
        padding-bottom: 20px;
        border-top: 1px solid #eee;
        margin-top: 10px;
        position: relative;
        z-index: 1050;
        opacity: 1 !important;
    }
}

/* ... existing code ... */

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #fff5f5;
    /* Replaced radial-gradient rgba with solid light color */
    border-radius: 50%;
    /* Keep shape but solid */
    z-index: 0;
    opacity: 0.5;
    /* Keeping slight opacity for the shape itself to blend with white, or just make it solid light color? User said 'cancel all transparency'. */
    /* Let's make it a very subtle solid color instead of gradient opacity */
    background: #fdf2f2;
    opacity: 1;
}

/* ... */

.icon-box {
    width: 60px;
    height: 60px;
    background: #ffebee;
    /* Replaced rgba(211, 47, 47, 0.1) */
    color: var(--school-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* ... */

.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffebee;
    /* Replaced rgba(198, 40, 40, 0.08) */
    color: var(--school-red);
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.brand-text {
    color: var(--school-red);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    color: var(--school-gray);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--school-red);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.hero-title {
    font-family: 'Sarabun', sans-serif;
    font-weight: 300;
    color: var(--school-red);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--school-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Definition of Buttons */
.btn-school-main {
    background-color: var(--school-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-school-main:hover {
    background-color: var(--school-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    color: white;
}

.btn-school-outline {
    background-color: transparent;
    color: var(--school-red);
    border: 2px solid var(--school-red);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-school-outline:hover {
    background-color: var(--school-red);
    color: white;
}

/* Cards */
.feature-card {
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top: 4px solid var(--school-red);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--school-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--school-gray-light);
    color: var(--school-gray);
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 1px solid #eee;
}

.footer-link {
    color: var(--school-gray);
    text-decoration: none;
    transition: 0.2s;
}

.footer-link:hover {
    color: var(--school-red);
}

/* Utility Classes */
.bg-school {
    background-color: var(--school-red) !important;
}

.text-school {
    color: var(--school-red) !important;
}

.bg-school-main {
    background-color: var(--school-red);
}

.transition-hover {
    transition: all 0.3s;
}

.transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Calendar & Schedule Styles */
.calendar-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.calendar-header-sc {
    background: var(--school-red);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.calendar-body-sc {
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 20px;
}

/* Custom Data Table Design */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.custom-table thead th {
    border-bottom: none;
    color: var(--school-gray);
    font-weight: 600;
    padding: 0 20px 10px 20px;
    font-size: 0.95rem;
}

.custom-table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

.custom-table td {
    padding: 20px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    vertical-align: middle;
}

.custom-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.custom-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(198, 40, 40, 0.08);
    color: var(--school-red);
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.8rem;
    font-weight: 500;
}