/* Global Square Look - Removing Rounded Corners */
.btn,
.card,
.badge,
.nav-pills .nav-link,
.form-control,
.form-select,
.rounded-pill,
.rounded-4,
.rounded-3,
.rounded-2,
.rounded,
.npu-news-img-wrapper,
.quick-link-card,
.social-icon-hero,
.icon-box,
.back-to-top,
.npu-control-btn,
.carousel-caption-custom,
.section-divider {
    border-radius: 0 !important;
}

:root {
    --npu-blue: #003366;
    --npu-blue-light: #004a99;
    --npu-blue-dark: #002244;
    --npu-yellow: #FFD700;
    --npu-dark: #1a1a1a;
    --npu-light: #f8f9fa;
    --npu-white: #ffffff;
    --npu-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.bg-blue {
    background-color: var(--npu-blue);
}

.text-blue {
    color: var(--npu-blue);
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* New Hero Style (Admission Inspired) */
.hero-admission {
    height: auto;
    /* ให้ปรับตามขนาดของ carousel wrapper */
    overflow: hidden;
    position: relative;
    background-color: transparent;
    /* เปลี่ยนจากดำเป็น transparent */
}

.hero-admission .carousel-item {
    height: 600px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.object-fit-cover {
    object-fit: cover;
}

.hero-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.2) 0%, rgba(0, 34, 68, 0.2) 100%);
    /* Reduced from 0.6 */
    z-index: 2;
}

.hero-content-overlay {
    z-index: 2;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.ls-2 {
    letter-spacing: 2px;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 40px;
    right: 5%;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Social Sidebar in Hero */
.social-sidebar-hero {
    z-index: 10;
}

.social-icon-hero {
    transition: transform 0.3s;
    text-decoration: none;
}

.social-icon-hero:hover {
    transform: scale(1.1);
    color: white !important;
}

/* Hero Title & Text */
.hero-text-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-left: 5px solid var(--npu-yellow);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navbar Customization */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand,
.nav-link {
    color: var(--npu-blue) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
}

.nav-link:hover {
    color: var(--npu-blue-light) !important;
}

/* Quick Link Cards (Post Style) - Blue-Gold Theme */
.quick-link-card-new {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 51, 102, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    position: relative;
}

.quick-link-card-new::before {
    display: none;
}

.quick-link-card-new:hover::before {
    display: none;
}

.quick-link-card-new:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 51, 102, 0.18);
    border-color: rgba(0, 51, 102, 0.15);
}

.quick-link-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.quick-link-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.2) 0%, transparent 50%, rgba(0, 51, 102, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-link-card-new:hover .quick-link-img-wrapper::after {
    opacity: 1;
}

.quick-link-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.quick-link-card-new:hover .quick-link-img {
    transform: scale(1.1);
}

/* Icon Badge Overlay - Disabled */
.quick-link-img-wrapper::before {
    display: none;
}

.quick-link-card-new:hover .quick-link-img-wrapper::before {
    display: none;
}

.quick-link-body {
    padding: 20px;
    flex-grow: 1;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.quick-link-body h5 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #003366;
    transition: color 0.3s ease;
}

.quick-link-card-new:hover .quick-link-body h5 {
    color: #001a33;
}

.quick-link-body small {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #6c757d;
}

/* Uniform Gradient Buttons - Blue-Gold Theme */
.btn-gradient-blue,
.btn-gradient-red,
.btn-gradient-yellow,
.btn-gradient-green {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    color: white;
    transition: all 0.4s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.btn-gradient-blue::before,
.btn-gradient-red::before,
.btn-gradient-yellow::before,
.btn-gradient-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: left 0.5s ease;
}

.quick-link-card-new:hover .btn-gradient-blue::before,
.quick-link-card-new:hover .btn-gradient-red::before,
.quick-link-card-new:hover .btn-gradient-yellow::before,
.quick-link-card-new:hover .btn-gradient-green::before {
    left: 100%;
}

.btn-gradient-blue span,
.btn-gradient-red span,
.btn-gradient-yellow span,
.btn-gradient-green span {
    position: relative;
    z-index: 1;
    color: white !important;
    text-shadow: none;
}

.btn-gradient-blue i,
.btn-gradient-red i,
.btn-gradient-yellow i,
.btn-gradient-green i {
    color: white !important;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-link-card-new:hover .btn-gradient-blue i,
.quick-link-card-new:hover .btn-gradient-red i,
.quick-link-card-new:hover .btn-gradient-yellow i,
.quick-link-card-new:hover .btn-gradient-green i {
    transform: translateX(5px);
}

.btn-gradient-blue:hover,
.btn-gradient-red:hover,
.btn-gradient-yellow:hover,
.btn-gradient-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.quick-link-body {
    padding: 10px 12px;
    flex-grow: 1;
}

/* Remove old footer padding override/colors */
.quick-link-footer {
    padding: 10px;
    background: transparent !important;
}

/* NPU News Card */
.npu-news-card {
    border: 1px solid #d1d1d1;
    /* Clearer border */
    background: #fff;
    /* White background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Slightly clearer shadow */
    border-radius: 12px;
    /* Rounded corners for the card */
    transition: all 0.3s ease;
    padding: 15px;
    /* Padding inside the card */
    height: 100%;
    /* Full height */
}

.npu-news-card:hover {
    transform: translateY(-5px);
    /* Lift up on hover */
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.2);
    /* Stronger shadow on hover */
    border-color: var(--npu-blue);
    /* Blue border on hover */
}

.npu-news-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 220px;
}

.npu-news-card:hover .npu-news-img-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.npu-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.npu-news-card:hover .npu-news-img {
    transform: scale(1.05);
}

.npu-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.npu-news-card:hover .npu-news-title {
    color: var(--npu-blue);
}

.npu-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.npu-news-views {
    background-color: var(--npu-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Buttons */
.btn-warning {
    background-color: var(--npu-yellow);
    border-color: var(--npu-yellow);
    color: #000;
}

.btn-warning:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #000;
}

/* Fixed Bottom Right Container */
.fixed-bot-right {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    align-items: center;
}

/* Floating Action Button Generic Style */
.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* Main FAB (Comments/Contact) */
.fab-main {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #faa916 100%);
    color: #003366;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.fab-main:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.fab-main.active {
    background: #ff4d4d;
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

/* Sub Buttons Container */
.floating-buttons-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-sub-buttons {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-sub-buttons.show {
    opacity: 1;
    pointer-events: auto;
    bottom: 75px;
}

.fab-sub-buttons .fab-btn {
    width: 45px;
    height: 45px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-sub-buttons.show .fab-btn {
    opacity: 1;
    transform: translateY(0);
}

.fab-sub-buttons.show .fab-btn:nth-child(1) { transition-delay: 0.2s; }
.fab-sub-buttons.show .fab-btn:nth-child(2) { transition-delay: 0.15s; }
.fab-sub-buttons.show .fab-btn:nth-child(3) { transition-delay: 0.1s; }
.fab-sub-buttons.show .fab-btn:nth-child(4) { transition-delay: 0.05s; }

/* Sub Buttons Colors */
.fab-email { background: #ea4335; color: white; }
.fab-phone { background: #34a853; color: white; }
.fab-facebook { background: #1877f2; color: white; }
.fab-line { background: #00c300; color: white; }

/* Dark Mode Toggle */
.fab-darkmode {
    background: #2c3e50;
    color: #f1c40f;
    border: 2px solid #f1c40f;
}

.fab-darkmode:hover {
    background: #34495e;
    color: #ffd700;
}

body.dark-mode .fab-darkmode {
    background: #f1c40f;
    color: #2c3e50;
    border-color: #f39c12;
}

/* Back to Top */
.fab-top {
    background: rgba(255, 255, 255, 0.9);
    color: #003366;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-top:hover {
    background: #003366;
    color: #ffd700;
}

/* Tooltip */
[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 1;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slider Controls */
.npu-slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.npu-control-btn {
    width: 40px;
    height: 40px;
    background-color: var(--npu-blue);
    /* Changed to Blue */
    color: white;
    /* Changed to White */
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.npu-control-btn:hover {
    opacity: 0.8;
    background-color: var(--npu-blue-light);
    /* Lighter blue on hover */
    color: white;
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    padding: 60px 0 20px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--npu-yellow);
}

.section-title {
    font-weight: 700;
    color: #fff;
    position: relative;
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--npu-blue) 0%, var(--npu-blue-light) 100%);
    padding: 15px 0;
    /* Adjusted padding for full width center text */
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.3);
    margin-bottom: 30px;
    border: none;
}

.bg-soft-blue {
    background-color: #f3f7fb;
}

/* Modern Navbar */
.npu-navbar {
    background: linear-gradient(90deg, #003366 0%, #002244 100%) !important;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* Option 4: Animated Shine Style */
.npu-navbar .navbar-brand {
    gap: 10px;
    /* Reset gap */
    position: relative;
}

.npu-navbar .navbar-brand img {
    padding-right: 0;
    border-right: none;
    height: 60px;
    /* Standard height */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    /* Subtle glow for logo */
}

.npu-navbar .navbar-brand span.fw-bold {
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
    display: inline-block;

    /* Shine Effect */
    background: linear-gradient(to right, #fff 0%, #fff 40%, #FFD700 50%, #fff 60%, #fff 100%);
    background-size: 200% auto;
    color: #000;
    /* Fallback */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s infinite linear;
}

.npu-navbar .navbar-brand span.text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes textShine {
    0% {
        background-position: -200% center;
    }

    10% {
        background-position: 0% center;
    }

    100% {
        background-position: 0% center;
        /* Stay still for most of the time */
    }
}

/* Navigation Link Styling - Glow Text & Icon Zoom */
.npu-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 5px;
    background: transparent !important;
    position: relative;
}

/* Hover State */
.npu-navbar .nav-link:hover,
.npu-navbar .nav-link:focus {
    color: #FFD700 !important;
    /* Gold */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    /* Glow Effect */
    transform: translateY(-1px);
    background: transparent !important;
    box-shadow: none;
}

/* Active State */
.npu-navbar .nav-link.active {
    color: #FFD700 !important;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    /* Stronger Glow */
    transform: translateY(-1px);
    background: transparent !important;
    box-shadow: none;
    border: none !important;
    backdrop-filter: none;
}

/* Active Indicator Dot */
.npu-navbar .nav-link.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 8px #FFD700;
}

/* Icon Animation */
.npu-navbar .nav-link i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
}

.npu-navbar .nav-link:hover i {
    transform: scale(1.3);
    /* Significant Zoom */
}

.npu-navbar .btn-outline-warning {
    color: #ffd700;
    border-color: #ffd700;
    border-radius: 30px !important;
    transition: all 0.3s ease;
}

.npu-navbar .btn-outline-warning:hover {
    background-color: #ffd700;
    color: #003366;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Modern Blue Table */
.table-npu {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.table-npu thead th {
    background-color: #ffffff;
    color: #003366;
    font-weight: 700;
    padding: 15px;
    border-bottom: 2px solid #00c6ff;
    letter-spacing: 0.5px;
}

.table-npu tbody tr {
    transition: all 0.2s ease;
}

.table-npu tbody tr:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
}

.table-npu td {
    border-bottom: 1px solid #eef2f7;
    padding: 20px 15px;
    vertical-align: middle;
    background-color: #fff;
}

.table-npu tr:last-child td {
    border-bottom: none;
}

/* Full Width Section Header */
/* Full Width Section Header - Clean Text Left */
.npu-section-header {
    background: transparent;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.npu-section-header h2 {
    color: #003366;
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: none;
    position: relative;
    display: inline-block;
    padding-left: 15px;
    border-left: 5px solid #00c6ff;
    /* Cyan accent */
    line-height: 1;
}

.npu-section-header::before {
    display: none;
}

/* Document Tabs Styling */
#docTabs .nav-link {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    /* Square look like the image */
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#docTabs .nav-link:hover {
    background-color: #e9ecef;
    color: #003366;
}

#docTabs .nav-link.active {
    background-color: #0066ff !important;
    /* Bright Blue */
    color: white !important;
    border-color: #0066ff;
    box-shadow: 0 4px 6px rgba(0, 102, 255, 0.2);
}

/* Expanding Activity Gallery */
.activity-gallery {
    display: flex;
    width: 100%;
    height: 500px;
    /* Tall vertical images */
    gap: 15px;
    padding: 20px 0;
}

.activity-item {
    flex: 1;
    border-radius: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.4, 0.45, 1.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    filter: grayscale(0.5);
    /* Dim inactive items */
}

.activity-item.active {
    flex: 5;
    /* Expand significantly */
    filter: grayscale(0);
}

/* Hover-based expansion (alternative to JS click) */
.activity-gallery:hover .activity-item {
    filter: grayscale(1);
    /* Determine others */
}

.activity-item:hover {
    flex: 6;
    /* Expand on hover */
    filter: grayscale(0) !important;
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.activity-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.activity-item:hover .activity-content {
    opacity: 1;
    transform: translateY(0);
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.activity-desc {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Navbar Logo Hover Effect */
.navbar-brand .navbar-logo {
    transition: filter 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
}

/* Navbar Icons Styling */
.nav-icon {
    margin-right: 8px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly transparent white */
    transition: all 0.3s ease;
    vertical-align: middle;
}

.nav-link:hover .nav-icon {
    color: #ffd700;
    /* Gold on hover */
    transform: scale(1.2);
    /* Slight zoom */
}

.nav-link.active .nav-icon {
    color: #ffd700;
    /* Gold for active item */
}

/* ============================================
   🎨 ANIMATIONS COLLECTION
   ============================================ */

/* 1. Pulse Glow - สำหรับ Logo */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5),
            0 0 10px rgba(255, 215, 0, 0.3),
            0 0 15px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.logo-pulse {
    animation: pulseGlow 2s ease-in-out infinite;
    border-radius: 50%;
}

/* 2. Floating Cards - การ์ดลอยขึ้นลง */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.quick-link-card-new {
    animation: float 4s ease-in-out infinite;
}

.quick-link-card-new:nth-child(2) {
    animation-delay: 0.5s;
}

.quick-link-card-new:nth-child(3) {
    animation-delay: 1s;
}

.quick-link-card-new:nth-child(4) {
    animation-delay: 1.5s;
}

/* 3. Sparkle Effect - ปุ่มประกายวิ่ง */
@keyframes sparkle {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.btn-sparkle {
    position: relative;
    overflow: hidden;
}

.btn-sparkle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    animation: sparkle 3s infinite;
}

/* 4. Shake/Wiggle - สั่นเพื่อดึงความสนใจ */
@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-5deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(5deg);
    }
}

.shake-attention {
    animation: shake 0.5s ease-in-out;
}

.shake-continuous {
    animation: shake 2s ease-in-out infinite;
}

/* 5. Wave Background - คลื่นเคลื่อนไหว */
@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }

    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

.wave-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C57.1,118.92,156.63,69.08,321.39,56.44Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 100px;
    animation: wave 10s linear infinite;
}

/* 6. Counter Animation - นับเลขขึ้น */
.counter-number {
    display: inline-block;
    font-weight: 700;
}

/* 7. Fade In Up - เลื่อนขึ้นมาพร้อม fade */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 8. Zoom In - ซูมเข้ามา */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-out forwards;
}

/* 9. Slide In Left */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* 10. Bounce */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1.5s ease infinite;
}

/* 11. Gradient Animation - สีไล่เคลื่อนที่ */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* 12. Typewriter Effect */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--npu-yellow);
    white-space: nowrap;
    animation:
        typing 3s steps(30) 1s forwards,
        blink 0.75s step-end infinite;
}

/* Golden Text Shine Animation */
@keyframes goldenShine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.golden-text-shine {
    background: linear-gradient(90deg,
            #a5b4fc 20%,
            #ffd700 35%,
            #a5b4fc 50%,
            #a5b4fc 100%);
    background-size: 200% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldenShine 3s linear infinite;
}

/* Modern Heading Decoration */
.npu-section-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.npu-section-header h2 {
    color: var(--npu-blue);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.npu-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 2px;
}

.npu-section-header h2::before {
    content: '\f005';
    /* FontAwesome Star */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -18px;
    left: 70px;
    color: #ffd700;
    font-size: 14px;
    animation: fa-spin 5s linear infinite;
}

/* Image Hover Zoom Effect */
.quick-link-img-wrapper {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.quick-link-img {
    transition: transform 0.5s ease;
}

.quick-link-card-new:hover .quick-link-img {
    transform: scale(1.1);
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}