:root {
    --primary: #2f80ed;
    --primary-dark: #1b5bb5;
    --primary-light: #e6f0fa;
    --accent: #ffb700;
    --bg-color: #f0f4f8;
    --text-dark: #1e293b;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --white-transparent: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(47, 128, 237, 0.2);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-lg: 16px;
    --radius-md: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --green-light: #dcfce7;
    --green-text: #166534;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(47, 128, 237, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(47, 128, 237, 0.05) 0px, transparent 50%);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Effect Utility */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    /* Bolder text */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother bounce */
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 10px 24px;
    /* Slightly larger touch target */
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2f80ed 0%, #1b5bb5 100%);
    /* Deep gradient */
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #408bf0 0%, #2f80ed 100%);
    /* Lighter/Brighter on hover */
    transform: translateY(-2px) scale(1.02);
    /* Slight scale */
    box-shadow: 0 10px 25px rgba(47, 128, 237, 0.4);
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
    /* Base shadow */
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #e2e8f0;
}

.btn-white:hover {
    background: #f8f9fa;
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 160px;
    background: linear-gradient(135deg, #1b3a57 0%, #2f80ed 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ffffff, #b3d4fc);
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

/* Contact Widget */
.contact-widget {
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-list i {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.contact-list span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-list strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-list a {
    word-break: break-all;
    color: var(--text-dark);
    display: inline-block;
}

.social-row {
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-row a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-row a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.widget-footer p {
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Sidebar TOC */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc {
    padding: 24px;
}

.toc h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    border-radius: 6px;
    font-size: 0.95rem;
}

.toc a:hover,
.toc a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Content */
.content {
    padding: 60px;
}

.section-block {
    margin-bottom: 80px;
    scroll-margin-top: 140px;
}

.section-block h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

/* Bento Grid (Reply Times) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bento-card {
    background: #f8fbff;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(47, 128, 237, 0.1);
    transition: 0.3s;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Factors Grid - Improved */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.factor-item {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.factor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.factor-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.factor-item span {
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

/* Thresholds Grid - Fixed Wrapping */
.thresholds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on desktop */
    gap: 20px;
    margin-top: 40px;
}

.t-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.t-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.t-header {
    background: #f8fafc;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
}

.t-time {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.t-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.t-body {
    padding: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
    /* Stretch to align heights */
}

.t-card.highlight {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.15);
    transform: scale(1.05);
    /* Slight pop */
    z-index: 5;
}

.t-card.highlight .t-header {
    background: var(--primary);
}

.t-card.highlight .t-time,
.t-card.highlight .t-title {
    color: var(--white);
}

/* Passenger Rights - Official Doc Look */
.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.rights-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.rights-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary);
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.rights-card.warning::before {
    background: #ef4444;
}

.rights-card h3 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rights-card ul {
    list-style: none;
}

.rights-card li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 14px;
    color: var(--text-light);
}

.rights-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary);
}

.rights-card.warning li::before {
    content: '\f00d';
    color: #ef4444;
}

/* Steps - Premium Timeline */
.steps-timeline {
    position: relative;
    max-width: 800px;
    margin-top: 40px;
}

.step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(47, 128, 237, 0.2);
}

.step-item::after {
    content: '';
    position: absolute;
    left: 23px;
    /* Center of circle (48/2 - 1) */
    top: 48px;
    bottom: -32px;
    /* Connect to next */
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item:last-child::after {
    display: none;
}

.step-content {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    flex-grow: 1;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-card);
    transition: 0.3s;
}

.step-item:hover .step-content {
    border-color: var(--primary);
    transform: translateX(10px);
}

.step-item:hover .step-number {
    background: var(--primary);
    color: var(--white);
}

/* Checklist - Success Box */
.checklist-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.checklist-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 200px;
    color: #16a34a;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.checklist-items {
    display: grid;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #15803d;
    /* Darker green */
}

.check-item i {
    font-size: 1.2rem;
    color: #16a34a;
    background: #fff;
    border-radius: 50%;
    /* Create a white circle behind check */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table - Premium Design */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(47, 128, 237, 0.1);
    box-shadow: var(--shadow-soft);
    background: #ffffff;
    padding: 5px;
    /* Tiny gap for focus */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}

th {
    background: linear-gradient(135deg, #f8fbff 0%, #e6f0fa 100%);
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 20px;
    text-align: left;
    border-bottom: 2px solid var(--primary-light);
}

th:first-child {
    border-top-left-radius: var(--radius-md);
}

th:last-child {
    border-top-right-radius: var(--radius-md);
}

td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-light);
    font-weight: 500;
    transition: background 0.2s;
}

tr:last-child td {
    border-bottom: none;
}

tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

tr:hover td {
    background: #f8fbff;
    color: var(--primary-dark);
}

/* Highlight the Amount column */
td:last-child {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(230, 240, 250, 0.3);
    /* Subtle column highlight */
}

tr:hover td:last-child {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* FAQ */
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-light);
}

.faq-item summary {
    padding: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-item summary::after {
    color: var(--primary);
    font-weight: 400;
    font-size: 1.8rem;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
    border-top: 1px solid rgba(47, 128, 237, 0.2);
    display: none;
    animation: slideUp 0.3s ease-out;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 968px) {

    .hero-layout,
    .main-layout {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-card {
        display: block;
        margin-top: 40px;
    }

    .contact-widget {
        padding: 20px;
        /* Reduce padding on mobile */
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 24px;
        overflow-x: hidden;
        /* Prevent internal overflow */
    }

    /* Ensure container doesn't overflow */
    .container {
        width: 100%;
        overflow-x: hidden;
        padding: 0 20px;
    }

    .bento-grid,
    .split-cards,
    .factors-grid {
        grid-template-columns: 1fr;
    }

    /* Make thresholds scroll horizontally on mobile instead of stacking awkwardly */
    .thresholds-grid {
        grid-template-columns: repeat(4, 200px);
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .t-card.highlight {
        transform: none;
    }

    .step-item {
        gap: 16px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step-item::after {
        left: 17px;
    }

    .step-content {
        padding: 16px;
        font-size: 0.95rem;
    }

    /* Mobile Sticky Footer */
    .footer-content {
        flex-direction: column;
        /* Stack text and button */
        gap: 12px;
        text-align: center;
    }

    .footer-content span {
        font-size: 0.95rem;
    }

    .sticky-footer .btn {
        width: 100%;
        /* Full width button */
        justify-content: center;
    }

    /* Navbar Adjustment */
    .logo {
        font-size: 1.2rem;
    }

    .navbar .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}