/* ========================================================
   AVEX LOGISTICS SERVICES - MODERN HOME PAGE STYLING
   ======================================================== */

/* --- TOP BAR --- */
.avex-topbar {
    background: #0C1B33;
    color: #CBD5E1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.avex-topbar a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}
.avex-topbar a:hover {
    color: #1062FE;
}
.avex-topbar .contact-items {
    display: flex;
    gap: 22px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.avex-topbar .social-items {
    display: flex;
    gap: 14px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

/* --- MAIN NAVBAR --- */
.avex-navbar {
    background: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 14px 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    z-index: 1000;
}
.avex-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
.avex-navbar .navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.avex-navbar .nav-link {
    color: #1E293B !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px !important;
    transition: color 0.2s;
    position: relative;
}
.avex-navbar .nav-link:hover,
.avex-navbar .nav-item.active .nav-link {
    color: #1062FE !important;
}
.avex-navbar .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: #1062FE;
    border-radius: 2px;
}
.avex-navbar .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(12, 27, 51, 0.12);
    padding: 8px 0;
    margin-top: 10px;
}
.avex-navbar .dropdown-item {
    font-size: 14px;
    color: #334155;
    padding: 10px 20px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.avex-navbar .dropdown-item:hover {
    background: #F1F5F9;
    color: #1062FE;
}
.btn-avex-nav-quote {
    background: #1062FE;
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 98, 254, 0.35);
    transition: all 0.3s ease;
    margin-left: 14px;
}
.btn-avex-nav-quote:hover {
    background: #0C4ED6;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 98, 254, 0.45);
}

/* --- HERO SLIDER OVERRIDES --- */
.home-slider {
    width: 100%;
    height: 720px !important;
    position: relative;
    z-index: 1;
    background: #08172C !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}
.hero-slider {
    width: 100%;
    height: 720px !important;
    position: relative;
    overflow: hidden;
    background: transparent !important;
}
.hero-slider .flickity-viewport {
    height: 720px !important;
    width: 100% !important;
}
.hero-slider .carousel-cell {
    width: 100%;
    height: 720px !important;
    background-size: cover;
    background-position: center right;
    position: relative;
}
/* Modern Floating Page Dots over Hero */
.hero-slider .flickity-page-dots {
    bottom: 24px !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 6px 14px !important;
    background: rgba(8, 23, 44, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.hero-slider .flickity-page-dots .dot {
    width: 24px !important;
    height: 5px !important;
    margin: 0 !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
.hero-slider .flickity-page-dots .dot:hover {
    background: rgba(255, 255, 255, 0.85) !important;
}
.hero-slider .flickity-page-dots .dot.is-selected {
    width: 42px !important;
    background: #1062FE !important;
    box-shadow: 0 0 10px rgba(16, 98, 254, 0.6) !important;
}
.hero-overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.90) 40%, rgba(255,255,255,0.50) 65%, rgba(255,255,255,0.05) 100%);
    z-index: 1;
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    max-width: 620px;
}
.avex-hero-badge {
    display: none !important;
}
.avex-hero-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.12;
    color: #0C1B33;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
}
.avex-hero-title .text-avex-blue {
    color: #1062FE !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1062FE !important;
    filter: none !important;
    text-shadow: none !important;
    display: inline;
}
.avex-hero-desc {
    font-size: 16.5px;
    color: #334155;
    line-height: 1.55;
    font-weight: 500;
    margin-bottom: 22px;
    font-family: 'Roboto', sans-serif;
    max-width: 540px;
}
.avex-hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.btn-avex-primary {
    background: #1062FE;
    color: #FFFFFF !important;
    border-radius: 50px;
    padding: 13px 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 22px rgba(16, 98, 254, 0.35);
    transition: all 0.3s ease;
}
.btn-avex-primary:hover {
    background: #0C4ED6;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(16, 98, 254, 0.45);
}
.btn-avex-outline {
    background: #FFFFFF;
    color: #0C1B33 !important;
    border: 1.5px solid #CBD5E1;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}
.btn-avex-outline:hover {
    border-color: #1062FE;
    color: #1062FE !important;
    background: #F8FAFC;
    transform: translateY(-2px);
}

/* --- HERO TRACKING CARD --- */
.avex-hero-trackbox {
    width: 100%;
    max-width: 580px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(12, 27, 51, 0.16);
    border: 1px solid rgba(16, 98, 254, 0.15);
    padding: 7px 8px;
}
.avex-hero-trackbox .track-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}
.avex-hero-trackbox .input-icon-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}
.avex-hero-trackbox .input-icon-wrap i {
    color: #1062FE;
    font-size: 16px;
}
.avex-hero-trackbox input[type="text"] {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    color: #0C1B33;
    padding: 10px 0;
    background: transparent;
}
.avex-hero-trackbox input[type="text"]::placeholder {
    color: #94A3B8;
}
.btn-avex-track-submit {
    background: #0C1B33;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-avex-track-submit:hover {
    background: #1062FE;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 98, 254, 0.3);
}

/* --- BOTTOM BLUE HIGHLIGHTS STRIP --- */
.avex-strip-bar {
    background: #1062FE;
    color: #FFFFFF;
    padding: 26px 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(16, 98, 254, 0.25);
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 12px;
    transition: transform 0.2s ease;
}
.highlight-link-wrap {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}
.highlight-link-wrap:hover .highlight-item {
    transform: translateY(-2px);
}
.highlight-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.highlight-icon svg {
    display: block;
    width: 42px;
    height: 42px;
}
.highlight-text h6 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 3px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}
.highlight-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin: 0;
    line-height: 1.35;
}
.highlight-text a {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.2s;
}
.highlight-text a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .avex-strip-bar [class*="col-"]:not(:last-child) .highlight-item {
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        padding-right: 20px;
    }
}

/* Touch-action and hardware acceleration for smooth mobile swipe */
.hero-slider,
.hero-slider .flickity-viewport,
.hero-slider .carousel-cell,
.slick-slider,
.slick-list,
.slick-track {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}
.hero-slider .flickity-slider {
    will-change: transform;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .home-slider,
    .hero-slider,
    .hero-slider .flickity-viewport {
        height: 560px !important;
    }
    .hero-slider .carousel-cell {
        height: 560px !important;
        min-height: 560px;
        padding: 25px 0 35px 0;
    }
    .hero-overlay-mask {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 60%, rgba(255, 255, 255, 0.80) 100%);
    }
    .hero-content-wrapper {
        justify-content: flex-start !important;
        padding-top: 32px !important;
        padding-bottom: 25px !important;
        max-width: 100%;
    }
    .avex-hero-title {
        font-size: 42px;
        line-height: 1.12;
        letter-spacing: -1.2px;
        margin-bottom: 18px;
    }
    .avex-hero-title .text-avex-blue {
        color: #1062FE !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #1062FE !important;
        filter: none !important;
        text-shadow: none !important;
    }
    .avex-hero-desc {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 20px;
    }
    .avex-hero-buttons {
        gap: 12px;
        margin-bottom: 22px;
    }
    .btn-avex-primary,
    .btn-avex-outline {
        padding: 10px 22px;
        font-size: 14px;
    }
    .avex-hero-trackbox {
        padding: 6px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(12, 27, 51, 0.12);
        margin-bottom: 0;
    }
    .avex-hero-trackbox .track-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .avex-hero-trackbox .input-icon-wrap {
        padding: 8px 12px;
    }
    .avex-hero-trackbox input[type="text"] {
        font-size: 14px;
        padding: 4px 0;
    }
    .btn-avex-track-submit {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 13px;
        border-radius: 8px;
    }
    .btn-avex-nav-quote {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
        text-align: center;
    }
    .hero-slider .flickity-page-dots {
        bottom: 16px !important;
    }
}

@media (max-width: 991px) {
    .avex-strip-bar {
        padding: 20px 0 10px 0;
    }
    .highlight-item {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        padding: 12px 14px;
        margin-bottom: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        height: auto;
    }
    .highlight-icon {
        width: 40px;
        height: 40px;
    }
    .highlight-icon svg {
        width: 38px;
        height: 38px;
    }
    .highlight-text h6 {
        font-size: 14px;
        margin-bottom: 2px;
    }
    .highlight-text p {
        font-size: 12.5px;
        color: rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 576px) {
    .avex-navbar {
        padding: 10px 0 !important;
    }
    .avex-navbar .navbar-brand img {
        height: 40px !important;
    }
    .home-slider,
    .hero-slider,
    .hero-slider .flickity-viewport {
        height: 510px !important;
    }
    .hero-slider .carousel-cell {
        height: 510px !important;
        min-height: 510px !important;
        padding: 10px 0 20px 0 !important;
    }
    .hero-content-wrapper {
        justify-content: flex-start !important;
        padding-top: 28px !important;
        padding-bottom: 16px !important;
    }
    .avex-hero-title {
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 34px;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.8px;
        margin-bottom: 16px !important;
        color: #0C1B33;
        text-shadow: none;
        -webkit-font-smoothing: antialiased;
    }
    .avex-hero-title .text-avex-blue {
        color: #1062FE !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #1062FE !important;
        filter: none !important;
        text-shadow: none !important;
    }
    .avex-hero-desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px !important;
        color: #475569;
    }
    .avex-hero-buttons {
        gap: 10px;
        margin-bottom: 20px !important;
    }
    .btn-avex-primary,
    .btn-avex-outline {
        padding: 9px 18px;
        font-size: 13px;
        font-weight: 700;
    }
    .avex-hero-trackbox {
        padding: 6px;
        border-radius: 12px;
        margin-bottom: 0;
    }
    .avex-hero-trackbox .track-input-group {
        gap: 6px;
    }
    .avex-hero-trackbox .input-icon-wrap {
        padding: 6px 10px;
    }
    .btn-avex-track-submit {
        padding: 10px 14px;
        font-size: 12.5px;
        font-weight: 800;
    }
    .hero-slider .flickity-page-dots {
        bottom: 14px !important;
    }
}

/* ====================================================
   DEDICATED TRACKING CARD (track.php)
==================================================== */
.avex-track-section {
    position: relative;
    z-index: 20;
    margin-top: -90px;
    margin-bottom: 70px;
    padding: 0 15px;
}
.avex-track-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(12, 27, 51, 0.12), 0 4px 16px rgba(16, 98, 254, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 44px 50px;
    max-width: 960px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avex-track-card:hover {
    box-shadow: 0 24px 60px rgba(12, 27, 51, 0.16), 0 6px 20px rgba(16, 98, 254, 0.12);
}
.track-card-header {
    text-align: center;
    margin-bottom: 28px;
}
.track-card-header .track-badge {
    background: rgba(16, 98, 254, 0.08);
    color: #1062FE;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 12px;
}
.track-card-header .track-card-title {
    color: #0C1B33;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
}
.track-card-header .track-card-desc {
    color: #64748B;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 650px;
}
.avex-track-form {
    margin: 0 auto;
}
.track-search-box {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    padding: 6px 8px 6px 18px;
    transition: all 0.3s ease;
}
.track-search-box:focus-within {
    border-color: #1062FE;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(16, 98, 254, 0.12);
}
.track-search-field-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}
.track-search-icon {
    color: #1062FE;
    font-size: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.track-search-input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #0C1B33;
    padding: 12px 0;
}
.track-search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}
.btn-avex-track-submit-main {
    background: #1062FE;
    color: #FFFFFF !important;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(16, 98, 254, 0.35);
    white-space: nowrap;
}
.btn-avex-track-submit-main:hover {
    background: #0C4ED6;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 98, 254, 0.45);
}
.track-card-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #F1F5F9;
}
.track-card-features .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}
.track-card-features .feature-item i {
    color: #1062FE;
    font-size: 15px;
}

@media (max-width: 768px) {
    .avex-track-section {
        margin-top: -50px;
        margin-bottom: 50px;
        padding: 0 12px;
    }
    .avex-track-card {
        padding: 26px 16px;
        border-radius: 16px;
    }
    .track-card-header .track-card-title {
        font-size: 22px;
        line-height: 1.25;
    }
    .track-card-header .track-card-desc {
        font-size: 13.5px;
        line-height: 1.45;
        margin-bottom: 6px;
    }
    .track-search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 10px;
        background: transparent;
        border: none;
    }
    .track-search-box:focus-within {
        box-shadow: none;
        border-color: transparent;
        background: transparent;
    }
    .track-search-field-wrap {
        background: #F8FAFC;
        border: 2px solid #E2E8F0;
        border-radius: 12px;
        padding: 4px 14px;
        width: 100%;
        transition: all 0.3s ease;
    }
    .track-search-field-wrap:focus-within {
        border-color: #1062FE;
        background: #FFFFFF;
        box-shadow: 0 0 0 3px rgba(16, 98, 254, 0.12);
    }
    .track-search-input {
        padding: 10px 0;
        text-align: left;
        font-size: 14px;
    }
    .btn-avex-track-submit-main {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    .track-card-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 20px;
        padding-top: 18px;
    }
    .track-card-features .feature-item {
        font-size: 13px;
    }
}


