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

.ct-hp-close-top {
    padding-top: 0 !important;
}

.latest-home-slider {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.custom-hero {
    position: relative;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 30px;
    overflow: hidden;
}

/* Decorative dots */
.dots {
    position: absolute;
    z-index: 0;
}

.dots.top {
    height: 100px;
    width: 160px;
    top: 120px;
    right: 0;
    opacity: 1;
}

.dots.bottom {
    height: 68px;
    width: 116px;
    left: 0;
    bottom: 2%;
    opacity: 1;
}

/* Hero content (left side) */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.hero-content h2 {
    font-family: 'Red Hat Display', sans-serif;
    color: var(--ct-red);
    font-size: 58px;
    line-height: 77px;
    font-weight: 700;
    padding-bottom: 35px;
    text-align: left;
}

/* Track input */
.form-track-group {
    margin-bottom: 8px;
}

.input-wrap {
    display: flex;
    position: relative;
    max-width: 592px;
    margin-bottom: 16px;
}

.input-wrap .form-control {
    border: 2px solid var(--ct-red);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
    font-size: 16px;
    height: auto;
}

.input-wrap .form-control:focus {
    box-shadow: none;
    border-color: var(--ct-red);
}

.input-wrap .btn-primary {
    background-color: var(--ct-red);
    border: 2px solid var(--ct-red);
    border-radius: 0 8px 8px 0;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    transition: all 0.2s ease;
}

.input-wrap .btn-primary:hover {
    background-color: var(--ct-red);
    border-color: var(--ct-red);
}

.block-info-text {
    font-size: 14px;
    color: #5d6777;
    line-height: 24px;
    font-weight: 400;
    padding-top: 16px;
    padding-bottom: 30px;
    max-width: 450px;
}

.block-info-text a {
    color: var(--ct-red);
    text-decoration: underline;
}

.block-info-text strong {
    color: #1a1a1a;
}

/* Hero mockup (right side) */
.hero-mockup-block {
    position: relative;
    max-width: 470px;
    width: 100%;
    margin: 0 auto 40px;
    z-index: 1;
}

.hero-mockup {
    max-width: 100%;
}

.hero-mockup img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== Action Cards Section ===== */

.calculate-charge-section.home-option {
    padding: 0 0 60px;
    position: relative;
}

/* Two-tone background: white on top, #EEF1F5 on bottom — boundary through middle of cards */
.calculate-charge-section.home-option::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #fff 0%, #fff 50%, #EEF1F5 50%, #EEF1F5 100%);
    z-index: 0;
}

.primary-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Cards */
.btn-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    height: 250px;
    flex: 1 1 0;
    min-width: 0;
    padding: 20px 30px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

/* Primary (Send Shipment) card — site red, taller and wider */
.btn-card.card-primary {
    background-color: var(--ct-red);
    flex: 2 1 0;
    min-width: 400px;
    height: 320px;
    margin-top: -35px;
    box-shadow: 0 6px 20px rgba(6, 60, 135, 0.3);
    border: none;
}

.btn-card.card-primary h3,
.btn-card.card-primary p {
    color: #fff;
}

.btn-card.card-primary .img-wrap .default-icon {
    opacity: 0;
}

.btn-card.card-primary .img-wrap .active-icon {
    opacity: 1;
}

/* Hover effect */
.btn-card.card-primary:hover {
    background-color: var(--ct-red);
}

.btn-card:not(.card-primary):hover {
    background-color: var(--ct-red);
}

.btn-card:hover .img-wrap .active-icon {
    opacity: 1;
}

.btn-card:hover .img-wrap .default-icon {
    opacity: 0;
}

.btn-card:hover h3,
.btn-card:hover p {
    color: #fff;
}

/* Card content */
.btn-card .img-wrap {
    display: block;
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Recolor red PNG/AVIF icons to blue */
.btn-card .img-wrap img.default-icon[src$=".png"],
.btn-card .img-wrap img.default-icon[src$=".avif"] {
    filter: brightness(0) saturate(100%) invert(14%) sepia(100%) saturate(2000%) hue-rotate(195deg);
}

.btn-card .img-wrap img {
    display: block;
    transition: all 0.3s ease;
}

.btn-card .img-wrap .active-icon {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.btn-card h3 {
    color: #5d6777;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    padding-bottom: 12px;
    transition: color 0.3s ease;
}

.btn-card p {
    color: #5d6777;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    white-space: normal;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 1399px) {
    .hero-content h2 {
        font-size: 40px;
        line-height: 48px;
        padding-bottom: 8px;
    }
}

@media (max-width: 1199px) {
    .hero-content h2 {
        font-size: 40px;
        line-height: 48px;
        padding-bottom: 8px;
    }

    .btn-card {
        height: auto;
        min-height: 240px;
    }

    .btn-card.card-primary {
        min-width: 300px;
        min-height: 300px;
        margin-top: -20px;
    }
}

@media (max-width: 991px) {
    .custom-hero {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 32px;
        line-height: 38px;
        text-align: center;
    }

    .dots {
        display: none;
    }

    .hero-mockup-block {
        margin-bottom: 30px;
    }

    .btn-card,
    .primary-btn-block .btn-card:not(.card-primary) {
        flex: 1 1 calc(50% - 12px);
        min-width: calc(50% - 12px);
        height: 100%;
        min-height: 200px;
    }

    .btn-card.card-primary {
        flex: 1 1 100%;
        min-width: 100%;
        min-height: 240px;
        margin-top: 0;
    }

    .btn-card:not(.card-primary) h3 {
        font-size: 20px;
        padding-bottom: 8px;
    }

    .btn-card:not(.card-primary) p {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .btn-card:not(.card-primary) .img-wrap {
        margin-bottom: 8px;
    }

    .btn-card:not(.card-primary) .img-wrap img {
        height: 48px;
    }
}

@media (max-width: 575px) {
    .hero-content h2 {
        font-size: 30px;
    }

    .input-wrap {
        flex-direction: column;
    }

    .input-wrap .form-control {
        border-right: 2px solid var(--ct-red);
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .input-wrap .btn-primary {
        border-radius: 8px;
        width: 100%;
    }

    .btn-card,
    .primary-btn-block .btn-card:not(.card-primary),
    .btn-card.card-primary {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 350px;
        margin-top: 0;
        height: auto;
        min-height: 200px;
    }

    .primary-btn-block {
        flex-direction: column;
        align-items: center;
    }
}
