/* ============================================
   TIMETABLE PLUS - GLOBAL STYLESHEET
   Shared styles for consistent design across all pages
   ============================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --primary: #de5e09;
    --secondary: #E67E22;
    --accent: #8B4513;

    /* Theme-aware hover background (override in page CSS for different themes) */
    --primary-hover-bg: rgba(222, 94, 9, 0.08);

    /* Text Colors */
    --text-dark: #1f2937;
    --text-light: #718096;
    --text-gray: #6b7280;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f3f4f6;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-teal: 0 4px 20px rgba(20, 184, 166, 0.15);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    color: var(--text-gray);
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ==================== TOP NAVBAR ==================== */
/* Full-width, edge-to-edge navbar with auto-hide on scroll */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(222, 94, 9, 0.06);
    z-index: 10000;
    animation: slideDown 0.5s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

/* Lift up effect when scrolling down */
.navbar.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Keep navbar visible when drawer is open (transform on parent breaks fixed positioning of child) */
.navbar:has(.mobile-menu.active) {
    transform: none !important;
    opacity: 1 !important;
}

/* Show when scrolling up */
.navbar.nav-visible {
    transform: translateY(0);
    opacity: 1;
}

.navbar:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1),
                0 3px 12px rgba(222, 94, 9, 0.08);
}

.navbar.scrolling {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06),
                0 1px 6px rgba(222, 94, 9, 0.04);
}

.navbar.scrolling:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08),
                0 2px 10px rgba(222, 94, 9, 0.06);
}

.nav-container {
    width: 100%;
    padding: 0.85rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    animation: fadeInLeft 0.6s ease-out;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo-image:hover {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.logo a,
.logo a:focus,
.logo a:active,
.logo a:visited {
    outline: none;
    text-decoration: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    animation: fadeIn 0.8s ease-out;
    align-items: center;
    margin: 0;
    padding: 0;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition);
    text-transform: none;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Login Button */
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-top: 2px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--primary-hover-bg);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Mobile Menu Button - Hamburger Icon */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-btn:hover svg,
.mobile-menu-btn:active svg {
    color: var(--primary);
    transform: scale(1.1);
}

/* ==================== MOBILE SIDE DRAWER ==================== */

/* Dark overlay behind side drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    padding: 0;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Drawer Header — login icon + close button */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 60px;
}

.mobile-drawer-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: var(--transition);
}

.mobile-drawer-login:hover {
    opacity: 0.9;
}

.mobile-drawer-login svg {
    width: 20px;
    height: 20px;
}

.mobile-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary);
}

.mobile-drawer-close svg {
    width: 22px;
    height: 22px;
}

/* Nav links container inside drawer */
.mobile-drawer-nav {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

/* Drawer nav links */
.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}

.mobile-menu-link:hover,
.mobile-menu-link:active,
.mobile-menu-link.active {
    background: var(--primary-hover-bg);
    color: var(--primary);
    padding-left: 2rem;
}

/* ==================== MOBILE DROPDOWN ==================== */

.mobile-dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-btn:hover,
.mobile-dropdown-btn:active {
    background: var(--primary-hover-bg);
    color: var(--primary);
    padding-left: 2rem;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 300px;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:active {
    background: var(--primary-hover-bg);
    color: var(--primary);
    padding-left: 3rem;
    border-left-color: var(--primary);
}

/* Intermediate breakpoint — compress nav before switching to mobile drawer */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0.85rem 1.5rem;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .login-btn {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1050px) {
    .nav-container {
        padding: 0.85rem 1rem;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.825rem;
    }

    .login-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
        margin-left: 0.25rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .login-btn {
        display: none;
    }

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

    .nav-container {
        padding: 0.75rem 1.5rem;
    }

    .mobile-menu {
        display: block;
    }
}

/* ==================== SIDE PROGRESS NAVIGATION ==================== */
/* Copied from working ecampus.css - colors updated to purple theme */
.side-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Hidden by default on hero section */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Side nav visible when scrolled past hero */
.side-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Progress Line Background - positioned at right to align with dots */
.side-nav-progress {
    position: absolute;
    right: 5px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(222, 94, 9, 0.2);
    border-radius: 2px;
    pointer-events: none;
}

/* Each Navigation Item - min-width ensures label positioning works correctly */
.side-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

/* Navigation Dot - serves as positioning parent for label */
.side-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(222, 94, 9, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(222, 94, 9, 0.2);
}

/* Label (appears on hover) - positioned to left of dot */
.side-nav-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: white;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(222, 94, 9, 0.1);
    pointer-events: none;
}

/* Show label on hover */
.side-nav-item:hover .side-nav-label {
    opacity: 1;
    visibility: visible;
}

/* Active State */
.side-nav-item.active .side-nav-dot {
    background: linear-gradient(135deg, #de5e09, #de5e09);
    border-color: #de5e09;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(222, 94, 9, 0.4);
}

/* Active Label (always visible) */
.side-nav-item.active .side-nav-label {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(135deg, #de5e09, #de5e09);
    color: white;
    border-color: #de5e09;
}

/* Hover Effects */
.side-nav-item:hover .side-nav-dot {
    transform: scale(1.2);
    border-color: #de5e09;
    box-shadow: 0 4px 12px rgba(222, 94, 9, 0.3);
}

/* Animation for active indicator movement */
@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(222, 94, 9, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(222, 94, 9, 0.6);
    }
}

.side-nav-item.active .side-nav-dot {
    animation: activePulse 2s ease-in-out infinite;
}

/* Hide on mobile and tablet */
@media (max-width: 1024px) {
    .side-nav {
        display: none;
    }
}

/* For very small desktops, adjust position */
@media (max-width: 1280px) {
    .side-nav {
        right: 20px;
    }
}

/* Accessibility: Focus States */
.side-nav-item:focus {
    outline: none;
}

.side-nav-item:focus .side-nav-label {
    opacity: 1;
    visibility: visible;
}

/* ==================== ANIMATIONS ==================== */

/* Navbar Slide Down */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Hero Float Animation */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-float {
    animation: heroFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Blob Animation */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 20s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Card Fade In */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Fade Out */
@keyframes cardFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.fade-in {
    animation: cardFadeIn 0.5s ease-out forwards;
}

.fade-out {
    animation: cardFadeOut 0.5s ease-out forwards;
}

/* Spin Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Pattern Grid Animation */
.pattern-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* ==================== SVG SIZING ==================== */

/* Default SVG sizing to prevent oversized icons */
/* Prevent any SVG from being unreasonably large */
svg {
    max-width: 100%;
    max-height: 100%;
}

/* SVGs without explicit classes get constrained sizing */
svg:not([class]):not([width]):not([height]) {
    width: 24px;
    height: 24px;
}

/* Common icon sizes */
.w-6, .h-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.w-8, .h-8 {
    width: 2rem !important;
    height: 2rem !important;
}

/* Card icons in banner visual */
.card-icon svg {
    width: 40px !important;
    height: 40px !important;
}

/* Center illustration - keep large */
.center-illustration svg {
    width: 300px !important;
    height: 300px !important;
}

/* Client logos */
.logo-placeholder svg {
    width: 100% !important;
    height: auto !important;
}

/* Product and service icons */
.product-icon-large svg,
.service-icon-modern svg {
    width: 56px !important;
    height: 56px !important;
}

/* Chat widget SVGs */
.chat-icon svg,
.chat-send svg,
.chat-close svg {
    width: 24px !important;
    height: 24px !important;
}

/* Message avatar SVGs */
.message-avatar svg {
    width: 32px !important;
    height: 32px !important;
}

/* Author avatar SVGs */
.author-avatar-large svg {
    width: 48px !important;
    height: 48px !important;
}

/* ==================== UTILITY CLASSES ==================== */

/* Display Utilities */
/* NOTE: .desktop-only and .mobile-only classes removed - use Tailwind responsive utilities instead:
 * For desktop-only: use "hidden lg:block"
 * For mobile-only: use "block lg:hidden"
 */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Padding */
.section-padding {
    padding: 5rem 2rem;
}

/* Hover Card Effect */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button Base Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 12px rgba(222, 94, 9, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(222, 94, 9, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--bg-gray);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablet & Below (< 968px) */
@media (max-width: 968px) {
    /* Hide Desktop Nav, Show Mobile Menu Button */
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        justify-self: end;
    }

    /* Adjust Navbar Layout */
    .nav-container {
        grid-template-columns: auto auto;
        padding: 1rem 1.5rem;
    }

    .navbar {
        width: 100%;
        top: 0;
    }

    /* Side Nav - Hide on tablets and mobile */
    .side-nav {
        display: none;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    /* Note: .desktop-only and .mobile-only media queries removed - use Tailwind responsive utilities instead */

    /* Note: Navbar mobile styles are already defined in the main navbar section above (line 311-327) */
    /* Do not override navbar positioning here - it should remain at top: 0 full-width */

    /* Typography */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Section Padding */
    .section-padding {
        padding: 3rem 1rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .navbar {
        width: 100%;
        top: 0;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo-image {
        height: 35px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* Large Desktop (> 1280px) */
@media (max-width: 1280px) {
    .side-nav {
        right: 20px;
    }
}

/* Hide on very large screens to prevent overlap */
@media (max-width: 1024px) {
    .side-nav {
        display: none;
    }
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus States */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== BACK TO TOP BUTTON ==================== */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 3;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: bounceInBtn 0.6s ease;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn:active {
    transform: translateY(-2px);
}

@keyframes bounceInBtn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .back-to-top-btn {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 16px;
    }

    .back-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    nav,
    .side-nav,
    footer {
        display: none;
    }

    body {
        background: white;
    }

    .no-print {
        display: none;
    }
}
