/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #d4af37;
    --accent-color: #8b0000;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --border-color: #d1d5db;
    --input-bg: #fafbfc;
    --page-bg: #f6f8fa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--page-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==================== NAVIGATION — HARDCODED FLAT BLUE ==================== */
.navbar {
    background: #1a73e8 !important;
    background-image: none !important;
    padding: 0.75rem 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    width: 100%;
}

.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 50px; display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover { background-color: rgba(255, 255, 255, 0.1); }

.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover { background-color: var(--light-gray); }
.dropdown:hover .dropdown-content { display: block; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.2rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn.active { background-color: var(--white); color: #1a73e8; }

.auth-buttons { display: flex; gap: 0.5rem; }

.login-btn, .register-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.login-btn { color: var(--white); border: 1px solid var(--white); }
.login-btn:hover { background-color: var(--white); color: #1a73e8; }
.register-btn { background-color: var(--secondary-color); color: var(--dark-color); }
.register-btn:hover { background-color: #c69c2b; }
.account-btn { display: flex; align-items: center; gap: 0.5rem; }

/* ==================== HAMBURGER ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff !important;
    margin: 2px 0;
    transition: all 0.3s ease;
    display: block !important;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ==================== HERO ==================== */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; font-weight: 700; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.btn-primary { background-color: #1a73e8; color: var(--white); }
.btn-primary:hover { background-color: #0d47a1; transform: translateY(-2px); }
.btn-secondary { background-color: var(--secondary-color); color: var(--dark-color); }
.btn-secondary:hover { background-color: #c69c2b; transform: translateY(-2px); }
.btn-success { background-color: var(--success-color); color: var(--white); }
.btn-success:hover { background-color: #218838; }
.btn-danger { background-color: var(--danger-color); color: var(--white); }
.btn-danger:hover { background-color: #c82333; }
.btn-warning { background-color: var(--warning-color); color: var(--dark-color); }
.btn-warning:hover { background-color: #e0a800; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

/* ==================== AUTH ==================== */
.auth-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; width: 100%; }

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 60px; margin: 0 auto; }

.auth-title { font-size: 1.5rem; font-weight: 600; text-align: center; color: var(--dark-color); margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 0.9rem; text-align: center; color: var(--gray-color); margin-bottom: 2rem; font-weight: 400; }
.auth-form { width: 100%; }
.auth-field { margin-bottom: 1.25rem; }
.auth-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--dark-color); margin-bottom: 0.4rem; }
.auth-label .required { color: var(--danger-color); margin-left: 2px; }

.auth-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-input::placeholder { color: #9ca3af; }
.auth-input:focus { outline: none; border-color: #1a73e8; background-color: var(--white); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12); }
.auth-input.error { border-color: var(--danger-color); box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12); }

.auth-select {
    width: 100%;
    padding: 0.65rem 2rem 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
}

.auth-select:focus { outline: none; border-color: #1a73e8; background-color: var(--white); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12); }

.auth-help { display: block; font-size: 0.78rem; color: var(--gray-color); margin-top: 0.35rem; line-height: 1.4; }

.auth-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-color); line-height: 1.5; cursor: pointer; margin-bottom: 1rem; }
.auth-checkbox input[type="checkbox"] { margin-top: 0.2rem; cursor: pointer; flex-shrink: 0; accent-color: #1a73e8; }
.auth-checkbox a { color: #1a73e8; font-weight: 500; }
.auth-checkbox a:hover { text-decoration: underline; }

.auth-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1a73e8;
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    letter-spacing: 0.01em;
}

.auth-submit:hover { background-color: #0d47a1; }
.auth-submit:active { transform: scale(0.99); }

.auth-footer { text-align: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--light-gray); font-size: 0.9rem; color: var(--gray-color); }
.auth-footer a { color: #1a73e8; font-weight: 600; margin-left: 4px; }
.auth-footer a:hover { text-decoration: underline; }

/* ==================== PASSWORD TOGGLE ==================== */
.password-wrapper { position: relative; display: block; width: 100%; }
.password-wrapper .auth-input { padding-right: 2.75rem; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    z-index: 2;
    min-height: auto;
    width: auto;
    line-height: 1;
}

.password-toggle:hover, .password-toggle:focus { color: #1a73e8; outline: none; }
.password-toggle i { pointer-events: none; }

/* ==================== PASSWORD STRENGTH ==================== */
.password-strength { margin-top: 0.5rem; }
.strength-bar { height: 4px; background: var(--light-gray); border-radius: 2px; transition: all 0.3s ease; width: 0; }
.strength-label { font-size: 0.75rem; color: var(--gray-color); margin-top: 0.3rem; }

/* ==================== SECTION ==================== */
.section { padding: 4rem 1rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title { text-align: center; margin-bottom: 3rem; position: relative; }
.section-title h2 { font-size: 2.5rem; color: #1a73e8; margin-bottom: 0.5rem; }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background-color: var(--secondary-color); margin: 10px auto 0; }

/* ==================== FORM ==================== */
.form-container {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-title { text-align: center; margin-bottom: 2rem; color: #1a73e8; font-size: 1.5rem; font-weight: 600; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: var(--text-color); font-size: 0.9rem; }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: #1a73e8; background-color: var(--white); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12); }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; line-height: 1.5; }
.form-checkbox input[type="checkbox"] { width: auto; cursor: pointer; margin-top: 0.25rem; flex-shrink: 0; accent-color: #1a73e8; }

.form-text { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--gray-color); }
.image-preview { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--border-color); border-radius: 6px; text-align: center; }
.image-preview.hidden { display: none; }

/* ==================== CARDS ==================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.3rem; margin-bottom: 0.8rem; color: #1a73e8; }
.card-text { color: var(--gray-color); margin-bottom: 1.2rem; flex: 1; }
.card-date { display: block; color: var(--secondary-color); font-weight: 500; margin-bottom: 1rem; font-size: 0.9rem; }

/* ==================== DASHBOARD ==================== */
.dashboard { display: flex; min-height: calc(100vh - 200px); flex: 1; }
.sidebar { width: 250px; background: #1a73e8; color: var(--white); padding: 2rem 0; flex-shrink: 0; }
.sidebar-menu { list-style: none; }
.sidebar-item { margin-bottom: 0.5rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-link:hover, .sidebar-link.active { background-color: rgba(255, 255, 255, 0.1); border-left: 4px solid var(--secondary-color); }
.dashboard-content { flex: 1; padding: 2rem; background: var(--light-gray); min-width: 0; }
.dashboard-content h2 { color: #1a73e8; margin-bottom: 1rem; }

/* ==================== TABLES ==================== */
.table-container { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); padding: 2rem; margin-bottom: 2rem; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--light-gray); }
.table th { background-color: #1a73e8; color: var(--white); font-weight: 500; white-space: nowrap; }
.table tr:hover { background-color: rgba(26, 115, 232, 0.05); }
.table td { color: var(--text-color); }

/* ==================== ALERTS ==================== */
.alert { padding: 0.8rem 1.2rem; border-radius: 6px; margin-bottom: 1.25rem; font-weight: 500; border: 1px solid transparent; animation: slideIn 0.3s ease; font-size: 0.9rem; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.alert-success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger, .alert-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-warning { background-color: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert-info { background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb; }

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; color: var(--white); }

/* ==================== FOOTER — FLAT BLUE ==================== */
.footer {
    background: #1a73e8 !important;
    background-image: none !important;
    color: var(--white) !important;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer * { color: var(--white) !important; }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
}

.footer-section h3 { color: var(--white) !important; font-size: 1.3rem; margin-bottom: 1.2rem; position: relative; padding-bottom: 0.5rem; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--secondary-color); }
.footer-section p { color: var(--white) !important; margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.6; }
.footer-section p i { color: var(--white) !important; margin-top: 0.3rem; flex-shrink: 0; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section ul li a {
    color: var(--white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-section ul li a:hover { color: var(--secondary-color) !important; padding-left: 5px; }
.footer-section ul li a i { color: var(--white) !important; }

.social-links { display: flex; gap: 1rem; margin-top: 1.2rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.15); border-radius: 50%; color: var(--white) !important; text-decoration: none; transition: all 0.3s ease; }
.social-links a i { color: var(--white) !important; }
.social-links a:hover { background-color: var(--secondary-color); transform: translateY(-3px); }

.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-bottom p { color: var(--white) !important; margin: 0; }

/* ==================== UTILITY ==================== */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-primary { color: #1a73e8 !important; }
.text-danger { color: var(--danger-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-muted { color: var(--gray-color) !important; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.fw-bold { font-weight: bold; }

.badge { display: inline-block; padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; color: var(--white); }
.bg-primary { background-color: #1a73e8; }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); color: var(--dark-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-info { background-color: #17a2b8; }

/* ==================== ENQUIRIES ==================== */
.enquiries-list { display: flex; flex-direction: column; gap: 1.5rem; }
.enquiry-card { background: var(--white); border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-left: 4px solid #1a73e8; }
.enquiry-card.enquiry-new { border-left-color: var(--success-color); }
.enquiry-card.enquiry-read { border-left-color: var(--warning-color); }
.enquiry-card.enquiry-resolved { border-left-color: var(--gray-color); }
.enquiry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.enquiry-header h3 { margin: 0; color: #1a73e8; }
.enquiry-date { color: var(--gray-color); font-size: 0.875rem; }
.enquiry-details { display: flex; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.enquiry-content { margin-bottom: 1.5rem; line-height: 1.6; }
.enquiry-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filter-options { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap; }
.filter-options .form-select { width: auto; min-width: 150px; }
.filter-options .form-input { width: 300px; }
.export-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1rem; }

/* ================================================================== */
/* RESPONSIVE — MOBILE MENU (COMPACT FLOATING DROPDOWN)              */
/* ================================================================== */
@media (max-width: 992px) {
    .nav-container { padding: 0 1rem !important; }

    /* === FLOATING DROPDOWN MENU — does NOT cover full screen === */
    .nav-menu {
        position: fixed !important;
        top: 68px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 80px) !important;
        background: #1a73e8 !important;
        background-image: none !important;
        flex-direction: column !important;
        padding: 1rem 0 1.25rem !important;
        overflow-y: auto !important;
        gap: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
        border: none !important;
        border-radius: 14px !important;
        transform: translateY(-14px) scale(0.98) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.28s ease, opacity 0.28s ease !important;
        z-index: 999 !important;
        flex: none !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        position: static !important;
        transform: none !important;
        z-index: 1002 !important;
    }

    .hamburger span { background-color: #ffffff !important; display: block !important; }

    .nav-link {
        width: 100% !important;
        padding: 0.85rem 1.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        text-align: left !important;
        border-radius: 0 !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        font-size: 0.95rem !important;
        background-color: transparent !important;
    }

    .nav-link:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

    .nav-menu > .nav-link:first-child,
    .nav-menu > .dropdown:first-child > .nav-link {
        border-top-left-radius: 14px !important;
        border-top-right-radius: 14px !important;
    }

    .nav-actions {
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0.9rem 1.5rem 0.5rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        gap: 0.6rem !important;
    }

    .auth-buttons { width: 100% !important; flex-direction: column !important; gap: 0.5rem !important; }

    .login-btn, .register-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 0.65rem 1rem !important;
        display: block !important;
        font-size: 0.9rem !important;
    }

    .language-switcher {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 0.4rem !important;
    }

    .dropdown { width: 100% !important; }
    .dropdown > .nav-link { display: none !important; }

    .dropdown-content {
        position: static !important;
        display: block !important;
        width: 100% !important;
        box-shadow: none !important;
        background-color: transparent !important;
        border-radius: 0 !important;
    }

    .dropdown-content a {
        color: #ffffff !important;
        padding: 0.7rem 1.5rem 0.7rem 2.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        font-size: 0.88rem !important;
        background-color: transparent !important;
    }

    .dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

    .nav-actions > *:last-child { border-bottom: none !important; }

    .dashboard { flex-direction: column; }
    .sidebar { width: 100%; padding: 1rem 0; }
    .sidebar-menu { display: flex; overflow-x: auto; padding: 0 1rem; gap: 0.5rem; }
    .sidebar-item { margin-bottom: 0; flex-shrink: 0; }
    .sidebar-link { padding: 0.5rem 1rem; border-radius: 4px; white-space: nowrap; }
    .sidebar-link.active { border-left: none; background-color: rgba(255, 255, 255, 0.2); }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-title h2 { font-size: 2rem; }
    .footer-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 1rem !important; }
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; gap: 0.8rem; }
    .hero-buttons .btn { width: 100%; }
    .section { padding: 2.5rem 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .auth-page { padding: 2rem 1rem; }
    .auth-card { padding: 2rem 1.5rem; border-radius: 8px; }
    .auth-title { font-size: 1.35rem; }
    .form-container { padding: 1.75rem 1.25rem; border-radius: 8px; margin: 1rem auto; }
    .form-title { font-size: 1.35rem; }
    .table-container { padding: 1rem; }
    .table { min-width: 600px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
    .filter-options { flex-direction: column; align-items: stretch; }
    .filter-options .form-input, .filter-options .form-select { width: 100%; }
    .enquiry-header, .enquiry-details, .enquiry-actions { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .export-actions { flex-direction: column; }
}

@media (max-width: 576px) {
    .nav-logo img { height: 40px; }
    .hero h1 { font-size: 1.5rem; }
    .section-title h2 { font-size: 1.8rem; }
    .dashboard-content { padding: 1rem; }
    .footer { padding: 2rem 0 1rem; }
    .auth-page { padding: 1.5rem 1rem; }
    .auth-card { padding: 1.75rem 1.25rem; border-radius: 8px; }
    .auth-title { font-size: 1.25rem; }
    .auth-subtitle { font-size: 0.85rem; margin-bottom: 1.5rem; }
    .auth-input, .auth-select { padding: 0.6rem 0.85rem; font-size: 0.9rem; }
    .form-container { padding: 1.5rem 1rem; border-radius: 6px; }
    .form-title { font-size: 1.2rem; }
    .card-title { font-size: 1.1rem; }

    .nav-link { padding: 0.75rem 1.25rem !important; font-size: 0.9rem !important; }
    .nav-actions { padding: 0.75rem 1.25rem 0.4rem !important; }
    .dropdown-content a { padding: 0.6rem 1.25rem 0.6rem 2rem !important; font-size: 0.85rem !important; }
}

/* ==================== PRINT ==================== */
@media print {
    .no-print, .navbar, .footer, .whatsapp-float, .sidebar, .hamburger, .btn, .nav-actions, .language-switcher, .password-toggle { display: none !important; }
    body { background: white !important; color: #000 !important; font-size: 12px; }
    .auth-page, .section { display: block; padding: 0; }
    .auth-card, .form-container { box-shadow: none !important; border: 1px solid #ddd !important; padding: 20px !important; max-width: 100% !important; }
    .dashboard { display: block; }
    .dashboard-content { width: 100% !important; padding: 0 !important; margin: 0 !important; background: white !important; }
    .table-container { box-shadow: none !important; border: 1px solid #ddd !important; padding: 0 !important; page-break-inside: avoid; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; page-break-inside: avoid; }
    .table { min-width: auto; font-size: 11px; }
    .table th, .table td { padding: 4px 6px; color: #000 !important; }
    .table th { background: #f0f0f0 !important; color: #000 !important; }
    @page { margin: 0.5cm; size: landscape; }
    a { text-decoration: none; color: #000 !important; }
    img { max-width: 100%; page-break-inside: avoid; }
}

/* ==================== TOUCH FRIENDLY ==================== */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; padding: 0.75rem 1.25rem; }
    .auth-submit, .auth-input, .auth-select { min-height: 44px; }
    .nav-link { min-height: 44px; }
    .sidebar-link { min-height: 44px; }
    .form-input, .form-select, .form-textarea { min-height: 44px; font-size: 16px; }
    .hamburger { min-width: 44px; min-height: 44px; display: flex !important; }
}

/* ================================================================== */
/* ANTI HORIZONTAL OVERFLOW — HAMBURGER ALWAYS VISIBLE AT RIGHT EDGE */
/* ================================================================== */

html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

main {
    max-width: 100%;
    overflow-x: hidden !important;
}

.navbar {
    max-width: 100% !important;
    overflow: visible !important;
}

.nav-container {
    max-width: 100% !important;
    overflow: visible !important;
}

@media (max-width: 992px) {
    body, main,
    section, div,
    .hero, .hero-content,
    .content-section, .schedule-section,
    .schedule-container, .schedule-grid,
    .schedule-day, .slideshow-container,
    .location-card, .marquee-container,
    .section-container, .card-grid,
    .card, .timeline, .timeline-item,
    .timeline-content, .image-gallery,
    .gallery-item, .location-content,
    .welcome-message, .hero-overlay {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 1rem !important;
    }

    .nav-logo { flex: 0 0 auto !important; }

    .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        position: static !important;
        transform: none !important;
        z-index: 1002;
    }

    .hamburger span { background-color: #ffffff !important; display: block !important; }
}