@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --accent: #F43F5E;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #F3F4F6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Dark Mode Theme Overrides */
body.dark-mode {
    --bg-main: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

body.dark-mode section,
body.dark-mode .rooms-grid,
body.dark-mode #about,
body.dark-mode #rooms,
body.dark-mode #conference,
body.dark-mode #contact {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

body.dark-mode .section-title {
    color: #F8FAFC !important;
}

body.dark-mode .room-card {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .room-details h3 {
    color: #F8FAFC !important;
}

body.dark-mode .room-details p {
    color: #94A3B8 !important;
}

body.dark-mode .room-price {
    color: #818CF8 !important;
}

body.dark-mode .room-img-container {
    background: #334155 !important;
    color: #CBD5E1 !important;
}

body.dark-mode .glass {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode nav a {
    color: #F8FAFC !important;
}

body.dark-mode header.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
}

body.dark-mode footer {
    background: #020617 !important;
}

body.dark-mode .container {
    background: #1E293B !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #0F172A !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}

/* 3D Dark Mode Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Hero Slider Styling */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease-out;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.65) 100%);
    z-index: 1;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1e3a8a;
    transform: translateY(-50%) scale(1.12);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* Slider Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-dots .dot.active, .slider-dots .dot:hover {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.hero {
    min-height: 60vh;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 5% 2rem 5%;
    overflow: hidden;
}

.hero-content {
    max-width: 680px;
    width: 90%;
    text-align: center;
    z-index: 2;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, background 0.4s ease;
}

body.dark-mode .hero-content {
    background: rgba(15, 23, 42, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.8s ease-out;
}

body.dark-mode .hero h1 {
    background: linear-gradient(to right, #A5B4FC, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1.8rem;
    animation: fadeUp 1s ease-out;
}

body.dark-mode .hero p {
    color: #CBD5E1 !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    animation: fadeUp 1.2s ease-out;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
    box-shadow: var(--glass-shadow);
    transition: all 0.2s ease;
    user-select: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .mobile-menu-btn {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Sections */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
    color: var(--text-main);
    font-weight: 800;
}

/* Fluid Responsive Rooms & Conference Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
    max-width: 1350px;
    margin: 0 auto;
    align-items: stretch;
}

.room-card {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.16), 0 12px 20px -8px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.room-img-container {
    height: 220px;
    width: 100%;
    background: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
}

.room-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover .room-img-container img {
    transform: scale(1.08);
}

.room-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.room-price {
    font-size: 1.25rem;
    color: #2563eb;
    font-weight: 800;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.room-features-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    width: fit-content;
}

body.dark-mode .room-features-badge {
    background: #334155;
    color: #cbd5e1;
}

/* Dedicated Online Course Card Styling */
.course-card {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(22, 163, 74, 0.20), 0 12px 20px -8px rgba(15, 23, 42, 0.08);
    border-color: #86efac;
}

.course-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-img-box img {
    transform: scale(1.08);
}

body.dark-mode .course-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Service Search Cards (Certificate & Results) */
.service-search-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.service-search-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

body.dark-mode .service-search-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode #training,
body.dark-mode #certificate,
body.dark-mode #result {
    background-color: #0f172a !important;
}

body.dark-mode .course-card h3,
body.dark-mode .service-search-card h3 {
    color: #f8fafc !important;
}

body.dark-mode .service-search-card label {
    color: #cbd5e1 !important;
}

body.dark-mode .service-search-card input,
body.dark-mode .service-search-card select {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

body.dark-mode .section-title {
    color: #f8fafc !important;
}

/* Interactive Training Service Modal Popups */
.training-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.training-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.training-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 2.25rem 2rem;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4);
    border: 1px solid #e2e8f0;
    transform: scale(0.94) translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.training-modal-overlay.show .training-modal-card {
    transform: scale(1) translateY(0);
}

.training-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.training-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

body.dark-mode .training-modal-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

body.dark-mode .training-modal-close {
    background: #334155;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .training-modal-card {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
        max-height: 94vh;
    }
}

/* Footer */
footer {
    background: var(--text-main);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

/* Image Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrapper {
    width: 100%;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

.lightbox-img-wrapper img {
    max-width: 720px;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.lightbox-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ef4444;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 10;
}

.lightbox-close-btn:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1e3a8a;
    transform: translateY(-50%) scale(1.12);
}

.lightbox-nav-btn.prev { left: 12px; }
.lightbox-nav-btn.next { right: 12px; }

.lightbox-caption {
    margin-top: 0.8rem;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Header Nav Dropdown Menu Styles */
nav ul li.nav-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 6px; /* Continuous hover bridge */
}

nav ul li.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 99999;
    list-style: none;
    border: 1px solid #cbd5e1;
    margin-top: 0;
}

/* Invisible bridge to prevent hover loss when moving mouse downwards */
nav ul li.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

body.dark-mode nav ul li.nav-dropdown .dropdown-menu {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

nav ul li.nav-dropdown:hover .dropdown-menu,
nav ul li.nav-dropdown.active .dropdown-menu,
nav ul li.nav-dropdown:focus-within .dropdown-menu {
    display: block !important;
    animation: fadeInDown 0.2s ease;
}

nav ul li.nav-dropdown .dropdown-menu li {
    margin: 0;
    display: block;
    width: 100%;
}

nav ul li.nav-dropdown .dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.25rem;
    color: #1e293b !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 6px;
    margin: 2px 6px;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 100000;
}

body.dark-mode nav ul li.nav-dropdown .dropdown-menu li a {
    color: #f8fafc !important;
}

nav ul li.nav-dropdown .dropdown-menu li a:hover {
    background: #eff6ff;
    color: #2563eb !important;
}

body.dark-mode nav ul li.nav-dropdown .dropdown-menu li a:hover {
    background: #334155;
    color: #60a5fa !important;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================================
   RESPONSIVE DESIGN BREAKPOINTS (Mobile, Tablet, Laptop, Desktop)
   ========================================= */

/* 1. Large Laptops & Desktops (1200px and down) */
@media (max-width: 1200px) {
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* 2. Tablets & Small Laptops (992px and down) */
@media (max-width: 992px) {
    header {
        padding: 0.85rem 4%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 1.25rem 1.5rem;
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        border-radius: 0 0 16px 16px;
    }

    body.dark-mode nav {
        background: rgba(15, 23, 42, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    nav.mobile-active {
        display: block !important;
        animation: fadeInDown 0.25s ease-out;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1.05rem;
    }

    nav ul li a:hover {
        background: #f1f5f9;
    }

    body.dark-mode nav ul li a:hover {
        background: #1e293b;
    }

    nav ul li.nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        border-radius: 8px;
        margin: 0.4rem 0 0.5rem 0.5rem;
        padding: 0.4rem;
        width: calc(100% - 0.5rem);
    }

    body.dark-mode nav ul li.nav-dropdown .dropdown-menu {
        background: #0f172a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .hero {
        min-height: 480px;
        height: auto;
        padding: 6rem 4% 3rem 4%;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    section {
        padding: 3.5rem 4%;
    }
}

/* 3. Mobile Devices (640px and down) */
@media (max-width: 640px) {
    header {
        padding: 0.75rem 3%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .slider-arrow.prev { left: 8px; }
    .slider-arrow.next { right: 8px; }

    .slider-dots {
        bottom: 15px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }

    .lightbox-content {
        width: 95%;
        padding: 0.8rem;
    }

    .lightbox-img-wrapper {
        max-height: 360px;
    }

    .lightbox-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Registration Paper Dark Mode & Print Overrides (Fixes white text on white paper and light print) */
.registration-paper,
body.dark-mode .registration-paper,
.paper,
body.dark-mode .paper,
.printable-area,
body.dark-mode .printable-area {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.registration-paper *,
body.dark-mode .registration-paper *,
.paper *,
body.dark-mode .paper *,
.printable-area *,
body.dark-mode .printable-area * {
    color: #0f172a !important;
}

.registration-paper .form-header h2,
body.dark-mode .registration-paper .form-header h2,
.paper .header-title h2,
body.dark-mode .paper .header-title h2 {
    color: #1e3a8a !important;
}

.registration-paper .info-table th,
body.dark-mode .registration-paper .info-table th,
.paper .info-table th,
body.dark-mode .paper .info-table th {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

.registration-paper .info-table td,
body.dark-mode .registration-paper .info-table td,
.paper .info-table td,
body.dark-mode .paper .info-table td {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.registration-paper .sig-line,
body.dark-mode .registration-paper .sig-line,
.paper .sig-line,
body.dark-mode .paper .sig-line {
    border-top-color: #000000 !important;
    color: #000000 !important;
}

/* Force Crisp Colors on Print */
@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    .no-print, header, footer, #header, .theme-toggle-btn {
        display: none !important;
    }
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .container, .printable-area {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .registration-paper, .paper {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    .registration-paper *, .paper * {
        color: #000000 !important;
    }
    .info-table th {
        background-color: #f1f5f9 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
    .info-table td {
        background-color: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
    .sig-line {
        border-top: 1.5px solid #000000 !important;
        color: #000000 !important;
    }
}
