/* assets/css/style.css */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');
:root {
    --scius-blue: #0056b3;
    --scius-green: #198754;
    --scius-yellow: #ffc107;
    --scius-red: #dc3545;
    --bg-light: #f8f9fa;
}
body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-light);
    color: #333;
}
/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.nav-link {
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--scius-blue);
}
.btn-login {
    background-color: var(--scius-blue);
    color: white;
    border-radius: 50px;
    padding: 0.4rem 1.5rem;
    transition: 0.3s;
}
.btn-login:hover {
    background-color: #004494;
    color: white;
    box-shadow: 0 4px 10px rgba(0,86,179,0.3);
}
/* Utilities */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--scius-blue);
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--scius-yellow);
    border-radius: 2px;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
}
/* Login Page Specific */
.login-body {
    background: #eef1f5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    max-width: 400px;
    width: 100%;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
  /* Theme Variables */
    :root { --c-yellow: #FFC107; --c-green: #00A651; --c-blue: #0056D2; --c-red: #ED1C24; }
    /* 1. ปรับเมนู (Navbar) ให้เป็นสี Gradient */
    .navbar {
        background: linear-gradient(90deg, #0056D2 0%, #008a45 100%) !important; /* Blue to Green */
        box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    }
    .navbar .nav-link {
        color: rgba(255,255,255,0.9) !important;
        font-weight: 500;
    }
    .navbar .nav-link:hover, .navbar .nav-link.active {
        color: #fff !important;
        background: rgba(255,255,255,0.2);
        border-radius: 50px;
    }
    .navbar .navbar-brand { color: #fff !important; font-weight: bold; }
    .navbar-toggler { border-color: rgba(255,255,255,0.5) !important; }
    .navbar-toggler-icon { filter: invert(1); } /* กลับสีไอคอนเป็นขาว */
    /* Hero Section */
    .hero-wrapper { position: relative; height: 550px; background-color: #333; overflow: hidden; }
    .hero-img { width: 100%; height: 100%; object-fit: cover; }
    .hero-caption-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 80px 0 80px; background: linear-gradient(to top, rgba(95, 95, 95, 0.9), transparent); z-index: 2; }
    /* Static Banner */
    .static-banner-wrapper { position: relative; height: 550px; background: #002a66; overflow: hidden; }
    .static-banner-img { width: 100%; height: 100%; object-fit: cover; }
    .static-content { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(0, 42, 102, 0.4); }
    /* System Access Card */
    .system-access-card { margin-top: -50px; position: relative; z-index: 10; border-radius: 10px; overflow: hidden; }
    .pulse-btn { animation: pulse-animation 2s infinite; }
    @keyframes pulse-animation { 0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); } }
    /* 2. ปรับข้อมูลห้องเรียนให้เด่น (New Design) */
    .classroom-card-pro {
        border: none;
        border-radius: 15px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        transition: transform 0.3s;
        height: 100%;
    }
    .classroom-card-pro:hover { transform: translateY(-10px); }
    .classroom-header { padding: 30px 20px; text-align: center; color: white; position: relative; }
    /* Gradient Headers */
    .header-sci { background: linear-gradient(135deg, #00A651 0%, #43e97b 100%); }
    .header-tech { background: linear-gradient(135deg, #0056D2 0%, #4facfe 100%); }
    .classroom-icon { 
        background: rgba(255,255,255,0.2); 
        width: 80px; height: 80px; 
        border-radius: 50%; 
        display: flex; align-items: center; justify-content: center; 
        margin: 0 auto 15px; 
        font-size: 2.5rem; 
        border: 2px solid rgba(255,255,255,0.5);
    }
    /* News & Gallery */
    .news-card { border-top: 4px solid var(--c-blue); transition: 0.3s; }
    .news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .gallery-item { aspect-ratio: 1/1; overflow: hidden; position: relative; background: #ddd; border-radius: 8px; }
    .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
    .gallery-item:hover img { transform: scale(1.1); }
    .bg-gradient-scius { background: linear-gradient(135deg, #0056D2 0%, #002a66 100%); color: white; }
    /* Student Life */
    .student-life-card { position: relative; height: 250px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
    .student-life-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
    .student-life-card:hover img { transform: scale(1.1); }
    .life-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 10px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; text-align: center; }
