* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Sarabun', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff7b7b 100%);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            padding-top: 100px; /* Ensure body has padding for fixed header */
        }

        /* Background Image Overlay */
        .background-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=1080&fit=crop') center/cover;
            z-index: -2;
            filter: brightness(0.7);
        }

        .background-gradient {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
            z-index: -1;
        }

        /* Top Statistics Bar */
        .stats-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            z-index: 1000;
        }

        .stat-group {
            display: flex;
            gap: 60px;
        }

        .stat-item {
            text-align: center;
            color: white;
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 4px;
        }

        .stat-number.orange { color: #ff6b4a; }
        .stat-number.purple { color: #9c88ff; }
        .stat-number.white { color: #ffffff; }

        .stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
            font-weight: 400;
        }

        .top-right-menu {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .menu-button {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: white;
            padding: 8px 16px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .menu-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .menu-button.primary {
            background: #8b5cf6;
            border-color: #8b5cf6;
        }

        .menu-button.primary:hover {
            background: #7c3aed;
        }

        .hamburger-menu {
            display: none; /* Hidden by default on large screens */
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 10px;
            z-index: 1001; /* Ensure it's above other elements */
        }

        .top-right-menu-wrapper {
            /* Base styles for wrapper, will be overridden by media query */
            display: flex;
        }

        @media (max-width: 768px) {
            .stats-bar {
                justify-content: space-between; /* Distribute items */
            }

            .top-right-menu-wrapper {
                display: none; /* Hidden by default on small screens */
                position: absolute;
                top: 70px; /* Below the stats-bar */
                left: 0;
                width: 100%;
                background: rgba(0, 0, 0, 0.9); /* Dark overlay */
                flex-direction: column;
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
                z-index: 999;
            }

            .top-right-menu-wrapper.active {
                display: flex; /* Show when active */
            }

            .top-right-menu {
                flex-direction: column;
                gap: 15px;
                width: 100%;
            }

            .menu-button {
                width: 80%; /* Make buttons wider */
                text-align: center;
                justify-content: center;
            }

            .hamburger-menu {
                display: block; /* Show hamburger on small screens */
            }
        }

        /* Main Content Area */
        .main-content {
            min-height: calc(100vh - 80px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }

        /* Profile Section */
        .profile-section {
            text-align: center;
            margin-bottom: 60px;
        }

        .profile-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.3);
            object-fit: cover;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .profile-name {
            font-size: 2rem;
            font-weight: 700;
            color: white;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .profile-title {
            font-size: 1.8rem;
            color: rgba(234, 227, 98, 0.9);
            font-weight: 400;
        }

        /* Search Bar */
        .search-container {
            width: 100%;
            max-width: 600px;
            margin-bottom: 40px;
            position: relative;
        }

        .search-box {
            width: 100%;
            height: 60px;
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 30px;
            padding: 0 25px 0 60px;
            font-size: 1.1rem;
            font-family: 'Sarabun', sans-serif;
            outline: none;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .search-box:focus {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            transform: translateY(-2px);
        }

        .search-icon {
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            color: #e74c3c;
            font-size: 1.2rem;
        }

        .search-btn {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: #4285F4; /* Google Blue */
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            background: #3367D6; /* Darker Blue */
            transform: translateY(-50%) scale(1.1);
        }

        /* Quick Access Icons */
        .quick-access {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .quick-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: white;
            transition: all 0.3s ease;
            padding: 20px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            min-width: 100px;
        }

        .quick-icon:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
        }

        .quick-icon-img {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .quick-icon-label {
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Bottom Section */
        .crypto-button {
            background: #28a745; /* Green */
            border: 1px solid #28a745;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .crypto-button:hover {
            background: #218838; /* Darker Green */
        }

        /* News Section */
        .news-section {
            position: fixed;
            bottom: 100px;
            right: 40px;
            width: 350px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(209, 11, 11, 0.2);
            backdrop-filter: blur(15px);
        }

        .news-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            color: #333;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .news-source {
            color: #666;
        }

        .news-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            line-height: 1.4;
            margin-bottom: 15px;

        }

        .news-image {
            width: 80px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            float: right;
            margin-left: 15px;
        }

        .customize-btn {
            position: fixed;
            bottom: 40px;
            right: 40px;
            background: #dc3545; /* Red */
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .customize-btn:hover {
            background: #c82333; /* Darker Red */
            transform: translateY(-2px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .stats-bar {
                padding: 0 20px;
                height: 70px;
            }

            .stat-group {
                gap: 30px;
            }

            .stat-number {
                font-size: 1.5rem;
            }

            .stat-label {
                font-size: 0.8rem;
            }

            .research-page-title, .service-page-title, .schedule-page-title {
                font-size: 2.2rem;
            }

            .research-card-title, .service-card-title {
                font-size: 1.2rem;
            }

            .profile-name {
                font-size: 1.8rem;
            }

            .profile-title {
                font-size: 1.5rem;
            }

            .quick-access {
                gap: 15px;
            }

            .news-section {
                position: relative;
                right: auto;
                bottom: auto;
                width: 100%;
                max-width: 400px;
                margin: 20px auto;
            }

            .customize-btn {
                position: relative;
                right: auto;
                bottom: auto;
                margin: 20px auto;
                display: flex;
            }
        }

        @media (max-width: 480px) {
            .research-page-title, .service-page-title, .schedule-page-title {
                font-size: 1.8rem;
            }

            .research-card-title, .service-card-title {
                font-size: 1.1rem;
            }

            .profile-name {
                font-size: 1.5rem;
            }

            .profile-title {
                font-size: 1.2rem;
            }

            .stat-group {
                gap: 20px;
            }

            .stat-number {
                font-size: 1.2rem;
            }

            .quick-access {
                gap: 10px;
            }

            .quick-icon {
                padding: 15px;
                min-width: 80px;
            }

            .quick-icon-img {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }

        .animate-delay-1 { animation-delay: 0.1s; }
        .animate-delay-2 { animation-delay: 0.2s; }
        .animate-delay-3 { animation-delay: 0.3s; }

        /* Schedule Section */
        .schedule-section {
            position: absolute;
            top: 100px;
            right: 20px;
            width: 450px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(15px);
            z-index: 999;
            color: white;
        }

        .schedule-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
        }

        .schedule-table th, .schedule-table td {
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 5px;
            text-align: center;
        }

        .schedule-table thead th {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .day-column {
            background-color: rgba(0, 0, 0, 0.15);
            font-weight: bold;
        }

        .class-cell {
            background-color: rgba(139, 92, 246, 0.25);
        }

        .empty-cell {
            background-color: rgba(255, 255, 255, 0.02);
        }

/* Footer Section */
.footer-section {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    color: white;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    padding: 10px;
    min-width: 200px; /* Ensure columns don't get too small */
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffeb3b; /* Yellowish color for headings */
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-top: 10px;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-column {
        margin-bottom: 20px;
    }
}

/* Research Page Specific Styles */
.research-page-container {
    width: 100%;
    max-width: 1400px;
    margin: 120px auto 40px auto; /* Adjust margin for fixed navbar */
    padding: 20px;
}

.research-page-title {
    text-align: center;
    font-size: 3rem;
    color: #ffeb3b;
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.research-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.45);
}

.research-card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.research-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.research-card:hover .research-card-image {
    transform: scale(1.05);
}

.research-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.research-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffeb3b;
    margin-bottom: 10px;
}

.research-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
    margin-bottom: 15px;
}

.research-card-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.research-card-meta strong {
    color: rgba(255, 255, 255, 0.9);
}

.research-card-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.research-gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.research-gallery-thumbnail:hover {
    transform: scale(1.1);
    border-color: #ffeb3b;
}

.research-card-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.research-card-button {
    display: inline-block;
    background: #8b5cf6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.research-card-button:hover {
    background: #7c3aed;
}

.no-research-message {
    color: white;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1; /* Span across all columns */
    font-size: 1.2rem;
    padding: 40px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
}

/* Schedule Page Specific Styles */
.schedule-page-container {
    width: 100%;
    max-width: 1400px;
    margin: 120px auto 40px auto; /* Adjust margin for fixed navbar */
    padding: 20px;
}

.schedule-page-title {
    text-align: center;
    font-size: 3rem;
    color: #ffeb3b;
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Academic Services Page Specific Styles */
.service-page-container {
    width: 100%;
    max-width: 1400px;
    margin: 120px auto 40px auto;
    padding: 20px;
}

.service-page-title {
    text-align: center;
    font-size: 3rem;
    color: #ffeb3b;
    margin-bottom: 40px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.45);
}

.service-card-image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #333;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffeb3b;
    margin-bottom: 15px;
}

.service-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.service-card-meta p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-meta .fas {
    color: #ffeb3b;
}

.service-card-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.service-gallery-thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.service-gallery-thumbnail:hover {
    transform: scale(1.1);
    border-color: #ffeb3b;
}

.service-card-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #8b5cf6;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.service-card-button:hover {
    background: #7c3aed;
}

.service-card-button.alt {
    background: #5a67d8;
}
.service-card-button.alt:hover {
    background: #4c58b6;
}

.no-service-message {
    color: white;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    padding: 40px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
}

/* Schedule Section */
.schedule-section {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 450px;
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    box-shadow: none; /* Remove shadow for full transparency */
    backdrop-filter: none; /* Remove blur for full transparency */
    z-index: 999;
    color: white;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.schedule-table th, .schedule-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px;
    text-align: center;
}

.schedule-table thead th {
    background-color: rgba(0, 0, 0, 0.1);
}

.day-column {
    background-color: rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.class-cell {
    background-color: rgba(139, 92, 246, 0.25);
}

.empty-cell {
    background-color: rgba(255, 255, 255, 0.02);
}

