/* STEERLINK UI Stylesheet */

:root {
    --navy-primary: #0b2240;
    --navy-dark: #061529;
    --gold-accent: #aa8b55;
    --gold-hover: #986d38;
    --light-bg: #f5f7fa;
    --text-dark: #333333;
}

.py-6 {
    padding-top: 5rem !important;
    /* 80px*/
    padding-bottom: 5rem !important;
}

.py-7 {
    padding-top: 7rem !important;
    /* 112px*/
    padding-bottom: 7rem !important;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- ADVANCED OVERLAY FIXED HEADER (First View Transparent) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}


/* --- SCROLLED STICKY STATE (Fires via JS class injection) --- */
.main-header.sticky-scrolled {
    padding: 12px 0px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(178, 130, 71, 0.3);
    background-color: #08192d;
}

.logo-icon {
    background-color: var(--gold-accent);
    color: white;
    font-weight: 900;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.logo-icon.dark {
    background-color: var(--navy-primary);
}

.logo-text {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-text.dark {
    color: var(--navy-primary);
}

.logo-subtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

.logo-subtext.dark {
    color: #888888;
}

.header-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
    transition: color 0.2s;
    height: 75px;
}

.header-menu .nav-link:hover {
    color: black !important;
    background-color: #eeeeee;
}

.btn-gold {
    background-color: var(--gold-accent);
    color: #ffffff;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    color: white;
}

.btn-outline-login {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(11, 34, 64, 0.4);
    font-size: 14px;
    border-radius: 4px;
}

.btn-outline-login:hover {
    background-color: white;
    color: var(--navy-dark) !important;
}

/* --- HERO BANNER LAYOUT --- */
.hero-section {
    position: relative;
    background-color: #0b2240;
    background-image: url('../img/search_nw/steerlink_top_bg.jpg?v=2');
    background-size: cover;
    background-position: center;

    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    line-height: 1.3;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.btn-gold-lg {
    background-color: var(--gold-accent);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn-gold-lg:hover {
    background-color: var(--gold-hover);
    color: white;
}

/* --- GRID ITEMS --- */
.features-bar {
    border-bottom: 4px solid var(--gold-accent);
}

.feature-icon-box {
    font-size: 28px;
    color: var(--gold-accent);
}

.text-light-muted {
    color: #b0c2d4;
    font-size: 12px;
}

.text-gold {
    color: var(--gold-accent) !important;
}

.bg-light-gray {
    background-color: var(--light-bg);
}

.bg-light-navy {
    background-color: rgba(6, 21, 41, 0.96)
}

.section-title {
    font-size: 26px;
    color: var(--navy-primary);
}

.btn-navy-lg {
    background: linear-gradient(135deg, #274b8f 0%, #1d3f78 50%, #132f5c 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(29, 63, 120, 0.3);
}

.btn-navy-lg:hover {
    background: linear-gradient(135deg, #2e57a6 0%, #23498a 50%, #18386d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(29, 63, 120, 0.4);
    color: #fff;
}

.bg-dark-navy {
    background-color: var(--navy-primary);
}

.search-form-box {
    border-left: 5px solid var(--navy-primary);
}

.count-display-card {
    background: linear-gradient(rgba(11, 34, 64, 0.85), rgba(6, 21, 41, 0.95)), url('../img/トップイメージ①.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--gold-accent);
}

.display-number .num {
    font-size: 38px;
    color: var(--gold-accent);
}

.bg-custom-dark {
    background-color: #08192d !important;
}

.shadow-cus {
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
}

.text-muted-light {
    color: #a0aec0 !important;
    font-size: 0.85rem;
    line-height: 1.6;
}

.text-navy {
    color: #0b2e6f !important;
}

.bg-navy-dark {
    background-color: #08192d !important;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: #cca464;
    display: block;
}

.search-card-new {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: #333333;
    padding: 15px 10px;
    height: 110px;
}

.search-card-new:hover,
.search-card-wrapper:hover .search-card-new {
    border-color: #0b2e6f;
    box-shadow: 0 4px 12px rgba(11, 46, 111, 0.08);
    color: #0b2e6f;
    transform: translateY(-2px);
    background-color: #f5f7fa;
}

.search-card-new:hover .card-label-new {
    color: #052759
     !important; 
    transition: color 0.2s ease;
}

.search-card-new img {
    height: 45px;
    object-fit: contain;
}

.card-label-new {
    font-size: 0.75rem;
    font-weight: 500;
}

.search-filter-box {
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-select-custom {
    border: 1px solid #cbd5e1;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    color: #333;
}

.btn-navy-search {
    background-color: #0b2e6f !important;
    color: white !important;
    padding: 10px 30px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-gold-banner {
    background-color: #cca464 !important;
    color: white !important;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-green-wide {
    background-color: #f4f9f5;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-green-wide:hover {
    background-color: #ebf5ed;
}

.news-row:hover {
    background-color: #fafbfc;
}

.hover-gold:hover {
    color: var(--gold-accent) !important;
}

.guide-cta-box {
    background: linear-gradient(135deg, #0f2d54 0%, #061529 100%);
}

.header-phone-group {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.15;
}

.phone-row {
    gap: 8px;
}

.phone-tag {
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    padding: 4px 20px;
    border-radius: 3px;
    min-width: 58px;
    text-align: center;
    letter-spacing: 0.5px;
    display: inline-block;
}

.phone-tag.tag-red {
    background-color: #c82333;
}

.phone-tag.tag-blue {
    background-color: #0056b3;
}

.phone-link-num {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.phone-link-num:hover {
    color: var(--gold-accent, #d4af37) !important;
}

.phone-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 3px;
    white-space: nowrap;
}

#truckTabs {
    border: none;
}

#truckTabs .nav-link {
    color: #4b5563;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#truckTabs .nav-link.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.truck-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.truck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.truck-card img {
    transition: transform 0.5s ease;
}

.truck-card:hover img {
    transform: scale(1.04);
}

.fs-7 {
    font-size: 0.75rem !important;
}

.border-dashed {
    border-style: dashed !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.fw-black {
    font-weight: 900 !important;
}

.stat-icon-wrap {
    width: 65px;
    height: 65px;
    transition: all 0.3s ease;
}

.stat-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
}

.stat-card:hover .stat-icon-wrap {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    transform: rotate(5deg);
}

.stat-number-wrap {
    color: #0b2240 !important;
}

#steerlinkHeader.menu-opened {
    background-color: #08192d;
    transition: background-color 0.3s ease;
}

.header-menu .nav-item.dropdown:has(.dropdown-menu:hover) .nav-link {
    color: rgb(0, 0, 0) !important;
    background-color: #eeeeee;
}

.compact-banner-card {
    min-height: 90px; 
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.card-red {
    background: linear-gradient(135deg, #e31b23 0%, #dc3545 100%);
}

.card-green {
    background: linear-gradient(#77d800, #3f7200);
}

.card-blue {
    background: linear-gradient(135deg, #0d52bf 0%, #0a3880 100%);
}

.banner-icon-circle {
    width: 48px;
    height: 48px;
}

.arrow-btn {
    width: 38px;
    height: 38px;
    transition: transform 0.25s ease;
}

.compact-banner-card:hover .arrow-btn {
    transform: translateX(4px);
}

.sub-text {
    font-size: 12px;
    letter-spacing: -0.2px;
}

.bg-watermark {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 76px;
    opacity: 0.12;
    color: #ffffff;
    pointer-events: none;
    z-index: 0;
}

.card-dropdown-menu {
    display: none;
    z-index: 2;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 5px;
    background: #fff;
    gap: 7px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: absolute;
}

.dropdown-item-custom {
    display: block;
    padding: 6px 12px;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item-custom:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

.search-card-wrapper:hover .card-dropdown-menu {
 display: block;
}

.dropdown-menu li a:hover::after {
    width: 100%;
    color: #fff;
}

.dropdown-menu>li>a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    content: '';
    width: 0;
    height: 5px;
    background-color: #b8d2ff;
    transition: .6s;
    color: #fff;

}

#tab-loader{
    display: none;
}

/* Search Card Wrapper CSS fix */
.search-card-wrapper {
    width: 100%;
}

.search-card-new {
    height: 100%;
    min-height: 110px;
}


/* Custom Responsive Truck Grid */
.vehicle-grid-responsive {
    display: grid;
    /* Large screens (Laptop): පේළියට 5 යි */
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.tab-btn {
    font-size: 0.875rem; /* ~14px */
}

/* ===================================================
   min width 小～大
   =================================================== */

@media (min-width: 992px) {
    .border-end-custom {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .hero-section {
        height: 450px;
        min-height: 450px;
    }

    .feature-divider {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .feature-item:last-child .feature-divider {
        border-right: none;
    }

    .logo_main {
        width: 15%;
    }

    .logo_main .logo-wrapper img {
        width: 100%;
    }

    .tab-btn {
        font-size: 1.25rem; /* fs-5 size එක */
    }
}

@media (min-width: 1200px) {
    .vehicle-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .header-menu .nav-item.dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease-in-out;
        margin-top: 0;
    }

    .header-menu .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {

    .header-menu .nav-link,
    .header-buttons .btn {
        white-space: nowrap !important;
        font-size: 14px !important;
    }

    .header-menu .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .header-buttons {
        gap: 6px !important;
    }

    .header-buttons .btn {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* ===================================================
    max width 大～小
   =================================================== */
@media (max-width: 1399px) {
    .phone-link-num {
        font-size: 14px;
    }

    .phone-tag {
        font-size: 9px;
        min-width: 52px;
        padding: 1px 4px;
    }

    .header-phone-group {
        margin-right: 6px !important;
    }
}

/* Medium Screens (Tablet): පේළියට 5 ක් අමාරු නිසා 3ක් හෝ 4ක් දාමු */
@media (max-width: 1199px) {
    .vehicle-grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 991px) {
    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

@media (max-width: 767px) {
    .bg-light-gray {
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .bg-light-gray .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .bg-light-gray .col-lg-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .bg-light-gray .col-lg-7 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .vehicle-grid-responsive {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

}

/* Extra Small Screens (Mobile - Vertical): පේළියට 2 යි */
@media (max-width: 480px) {
    .vehicle-grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}



