:root {
  /* Colors from index_old.html */
  --navy: #0d0e3f;
  --navy-deep: #07082a;
  --navy-soft: #1a1c5e;
  --pink: #ff1670;
  --pink-bright: #ff3d8a;
  --pink-soft: #ffd6e5;
  --yellow: #ffd84d;
  --orange: #ff8a4f;
  --paper: #f7f5f0;
  --ink: #0a0a14;
  --gray: #6e6f8a;
  --gray-soft: #ebeaf3;

  /* Mappings for existing project variables */
  --primary-pink: var(--pink);
  --footer-pink: var(--pink-bright);
  --text-dark: var(--ink);
}

/* ==============================================================
   [ADD NEW] CSS สำหรับส่วนข่าวสาร 3 การ์ดย่อยด้านล่าง (ต่อจากโพสต์ที่ 4)
   ============================================================== */
.news-bottom-card {
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    height: 145px;
    display: flex;
    overflow: hidden;
}

.news-bottom-card:hover {
    transform: translateY(-5px);
    border-color: var(--pink);
    background-color: rgba(0, 0, 0, 0.02);
}

.news-bottom-img {
    width: 40%;
    min-width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.news-bottom-card:hover .news-bottom-img {
    transform: scale(1.05);
}

.news-bottom-content {
    width: 60%;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.news-bottom-badge { 
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 2px;
    display: inline-block;
}

.news-bottom-title { 
    height: 60px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-bottom-desc {
    height: 55px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #666;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-bottom-date {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    margin-top: auto;
}

/* [ADD NEW] Responsive สำหรับ 3 การ์ดย่อยด้านล่าง */
@media (max-width: 575.98px) {
    .news-bottom-card {
        flex-direction: column;
        height: auto;
    }
    .news-bottom-img {
        width: 100%;
        height: 180px;
    }
    .news-bottom-content {
        padding: 16px;
        width: 100%;
    }
}


.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-top: 10px;
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif;
}

.w-15 {
    width: 15%;
}
.w-10 {
    width: 10%;
}
/* Global Styles */
body {
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif;
    background-color: #f4f7fa;
    color: var(--ink);
    overflow-x: hidden;
    font-weight: 400;
    font-style: normal;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-weight: 700 !important;
}
.text-dark-blue {
    color: var(--navy-soft) !important;
}

/* Font Overrides to map Kanit to new Sukhumvit Set / Bai Jamjuree font stack */
.font-kanit, .font-prompt {
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif !important;
}
.font-display, .display {
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif !important;
}
.font-mono, .mono {
    font-family: 'IBM Plex Mono', monospace !important;
}

/* GRAIN OVERLAY */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Keyframe Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}


/* Container Max Width */
.container {
    max-width: 1240px !important;
}
 
/* Override Bootstrap Colors */
.display-6{
    font-size: 1.7em;
    line-height: 1.3em;
}
.text-primary {
    color: var(--primary-pink) !important;
}
.ls-wide { letter-spacing: .03em; }
.bg-primary {
    background-color: var(--primary-pink) !important;
}
.border-primary {
    border-color: var(--primary-pink) !important;
}
.btn-primary {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}
.btn-primary:hover {
    background-color: #c04075;
    border-color: #c04075;
}
.ux-shape-divider.ux-shape-divider--bottom.ux-shape-divider--style-tilt.ux-shape-divider--flip {
    transform: scaleX(-1);
}

/* Header Styles - Split Layout */
header {
    background-color: transparent !important; /* Let children handle bg */
    /* Removed overflow: hidden because it clips dropdowns. Backgrounds are clipped by body {overflow-x: hidden} instead. */
}

/* Logo Section - Left */
.logo-section {
    background-color: #fff;
    min-width: fit-content;
    position: relative;
}
.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    width: 100vw;
    background-color: #fff;
}
.logo-section img {
    max-height: 65px;
}
/* Menu Section - Right */
.menu-section {
    background-color: #000;
    position: relative;
}
.menu-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    bottom: 0;
    width: 100vw;
    background-color: #000;
}

/* Navigation Links */
.navbar-dark .navbar-nav .nav-link {
    color: #fff !important;
    transition: color 0.3s;
    font-size: 1rem;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    font-weight: 400;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #f06eaa !important;
}

/* Language Switcher */
.lang-dropdown-container .nav-top-link {
    color: #f06eaa !important; /* Pink text by default */
}

.lang-dropdown-container:hover .sub-menu {
    display: block !important;
}

li.nav-item.position-relative.lang-dropdown-container {
    font-size: 1rem;
}
.sub-menu {
    z-index: 2000;
    min-width: 220px !important; /* Larger width */
    padding: 15px !important;
    border-radius: 4px;
    border: none;
    border-top: 4px solid #f06eaa; /* Pink top border */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-top: 10px; /* Space for the triangle */
}

/* Triangle Pointer for Language Dropdown */
.sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f06eaa;
}

.sub-menu li {
    margin-bottom: 8px;
}
.sub-menu li:last-child {
    margin-bottom: 0;
}

.sub-menu li a {
    padding: 5px 0;
    display: block;
    transition: all 0.2s;
}

/* Invisible Bridge for Hover Stability */
.sub-menu::after {
    content: '';
    position: absolute;
    top: -20px; /* Covers the 10px margin plus buffer */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: -1; /* Place behind the triangle if needed, though transparent doesn't matter much */
}

.sub-menu li a:hover span {
    color: #f06eaa;
    
}

/* Apply Button */
.btn-apply {
    color: #fff;
    border: 1px solid #fff;
    transition: all 0.3s;
    letter-spacing: .03em;
}

.btn-apply:hover {
    background-color: #f06eaa;
    border-color: #f06eaa;
    color: #fff;
}

/* Search Dropdown Styles */
.search-toggle {
    cursor: pointer;
    font-size: 1.1rem;
}
.search-toggle:hover {
    color: #f06eaa !important;
}

.search-container:hover .search-dropdown {
    display: block !important;
}

.search-dropdown {
    display: none; /* Hide by default */
    position: absolute; /* Ensure it's positioned absolutely */
    right: 0;
    top: 100%; /* Align with header bottom */
    margin-top: 0;
    border-top: 3px solid #f06eaa; /* Pink top border like visual reference */
    z-index: 2000;
    min-width: 300px; /* Restore min-width */
    background: white;
}

/* Triangle Arrow for Dropdown */
.search-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ff217a;
}

/* Search Button */
.search-dropdown .btn-primary {
    background-color: #5d5a88; /* Purple color from reference */
    border-color: #5d5a88;
}
.search-dropdown .btn-primary:hover {
    background-color: #4a476f;
}

/* Focus state for input */
.search-dropdown .form-control:focus {
    box-shadow: none;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1070;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mobile-search-inner {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 8px;
}

.mobile-search-inner form {
    flex: 1;
    min-width: 0;
}

.mobile-search-inner .form-control {
    flex: 1;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 1rem;
}

.mobile-search-inner .form-control:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 2px rgba(228, 93, 148, 0.15);
}

.mobile-search-inner .btn-primary {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    padding: 10px 18px;
    border-radius: 5px;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #888;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.mobile-search-close:hover {
    color: #333;
}

/* Navbar */
.navbar-nav .nav-link {
    color: #444;
    font-size: 0.9rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-pink) !important;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    height: 550px; /* Fixed height as requested */
    min-height: 550px;
    overflow: hidden;
    /* Create the pink gradient overlay on top of the image */
}

/* Gradient Overlay - Applies to all slides */
.hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(216, 34, 107, 0.95) 0%, rgba(216, 34, 107, 0.8) 40%, rgba(241, 176, 56, 0.75) 100%);
    z-index: 1;
    pointer-events: none; /* Allow interaction with slider content */
}

/* Carousel Controls - Circular edge-aligned buttons */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: auto;
    opacity: 0;
    z-index: 3;
    padding: 0;
    transition: opacity 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev {
    left: 10px;
}

.hero-section .carousel-control-next {
    right: 10px;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background-color: transparent;
    background-size: 40%;
    transition: all 0.25s ease;
}

.hero-section .carousel-control-prev-icon:hover,
.hero-section .carousel-control-next-icon:hover {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

/* Carousel Background Image with Zoom Effect */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    z-index: 0;
}

/* Custom Fade Transition Speed */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1s; /* Slower fade */
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Keyframes for smooth zoom */
@keyframes zoomEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* Activate Zoom on Active Slide using Animation */
.carousel-item.active .carousel-bg {
    animation: zoomEffect 10s linear forwards;
}

/* Section 3: Quick Menu */
.section-quick-menu {
    background-color: var(--navy);
    position: relative;
    z-index: 9;
    border-top: 4px solid;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, var(--pink) 0%, var(--orange) 50%, var(--yellow) 100%) 1;
}

.quick-menu-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.quick-menu-col:hover {
    background: linear-gradient(180deg, transparent, rgba(255, 22, 112, 0.18));
}

.quick-menu-col:last-child {
    border-right: none;
}

.quick-menu-link {
    display: block;
    transition: all 0.3s ease;
}

.quick-menu-link i {
    transition: all 0.3s ease;
}

.quick-menu-link:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.quick-menu-link:hover i {
    color: var(--pink) !important;
    transform: scale(1.15);
}

.quick-menu-text {
    font-weight: 300 !important;
    font-size: 0.92rem;
    color: white !important;
}

.quick-menu-subtext {
    font-weight: 300 !important;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    opacity: 0.6;
    color: white;
}

@media (max-width: 767px) {
    .quick-menu-col {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .quick-menu-col:nth-child(3n) {
        border-right: none;
    }
    .quick-menu-col:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

/* Section Header (AWARDS style) */
.section-header-line {
    margin: 1px;
}
.section-header {
    position: relative;
    padding-bottom: 0;
}

.section-header-title {
    margin-top: 5px !important;
    white-space: nowrap;
    padding-bottom: 10px;
    border-bottom: 3px solid #d6d6d6;
    position: relative;
    z-index: 1;
}

.section-header-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
    align-self: flex-end; 
}

.section-header-link {
    margin-top: 10px;
    white-space: nowrap;
    color: var(--primary-pink);
    font-size: .97em;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid #f06eaa;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.section-header-link:hover {
    color: #333;
     border-bottom: 1px solid #333;
}

/* Section Header - White Variant */
.section-header-white .section-header-title {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.section-header-white .section-header-line {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Intro Lists */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Awards Cards */
.award-card {
    transition: transform 0.3s;
    background-color: #fff;
    height: 100%;
}
.award-card:hover {
    transform: translateY(-5px);
  /*  box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/
}

/* News Section */
.three-lines-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* People Grayscale Effect */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s;
    cursor: pointer;
}
.grayscale:hover {
    filter: grayscale(0%);
}

/* Degree Level Section (Formerly People) */
.section-people {
    position: relative;
    background-image: url('image/bg_student.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: adds a nice parallax-like feel */
    z-index: 1;
}

.section-people::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 110, 170, 0.895);
    z-index: -1;
}

.degree-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.degree-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.degree-card h5 {
    color: #444;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.15rem;
}

.degree-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-degree {
    border: 1.5px solid #f06eaa;
    color: #f06eaa;
    background: transparent;
    padding: 6px 30px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px !important;
    transition: all 0.3s ease;
    width: fit-content;
    align-self: center;
}

.btn-degree:hover {
    background-color: #f06eaa;
    color: #ffffff;
}

/* Service Boxes */
.service-box {
    transition: all 0.3s;
}

/* Shape Dividers */
.ux-shape-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.ux-shape-divider--top {
    top: -1px;
    transform: rotate(180deg);
}

.ux-shape-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}

.ux-shape-fill {
    fill: #ffffff;
}

.section-research {
    position: relative;
    padding-top: 100px !important; /* Make room for the tilt if needed, or adjust padding */
    overflow: hidden;
}

/* Animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.research-image-wrapper {
    position: relative;
    z-index: 5;
}
.service-box {
    height: 100px;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.service-box:hover {
    transform: translateY(-3px);
}

/* Footer Links */
footer a.text-white {
    transition: opacity 0.2s;
}
footer a.text-white:hover {
    opacity: 0.8;
}

/* News Section Refinement */
.section-news {
    background-color: rgb(240, 110, 170) !important;
    color: #ffffff !important;
    position: relative;
    padding-bottom: 120px !important; /* Extra room for bottom divider */
}

.section-news h4, 
.section-news h6, 
.section-news p, 
.section-news a,
.section-news .list-group-item {
    color: #ffffff !important;
}


.section-news .border-bottom,
.section-news .flex-grow-1 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Image Hover Gradient Effect */
.news-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.news-image-wrapper img {
    transition: transform 0.5s ease;
}

.news-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-image-wrapper:hover::after {
    opacity: 1;
}

.news-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Bottom Shape Divider */
.ux-shape-divider--bottom {
    bottom: -1px;
    top: auto;
    transform: none; /* No rotation for bottom tilt */
}

/* Events Section Refinement */
.text-pink-custom {
    color: #f06eaa !important;
}

.section-grid-events .border-bottom {
    border-color: #dee2e6 !important;
}

.event-card {
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    border-radius: 10px;
}

.event-card h6 {
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-card hr {
    opacity: 0.2;
}

/* Alumni Section */
.section-alumni {
    background-color: #f8f9fa;
}

.alumni-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.alumni-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
    display: block;
}

.alumni-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.448);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    transition: all 0.5s ease;
}

.alumni-overlay h6 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.alumni-overlay p {
    color: #ccc;
    font-size: 0.75rem;
    margin: 0;
}

/* Hover Effects */
.alumni-card:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.alumni-card:hover .alumni-overlay {
    background-color: rgba(0, 0, 0, 0);
}

.alumni-card:hover .alumni-overlay h6 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Purple Footer Bar */
.alumni-bar {
    background-color: #535697;
    color: #ffffff;
    padding: 12px 0;
}

.alumni-bar .btn-link-all {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.alumni-bar .btn-link-all:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Service Links Section - Redesigned */
.service-image-link {
    display: block;
    overflow: hidden;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.service-image-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-image-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.service-image-link:hover img {
    transform: scale(1.03);
}

/* Info Boxes */
.info-box-pink {
    background-color: #f06eaa;
    color: #ffffff;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-box-pink:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(240, 110, 170, 0.25);
}

.info-box-pink h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-box-pink img { 
    margin: 0 auto;
}

.info-box-white {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    color: #fff !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-box-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.info-box-white h6,
.info-box-white h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff !important;
}

.info-box-white img {
    max-width: 160px;
    margin: 0 auto 10px;
}

.btn-outline-pink {
    background-color: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-outline-pink:hover {
    background-color: var(--primary-pink);
    color: #fff;
}

.btn-info-white {
    background-color: #f06eaa;
    color: #ffffff;
    border: none;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-info-white:hover {
    background-color: #d85a92;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 110, 170, 0.3);
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    /* Hero Section Responsive */
    .hero-section {
        height: 460px !important;
        min-height: 460px !important;
        background-color: var(--navy) !important;
    }

    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 100% !important;
    }

    .hero-section .row {
        align-items: center !important;
        height: 100% !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .hero-section .carousel-item::before {
        /* Soft semi-transparent gradient overlay to highlight background photo */
        background: linear-gradient(180deg, rgba(13, 17, 55, 0.65) 0%, rgba(216, 34, 107, 0.55) 100%) !important;
    }

    .hero-section .display-4 {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-section p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    /* Navbar Slide-in Effect */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        padding: 0;
        z-index: 1050;
        width: 100%;
        height: 100vh;
        background-color: #e978aca3; /* Pink Overlay Background */
        overflow-x: hidden;
        transition: transform 0.35s ease-in-out;
        transform: translateX(100%);
        display: block !important;
        visibility: hidden;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
    }

    .navbar-collapse.collapsing {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1050;
        width: 100%;
        height: 100vh !important;
        background-color: #e978aca3;
        transition: transform 0.35s ease-in-out;
        transform: translateX(100%);
        display: block;
        visibility: visible;
    }
    
    .navbar-collapse.show.collapsing {
        transform: translateX(0);
    }

    /* Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1060;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #555;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
    }

    .mobile-menu-close:hover {
        color: var(--pink);
    }
    
    /* Menu Content Container */
    .navbar-nav {
        background-color: hsla(0,0%,100%,.95);
        height: 100%;
        width: 60%;
        max-width: 400px;
        margin-left: auto;
        padding: 45px 20px 20px;
        overflow-y: auto;
        box-shadow: -2px 0 15px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Menu Text Color & Alignment */
    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Override uppercase for mobile */
    .navbar-nav {
        text-transform: none !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        color: rgba(74,74,74,.85) !important;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 18px 10px !important;
        font-size: 1.05rem;
        font-weight: 400 !important;
        display: block;
        width: 100%;
        text-transform: none;
    }

    /* Hover Effect */
    .navbar-dark .navbar-nav .nav-link:hover, 
    .navbar-dark .navbar-nav .nav-link:focus {
        background-color: rgba(0, 0, 0, .05);
        color: hsla(0, 0%, 7%, .85) !important;
    }

    /* Hide Desktop Search inside Drawer */
    .navbar-nav .search-container,
    .navbar-nav .search-dropdown {
        display: none !important;
    }

    /* Mobile Social Icons */
    .mobile-social-icons {
        border-bottom: none !important;
    }

    .mobile-social-icons .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #555;
        font-size: 1.1rem;
        text-decoration: none;
        transition: color 0.2s;
    }

    .mobile-social-icons .social-icon:hover {
        color: var(--primary-pink);
    }

    /* Apply Button Styling in Mobile Menu - Outline Style */
    .navbar-nav .btn-apply {
        display: inline-block;
        width: auto;
        text-align: center;
        margin-top: 15px;
        background-color: transparent !important;
        color: var(--primary-pink) !important;
        border: 1.5px solid var(--primary-pink) !important;
        padding: 8px 35px !important;
        border-radius: 50px;
        font-weight: 500;
    }

    .navbar-nav .btn-apply:hover {
        background-color: var(--primary-pink) !important;
        color: #fff !important;
    }
    
    /* Language Switcher in Mobile */
    .navbar-nav .lang-dropdown-container {
        margin: 0 !important;
    }

    .navbar-nav .lang-dropdown-container .nav-top-link {
        color: rgba(74,74,74,.85) !important;
        padding: 18px 10px !important;
        justify-content: flex-start;
        display: flex;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .navbar-nav .lang-dropdown-container .nav-top-link .fa-angle-down {
        margin-left: auto;
    }
    
    /* Dropdown menu overrides for mobile navbar */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.02) !important;
        padding: 0 0 0 15px !important;
        margin: 0 !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }

    .navbar-nav .dropdown-item {
        color: rgba(74,74,74,.85) !important;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        padding: 12px 10px !important;
        font-size: 0.95rem;
        background: transparent !important;
    }

    .navbar-nav .dropdown-item:hover {
        background-color: rgba(228, 93, 148, 0.05) !important;
        color: var(--pink) !important;
    }

    /* Sub-menu in mobile (legacy support) */
    .navbar-nav .sub-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        padding-left: 20px !important;
        display: none;
        background-color: transparent !important;
        min-width: auto !important;
        margin-top: 0;
    }

    .navbar-nav .sub-menu::before {
        display: none; /* Hide the triangle arrow on mobile */
    }
    
    .navbar-nav .lang-dropdown-container:hover .sub-menu,
    .navbar-nav .lang-dropdown-container.active .sub-menu {
        display: block !important;
    }

    /* Toggler Button */
    .navbar-toggler {
        z-index: 1040; /* ลดลงเพื่อให้แถบสไลด์ 1050 ปิดทับได้เรียบร้อยเมื่อเปิด */
        position: relative;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Active menu states for mobile */
    .header-modern .nav-item.active .nav-link::before,
    .header-modern .nav-link.active-link::before {
        display: none !important;
    }

    .navbar-dark .navbar-nav .nav-link.active-link,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--pink) !important;
        font-weight: 600 !important;
        border-bottom: 1.5px solid var(--pink) !important;
    }

    /* Intro Section */
    .section-intro .col-lg-5 {
        margin-bottom: 30px;
    }
    
    /* Research Section */
    .section-research img {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Further Mobile Adjustments for Hero Section */
    .hero-section {
        height: 390px !important;
        min-height: 390px !important;
        background-color: var(--navy) !important;
    }

    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 100% !important;
    }

    .hero-section .row {
        align-items: center !important;
        height: 100% !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .hero-section .display-4 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.6rem !important;
    }

    .hero-section p {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
        opacity: 0.95 !important;
    }

    .hero-section img.w-10 {
        width: 40px !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section .btn-outline-light {
        padding: 6px 20px !important;
        font-size: 0.85rem !important;
    }
    
    .hero-quick-menu {
        position: relative !important; /* Stack normally on mobile */
    }

    .award-card img {
        height: auto;
    }
}

/* Footer - Redesigned */
footer {
    position: relative;
}

/* Removed old pink footer styles */

footer a:hover {
    opacity: 0.8;
}


.copyright-bar {
    background-color: #535697;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid #999;
    border-radius: 50%;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top-btn:hover,
.back-to-top-btn:active {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(228, 93, 148, 0.4);
}

.back-to-top-btn.show {
    display: flex;
}
.btn:hover {
    color: #666 ;
}
.btn.btn-secondary{
    background-color:#535697;
    color:#fff; 
}
.btn.btn-secondary:hover{
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
    color: #fff;
    opacity: 1;
    outline: none;
}

.btn-outline-secondary {
    background-color: transparent;
    color: #535697;
    border: 2px solid #535697;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background-color: #535697;
    color: #fff;
}

/* ============================================
   ★ ส่วนเพิ่มใหม่: GALLERY A - Masonry Grid (พื้นหลังเข้ม)
   ภาพสลับใหญ่-เล็ก, hover zoom + เส้นชมพูด้านล่าง
   ============================================ */
.section-gallery-a {
    background-color: #1a1a1a;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.masonry-large {
    height: 300px;
}

.masonry-small {
    height: 200px;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    transition: all 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    padding-bottom: 20px;
}

.masonry-caption {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.masonry-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--pink);
    transition: width 0.4s ease;
}

.masonry-item:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .masonry-large {
        height: 220px;
    }
    .masonry-small {
        height: 160px;
    }
}

/* Lightbox for Gallery A */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 75%);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    text-align: center;
    max-width: 85%;
    max-height: 85vh;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    font-size: 1rem;
    margin-top: 15px;
    font-weight: 400;
    opacity: 0.9;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--pink);
    border-color: var(--pink);
}

.lightbox-close {
    top: 25px;
    right: 25px;
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

/* ★ จบส่วนเพิ่มใหม่: GALLERY A */

/* ============================================
   ★ ส่วนเพิ่มใหม่: Floating Social FAB (ปุ่มลอยติดต่อเรา)
   ปุ่มแชทสีน้ำเงิน + เมนู Social Icons
   ============================================ */
.fab-container {
    position: fixed;
    bottom: 95px;
    right: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Toggle Button */
.fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b6abf 0%, #4a5ab5 100%);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 90, 181, 0.45);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(74, 90, 181, 0.55);
}

.fab-toggle .fab-icon-open {
    transition: all 0.3s ease;
}

.fab-toggle .fab-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.fab-container.active .fab-toggle .fab-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.fab-container.active .fab-toggle .fab-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.fab-container.active .fab-toggle {
    background: linear-gradient(135deg, #5b6abf 0%, #4a5ab5 100%);
}

/* Menu Container */
.fab-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    pointer-events: none;
}

.fab-container.active .fab-menu {
    pointer-events: all;
}

/* Individual FAB Items */
.fab-item {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.35rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    /* Hidden by default */
    opacity: 0;
    transform: translateY(20px) scale(0.5);
}

.fab-container.active .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation delays */
.fab-container.active .fab-item:nth-child(1) { transition-delay: 0.04s; }
.fab-container.active .fab-item:nth-child(2) { transition-delay: 0.08s; }
.fab-container.active .fab-item:nth-child(3) { transition-delay: 0.12s; }
.fab-container.active .fab-item:nth-child(4) { transition-delay: 0.16s; }
.fab-container.active .fab-item:nth-child(5) { transition-delay: 0.20s; }
.fab-container.active .fab-item:nth-child(6) { transition-delay: 0.24s; }

.fab-item:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

/* Phone - Green */
.fab-phone {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

/* LINE - Green */
.fab-line {
    background: linear-gradient(135deg, #00c300 0%, #00a300 100%);
}

.fab-line i {
    font-size: 1.6rem;
}

/* Facebook Messenger - Blue */
.fab-messenger {
    background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%);
}

/* Instagram - Gradient */
.fab-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fab-instagram i {
    font-size: 1.5rem;
}

/* TikTok - Black */
.fab-tiktok {
    background: #000;
}

/* Close Button - Blue/Purple */
.fab-close {
    background: linear-gradient(135deg, #5b6abf 0%, #4a5ab5 100%);
}

/* FAB Label (tooltip on left) */
.fab-label {
    position: absolute;
    right: calc(100% + 12px);
    white-space: nowrap;
    background: #fff;
    color: #333;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s ease;
}

.fab-item:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}



/* Mobile adjustments */
@media (max-width: 768px) {
    .fab-container {
        bottom: 90px;
        right: 30px;
    }
    .fab-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .fab-item {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
    .fab-menu {
        gap: 10px;
    }

}
/* ★ จบส่วนเพิ่มใหม่: Floating Social FAB */
/* Administrators Page Styles */
.admin-banner {
    min-height: 250px;
    display: flex;
    align-items: center;
    background-image: url('https://ssru.ac.th/images/banner-administrators.jpg'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--primary-pink);
}

.admin-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(228, 93, 148, 0.9) 0%, rgba(228, 93, 148, 0.5) 100%);
    z-index: 1;
}

.admin-banner .container {
    z-index: 2;
}


@media (max-width: 768px) {
    .admin-banner {
        min-height: 200px;
    }
    .admin-banner h1 {
        font-size: 1.5rem;
    }
}

/* Dropdown Hover Effects */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item:hover {
    background-color: rgba(228, 93, 148, 0.1);
    color: var(--primary-pink);
}

.dropdown-item.active {
    background-color: var(--primary-pink);
}

/* ==========================================================================
   ★ SSRU Mockup Modern Redesign Styles
   ========================================================================== */

/* Hero Redesign */
.hero-section-modern {
    background: linear-gradient(135deg, var(--pink) 0%, #ff6a8e 40%, var(--orange) 75%, var(--yellow) 100%);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    color: #fff;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-overlay-graphic {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-image: url('image/bg_student.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--navy-deep) 0%, var(--pink) 45%, rgba(255, 22, 112, 0.2) 75%, rgba(255, 22, 112, 0) 100%);
    z-index: 2;
}

.hero-content-inner {
    position: relative;
    z-index: 3;
}

/* Ranking Banner */
.ranking-banner {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

@media (max-width: 768px) {
	.new-3post{
Display:none;
}
    .ranking-banner .ranking-container {
        gap: 1rem !important;
    }

    .ranking-banner .rank-brand-block {
        width: 100% !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .ranking-banner .rank-brand-text {
        text-align: left !important;
    }

    .ranking-banner .rank-title-pink {
        font-size: 2.25rem !important;
    }

    .ranking-banner .rank-title-navy {
        font-size: 1.85rem !important;
        text-align: right !important;
    }

    .ranking-banner .rank-number-giant {
        font-size: 7rem !important;
        margin-left: 0 !important;
        line-height: 0.8 !important;
    }

    .ranking-banner .rank-sub-desc {
        min-width: 100% !important;
    }

    .ranking-banner .rank-sub-title {
        font-size: 1.3rem !important;
    }

    .ranking-banner .rank-sub-text {
        font-size: 1rem !important;
    }
}

.rank-number-giant {
    font-size: 5rem;
    font-weight: 800;
    color: var(--pink);
    line-height: 0.8;
}

.rank-text-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.rank-text-sub {
    font-size: 1rem;
    color: #666;
}

.rank-link-more {
    color: var(--pink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--pink);
    padding-bottom: 2px;
}
.rank-link-more:hover {
    color: #333;
    border-color: #333;
}

/* News Section Modern */
.section-news-modern {
    background-color: #f2f2ee; /* Warm light gray background from reference */
}

.news-card-big-overlay {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-big-overlay:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-card-big-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-big-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.news-card-big-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 2;
    color: #fff;
}

.news-badge {
    background-color: #fff;
    color: var(--pink);
    font-weight: 500;
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card-big-title {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
    color: #fff;
}

.news-thumb-small {
    width: 160px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-item-row {
    background-color: transparent;
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none !important;
    display: flex;
    align-items: flex-start;
}

.news-item-row:hover {
    transform: translateX(4px);
    opacity: 0.85;
}

.news-item-row h6 {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    color: #111;
}

.news-item-row p {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #666;
}

/* Flex containers for aligning height with left side */
.news-right-container {
    display: flex;
    flex-direction: column;
}

.news-right-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Courses Dark Redesign */
.section-courses-dark {
    background: linear-gradient(180deg, #0f0f14 0%, #07070b 100%);
    color: #fff;
    position: relative;
}

.courses-glow-effect {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(228,93,148,0.12) 0%, rgba(228,93,148,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.btn-courses-academic {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    color: #111 !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-courses-academic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.08);
    background-color: #f7f7f7;
}

.btn-arrow-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-courses-academic:hover .btn-arrow-circle {
    background-color: var(--pink);
    transform: scale(1.15) rotate(-45deg);
}

/* Redesigned Course Cards */
.course-card-academic {
    display: block;
    text-decoration: none !important;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: none;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-academic:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.course-card-thumb {
    height: 145px;
    position: relative;
    overflow: hidden;
}

.course-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card-academic:hover .course-card-thumb img {
    transform: scale(1.06);
}

.course-card-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-card-academic:hover .course-card-arrow {
    background-color: var(--pink);
    transform: scale(1.1) rotate(-45deg);
}

.course-card-arrow .arrow,
.btn-arrow-circle .arrow {
    display: inline-block;
    line-height: 1;
    font-size: 1.15rem;
    font-weight: bold;
    margin-top: -2px;
}

.course-card-body {
    padding: 22px 20px;
    background-color: #fcfcfc;
}

.course-card-count {
    color: var(--pink);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.course-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 2px;
}

.course-card-subtitle {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

/* Colleges Section Redesign */
.section-colleges-dark {
    background: linear-gradient(to right, #0d0d3f, #300f45);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.colleges-glow-right {
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, rgba(147, 51, 234, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.college-card-modern {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none !important;
    transition: all 0.3s ease;
    height: 100%;
}

.college-card-modern:hover {
    background: var(--pink) !important;
    border-color: var(--pink) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 22, 112, 0.35);
}

.college-card-modern:hover .college-card-content h6 {
    color: #fff !important;
    font-weight: 500;
}

.college-card-modern:hover .college-card-content span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.college-card-modern:hover .college-card-icon {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.college-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Icon Color Variations - All unified to pink as requested */
.icon-pink, .icon-purple, .icon-indigo, .icon-red {
    background-color: rgba(255, 22, 112, 0.12);
    color: var(--pink);
    transition: all 0.3s ease;
}

.college-card-content {
    min-width: 0; /* Ensures truncation works if needed */
}

.college-card-content h6 {
    font-size: 0.95rem;
    font-weight: 300; /* ตัวอักษรบางกว่าเดิม (จาก 500) */
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.college-card-content span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400; /* ตัวอักษรบางกว่าเดิม */
    letter-spacing: 0.03em;
    display: block;
    transition: all 0.3s ease;
}

.stats-banner-pink {
    background: linear-gradient(90deg, #ff1e75 0%, #ff4b82 60%, #ff6b9d 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
}

.stats-banner-pink .col-6 {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-banner-pink .col-6:last-child {
    border-right: none;
}

@media (max-width: 767.98px) {
    .stats-banner-pink .col-6:nth-child(even) {
        border-right: none;
    }
}

.stat-item-val {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stat-item-lbl {
    font-size: 1rem;
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.stat-item-lbl::after {
    content: attr(data-en);
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255);
    letter-spacing: 0.1em;
    margin-top: 3px;
}

/* Learning Spaces */
.section-spaces-navy {
    background: #0d0d3f;
    position: relative;
}

.space-card-modern {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.space-card-large {
    height: 460px;
}

.space-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-card-modern:hover .space-img-bg {
    transform: scale(1.06);
}

.space-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 10, 21, 0.2) 0%, rgba(8, 10, 21, 0.5) 50%, #0d0d3f 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    z-index: 2;
}

.space-card-num {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.774);
    letter-spacing: 0.15em;
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif;
}

.space-card-badge {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.774);
    letter-spacing: 0.3em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.space-card-title {
    color: #fff;
    font-weight: 500;
    font-size: 1.6rem; 
    margin: 0;
}

.space-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.774);
    margin-top: 8px;
    font-weight: 300;
}

/* Success Banner */
.success-banner-section {
    background-color: #080a15;
}

.gradient-box-violet {
    background: linear-gradient(135deg, #7b5cb7 0%, #5d469f 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.gradient-box-blue {
    background: linear-gradient(135deg, #497cd7 0%, #2f5bb5 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.gradient-box-violet:hover, .gradient-box-blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #fff !important;
}

/* Modern Header Redesign */
.header-modern {
    background-color: var(--navy) !important;
    border-bottom: 3px solid var(--pink);
    box-shadow: 0 4px 24px -8px rgba(13,14,63,0.3);
    padding: 0;
}

.header-modern .navbar-brand {
    padding: 10px 0;
}

@media (max-width: 991.98px) {
    .header-modern .navbar {
        flex-wrap: nowrap !important;
    }
    .header-modern .navbar-brand {
        padding: 8px 0;
        max-width: calc(100% - 45px);
    }
}

@media (max-width: 576px) {
    .header-modern .brand-title {
        font-size: 0.92rem !important;
    }
    .header-modern .brand-subtitle {
        font-size: 0.68rem !important;
        letter-spacing: 0.03em !important;
    }
    .header-modern .navbar-brand img {
        height: 50px !important;
        width: 42px !important;
    }
}

.header-modern .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 24px 12px !important;
    position: relative;
    transition: color 0.25s;
}

.header-modern .nav-link:hover {
    color: var(--pink-bright) !important;
}

.header-modern .nav-item.active .nav-link,
.header-modern .nav-link.active-link {
    color: #fff !important;
}

.header-modern .nav-item.active .nav-link::before,
.header-modern .nav-link.active-link::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--pink); 
    border: none !important;
}

.search-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    text-decoration: none;
}
.search-circle-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--pink);
    color: var(--pink);
    transform: rotate(15deg);
}

.lang-capsule-btn {
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    background: transparent;
    color: #fff;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s;
    text-decoration: none;
}
.lang-capsule-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--pink);
}

.btn-apply-modern {
    background-color: var(--pink);
    border-color: var(--pink);
    color: #fff !important;
    border-radius: 50px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 6px 18px rgba(255, 22, 112, 0.4);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-apply-modern:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-apply-modern .arrow {
    display: inline-block;
    line-height: 1;
    font-size: 1.15rem;
    font-weight: bold;
}

/* Footer Dark Theme Additions */
.footer-dark {
    font-family: 'Sukhumvit Set', 'Bai Jamjuree', sans-serif !important;
}
.footer-link-hover:hover {
    color: var(--pink-bright) !important;
}
.footer-dark a.rounded-circle:hover {
    background-color: var(--pink) !important;
    border-color: var(--pink) !important;
    color: #fff !important;
}


/* About Us Page Styles */
/* .page-header-banner {
    background: linear-gradient(rgba(228, 93, 148, 0.7), rgba(228, 93, 148, 0.85)), url('image/img_banner02.jpg') center/cover no-repeat;
    padding: 80px 0;
}
 */
.text-primary-dark {
    color: var(--navy-soft) !important;
}

.text-pink {
    color: var(--pink) !important;
}

.about-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border: 1px solid #3b3a6e;
    border-radius: 4px;
    background-color: #ffffff;
}

.about-sidebar::-webkit-scrollbar {
    width: 6px;
}
.about-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.about-sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}
.about-sidebar::-webkit-scrollbar-thumb:hover {
    background: #3b3a6e;
}

.sidebar-link {
    color: #3b3a6e;
    text-align: center;
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid #3b3a6e;
    font-size: 1rem;
    display: block;
    text-decoration: none;
    background-color: transparent;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    background-color: rgba(59, 58, 110, 0.05);
    color: #3b3a6e;
}

.sidebar-link.active {
    background-color: rgba(59, 58, 110, 0.05) !important;
    color: #3b3a6e !important;
    font-weight: 700;
}

@media (max-width: 991px) {
    .about-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
        max-height: none;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    .sidebar-link {
        white-space: nowrap;
        margin-right: 10px;
        margin-bottom: 0;
    }
}


.rise-card {
    border: 1px solid rgba(228,93,148,0.1);
    border-radius: 16px;
    padding: 30px 15px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(250,250,250,1) 100%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rise-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--pink) 0%, #6c5299 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.rise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(228,93,148,0.15);
    border-color: transparent;
}

.rise-card:hover::before {
    opacity: 1;
}

.rise-letter {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pink);
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.rise-card:hover .rise-letter,
.rise-card:hover .rise-word,
.rise-card:hover .rise-desc {
    color: white !important;
}

.rise-word {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.rise-desc {
    font-size: 0.85rem;
    color: #777;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}


.rise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.rise-letter {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pink);
    line-height: 1;
    margin-bottom: 10px;
}

.rise-word {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-soft);
    margin-bottom: 8px;
}

.rise-desc {
    font-size: 0.8rem;
    color: #64748b;
}

/* Pink bullet list */
.list-mission-pink {
    list-style-type: disc;
}
.list-mission-pink li {
    padding-left: 0.5rem;
}
.list-mission-pink li::marker {
    color: var(--pink);
    font-size: 1.2em;
}

/* Custom styling for Hero outline-light buttons */
.hero-section .btn-outline-light {
    background-color: var(--ink) !important;
    border-color: #fff !important;
    color: #fff !important;
    border-width: 2px !important;
    transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
    background-color: var(--pink) !important;
    border-color: var(--pink) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 22, 112, 0.4);
}

.btn-learn-anywhere {
    font-size: 0.85rem;
    border: 1px solid #5d469f;
    color: #5d469f;
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-learn-anywhere:hover {
    background-color: var(--pink) !important;
    border-color: var(--pink) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 22, 112, 0.4);
}


/* Styles imported from fees.html */
        

        body {
            background-color: #f4f7fa;
            color: var(--text-dark);
        }

       .fees-container { 
            padding-bottom: 60px ; 
        }  

        /* Sidebar Tabs Styling */
        .fees-side-tabs-container {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            position: sticky;
            top: 100px;
            max-height: calc(100vh - 140px);
            overflow-y: auto;
        }

        .fees-side-tabs .nav-link {
            color: var(--text-dark);
            text-align: left;
            padding: 12px 20px;
            border-radius: 12px;
            margin-bottom: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid transparent;
            font-size: 0.9rem;
        }

        .fees-side-tabs .nav-link:hover {
            background-color: rgba(228, 93, 148, 0.05);
            color: var(--ssru-pink);
            transform: translateX(5px);
        }

        .fees-side-tabs .nav-link.active {
            background-color: var(--pink) !important;
            color: white !important;
            box-shadow: 0 4px 15px rgba(228, 93, 148, 0.3);
        }
        /* Scrollbar Styling for Side Tabs */
        .fees-side-tabs-container::-webkit-scrollbar {
            width: 6px;
        }
        .fees-side-tabs-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        .fees-side-tabs-container::-webkit-scrollbar-thumb {
            background: #ddd;
            border-radius: 10px;
        }
        .fees-side-tabs-container::-webkit-scrollbar-thumb:hover {
            background: var(--ssru-pink);
        }

        /* Content Area Styling */
        .tab-content-container {
            background: white;
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 15px 45px rgba(0,0,0,0.08);
            min-height: 600px;
        }

        .faculty-header {
            margin-bottom: 35px;
            border-bottom: 2px solid #f1f3f5;
            padding-bottom: 25px;
        }

        .faculty-title { 
            color: var(--ssru-blue); 
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .faculty-title::before {
            content: "";
            display: block;
            width: 8px;
            height: 35px;
            background: var(--ssru-pink);
            border-radius: 4px;
        }

        .faculty-description {
            color: var(--text-muted);
            font-size: 1.05rem;
            line-height: 1.6;
            max-width: 800px;
        }

        /* Table Styling */
        .table-responsive {
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid #edf2f7;
            margin-top: 20px;
        }

        .table-fees {
            margin-bottom: 0;
            font-size: 0.9rem;
        }

        .table-fees thead th {
            background-color: #f8fafc;
            color: var(--navy-soft) !important;
            padding: 20px 15px;
            font-weight: 700;
            text-align: center;
            border-bottom: 2px solid #edf2f7 !important;
        }

        .table-fees thead th.bg-total {
            background-color: var(--ssru-pink) !important;
            color: white !important;
        }

        .table-fees tr.header-sub-pink th {
            background-color: #fdf2f7 !important;
            color: var(--pink) !important;
            padding: 12px 10px;
            font-size: 0.85rem;
        }
        
        .table-fees td { 
            padding: 16px 15px; 
            vertical-align: middle;
            border-bottom: 1px solid #f1f3f5;
        }

        .price-text { text-align: center; color: #4a5568; }
        .total-price { 
            font-weight: 700; 
            text-align: center; 
            color: var(--ssru-blue);
            background-color: #fdf2f7;
        }
        
        /* Banner & Footer */
        .admin-banner {
            background: linear-gradient(135deg, rgba(228, 93, 148, 0.85) 0%, rgba(26, 74, 141, 0.8) 100%), url('https://ssru.d2instinct.com/themes/app/image/bg-section-banner-01.jpg');
            background-size: cover;
            background-position: center;
            padding: 100px 0;
            color: white;
            text-shadow: 0 2px 8px rgba(0,0,0,0.2);
            position: relative;
        }

        .admin-banner h2 {
            font-size: 2.8rem;
            letter-spacing: 2px;
        }

        .admin-banner .banner-sub {
            font-size: 1.1rem;
            opacity: 0.85;
            font-weight: 300;
            margin-top: 12px;
        }

        .ssru-footer {
            background-color: #1a202c;
            color: white;
            padding: 60px 0;
        }

        /* Scrollbar Styling for Side Tabs */
        .side-tabs-container::-webkit-scrollbar {
            width: 6px;
        }
        .side-tabs-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        .side-tabs-container::-webkit-scrollbar-thumb {
            background: #ddd;
            border-radius: 10px;
        }
        .side-tabs-container::-webkit-scrollbar-thumb:hover {
            background: var(--ssru-pink);
        }

        /* Guide Sections (Additional Information) */
        .fees-guide {
            padding: 80px 0;
        }

        .guide-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            height: 100%;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 5px 15px rgba(0,0,0,0.02);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .guide-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: var(--ssru-pink);
        }

        .guide-icon {
            width: 70px;
            height: 70px;
            background: rgba(228, 93, 148, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: var(--ssru-pink);
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }

        .guide-card:hover .guide-icon {
            background: var(--ssru-pink);
            color: white;
            transform: rotateY(180deg);
        }

        .guide-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--ssru-blue);
        }

        .guide-text {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .guide-btn {
            margin-top: auto;
            color: var(--ssru-pink);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-top: 15px;
        }

        .guide-btn:hover {
            color: var(--ssru-pink-dark);
        }

        @media (max-width: 991px) {
            .side-tabs-container {
                position: relative;
                top: 0;
                margin-bottom: 30px;
                max-height: none;
            }
            .side-tabs {
                flex-direction: row !important;
                overflow-x: auto;
                padding-bottom: 10px;
                flex-wrap: nowrap;
            }
            .side-tabs .nav-link {
                white-space: nowrap;
                margin-right: 10px;
                margin-bottom: 0;
            }
        }
    

/* Utility Classes for About Us Redesign */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-zoom:hover {
    transform: scale(1.03);
}

.group:hover .group-hover-opacity-5 {
    opacity: 0.05 !important;
}

/* Breadcrumb Divider Color override */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgb(255 255 255 / 75%);
}

/* Sidebar Mobile Overrides for New Design */
@media (max-width: 991px) {
    .about-sidebar {
        border: none !important;
        background: transparent !important;
        padding-bottom: 15px;
    }
    .sidebar-link {
        border: 1px solid #3b3a6e !important;
        border-radius: 4px !important;
        margin-right: 8px !important;
    }
}

/* ========================================================
   ★ Global Content Text Class (For paragraph text)
   ======================================================== */
.content-text {
    color: #3b3a4a;          /* สีเทาเข้ม อ่านง่าย (เข้มกว่า text-muted) */
    font-size: 1rem;         /* ขนาดมาตรฐาน อ่านสบายตา */
    font-weight: 400;        /* ความหนาระดับปกติ (หนากว่าแบบ light) */
    line-height: 2;          /* ระยะห่างบรรทัดโปร่งๆ (เหมือน lh-lg) */
    text-indent: 2.5em;      /* ย่อหน้าบรรทัดแรก */
    margin-bottom: 2rem;     /* ระยะห่างด้านล่าง */
}
/* ============================================
   ★ เปิดส่วนเพิ่มใหม่: หน้า courses.php
   ============================================ */
   .backdrop-blur { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
      .bg-pink { background-color: var(--pink) !important; }
      .text-pink { color: var(--pink) !important; }
      .text-dark-blue { color: var(--navy-soft) !important; }
      .faculty-card {
        border-radius: 16px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      .faculty-card:hover { 
        transform: translateY(-5px); 
        box-shadow: 0 1rem 3rem rgba(0,0,0,.15) !important; 
      }
      .faculty-card .card-img-top {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
      }
      .filter-btn { 
        border: 1px solid var(--pink); 
        color: var(--pink); 
        background-color: transparent;
      }
      .filter-btn:hover, .filter-btn.active { 
        background-color: var(--pink); 
        border-color: var(--pink); 
        color: white; 
      }

      /* Toggle Button Styling */
      .btn-expand-course {
        transition: 0.3s;
        border: 1px solid #eee;
        background-color: #f8f9fa;
        color: var(--navy-soft);
      }
      .btn-expand-course:hover, .btn-expand-course:not(.collapsed) { 
        background-color: var(--navy-soft); 
        color: white; 
        border-color: var(--navy-soft);
      }
      .btn-expand-course .icon-collapse {
        transition: transform 0.3s;
      }
      .btn-expand-course:not(.collapsed) .icon-collapse {
        transform: rotate(180deg);
      }

      .inner-table th { background-color: var(--pink); color: white; padding: 12px; font-weight: 500;}
      .inner-table td { padding: 12px; border-bottom: 1px solid #eee; }
      .inner-table tr:last-child td { border-bottom: none; }

      /* Premium Sidebar Navigation Styling */
      .nav-sidebar {
        position: sticky;
        top: 120px;
        z-index: 100;
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px !important;
        background: white;
        border-radius: 40px !important;
        border: none !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.06) !important;
      }
      /* Hide scrollbar for sidebar */
      .nav-sidebar::-webkit-scrollbar { width: 5px; }
      .nav-sidebar::-webkit-scrollbar-thumb { background: #f0f0f0; border-radius: 10px; }

      .nav-sidebar-title {
        color: #2d2a54;
        font-weight: 800;
        font-size: 1.4rem;
        margin-bottom: 25px;
        padding-left: 10px;
      }

      .nav-sidebar .list-group-item {
        border: none !important;
        border-radius: 20px !important;
        margin-bottom: 8px;
        color: #555;
        font-weight: 600;
        text-align: left;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 16px 24px;
        background: transparent;
        cursor: pointer;
        text-decoration: none;
        display: flex;
        align-items: center;
        font-size: 1.05rem;
      }
      
      .nav-sidebar .list-group-item i {
        font-size: 1.2rem;
        margin-right: 15px;
        width: 25px;
        text-align: center;
        transition: transform 0.3s;
      }

      .nav-sidebar .list-group-item:hover {
        background-color: #f8f9ff;
        color: #6a5999;
        transform: translateX(8px);
      }

      .nav-sidebar .list-group-item.active {
        background: linear-gradient(90deg, #6a5999 0%, #d85d91 100%) !important;
        color: white !important;
        box-shadow: 0 12px 24px rgba(216, 93, 145, 0.35) !important;
        transform: scale(1.02);
      }
      
      .nav-sidebar .list-group-item.active i {
        transform: scale(1.1);
      }
      
      @media (max-width: 991px) {
        .navbar-toggler { 
            padding-right: 0 !important;
        }
        .nav-sidebar {
          position: static;
          margin-bottom: 40px;
          max-height: none;
          overflow-y: visible;
          padding: 25px !important;
          border-radius: 25px !important;
        }
        .nav-sidebar-title {
          font-size: 1.2rem;
          margin-bottom: 15px;
        }
        .nav-sidebar .list-group {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
          gap: 12px;
        }
        .nav-sidebar .list-group-item {
          margin-bottom: 0;
          padding: 12px 18px;
          font-size: 0.95rem;
        }
      }
/* ============================================
   ★ ปิดส่วนเพิ่มใหม่: หน้า courses.php
   ============================================ */
/* ============================================
   ★ เปิดส่วนเพิ่มใหม่: หน้า history.php
   ============================================ */

   .text-pink { color: var(--pink) !important; }
      .bg-pink { background-color: var(--pink) !important; }
      .text-dark-blue { color: var(--navy-soft) !important; }

        .timeline-track {
          position: relative;
          display: flex;
          justify-content: space-between;
          align-items: center;
          max-width: 900px;
          margin: 0 auto 80px auto;
          padding: 0;
      }
      .timeline-track::before {
          content: '';
          position: absolute;
          top: 50%;
          left: 5%;
          width: 90%;
          height: 3px;
          background: #e0e0e0;
          z-index: 1;
          transform: translateY(-50%);
      }
      .scroll-progress {
          position: absolute;
          top: 50%;
          left: 5%;
          height: 3px;
          background: var(--pink);
          z-index: 1;
          transform: translateY(-50%);
          transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
      }
      .timeline-dot {
          position: relative;
          z-index: 2;
          width: 25px;
          height: 25px;
          background: #ccc;
          border-radius: 50%;
          cursor: pointer;
          transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
          border: 4px solid #f8f9fa;
      }
      .timeline-dot:hover {
          background: #aaa;
          transform: scale(1.2);
      }
      .timeline-dot.active {
          background: var(--pink);
          transform: scale(1.6);
          box-shadow: 0 0 20px rgba(255, 22, 112, 0.5);
      }
      .timeline-year-label {
          position: absolute;
          top: -45px;
          left: 50%;
          transform: translateX(-50%);
          font-weight: 500;
          color: #888;
          transition: 0.4s ease;
          white-space: nowrap;
          font-size: 1rem;
      }
      .timeline-dot.active .timeline-year-label {
          color: var(--pink);
          font-size: 1.3rem;
          top: -55px;
          font-weight: 700;
      }
      .era-card {
        background: #ffffff;
        border: 1px solid #f0f0f0;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.06);
      }
      .era-img {
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        height: 350px;
      }
      .era-img:hover {
        transform: scale(1.03);
      }
      
      /* --- Smooth Staggered Animation --- */
      .tab-pane { display: none; }
      .tab-pane.active {
          display: block;
          animation: fadeCardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
      }
      /* Stagger Image */
      .tab-pane.active .era-img {
          opacity: 0;
          animation: imgSoftIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
      }
      /* Stagger Text Content */
      .tab-pane.active .col-lg-7 {
          opacity: 0;
          animation: textSoftIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
      }

      @keyframes fadeCardIn {
          from { opacity: 0; transform: translateY(15px); }
          to { opacity: 1; transform: translateY(0); }
      }
      @keyframes imgSoftIn {
          from { opacity: 0; transform: scale(0.96) translateY(20px); }
          to { opacity: 1; transform: scale(1) translateY(0); }
      }
      @keyframes textSoftIn {
          from { opacity: 0; transform: translateX(20px); }
          to { opacity: 1; transform: translateX(0); }
      }

      /* 4. Glassmorphism Philosophy (from v2) */
      .glass-card {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: white;
        border-radius: 20px;
        padding: 40px;
      }

      /* 5. Horizontal Gallery (from v2) */
      .scrolling-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
        scrollbar-width: none;
      }
      .scrolling-wrapper::-webkit-scrollbar { display: none; }
      .scrolling-card {
        flex: 0 0 auto;
        width: 320px;
        height: 320px;
        margin-right: 20px;
        border-radius: 15px;
        overflow: hidden;
        position: relative;
        transition: transform 0.3s;
      }
      .scrolling-card:hover { transform: scale(0.98); }
      .scrolling-card img { width: 100%; height: 100%; object-fit: cover; }
      .scroll-hint { animation: hintBounce 2s infinite; }
      @keyframes hintBounce {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(10px); }
      }
/* ============================================
   ★ ปิดส่วนเพิ่มใหม่: หน้า history.php
   ============================================ */

/* ============================================
   ★ เปิดส่วนเพิ่มใหม่: หน้า administrators.php
   ============================================ */

   :root { --ssru-purple: var(--navy-soft); --ssru-purple-dark: var(--navy-soft); --ssru-pink: var(--pink); --ssru-pink-light: var(--pink); --glass-bg: rgba(255,255,255,0.9); --card-shadow: 0 15px 35px rgba(0,0,0,0.08); }
      body { background: #fdfbff; color: #444; }

      /* Premium Navbar Redesign */
      .main-header {
        background-color: #000 !important;
        border-bottom: 3px solid var(--pink);
        box-shadow: 0 4px 20px rgba(228, 93, 148, 0.4);
      }
      .logo-section-new {
        background: transparent !important;
        padding: 10px 0;
      }
      .logo-section-new::before { display: none !important; }
      .menu-section-new {
        background: transparent !important;
      }
      .menu-section-new::after { display: none !important; }
      
      .nav-link-custom {
        color: rgba(255,255,255,0.9) !important;
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.5rem 0.6rem !important;
        transition: all 0.3s ease;
        white-space: nowrap;
      }
      .nav-link-custom:hover, .nav-link-custom.active {
        color: var(--pink) !important;
      }
      .nav-link-custom.dropdown-toggle::after {
        margin-left: 0.4em;
        vertical-align: 0.1em;
      }
      
      .btn-apply-pill {
        background: linear-gradient(90deg, #e45d94, #f06eaa);
        color: white !important;
        border: none;
        border-radius: 50px;
        padding: 8px 25px !important;
        font-weight: 600;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(228, 93, 148, 0.3);
        transition: all 0.3s;
        margin-left: 15px;
      }
      .btn-apply-pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(228, 93, 148, 0.5);
        filter: brightness(1.1);
      }

      .header-icon-link {
        color: white !important;
        font-size: 1.1rem;
        padding: 0 10px;
        transition: color 0.3s;
      }
      .header-icon-link:hover {
        color: var(--pink) !important;
      }

      .lang-switcher-btn {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.15);
        color: white;
        border-radius: 8px;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.3s;
      }
      .lang-switcher-btn:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.3);
        color: white;
      }

      @media (max-width: 991px) {
        .logo-section-new img { height: 60px; }
        .navbar-collapse {
          background: rgba(0, 0, 0, 0.45) !important;
          padding: 0 !important;
          border-radius: 0 !important;
          margin-top: 0 !important;
        }
      }

      /* Premium Footer Design */
      .premium-footer {
        position: relative;
        background-image: url('image/img_banner02.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        color: #fff;
        padding-top: 80px;
        padding-bottom: 20px;
        border-top: 2px solid rgba(228, 93, 148, 0.3);
      }
      .premium-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0 0 0 / 90%);
        z-index: 0;
      }
      .premium-footer .container {
        position: relative;
        z-index: 1;
      }
      .footer-title {
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 30px;
        color: #fff;
        position: relative;
        padding-bottom: 10px;
      }
      .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .footer-links li {
        margin-bottom: 12px;
      }
      .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 300;
        transition: all 0.3s;
      }
      .footer-links a:hover {
        color: var(--pink);
        padding-left: 5px;
      }
      .footer-contact-info {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.8;
      }
      .social-icons {
        display: flex;
        gap: 15px;
        margin-top: 30px;
      }
      .social-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s;
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      .social-icon:hover {
        background: var(--pink);
        border-color: var(--pink);
        transform: translateY(-5px);
        color: white;
      }
      .footer-bottom {
        margin-top: 80px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.85rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.4);
      }
      .footer-bottom a,
      .footer-bottom span {
        color: rgba(255, 255, 255, 0.4) !important;
        text-decoration: none;
        font-weight: 300;
      }
      .footer-bottom a:hover {
        color: var(--pink);
      }



      /* Side Tabs Layout */
      .admin-tabs-section { padding: 60px 0 100px; position:relative; background: transparent; }
      /* Redesigned Side Tabs Layout */
      .side-tabs-container { 
        position:sticky; 
        top:100px; 
        background:white; 
        border-radius:40px; 
        padding:35px; 
        box-shadow: 0 20px 50px rgba(0,0,0,0.06); 
        border: none;
      }
      .side-tabs-container h6 {
        color: #2d2a54;
        font-weight: 800;
        font-size: 1.4rem;
        margin-bottom: 25px !important;
        padding-left: 10px;
      }
      .side-tabs .nav-link { 
        text-align:left; 
        padding:16px 24px; 
        margin-bottom:8px; 
        border-radius:20px; 
        color:#555; 
        font-size:1.05rem; 
        font-weight:600; 
        transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        border:none; 
        background:transparent; 
        display:flex; 
        align-items:center; 
        gap:15px; 
      }
      .side-tabs .nav-link i { 
        width:25px; 
        text-align:center; 
        font-size:1.2rem; 
        transition: transform 0.3s;
      }
      .side-tabs .nav-link:hover { 
        background-color: #f8f9ff;
        color: #6a5999;
        transform: translateX(8px);
      }
      .side-tabs .nav-link.active { 
        background: linear-gradient(90deg, #6a5999 0%, #d85d91 100%) !important;
        color: white !important; 
        box-shadow: 0 12px 24px rgba(216, 93, 145, 0.35) !important;
        transform: scale(1.02);
      /* } */
        color: white !important; 
        box-shadow: 0 12px 24px rgba(216, 93, 145, 0.35) !important;
        transform: scale(1.02);
      }
      .side-tabs .nav-link.active i {
        transform: scale(1.1);
      }
      .tab-content-container { min-height:600px; }

      /* Admin Cards */
      .admin-card-v2 { background:var(--glass-bg); border:1px solid rgba(255,255,255,0.5); border-radius:20px; padding:25px; transition:all .4s cubic-bezier(.165,.84,.44,1); height:100%; display:flex; flex-direction:column; align-items:center; text-align:center; box-shadow:var(--card-shadow); position: relative; }
      .admin-card-v2:hover { transform:translateY(-10px); box-shadow:0 25px 50px rgba(0,0,0,0.12); border-color:var(--ssru-pink-light); background:white; }
      .admin-photo-v2 { width:100%; border-radius:16px; overflow:hidden; margin-bottom:20px; box-shadow:0 8px 20px rgba(0,0,0,0.1); aspect-ratio:3/4; }
      .admin-photo-v2 img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
      .admin-card-v2:hover .admin-photo-v2 img { transform:scale(1.08); }
      .admin-name-v2 { font-size:1.1rem; font-weight:700; color: var(--navy-soft); margin-bottom:6px; }
      .admin-position-v2 { font-size:0.88rem; color: var(--pink); font-weight:500; margin-bottom:15px; line-height:1.4; min-height:2.5em; display:flex; align-items:center; justify-content:center; }
      .admin-contact-v2 { margin-top:auto; padding-top:15px; width:100%; border-top:1px dashed rgba(0,0,0,0.1); }
      .btn-contact-v2 { background:#f8f7ff; color:var(--navy-soft); border:1px solid rgba(0,0,0,0.05); padding:7px 16px; border-radius:50px; font-size:0.82rem; font-weight:500; transition:all .3s ease; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
      .btn-contact-v2:hover { background:var(--navy-soft); color:white; }

      /* Departments Under Supervision */
      .admin-depts-container { 
        width: 100%; 
        margin-top: 5px; 
        margin-bottom: 20px;
        padding: 12px 15px; 
        background: rgba(248, 247, 255, 0.8); 
        border-radius: 16px; 
        border: 1px solid rgba(93, 90, 136, 0.08); 
        text-align: left;
        cursor: pointer;
        transition: all 0.3s ease;
      }
      .admin-depts-container:hover {
        background: rgba(248, 247, 255, 1);
        border-color: var(--pink);
      }
      .admin-depts-title { 
        font-size: 0.85rem; 
        font-weight: 700; 
        color: var(--navy-soft); 
        margin-bottom: 0; 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        gap: 8px; 
        transition: margin 0.3s;
      }
      .admin-depts-container.active .admin-depts-title {
        margin-bottom: 15px;
      }
      .admin-depts-title div { display: flex; align-items: center; gap: 8px; }
      .admin-depts-title .toggle-icon {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        color: #999;
      }
      .admin-depts-container.active .toggle-icon {
        transform: rotate(180deg);
        color: var(--pink);
      }
      .admin-depts-title i { color: var(--pink); font-size: 0.95rem; }
      
      .admin-depts-list-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .admin-depts-container.active .admin-depts-list-wrapper {
        max-height: 800px;
      }
      .admin-depts-container.active .admin-depts-title {
        margin-bottom: 15px;
      }

      .admin-depts-list { 
        list-style: none; 
        padding: 0; 
        margin: 0; 
        display: flex; 
        flex-direction: column; 
        gap: 8px; 
        counter-reset: dept-counter;
        padding-bottom: 5px;
      }
      .admin-depts-list li { 
        font-size: 0.78rem; 
        color: #666; 
        line-height: 1.4; 
        padding-left: 22px; 
        position: relative; 
      }
      .admin-depts-list li::before { 
        counter-increment: dept-counter;
        content: counter(dept-counter) "."; 
        position: absolute; 
        left: 0; 
        top: 0; 
        font-weight: 600;
        color: var(--pink); 
        font-size: 0.75rem;
      }

      /* Featured President */
      .president-featured { background:white; border-radius:30px; box-shadow:0 25px 60px rgba(0,0,0,0.07); padding:40px; display:flex; align-items:center; gap:40px; position:relative; overflow:hidden; }
      .president-featured::after { content:'"'; position:absolute; top:-20px; right:30px; font-size:12rem; color:rgba(228,93,148,0.05); font-family:serif; }
      .president-featured .pf-photo { flex:0 0 240px; border-radius:20px; overflow:hidden; box-shadow:0 15px 35px rgba(0,0,0,0.15); aspect-ratio:3/4; }
      .president-featured .pf-photo img { width:100%; height:100%; object-fit:cover; }
      .president-featured .pf-info { position:relative; z-index:2; }
      .president-featured .pf-info h3 { font-size:1.5rem; font-weight:700; color: var(--navy-soft); margin-bottom:10px; }
      .president-featured .pf-info .badge { background: var(--pink); padding:8px 18px; font-size:0.95rem; border-radius:50px; margin-bottom:20px; }
      .pf-quote { font-style:italic; color:#555; font-size:1.05rem; line-height:1.6; margin-bottom:25px; border-left:4px solid var(--pink); padding-left:20px; }
 
      /* Category Title inside tab */
      .role-header { margin-bottom:40px; }
      .role-header h3 { font-size:1.8rem; font-weight:700; color: var(--navy-soft); margin-bottom:8px; }
      .role-header p { color:#888; font-size:0.95rem; }
      .role-header hr { width:60px; height:4px; background:linear-gradient(90deg, var(--navy-soft), var(--pink)); border:none; border-radius:2px; opacity:1; }

      @media (max-width:991px) {
        .side-tabs-container { position:relative; top:auto; margin-bottom:30px; }
        .side-tabs { flex-direction:row !important; flex-wrap:wrap; gap:5px; }
        .side-tabs .nav-link { font-size:0.82rem; padding:8px 12px; }
        .president-featured { flex-direction:column; padding:30px; text-align:center; }
        .president-featured .pf-photo { flex:0 0 auto; width:220px; margin:0 auto; }
        .pf-quote { text-align:left; }
        .hero-v2 h1 { font-size:2.5rem; }
      }
/* ============================================
   ★ ปิดส่วนเพิ่มใหม่: หน้า administrators.php
   ============================================ */
    
    /* anchor jump */
    .scroll-offset {
      scroll-margin-top: 100px;
    }

    /* PDPA */
    .custom-cookie-banner {
        position: fixed !important; /* บังคับให้อยู่บนหน้าจอเสมอ */
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #555868 !important; /* สีเทาตามตัวอย่าง */
        color: #ffffff !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        /* กำหนดค่า z-index ให้สูงมากๆ เพื่อไม่ให้ Element อื่นในเว็บมาบัง */
        z-index: 999999 !important; 
        font-size: 14px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3) !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .cookie-container {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1200px !important; /* จำกัดความกว้างเนื้อหา */
        justify-content: space-between !important;
        gap: 15px !important;
    }

    .cookie-text-content {
        flex-grow: 1 !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    .cookie-policy-link {
        color: #ffffff !important;
        text-decoration: underline !important;
        margin-left: 5px !important;
        white-space: nowrap !important;
    }

    .cookie-policy-link:hover {
        color: #dddddd !important;
    }

    .cookie-close-trigger {
        background: none !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 24px !important;
        cursor: pointer !important;
        padding: 0 5px !important;
        line-height: 1 !important;
        opacity: 0.8 !important;
        transition: opacity 0.2s !important;
        display: flex !important;
        align-items: center !important;
    }

    .cookie-close-trigger:hover {
        opacity: 1 !important;
    }

    /* คลาสสำหรับซ่อนแถบแจ้งเตือน */
    .custom-cookie-banner.cookie-hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Responsive ปรับแต่งเมื่อเปิดในมือถือ */
    @media (max-width: 768px) {
        .custom-cookie-banner {
            padding: 12px 15px !important;
            font-size: 13px !important;
        }
        .cookie-container {
            gap: 10px !important;
        }
    }
    /* end PDPA */

    .boxcontactci a:link {
        color:#535697;
        text-decoration: none;
    }

    .boxcontactci a:hover {
        color:#f170a7;
    }

    .boxcontactci a:visited {
        color:#535697;
    }

    .boxcontactci a:visited:hover {
        color:#f170a7;
    }

    .boxcontactci i {
        margin-right: 10px;
    }