 :root {
     --purple: #841ac2;
     --purple-light: #a86dff;
     --text-dark: #212529;
     --shadow-md: 0 4px 10px rgba(0, 0, 0, .1);
     --radius-lg: 16px;
 }

 body {
     font-family: 'Prompt', 'Kanit', 'Sarabun', sans-serif;
     color: var(--text-dark);
     background: #fff;
 }

 /* Navbar */
 .navbar {
     transition: .3s;
 }

 .navbar.scrolled {
     box-shadow: var(--shadow-md);
 }

 /* ===== Navbar Link Style ===== */
 .navbar-nav .nav-link {
     color: #333;
     font-weight: 500;
     position: relative;
     transition: all 0.25s ease-in-out;
     padding: 0.5rem 0.75rem;
 }

 /* เอฟเฟกต์ hover — เส้นใต้ไล่สีม่วง */
 .navbar-nav .nav-link::after {
     content: "";
     position: absolute;
     bottom: 0;
     left: 50%;
     width: 0;
     height: 2px;
     background: linear-gradient(90deg, #7b3fe4, #b487f4);
     transition: all 0.3s ease;
     transform: translateX(-50%);
     border-radius: 2px;
 }

 .navbar-nav .nav-link:hover::after {
     width: 70%;
 }

 .navbar-nav .nav-link:hover {
     color: #6a1b9a;
     /* สีม่วงเข้ม */
     text-shadow: 0 0 8px rgba(122, 66, 199, 0.3);
 }

 /* ===== ปุ่มเข้าสู่ระบบ (โอมใช้ btn-purple อยู่แล้ว) ===== */
 .btn-purple {
     background: linear-gradient(90deg, #6a1b9a, #9c27b0);
     border: none;
     color: #fff;
     transition: all 0.3s ease;
 }

 .btn-purple:hover {
     background: linear-gradient(90deg, #7b3fe4, #b487f4);
     box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
     transform: translateY(-1px);
 }

 /* Hero */
 .hero {
     background: linear-gradient(135deg, #841ac2, #a86dff);
     color: #fff;
     min-height: 520px;
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     overflow: hidden;
     text-align: center;
 }

 .hero::before {
     content: "";
     position: absolute;
     inset: 0;
     /* === แก้ไข URL รูปภาพพื้นหลังที่นี่ === */
     background: url('https://static.wixstatic.com/media/feedef_a99e88faf9a348a8af0d30ff75ffb5f4~mv2.jpg') center/cover no-repeat;
     opacity: .25;
     animation: zoom 20s infinite alternate ease-in-out;
 }

 @keyframes zoom {
     from {
         transform: scale(1);
     }

     to {
         transform: scale(1.1);
     }
 }

 /* === เพิ่มแอนิเมชันโลโก้หมุน === */
 @keyframes spin {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }

 .hero-logo {
     width: 140px;
     /* ขนาดตามตัวอย่าง */
     height: 140px;
     /* ขนาดตามตัวอย่าง */
     margin: 0 auto 1.5rem;
     /* เว้นระยะห่างด้านล่าง */
     animation: spin 20s linear infinite;
     /* ใช้แอนิเมชัน spin */
 }

 /* === จบส่วนที่เพิ่ม === */

 .hero h1 {
     position: relative;
     z-index: 1;
     font-weight: 700;
     font-size: 2.6rem;
 }

 .hero p {
     position: relative;
     z-index: 1;
     opacity: .9;
 }

 .btn-purple {
     background: var(--purple);
     color: #fff;
     border: none;
     transition: .3s;
 }

 .btn-purple:hover {
     background: var(--purple-light);
     color: #fff;
 }

 /* เพิ่มคลาสสำหรับปุ่ม outline */
 .btn-outline-purple {
     color: var(--purple);
     border-color: var(--purple);
     transition: .3s;
 }

 .btn-outline-purple:hover {
     color: #fff;
     background-color: var(--purple);
     border-color: var(--purple);
 }

 /* Section Common */
 .section-head {
     /* text-align: center; (ถูกย้ายไปควบคุมโดย text-lg-start และ text-center) */
     margin-bottom: 2rem;
 }

 .section-eyebrow {
     text-transform: uppercase;
     font-weight: 600;
     color: var(--purple-light);
 }

 .section-title {
     font-weight: 700;
     color: var(--text-dark);
 }

 .section-divider {
     width: 60px;
     height: 4px;
     background: var(--purple);
     margin: 10px auto 20px;
     /* default center */
     border-radius: 5px;
 }

 /* จัด divider ชิดซ้ายสำหรับ section-head ที่ text-lg-start */
 .text-lg-start .section-divider {
     margin-left: 0;
     margin-right: auto;
 }

 .section-desc {
     font-size: 1rem;
     color: #555;
 }

 /* Stats */
 .stat-card {
     background: #fff;
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-md);
     text-align: center;
     padding: 2rem;
 }

 .stat-icon {
     font-size: 2rem;
     color: var(--purple);
     margin-bottom: .5rem;
 }

 .stat-number {
     font-size: 2rem;
     font-weight: 700;
 }

 /* Feature Cards */
 .feature-card {
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-md);
     transition: .3s;
     background: #fff;
 }

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

 .icon-box {
     width: 70px;
     height: 70px;
     border-radius: var(--radius-lg);
     display: grid;
     place-items: center;
     color: #fff;
     font-size: 1.8rem;
     margin: 0 auto 1rem;
 }

 .bg-supervision {
     background: linear-gradient(135deg, #841ac2, #c984ff);
 }

 .bg-management {
     background: linear-gradient(135deg, #7b3abf, #b47fff);
 }

 .bg-teacher {
     background: linear-gradient(135deg, #a86dff, #e6c4ff);
 }

 .bg-research {
     background: linear-gradient(135deg, #6b21a8, #9333ea);
 }

 /* ===== สไตล์สำหรับ Infographic Cards ===== */
 .info-card {
     background: #fff;
     border-radius: var(--radius-lg);
     box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
     padding: 2rem 1.5rem;
     text-align: center;
     transition: .3s;
     height: 100%;
     border: 1px solid #f0f0f0;
     cursor: pointer;
     /* เพิ่ม cursor pointer เพื่อให้รู้ว่าคลิกได้ */
 }

 .info-card:hover {
     transform: translateY(-5px);
     box-shadow: var(--shadow-md);
 }

 .info-icon {
     width: 60px;
     height: 60px;
     border-radius: 50%;
     display: grid;
     place-items: center;
     color: #fff;
     font-size: 1.8rem;
     margin: 0 auto 1rem;
     background: linear-gradient(135deg, var(--purple), var(--purple-light));
     box-shadow: 0 4px 12px rgba(132, 26, 194, 0.3);
 }

 .info-card h5 {
     font-family: 'Kanit', sans-serif;
     font-weight: 600;
     color: var(--text-dark);
     margin-bottom: 0.5rem;
     font-size: 1.1rem;
 }

 .info-card p {
     font-size: 0.9rem;
     color: #555;
     line-height: 1.6;
 }

 /* ===== จบสไตล์ Infographic ===== */

 /* ===== สไตล์ใหม่สำหรับ News Cards ===== */
 /* .news-card {
     background: #fff;
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-md);
     overflow: hidden;
     height: 100%;
     transition: .3s;
     display: flex;
     flex-direction: column;
 }

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

 .news-card img {
     width: 100%;
     aspect-ratio: 16 / 9;
     object-fit: cover;
 }

 .news-card-body {
     padding: 1.5rem;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
 }

 .news-card-date {
     font-size: 0.85rem;
     color: var(--purple);
     font-weight: 600;
     margin-bottom: 0.25rem;
 }

 .news-card-title {
     font-family: 'Kanit', sans-serif;
     font-weight: 600;
     color: var(--text-dark);
     margin-bottom: 0.5rem;
     font-size: 1.15rem;
 }

 .news-card-text {
     font-size: 0.9rem;
     color: #555;
     line-height: 1.6;
     margin-bottom: 1rem;
     flex-grow: 1;
 } */
 /* ===== News & Activities Section ===== */
 .news-card {
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-md);
     background: #fff;
     transition: .3s;
     overflow: hidden;
     display: flex;
     flex-direction: column;
 }

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

 .news-card img {
     height: 200px;
     object-fit: cover;
     width: 100%;
 }

 .news-card-body {
     padding: 1.25rem;
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 .news-card-date {
     font-size: .85rem;
     color: var(--purple-light);
     font-weight: 600;
     margin-bottom: .25rem;
 }

 .news-card-title {
     font-weight: 600;
     color: var(--text-dark);
     margin-bottom: .5rem;
 }

 .news-card-text {
     font-size: .9rem;
     color: #555;
     margin-bottom: 1rem;
 }

 .btn-outline-purple {
     color: var(--purple);
     border-color: var(--purple);
     transition: .3s;
 }

 .btn-outline-purple:hover {
     background-color: var(--purple);
     color: #fff;
     border-color: var(--purple);
 }

 /* ===== จบสไตล์ News ===== */


 /* Mission */
 .mission {
     background: linear-gradient(135deg, #7b3abf, #c984ff);
     color: #fff;
 }

 /* Footer */
 footer {
     background: linear-gradient(135deg, #841ac2, #a86dff);
     color: #fff;
     text-align: center;
 }

 footer a {
     color: #fff;
     text-decoration: none;
 }

 footer a:hover {
     text-decoration: underline;
 }

 /* Modal Custom Style */
 .modal-title {
     color: var(--purple);
     font-family: 'Kanit', sans-serif;
     font-weight: 600;
 }

 .modal-content {
     border-radius: var(--radius-lg);
 }

 .modal-body ul,
 .modal-body ol {
     padding-left: 1.2rem;
 }

 .modal-body li {
     margin-bottom: 0.5rem;
 }


 @media (max-width:768px) {
     .hero h1 {
         font-size: 2rem;
     }
 }

 /* ===== News & Activities Section ===== */
 #news .news-card {
     border-radius: var(--radius-lg);
     background: #fff;
     transition: all .3s ease;
     overflow: hidden;
 }

 #news .news-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
 }

 #news .card-img-top {
     height: 180px;
     object-fit: cover;
 }

 #news .btn-outline-purple {
     color: var(--purple);
     border-color: var(--purple);
 }

 #news .btn-outline-purple:hover {
     background: var(--purple);
     color: #fff;
 }

 #partners {
     background: var(--bs-light);
 }

 .section-head .section-eyebrow {
     text-transform: uppercase;
     font-size: 0.9rem;
     letter-spacing: 1px;
     color: var(--purple);
     font-weight: 600;
 }

 .section-head .section-title {
     color: var(--dark);
     font-weight: 700;
 }

 .section-divider {
     width: 80px;
     height: 4px;
     background: var(--purple);
     margin: 0.75rem auto 1.5rem;
     border-radius: 5px;
 }

 .partners-logos img {
     transition: all 0.3s ease;

     opacity: 0.85;
 }

 .partners-logos img:hover {
     transform: scale(1.1);
     filter: grayscale(0%) brightness(1);
     opacity: 1;
 }

 /* Responsive */
 @media (max-width: 576px) {
     .partners-logos img {
         height: 50px;
     }
 }

 .cookie-banner {
     animation: slideUp 0.6s ease-out;
 }

 @keyframes slideUp {
     from {
         transform: translateY(100%);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }