/* ===============================================
   Basic Body & Theme Styles
   =============================================== */
body {
    margin: 0;
    padding-bottom: 60px; /* Space for the bottom bar */
}

/* ===============================================
   Header & Logo Styles
   =============================================== */

.logo {
    text-align: center;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
}

.logo img {
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
}

.logo_text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-size: 20px;
    color: #fff;
    background-color: #005bbf;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: "San Francisco", Arial, sans-serif;
}

/* ===============================================
   Main Content & Page Styles
   =============================================== */
.main {
    margin-left: 5px;
    text-align: center;
}

/* ===============================================
   Breadcrumb Navigation
   =============================================== */

/* Light Theme Breadcrumb */

/* Dark Theme Breadcrumb */

/* ===============================================
   Footer Styles
   =============================================== */
.copy {
    text-align: center;
    margin-top: 30px;
    margin-left: 5px;
}

.social-icons {
    margin-top: 10px;
    margin-bottom: 15px;
}

.social-icons a {
    margin: 0 10px;
    color: #005bbf;
    font-size: 24px;
    text-decoration: none;
}

/* ===============================================
   CLS Prevention & Ad Placeholders
   =============================================== */

/* ===============================================
   Navbar Styles (merged from navbar_styles.css)
   =============================================== */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    white-space: nowrap;
    color: inherit !important;
    text-decoration: none !important;
}
.navbar .logo img {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}
.navbar .logo_text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    color: #ffffff;
}
.offcanvas {
    --bs-offcanvas-width: 320px;
    --bs-offcanvas-bg: #ffffff;
    --bs-offcanvas-color: #000;
    background-color: #ffffff !important;
    color: #000 !important;
}
.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,.1);
    padding: 1.25rem;
    background-color: #ffffff;
}
.offcanvas-title {
    font-weight: 600;
    color: #000 !important;
    margin: 0;
}
.offcanvas-body {
    padding: 1rem 1.25rem;
    background-color: #ffffff;
}
.offcanvas .nav-link {
    padding: 0.5rem 0;
    font-weight: 500;
    color: #000 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.15;
}
.offcanvas .nav-link:hover {
    color: #0d6efd !important;
    padding-left: 6px;
}
.offcanvas .nav-link:last-child {
    border-bottom: none;
}
.form-label {
    font-weight: 600;
    color: #000 !important;
    margin-bottom: 0.25rem;
}
.form-select {
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.375rem 0.625rem;
    font-weight: 500;
    background-color: #fff;
    color: #000;
    transition: all 0.2s ease;
}
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.1);
    background-color: #fff;
    color: #000;
}
.btn-close {
    background-color: transparent;
    border: none;
    filter: none;
    opacity: 0.7;
}
.btn-close:hover {
    opacity: 1;
}
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25);
    outline: none;
}
.navbar-toggler:hover {
    background-color: rgba(255,255,255,0.1);
}
.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-image: url(data:image/svg+xml,%3csvg xmlns%3d%27http://www.w3.org/2000/svg%27 viewBox%3d%270 0 30 30%27%3e%3cpath stroke%3d%27rgba(0,0,0,0.85)%27 stroke-linecap%3d%27round%27 stroke-miterlimit%3d%2710%27 stroke-width%3d%272%27 d%3d%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e);
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: none;
}
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
}
@media (prefers-color-scheme: dark) {
    .offcanvas {
        --bs-offcanvas-bg: #ffffff !important;
        --bs-offcanvas-color: #000 !important;
        background-color: #ffffff !important;
    }
    .offcanvas-title,
    .offcanvas .nav-link,
    .form-label {
        color: #000 !important;
    }
    .navbar-toggler:hover {
        background-color: rgba(255,255,255,0.1);
    }
    .navbar-toggler-icon {
        background-image: url(data:image/svg+xml,%3csvg xmlns%3d%27http://www.w3.org/2000/svg%27 viewBox%3d%270 0 30 30%27%3e%3cpath stroke%3d%27rgba(255,255,255,0.9)%27 stroke-linecap%3d%27round%27 stroke-miterlimit%3d%2710%27 stroke-width%3d%272%27 d%3d%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e);
    }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 80px 0 0;
    padding-top: calc(80px + env(safe-area-inset-top));
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
}

@media (max-width: 991px) {
    body {
        padding-top: 112px;
        padding-top: calc(112px + env(safe-area-inset-top));
    }
}

/* Modern, lightweight styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 32px 32px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Queue table styles */
.queue-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.queue-table {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 560px; /* 10 rows * 56px approx height per row */
}

.queue-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.queue-table th {
    background: #f8fafc;
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 15px;
}

.queue-table th:nth-child(2),
.queue-table th:nth-child(3),
.queue-table th:nth-child(4) {
    text-align: center;
}

.queue-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.queue-row:hover {
    background-color: #f9fafb;
}

.checkpoint-cell {
    padding: 16px;
    font-weight: 500;
}

.flag-icon {
    width: 18px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.checkpoint-name {
    vertical-align: middle;
}

.queue-cell {
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.queue-cell.cars {
    color: #2563eb;
}

.queue-cell.buses {
    color: #059669;
}

.time-cell {
    padding: 16px 8px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 64px rgba(0,0,0,0.15);
    border-color: #e5e7eb;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 15px;
}

.service-link {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* Why us section */
.why-us {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 40px;
}

.trust-statements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.trust-statement {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    border: 1px solid #f3f4f6;
}

.trust-statement::before {
    content: "✓";
    display: block;
    font-size: 2rem;
    color: #059669;
    margin-bottom: 16px;
    font-weight: bold;
}

.brand-protection {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    font-weight: 600;
    color: #92400e;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f3f4f6;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: #e5e7eb;
    font-family: Georgia, serif;
}

.testimonial-quote {
    font-style: italic;
    color: #374151;
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: #059669;
    font-weight: 600;
    font-size: 14px;
}

/* News section */

/* Animations */
.fade-in-top {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.fade-in-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        border-radius: 0 0 24px 24px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .queue-section,
    .service-card,
    .testimonial-card,
    .why-us {
        padding: 24px;
    }

    .queue-table th,
    .checkpoint-cell,
    .queue-cell,
    .time-cell {
        padding: 12px 8px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: 15px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 40px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .queue-table th,
    .checkpoint-cell,
    .queue-cell,
    .time-cell {
        padding: 10px 6px;
        font-size: 14px;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
        margin-right: 4px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .testimonial-card,
    .trust-statement {
        border: 2px solid #000;
    }

    .hero-section {
        border-bottom: 4px solid #000;
    }
}
    .checkpoint-name-link {
        text-decoration: none;
        color: inherit; /* Inherit color from parent */
    }
    .checkpoint-name-link:hover {
        text-decoration: underline;
    }
