/* Custom CSS for Car Rental Website */

/* Design Tokens */
:root {
    --font-thai: 'Sarabun', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Sarabun', sans-serif;
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-soft: rgba(13, 110, 253, 0.12);
    --accent: #20c997;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    /* เลเยอร์โปร่งใส: ชั้นนอกทึบกว่า ชั้นในโปร่งกว่า (แยก hierarchy)
       รอบนี้ไถชั้นใน/inset ให้โปร่งลง + ลด panel/card ตามสัดส่วน ยังเว้นระยะ ~0.18–0.22 ระหว่าง inset↔card↔panel */
    --glass-veil: rgba(255, 255, 255, 0.07);
    --glass-inset: rgba(255, 255, 255, 0.075);
    --glass-inset-focus: rgba(255, 255, 255, 0.22);
    --glass-card: rgba(255, 255, 255, 0.24);
    --glass-card-hover: rgba(255, 255, 255, 0.36);
    --glass-panel: rgba(255, 255, 255, 0.32);
    --glass-border-soft: rgba(255, 255, 255, 0.32);
    --glass-border-mid: rgba(255, 255, 255, 0.42);
    --glass-border-strong: rgba(255, 255, 255, 0.55);
}

/* พาเนลแก้ว — blur พอประมาณเพื่อไม่ให้พื้นหลังดูขุ่น */
.glass-panel {
    background: var(--glass-card);
    backdrop-filter: blur(12px) saturate(155%);
    -webkit-backdrop-filter: blur(12px) saturate(155%);
    border: 1px solid var(--glass-border-mid);
    box-shadow: 0 8px 36px rgba(15, 23, 42, 0.08);
}

.glass-panel--strong {
    background: var(--glass-panel);
    border-color: var(--glass-border-strong);
    box-shadow: 0 12px 44px rgba(15, 23, 42, 0.1);
}

.glass-panel--soft {
    background: var(--glass-veil);
    border-color: var(--glass-border-soft);
    backdrop-filter: blur(6px) saturate(145%);
    -webkit-backdrop-filter: blur(6px) saturate(145%);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

/* ชั้นภายใน (input / chip) — โปร่งกว่าแผงหลัก */
.glass-inset {
    background: var(--glass-inset) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    color: #1a1d21;
}

.glass-inset:focus,
.glass-inset:focus-visible {
    background: var(--glass-inset-focus) !important;
    border-color: rgba(13, 110, 253, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18) !important;
    outline: none;
}

/* แถบเนื้อหาหน้าแรก: โทนเลเยอร์บางๆ บนพื้นหลังภาพ ไม่ทึบทั้งแผง */
.home-glass-strip {
    position: relative;
}

.home-glass-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* เบาลงมาก — ไม่ทับภาพท้องถนนให้ดูขุ่น */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.025) 100%
    );
}

.home-glass-strip .container {
    position: relative;
    z-index: 1;
}

/* กรอบบางรอบแต่ละหัวข้อบนหน้าแรก — อ่านง่าย แยกบล็อกชัด ไม่ทึบ */
.home-topic-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px) saturate(145%);
    -webkit-backdrop-filter: blur(6px) saturate(145%);
    box-shadow:
        0 0 0 1px rgba(13, 58, 130, 0.06),
        0 12px 40px rgba(13, 58, 130, 0.05);
}

@media (max-width: 575.98px) {
    .home-topic-frame {
        padding: 1.1rem;
        border-radius: var(--radius-lg);
    }
}

/* ---------- หน้าเกี่ยวกับเรา / ติดต่อเรา (ธีมแก้วเดียวกับหน้าแรก) ---------- */
.about-contact-page .ac-glass-card {
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
        background 0.22s ease;
}

.about-contact-page .ac-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.74) !important;
    box-shadow: 0 1rem 2.25rem rgba(13, 110, 253, 0.12);
}

.about-contact-page .ac-glass-card.glass-panel--strong:hover {
    background: rgba(255, 255, 255, 0.44) !important;
}

.about-contact-page .ac-hero-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0.65rem;
}

.about-contact-page .ac-hero-visual img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
    display: block;
}

.about-contact-page .ac-area-badge {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #1a1d21;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.about-contact-page .ac-map-shell {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 4px 20px rgba(13, 58, 130, 0.08);
}

.about-contact-page .ac-info-list {
    display: grid;
    gap: 1rem;
}

.about-contact-page .ac-info-row {
    display: grid;
    gap: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.about-contact-page .ac-info-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.about-contact-page .ac-divider {
    border-color: rgba(255, 255, 255, 0.28);
    opacity: 1;
}

.about-contact-page .contact-card a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.about-contact-page .contact-card a:hover {
    color: var(--primary);
}

.about-contact-page .brand-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.about-contact-page .ac-cta-inner {
    border-radius: var(--radius-lg) !important;
    padding: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.about-contact-page .feature-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.about-contact-page .feature-list li {
    margin-bottom: 0.75rem;
}

.about-contact-page .ac-display-heading {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.about-contact-page .ac-cta-inner.mx-auto {
    max-width: 52rem;
}

/* ---------- หน้าคำแนะนำการเช่ารถ (guide) ---------- */
.guide-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem) 0;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 380px at 20% 20%, rgba(32, 201, 151, 0.22) 0%, transparent 55%),
        radial-gradient(900px 320px at 85% 30%, rgba(13, 110, 253, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(13, 58, 130, 0.88) 0%, rgba(13, 58, 130, 0.65) 55%, rgba(255, 255, 255, 0) 100%);
}

.guide-hero::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: var(--bg-image) center/cover no-repeat;
    opacity: 0.22;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
    z-index: 0;
}

.guide-hero .container {
    position: relative;
    z-index: 1;
}

.guide-hero .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.55);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.8);
}

.guide-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.guide-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.guide-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    margin: 0 0 0.75rem 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.guide-subtitle {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.guide-page .guide-shell {
    margin-top: -1.5rem;
    padding-bottom: 3rem;
}

.guide-page .guide-panel {
    border-radius: var(--radius-xl);
}

.guide-page .guide-article {
    max-width: 78ch;
    margin: 0 auto;
}

.guide-page .guide-article h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    margin: 2rem 0 0.85rem;
}

.guide-page .guide-article p {
    color: #26303b;
}

.guide-page .guide-article section:first-of-type h2 {
    margin-top: 0.25rem;
}

.guide-page .guide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

/* ชั้นใน: โปร่งกว่าแผงบทความหลัก */
.guide-page .guide-tip {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: var(--glass-inset);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.guide-page .guide-toc a {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    text-decoration: none;
    color: #0d3a82;
    font-weight: 650;
    transition: background 0.2s ease, transform 0.2s ease;
}

.guide-page .guide-toc a:hover {
    background: rgba(13, 110, 253, 0.12);
    transform: translateX(2px);
}

.guide-page .guide-toc .toc-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.38rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
    flex: 0 0 10px;
}

.guide-page .guide-aside {
    position: sticky;
    top: 92px;
}

.guide-page .guide-hr {
    border-color: rgba(255, 255, 255, 0.28);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .guide-page .guide-shell {
        margin-top: -1rem;
    }

    .guide-page .guide-aside {
        position: static;
        top: auto;
    }
}

@media (max-width: 575.98px) {
    .guide-page .guide-panel {
        border-radius: var(--radius-lg);
    }
}

/* Related articles (include) — ธีมแก้ว */
.related-articles-section {
    margin-top: 1.5rem;
}

.related-articles-card {
    border-radius: var(--radius-xl) !important;
    padding: 1.5rem !important;
}

.related-articles-kicker,
.related-article-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.8rem;
}

.related-article-box {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: var(--glass-card);
    border: 1px solid var(--glass-border-mid);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.related-article-link:hover .related-article-box {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.12);
    background: rgba(255, 255, 255, 0.34) !important;
}

/* Global Styles */
body {
    font-family: var(--font-thai);
    line-height: 1.7;
    background: var(--bg-image, url('../images/ดีไซน์ที่ยังไม่ได้ตั้งชื่อ.png')) center center no-repeat fixed;
    background-size: cover;
    min-height: 100vh;
    color: #1a1d21;
    position: relative;
}

/* เวลาเบาลง — ให้ภาพพื้นหลังคม/ใสขึ้น (ลดความรู้สึก “ขุ่น” ทั้งเพจ) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

/* Main content helpers (opt-in per page) */
.main-content--center {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    position: relative;
}

/* Fade in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Navigation - Dark blue header ตามดีไซน์ */
.navbar-car-rental,
.navbar.bg-primary,
.navbar {
    background: #0d3a82 !important;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar-car-rental {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: rgba(13, 58, 130, 0.82) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link-user {
    padding: 0.5rem 0.75rem !important;
}

.navbar .nav-link-user.dropdown-toggle::after {
    margin-left: 0.25em;
    vertical-align: 0.1em;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #fff !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color: #fff !important;
    opacity: 0.95;
}

.navbar-brand img {
    transition: transform 0.25s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95) !important;
    transition: all 0.25s ease;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-nav .dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.navbar-nav .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #1a1d21;
}

.navbar-nav .dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: transparent;
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 70px 0 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(13, 58, 130, 0.92) 0%, rgba(26, 77, 158, 0.7) 35%, rgba(74, 158, 255, 0.25) 65%, transparent 100%);
    pointer-events: none;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-section .lead {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero-section .btn-light {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: none;
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.hero-section .btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* Hero Slide พื้นหลังโฆษณา + Overlay บังตัวหนังสือในภาพ */
.hero-slide-with-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 560px;
    position: relative;
    padding: 0 !important;
}

.hero-section:has(.hero-slide-with-bg)::before {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Overlay เข้มทางซ้าย เพื่อบังภาพและตัวหนังสือในภาพ ไม่ให้ซ้อนกับข้อความเรา */
    background: linear-gradient(95deg, rgba(13, 58, 130, 0.97) 0%, rgba(13, 58, 130, 0.9) 28%, rgba(13, 58, 130, 0.6) 50%, rgba(13, 58, 130, 0.2) 72%, transparent 100%);
    pointer-events: none;
}

.hero-slide-with-bg .container.position-relative {
    z-index: 1;
}

/* บล็อกข้อความโปรโมชั่น จัดเป็นระเบียบ */
.hero-promo-block {
    max-width: 400px;
}

/* โหมดไม่มีโฆษณา: จำกัดความกว้าง + ระยะห่างจากภาพ */
.hero-promo-block-default {
    max-width: 380px;
}

.hero-promo-img {
    display: block;
    max-width: 100%;
}

/* ปานหลังให้ข้อความในสไลด์โฆษณา - แยกจากภาพไม่ให้ซ้อนทับ */
.hero-slide-with-bg .hero-promo-block {
    background: rgba(13, 58, 130, 0.95);
    padding: 1.5rem 1.75rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-promo-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-promo-lead {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.25rem;
}

.hero-promo-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-promo-list li i {
    font-size: 0.75rem;
    opacity: 0.95;
    color: rgba(255,255,255,0.95);
    flex-shrink: 0;
}

.hero-promo-phone {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.hero-promo-phone:hover {
    color: #fff !important;
    opacity: 0.9;
    text-decoration: underline;
}

.hero-promo-cta {
    margin-top: 0.25rem;
}

/* โปรโมชั่นแบบข้อความเรียง (ตามดีไซน์) */
.hero-promo-block-static .hero-promo-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.btn-hero-cta {
    background: #fff !important;
    color: #0d3a82 !important;
    border: none;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-hero-cta:hover {
    background: #f8f9fa !important;
    color: #0a2d63 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* แบนเนอร์ขวา + overlay ตามดีไซน์ */
.hero-banner-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* โมบาย: แสดงโปรโมลิสต์คอลัมน์เดียว + ลดขนาดปาน */
@media (max-width: 767px) {
    .hero-promo-list {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    .hero-promo-list li {
        font-size: 0.85rem;
    }
    .hero-promo-block,
    .hero-promo-block-default {
        max-width: 100%;
    }
    .hero-slide-with-bg .hero-promo-block {
        padding: 1.25rem 1.35rem 1.5rem;
    }
}

/* Advertisement Carousel */
#advertisementCarousel {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    width: 100%;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 20px 0;
}

.carousel-item:not(.active) {
    display: none;
}

.carousel-item.active {
    display: flex;
    opacity: 1;
}

.carousel-item .container {
    width: 100%;
    padding: 0;
}

.carousel-item .row {
    width: 100%;
    margin: 0;
    align-items: center;
}

.carousel-item .col-lg-6:first-child {
    padding-right: 30px;
}

.carousel-item .col-lg-6:last-child {
    padding-left: 30px;
}

.carousel-image {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* สำหรับ container ที่มีภาพโฆษณา */
.carousel-item .col-lg-7 {
    max-width: 100%;
    width: 100%;
}

/* Container สำหรับภาพโฆษณา - responsive */
.carousel-item .col-lg-7,
.carousel-item .col-md-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* กำหนดขนาดภาพโฆษณาให้เหมาะสมกับทุกขนาดหน้าจอ */
@media (min-width: 1400px) {
    .carousel-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .carousel-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.carousel-image:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* สำหรับหน้าจอขนาดใหญ่ ให้ย้ายออกไปไกลขึ้น */
@media (min-width: 992px) {
    .carousel-control-prev {
        left: -40px;
    }
    
    .carousel-control-next {
        right: -40px;
    }
}

/* สำหรับหน้าจอขนาดใหญ่มาก ให้ย้ายออกไปไกลที่สุด */
@media (min-width: 1200px) {
    .carousel-control-prev {
        left: -60px;
    }
    
    .carousel-control-next {
        right: -60px;
    }
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators [data-bs-target].active {
    background-color: rgba(255, 255, 255, 1);
    width: 30px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 1);
}

.carousel-indicators [data-bs-target]:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Animation */
.carousel-item.active {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Ensure Bootstrap carousel works correctly */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Responsive Carousel */
@media (max-width: 767px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -15px;
    }
    
    .carousel-control-next {
        right: -15px;
    }
    
    .carousel-item {
        min-height: 400px;
        padding: 15px 0;
    }
    
    .carousel-item .col-lg-6:first-child,
    .carousel-item .col-lg-6:last-child,
    .carousel-item .col-lg-5,
    .carousel-item .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .carousel-image {
        aspect-ratio: 16 / 9;
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .carousel-item .col-lg-7,
    .carousel-item .col-md-6 {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-section {
        min-height: 450px;
        padding: 30px 0;
    }
    
    #advertisementCarousel {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* เพิ่ม padding ให้ container เพื่อให้มีพื้นที่สำหรับปุ่ม */
.hero-section .container {
    position: relative;
    padding-left: 70px;
    padding-right: 70px;
}

@media (min-width: 992px) {
    .hero-section .container {
        padding-left: 90px;
        padding-right: 90px;
    }
}

@media (min-width: 1200px) {
    .hero-section .container {
        padding-left: 110px;
        padding-right: 110px;
    }
}

@media (max-width: 768px) {
    .hero-section .container {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Cards */
.card {
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.36) !important;
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
}

.card-img-top {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

/* Buttons */
.btn {
    font-family: var(--font-display);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 22px;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.4);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

.btn-outline-primary:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.2);
}

.btn-light {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.btn-light:hover {
    background: #fff !important;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* Search Section - กึ่งโปร่งใส over ภูมิทัศน์ ตามดีไซน์ */
.search-section {
    background: transparent;
    padding: 60px 0 50px 0;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.search-card {
    /* ชั้นนอก: ทึบกว่าช่อง input — ลด blur ให้เห็นภาพพื้นหลังชัดขึ้น */
    background: var(--glass-panel) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(13, 58, 130, 0.12), 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

.search-card-body {
    padding: 2.25rem 2.5rem;
}

.search-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a1d21;
    margin-bottom: 1.75rem;
    text-align: center;
}

.search-section .search-card .form-label,
.search-section .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-section .search-card .form-control,
.search-section .search-card .form-select,
.search-section .form-control,
.search-section .form-select {
    /* ชั้นใน: โปร่งกว่ากล่องค้นหา — เห็นภูมิทัศน์เลือนๆ */
    background: var(--glass-inset) !important;
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.search-section .btn-search {
    padding: 12px 36px;
    font-size: 1.05rem;
}

.search-section .form-control:focus,
.search-section .form-select:focus {
    border-color: rgba(13, 110, 253, 0.65);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.22);
    background: var(--glass-inset-focus) !important;
}

/* Forms */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem;
    color: #1a1d21;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    background: rgba(255, 255, 255, 0.9) !important;
    outline: none;
}

.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    color: #1a1d21;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    background: rgba(255, 255, 255, 0.9) !important;
    outline: none;
}

/* Featured Cars */
.featured-cars {
    background: transparent;
    padding: 56px 0 72px 0;
}

.featured-cars h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #1a1d21;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.featured-cars h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.featured-cars .card {
    height: 100%;
    overflow: hidden;
}

.featured-cars .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.featured-cars .card-img-top {
    transition: transform 0.4s ease;
    height: 200px;
    object-fit: cover;
}

.featured-cars .card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-cars .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.5rem;
}

.featured-cars .card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1d21;
    margin-bottom: 0.5rem;
}

.featured-cars .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.featured-cars .card-text {
    flex-grow: 1;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-cars .h5 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.featured-cars .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    background: transparent !important;
    padding: 64px 0 72px 0;
    position: relative;
    overflow: hidden;
}

.bg-light {
    background-color: transparent !important;
}

.features-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #1a1d21;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.feature-icon {
    color: var(--primary);
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border-mid);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.features-section .col-md-4 {
    transition: transform 0.3s ease;
}

.features-section .col-md-4:hover {
    transform: translateY(-6px);
}

.features-section .col-md-4:hover .feature-icon {
    transform: scale(1.08);
    background: var(--glass-card-hover);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.15);
}

.features-section h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1d21;
    margin-bottom: 0.5rem;
}

.features-section p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Pricing Table */
.pricing-table {
    text-align: center;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item .period {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.pricing-item .price {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 20px;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    margin-top: 64px;
}

footer h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

footer ul {
    padding: 0;
}

footer ul li {
    margin-bottom: 0.6rem;
}

footer a {
    text-decoration: none;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.85);
    display: inline-block;
}

footer a:hover {
    color: #93c5fd !important;
    transform: translateX(4px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 1.75rem 0 1rem;
}

footer .text-center {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

/* Profile Page - พื้นหลังโปร่งใส ให้พื้นหลังหลักของไซต์โชว์ผ่าน */
.profile-page-bg {
    width: 100%;
    min-height: calc(100vh - 180px);
    background: transparent;
    position: relative;
    padding: 2rem 0 3rem;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.profile-page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.profile-page-bg .container {
    position: relative;
    z-index: 1;
}

/* การ์ดโปร่งใส - แยกความสำคัญด้วยความทึบ ขอบมน */
.profile-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* ระดับสูง - หัวข้อสำคัญ (ทึบที่สุด) */
.profile-card--strong {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.65);
}
.profile-card--strong .card-header {
    background: rgba(13, 58, 130, 0.12);
    border-bottom: 1px solid rgba(13, 58, 130, 0.15);
}

/* ระดับกลาง */
.profile-card--medium {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}
.profile-card--medium .card-header {
    background: rgba(13, 58, 130, 0.08);
    border-bottom: 1px solid rgba(13, 58, 130, 0.1);
}

/* ระดับเบา - โปร่งใสมาก */
.profile-card--light {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}
.profile-card--light .card-header {
    background: rgba(13, 58, 130, 0.06);
    border-bottom: 1px solid rgba(13, 58, 130, 0.08);
}

.profile-card .card-header {
    font-weight: 600;
    color: #0d3a82;
    border-radius: 20px 20px 0 0;
}

.profile-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.profile-card .card-body {
    background: transparent;
}

.profile-card .btn {
    border-radius: 12px;
}

.profile-card .table td {
    padding: 0.5rem 0.75rem;
}

.profile-card .badge.bg-warning,
.profile-card .badge.bg-success {
    border-radius: 9999px;
}
.profile-card .badge.bg-warning {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%) !important;
    color: #fff;
}
.profile-card .badge.bg-success {
    background: linear-gradient(135deg, #20c997 0%, #17a589 100%) !important;
}

.profile-picture {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Booking Form */
.booking-form .card {
    border: 2px solid #e9ecef;
}

.booking-form .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-section,
    .featured-cars,
    .features-section {
        padding: 50px 0;
    }
    
    .search-section .search-card-title,
    .featured-cars h2,
    .features-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        padding: 15px;
    }
    
    .features-section h4 {
        font-size: 1.25rem;
    }
    
    .pricing-item {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-item .period {
        margin-bottom: 5px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Stagger animation for cards */
.featured-cars .card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.featured-cars .card:nth-child(1) { animation-delay: 0.1s; }
.featured-cars .card:nth-child(2) { animation-delay: 0.2s; }
.featured-cars .card:nth-child(3) { animation-delay: 0.3s; }
.featured-cars .card:nth-child(4) { animation-delay: 0.4s; }
.featured-cars .card:nth-child(5) { animation-delay: 0.5s; }
.featured-cars .card:nth-child(6) { animation-delay: 0.6s; }

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles - แบบฟอร์ม/หน้ารายละเอียดสั่งปริ้นได้ */
@media print {
    .navbar,
    .btn,
    footer,
    .no-print,
    .d-print-none {
        display: none !important;
    }
    body {
        background: #fff !important;
    }
    body::before {
        display: none !important;
    }
    .card {
        border: 1px solid #333 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .container {
        max-width: 100% !important;
    }
    a[href]:not(.btn) {
        color: #000;
        text-decoration: none;
    }
}
.no-print {
    display: block;
}
@media print {
    .no-print {
        display: none !important;
    }
}
