/* ============================
   Product Service Sections
   ============================ */

.product-service-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-service-title {
    font-size: 35px;
    font-weight: 700;
    color: #7B2FBE;
}

.product-service-title .text--primary {
    color: #7B2FBE;
    text-decoration: underline !important;
    text-underline-offset: 5px;
}

.product-service-heading-hr {
    width: 100%;
    height: 1px;
    background: #cccccc;
    margin-bottom: 35px !important;
}

/* ============================
   Section Backgrounds
   ============================ */

.ship-section {
    background: #1a0a2e;
}

/* ============================
   Color Utilities
   ============================ */

.defaut-color {
    color: #9B59B6 !important;
}

.text--primary {
    color: #7B2FBE !important;
}

.text-yellowred {
    color: #9B59B6 !important;
}

/* Inline style replacements for section links */
.ship-section .link {
    color: #fff !important;
}

.buses-section .link {
    color: #000 !important;
}

/* ============================
   Product Cards
   ============================ */

.product-card {
    border-radius: 15px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(57, 0, 86, 0.12);
}

.product-card > .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: opacity 0.25s ease;
}

.product-card:hover > .card-img-top {
    opacity: 0.92;
}

.product-card .card-body {
    margin: 5px 0 !important;
    padding: 10px 0 !important;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.3;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-area {
    min-height: 30px;
}

.product-card .card-text {
    font-size: 14px;
    margin-bottom: 7px;
    color: #908f91 !important;
    font-weight: 700;
}

/* ============================
   Agent / Company Info
   ============================ */

.agent-service-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.agent-service-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.agent-service {
    margin-bottom: 10px;
}

.agent-service h6,
.agent-service p {
    margin-bottom: 0;
}

/* ============================
   Card Footer Buttons
   ============================ */

.product-card-footer {
    margin-top: auto;
}

.product-card-footer .btn {
    min-height: 40px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-card-footer .btn i {
    margin-right: 0 !important;
}

/* ============================
   Buttons
   ============================ */

.btn--primary {
    background-color: transparent;
    color: #7B2FBE;
    border-color: #7B2FBE;
    border-radius: 5px;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary:hover {
    background-color: #7B2FBE;
    color: #fff;
}

.btn-default {
    background: #9B59B6;
    border: 1px solid #9B59B6;
    color: #fff;
    border-radius: 5px;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-default:hover {
    background: #fff;
    color: #9B59B6;
    border-color: #9B59B6 !important;
}

.btn-title {
    background-color: #7B2FBE;
    color: #fff;
    border-color: #7B2FBE;
    border-radius: 5px;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-title:hover {
    background-color: #9B59B6;
    color: #fff;
    border-color: #9B59B6 !important;
}

/* ============================
   Section "View All" Links
   ============================ */

.product-service-heading .link {
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.product-service-heading .link:hover {
    opacity: 0.75;
}

/* ============================
   Traincu Navbar (tn-navbar)
   Dark navy #0B1D3A + orange #F57C00
   Replaces old header-top + header
   ============================ */

:root {
    --tn-navy:     #7B2FBE;
    --tn-navy-2:   #6a28a6;
    --tn-navy-3:   #5a2090;
    --tn-orange:   #9B59B6;
    --tn-orange-dk:#7B2FBE;
    --tn-orange-lt:#C39BD3;
    --tn-font:     'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;
}

body {
    font-family: var(--tn-font) !important;
}

.tn-navbar {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: var(--tn-navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.tn-navbar-inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 28px;
}

.tn-navbar-logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.tn-navbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.tn-navbar-links > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 7px;
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.tn-navbar-links > li > a:hover,
.tn-navbar-links > li > a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

/* Dropdown */
.tn-has-dropdown { position: relative; }

.tn-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(11, 29, 58, 0.2);
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s ease;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    z-index: 200;
}

.tn-has-dropdown:hover .tn-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tn-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
    background: transparent;
    border-radius: 0;
}

.tn-dropdown a:last-child { border-bottom: none; }

.tn-dropdown a:hover {
    background: #F8FAFC;
    color: var(--tn-orange);
}

/* Right section */
.tn-navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.tn-navbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.tn-navbar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tn-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--tn-font);
}

.tn-lang-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.tn-lang-btn img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}

.tn-navbar-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tn-navbar-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.tn-navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--tn-orange);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tn-navbar-cta:hover {
    background: var(--tn-orange-dk);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.4);
}

.tn-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.tn-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s ease;
}

/* RTL navbar */
[dir="rtl"] .tn-navbar-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .tn-dropdown     { left: auto; right: 0; }

/* Navbar responsive */
@media (max-width: 1199px) {
    .tn-navbar-links { display: none !important; }
    .tn-hamburger    { display: flex; }
    .tn-navbar-inner { gap: 12px; }
}

@media (max-width: 767px) {
    .tn-navbar-logo img { height: 44px; }
    .tn-navbar-login,
    .tn-navbar-cta { display: none !important; }
}

/* Legacy header override — hide old header-top & header when tn-navbar is present */
.has-tn-navbar .header-top,
.has-tn-navbar header:not(.tn-navbar) {
    display: none !important;
}

/* ============================
   Header (old — kept for interior pages)
   ============================ */

header {
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(57, 0, 86, 0.14);
}

/* Logo height — replaces inline style */
.logo img {
    height: 60px;
    width: auto;
}

/* Accent icon — replaces inline style */
.icon-accent {
    color: var(--ach);
}

/* Header-top links: tighter spacing on small viewports */
.header-top .menubar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-top .menubar ul {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Active nav link indicator */
.main-menubar .menubar ul li a.active,
.main-menubar .menubar ul li a[aria-current="page"] {
    color: var(--ach);
    font-weight: 600;
}

/* ============================
   Mobile Offcanvas Menu
   ============================ */

.canvas-mobile-menu {
    display: flex;
    flex-direction: column;
}

.canvas-mobile-menu a {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.canvas-mobile-menu a:hover {
    background: #f3e5f5;
    color: #7B2FBE;
    padding-left: 18px;
}

.canvas-mobile-menu .mobile-menu-divider {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    padding: 12px 10px 4px;
    pointer-events: none;
    background: none;
    border: none;
}

.canvas-mobile-menu .mobile-auth-link {
    background: #7B2FBE;
    color: #fff !important;
    border-radius: 6px;
    margin: 4px 8px;
    border-bottom: none;
    text-align: center;
    justify-content: center;
}

.canvas-mobile-menu .mobile-auth-link:hover {
    background: #9B59B6;
    color: #fff !important;
    padding-left: 10px;
}

.canvas-mobile-menu .mobile-auth-link--register {
    background: #9B59B6;
    border-color: #9B59B6;
}

.canvas-mobile-menu .mobile-auth-link--register:hover {
    background: #7B2FBE;
    border-color: #7B2FBE;
}

/* ============================
   Footer
   ============================ */

/* Logo height — replaces inline style */
.footer-logo img {
    height: 100px;
    width: auto;
    max-width: 180px;
}

/* Contact links (phone, email) */
.footer-left a {
    color: #ffffffb0;
    transition: color 0.2s ease;
}

.footer-left a:hover {
    color: #fff;
}

/* Footer service/page links: color transition on hover */
.footer-link ul li a {
    transition: color 0.2s ease, margin-left 0.2s ease;
}

.footer-link ul li:hover a {
    color: #fff;
    margin-left: 4px;
}

/* Subscribe form */
.subscribe-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    color: #fff;
}

.subscribe-form .input-group-text {
    background: #9B59B6;
    border-color: #9B59B6;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.subscribe-form .input-group-text:hover {
    background: #7B2FBE;
    border-color: #7B2FBE;
}

/* Social icons */
.social-media-link ul {
    gap: 8px;
}

.social-media-link ul li {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-media-link ul li:hover {
    transform: translateY(-2px);
}

/* Footer columns: spacing on mobile */
@media (max-width: 991px) {
    .footer-part .col-12 {
        margin-bottom: 28px;
    }

    .footer-part .col-12:last-child {
        margin-bottom: 0;
    }
}

/* ============================
   Header — Responsive
   ============================ */

@media (max-width: 1199px) {
    .logo img {
        height: 50px;
    }
}

@media (max-width: 767px) {
    .header-top {
        font-size: 13px;
    }

    .header-top .menubar ul {
        gap: 4px;
    }

    .logo img {
        height: 46px;
    }
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 768px) {
    .product-service-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-service-title {
        font-size: 20px;
    }

    .product-card .card-title {
        font-size: 16px;
    }

    .product-card .card-text {
        font-size: 12px;
    }

    .agent-service-img,
    .agent-service-img img {
        width: 40px;
        height: 40px;
    }

    .agent-service {
        margin-bottom: 5px;
    }

    .agent-service h6,
    .agent-service p {
        font-size: 12px;
    }

    .btn--primary,
    .btn-title {
        font-size: 12px;
    }

    .btn-default {
        font-size: 12px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-default i {
        display: none;
    }

    .product-card-footer .btn {
        min-height: 34px;
        padding: 5px 10px;
    }
}

/* ============================
   Hero Section
   ============================ */

.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    .hero-banner {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.hero-btn.btn-primary {
    background: linear-gradient(135deg, #9B59B6, #1a0a2e);
    border: none;
    box-shadow: 0 4px 15px rgba(123,47,190,0.4);
}

.hero-btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123,47,190,0.6);
}

.hero-btn.btn-outline-light {
    border: 2px solid #fff;
    background: transparent;
}

.hero-btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* ============================
   Slider Section
   ============================ */

.slider-section {
    position: relative;
    color: #fff;
    margin: 0 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-box {
    padding: 20px;
    border-radius: 10px;
}

.slider-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.slider-description {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.rent,
.driver {
    padding: 10px 20px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.rent {
    background-color: #9B59B6;
    color: #fff;
}

.rent:hover {
    background-color: #7B2FBE;
    color: #fff;
}

.driver {
    background-color: #007bff;
    color: #fff;
}

.driver:hover {
    background-color: #0056b3;
    color: #fff;
}

@media (max-width: 768px) {
    .slider-title { font-size: 1.25rem; }
    .slider-description { font-size: 1rem; }
    .rent, .driver { font-size: 0.875rem; padding: 8px 15px; }
}

/* ============================
   Our Service Section (Intro Slider)
   ============================ */

.intro-section .container {
    position: relative;
}

.intro-slider-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    transition: 0.3s;
}

.intro-slider-prev { left: -8px; }
.intro-slider-next { right: -8px; }

.intro-slider-arrow:hover {
    background: var(--ach);
    color: #fff;
    border-color: var(--ach);
}

.intro-slider-arrow.slick-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.intro-box-update {
    border: 1px solid #ddd;
    border-radius: 12px;
    align-items: center;
    text-align: center;
    padding: 15px;
    margin: 0 10px;
    transition: border-color 0.2s ease;
}

.intro-box-update a h6 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    transition: color 0.2s ease;
}

.intro-box-update:hover { border-color: var(--ach); }
.intro-box-update:hover a { color: var(--ach); }
.intro-box-update:hover a h6 { color: var(--ach); }

.intro-box-update a img {
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.intro-box-update a img:hover { transform: scale(1.1); }

@media screen and (max-width: 767px) {
    .intro-slider-arrow {
        width: 34px;
        height: 34px;
        top: -15px;
        transform: none;
    }
    .intro-slider-prev { left: 10px; }
    .intro-slider-next { right: 10px; }
}

/* ============================
   Truck Filter Nav
   ============================ */

.truck-filter-nav .nav {
    margin: 30px 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.truck-filter-nav .nav .nav-link {
    color: #040e16;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #6c757d;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.truck-filter-nav .nav .nav-link.active {
    color: #fff;
    background-color: var(--ach);
    border-color: var(--ach);
}

/* ============================
   Truck Box Card
   ============================ */

.truck-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.truck-box:hover {
    box-shadow: 0 6px 20px rgba(57, 0, 86, 0.12);
    transform: translateY(-3px);
}

.truck-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.truck-box h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.truck-box p {
    font-size: 12px;
    color: #666;
}

/* ============================
   Search / Hero Section
   ============================ */

.home-section {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.search-hero-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

/* Overlay is now a dedicated .search-hero-overlay div (see search.blade.php) */
.search-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(93deg, rgba(9, 16, 23, 0.86) 0%, rgba(9, 16, 23, 0.68) 40%, rgba(9, 16, 23, 0.58) 63%, rgba(9, 16, 23, 0.80) 100%);
    z-index: 1;
}

.search-section-box {
    position: relative;
    z-index: 2;
    border-radius: 10px;
    min-height: 500px;
    width: 100%;
    height: 100%;
    padding: 84px 50px 56px;
}

.search-hero-title {
    max-width: 520px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.search-hero-description {
    max-width: 560px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.search-hero-section .home-search-box {
    margin-top: 44px;
    max-width: 100%;
    padding: 14px;
    background: #ececec;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.search-hero-section .home-search-box .nav-pills {
    padding: 0;
    gap: 6px;
    margin-bottom: 10px;
}

.search-hero-section .home-search-box .nav-pills .nav-link {
    margin: 0;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #7B2FBE;
    border: 1px solid #7B2FBE;
    background-color: #f3e5f5;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-hero-section .home-search-box .nav-pills .nav-link.active,
.search-hero-section .home-search-box .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #7B2FBE;
    border-color: #7B2FBE;
}

.search-hero-section .search-content {
    padding: 0;
    display: grid !important;
    gap: 10px;
}

.search-hero-section .truck-search-content {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.search-hero-section .driver-search-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.search-hero-section .search-content > div { padding: 0; }

.search-hero-section .form-floating > .form-control,
.search-hero-section .form-floating > .form-select {
    height: 56px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none !important;
    font-size: 14px;
}

.search-hero-section .form-floating > label {
    font-size: 11px;
    font-weight: 500;
    color: #9ea2a8;
}

.search-hero-section .search-content button {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    border: 0;
    background: #7B2FBE;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.search-hero-section .search-content button:hover { background: #6a28a6; }
.search-hero-section .search-content button i { margin-right: 0; }

@media screen and (max-width: 767px) {
    .search-section-box {
        padding: 42px 16px 24px;
        min-height: auto;
    }
    .search-hero-title { font-size: 34px; line-height: 1.15; }
    .search-hero-description { font-size: 14px; }
    .search-hero-section .home-search-box { width: 100%; margin-top: 26px; }
    .search-hero-section .search-content { grid-template-columns: 1fr; }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .search-hero-section .search-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================
   Vehicle Detail Page
   ============================ */

.vehicle-main-photo {
    width: 100%;
    max-width: 500px;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
}

.vehicle-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 100%;
}

@media (max-width: 576px) {
    .vehicle-main-photo {
        max-width: 100%;
        height: 220px;
    }
}

/* ============================
   Auth Pages — Split Panel
   ============================ */

.auth-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.auth-card {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(11, 29, 58, 0.14);
}

/* Left brand panel */
.auth-brand-panel {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(150deg, #7B2FBE 0%, #6a28a6 45%, #1a0a2e 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(195,155,211,0.15);
    border-radius: 50%;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -50px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    height: 48px;
    width: auto;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(195,155,211,0.2);
    border: 1px solid rgba(195,155,211,0.4);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #C39BD3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

.auth-brand-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.auth-brand-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

.auth-brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 14px;
    margin-top: 32px;
}

.auth-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #C39BD3;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.auth-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

/* Right form panel */
.auth-form-panel {
    background: #fff;
    padding: 48px 44px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-mobile-logo {
    height: 42px;
    width: auto;
    margin-bottom: 24px;
}

.auth-form-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1a0a2e;
    margin-bottom: 4px;
}

.auth-form-subtitle {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 28px;
}

/* Input groups with icons */
.auth-field {
    margin-bottom: 18px;
}

.auth-field .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .ai-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
    pointer-events: none;
    z-index: 5;
    line-height: 1;
}

.auth-input-wrap .form-control,
.auth-input-wrap .form-select {
    padding-left: 42px;
    height: 50px;
    border-radius: 10px;
    border: 1.5px solid #E5E7EB;
    font-size: 14px;
    background: #FAFAFA;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: #1F2937;
}

.auth-input-wrap .form-control:focus,
.auth-input-wrap .form-select:focus {
    border-color: #7B2FBE;
    box-shadow: 0 0 0 3px rgba(123,47,190,0.09);
    background: #fff;
    outline: none;
}

.auth-input-wrap .form-control.has-toggle {
    padding-right: 44px;
}

.auth-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    line-height: 1;
}

.auth-pw-toggle:hover { color: #0B1D3A; }

/* Remember / Forgot row */
.auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-remember-row .form-check-label {
    font-size: 13px;
    color: #6B7280;
}

.auth-forgot {
    font-size: 13px;
    color: #7B2FBE;
    font-weight: 500;
    text-decoration: none;
}

.auth-forgot:hover { color: #9B59B6; }

/* Submit button */
.auth-submit-btn {
    height: 50px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    background: #7B2FBE;
    color: #fff;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.auth-submit-btn:hover {
    background: #1a0a2e;
    color: #fff;
    box-shadow: 0 4px 18px rgba(123,47,190,0.28);
    transform: translateY(-1px);
}

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

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Bottom link */
.auth-bottom-link {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    margin-top: 18px;
    margin-bottom: 0;
}

.auth-bottom-link a {
    color: #7B2FBE;
    font-weight: 600;
    text-decoration: none;
}

.auth-bottom-link a:hover { color: #9B59B6; }

/* User-type toggle tabs (Register page) */
.user-type-tabs {
    display: flex;
    gap: 6px;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}

.user-type-tab {
    flex: 1;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 8px;
}

.user-type-tab input[type="radio"] { display: none; }

.user-type-tab.selected {
    background: #fff;
    color: #0B1D3A;
    font-weight: 600;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Info box on code-verify pages */
.auth-info-box {
    background: rgba(11, 29, 58, 0.05);
    border: 1px solid rgba(11, 29, 58, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-info-box i { color: #0B1D3A; font-size: 18px; margin-top: 1px; }

/* Resend link */
.auth-resend-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #6B7280;
}

.auth-resend-link a { color: #7B2FBE; font-weight: 600; }
.auth-resend-link a:hover { color: #9B59B6; }

/* Description text above form */
.auth-desc-text {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border-left: 3px solid #7B2FBE;
}

/* Responsive */
@media (max-width: 991px) {
    .auth-brand-panel { display: none !important; }
    .auth-card { border-radius: 16px; }
}

@media (max-width: 575px) {
    .auth-form-panel { padding: 28px 20px; }
    .auth-card { border-radius: 12px; }
    .auth-section { padding: 24px 0; }
}

/* ============================
   Footer — Enhanced Design
   ============================ */

.footer-part {
    background: var(--tn-navy, #0B1D3A);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Social icons — circular buttons */
.footer-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.footer-social-btn:hover {
    background: #9B59B6;
    border-color: #9B59B6;
    color: #fff;
    transform: translateY(-2px);
}

/* Section headings */
.footer-section-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Footer links */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li { margin-bottom: 10px; }

.footer-nav-list li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-nav-list li a::before {
    content: '›';
    font-size: 16px;
    color: #9B59B6;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-nav-list li a:hover::before { opacity: 1; }

/* Contact block */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item:hover { color: #fff; }

.footer-contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #C39BD3;
    flex-shrink: 0;
}

/* Newsletter (subscribe) */
.footer-newsletter-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.footer-newsletter-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.footer-subscribe-form .input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-subscribe-form .form-control {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: #fff;
    font-size: 13px;
    height: 44px;
    border-radius: 0;
    box-shadow: none !important;
}

.footer-subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-subscribe-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
}

.footer-subscribe-form .input-group-text {
    background: #9B59B6;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0;
}

.footer-subscribe-form .input-group-text:hover { background: #7B2FBE; }

/* Copyright bar */
.copyright-part {
    background: #060f1d;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.copyright-part .back-to-top {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 16px;
}

.copyright-part .back-to-top:hover {
    background: #9B59B6;
    color: #fff;
}

.copyright-policy-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright-policy-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.copyright-policy-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* ============================
   Search — field shake animation (validation feedback)
   ============================ */
@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-6px); }
    30%       { transform: translateX(6px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}

.shake-field {
    animation: shakeField 0.55s ease;
}

.shake-field .form-control,
.shake-field .search-loc-pin {
    border-color: #7B2FBE !important;
    color: #7B2FBE !important;
}
