/********** Template CSS — Team Manar Logistics **********/
:root {
    --primary: #FF6600;
    --secondary: #FFB347;
    --light: #F0F4F8;
    --dark: #0B1F3A;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    background: rgba(4, 15, 40, .7);
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--primary)
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

/* ===== Team Manar Logistics Additions ===== */

/* Stats counter cards */
.stat-card {
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform .3s;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8d6e5;
}

/* Dashboard feature cards */
.dash-card {
    border: none;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .3s;
}
.dash-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.dash-card i { font-size: 2rem; color: var(--primary); }

/* Slogan band */
.slogan-band {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Why-choose icon boxes */
.why-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.why-box .why-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

/* Hero caption buttons row */
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Navbar brand icon override */
.navbar-brand i.bi-truck-front { font-size: 1.6rem; }

/* Tracking input bar */
.track-bar { max-width: 600px; margin: 0 auto; }
.track-bar .form-control { border-radius: 0; height: 54px; }
.track-bar .btn { border-radius: 0; height: 54px; }

/* ===== LANGUAGE TOGGLE BUTTON ===== */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 28px;
    padding: 10px 24px;
    background: var(--dark);
    color: #fff;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11,31,58,.25);
    transition: background .3s, transform .2s, box-shadow .3s, border-color .3s;
    white-space: nowrap;
}
.lang-toggle-btn:hover {
    background: #162e54;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11,31,58,.35);
}
.lang-toggle-btn:active {
    transform: translateY(0);
}
@media (max-width: 991.98px) {
    .lang-toggle-btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        font-size: .95rem;
        padding: 10px 16px;
    }
}

/* ===== MOBILE OPTIMISATION ===== */
@media (max-width: 991.98px) {
    /* Reduce section padding */
    .py-6 { padding-top: 50px; padding-bottom: 50px; }
    .pt-6 { padding-top: 50px; }
    .pb-6 { padding-bottom: 50px; }

    /* Horizontal padding */
    .container-fluid.px-5 { padding-left: 16px !important; padding-right: 16px !important; }
    .container-fluid.pe-lg-0 { padding-right: 16px !important; }

    /* Navbar brand smaller on mobile */
    .navbar-brand h1 { font-size: 1.6rem !important; }
    .navbar-brand i { font-size: 1.3rem !important; }
}

@media (max-width: 767.98px) {
    /* Carousel text */
    .carousel-caption h1 { font-size: 1.6rem !important; line-height: 1.2; }
    .carousel-caption p { font-size: 0.9rem !important; }
    .carousel-caption .fa-4x { font-size: 2rem !important; }
    .carousel-item img { height: 340px; object-fit: cover; }

    /* Hero buttons stack vertically */
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; max-width: 280px; }

    /* About section image */
    .col-lg-5.pb-5 { min-height: 240px !important; padding-bottom: 0 !important; }

    /* Service cards full width */
    .service-item { margin-bottom: 20px; }

    /* Stats cards */
    .stat-card { padding: 20px 12px; }
    .stat-card .stat-number { font-size: 2rem; }

    /* Section headings */
    .display-5 { font-size: 1.5rem !important; }
    h1.display-5 { font-size: 1.5rem !important; }

    /* Slogan band */
    .slogan-band { font-size: 1rem; padding: 14px 16px; }

    /* Footer */
    .footer.container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
    .footer .col-lg-6 { padding-right: 0 !important; padding-left: 0 !important; }
    .footer-shape::before { display: none; }

    /* Portfolio items */
    .portfolio-item { margin-bottom: 40px; }
    .portfolio-title { right: 10px; left: 10px; bottom: -50px; padding: 0 16px; }

    /* Appointment / form */
    .bg-light.text-center.p-5 { padding: 20px !important; }

    /* Contact form */
    .contact-form { margin-left: 0 !important; }

    /* Job cards */
    .job-card .card-body { padding: 20px !important; }

    /* Apply CTA */
    .apply-hero { padding: 36px 20px !important; }
}

@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-brand h1 { font-size: 1.3rem !important; }

    /* Carousel */
    .carousel-caption h1 { font-size: 1.3rem !important; }
    .carousel-item img { height: 280px; }

    /* Headings */
    .display-5 { font-size: 1.3rem !important; }
    .display-3 { font-size: 1.8rem !important; }

    /* Stat numbers */
    .stat-card .stat-number { font-size: 1.6rem; }

    /* About checklist */
    .col-sm-6 { width: 100%; }

    /* Buttons full width on small screens */
    .btn.py-md-3.px-md-5 { padding: 10px 20px !important; font-size: 0.85rem; }
}
