/* Nayyar Agri Parts – final inner-page spacing and banner consistency */

/* Keep every inner-page banner visually consistent and separated from header */
body .page-title-area.theme-banner {
    height: 300px !important;
    min-height: 300px !important;
    margin-top: 18px !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 4px solid #c1121f !important;
}
body .page-title-area.theme-banner .d-table,
body .page-title-area.theme-banner .d-table-cell {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
}
body .page-title-area.theme-banner .d-table-cell {
    display: flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}
body .page-title-area.theme-banner .container {
    width: 100% !important;
}
body .page-title-area.theme-banner .title-content {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    padding: 24px 0 !important;
    margin: 0 !important;
    max-width: 760px !important;
}
body .page-title-area.theme-banner .title-content h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-size: clamp(42px, 4vw, 62px) !important;
    line-height: 1.08 !important;
    color: #fff !important;
    transform: none !important;
    position: static !important;
}
body .page-title-area.theme-banner .page-banner-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 700px !important;
    margin: 0 0 20px !important;
    color: #fff !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}
body .page-title-area.theme-banner .title-content ul {
    margin-top: 8px !important;
}

/* Keep product introductions close to banner, with their title and description visible */
body .product-detail-area,
body .linkage-html-section,
body .rotary-products-section,
body .combine-products-section,
body .trailer-products-section {
    padding-top: 62px !important;
}
body .product-detail-area > .container > .section-title,
body .linkage-html-section > .container > .section-title {
    margin-bottom: 40px !important;
}
body .product-detail-area .section-title h2,
body .linkage-html-section .section-title h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #17202a !important;
}
body .product-detail-area .section-title p,
body .linkage-html-section .section-title p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #4c5661 !important;
}

/* Enquiry captcha: clear separation before submit action */
.nayyar-captcha-box {
    margin-top: 4px !important;
    margin-bottom: 30px !important;
}
.nayyar-captcha-box label {
    display: block !important;
    margin-bottom: 10px !important;
}
.nayyar-captcha-box .form-control {
    margin-bottom: 12px !important;
}
.nayyar-captcha-error {
    margin: 0 !important;
}
#nayyar-enquiry-form .nayyar-primary-btn {
    margin-top: 4px !important;
}

/* Thank-you page must not begin flush against header */
.thank-you-section {
    margin-top: 18px !important;
    padding-top: 82px !important;
    padding-bottom: 110px !important;
}

@media (max-width: 991px) {
    body .page-title-area.theme-banner {
        height: 270px !important;
        min-height: 270px !important;
        margin-top: 10px !important;
    }
    body .page-title-area.theme-banner .d-table,
    body .page-title-area.theme-banner .d-table-cell {
        min-height: 270px !important;
    }
    body .page-title-area.theme-banner .title-content h2 {
        font-size: clamp(34px, 6vw, 46px) !important;
    }
}

@media (max-width: 767px) {
    body .page-title-area.theme-banner {
        height: 250px !important;
        min-height: 250px !important;
        margin-top: 8px !important;
    }
    body .page-title-area.theme-banner .d-table,
    body .page-title-area.theme-banner .d-table-cell {
        min-height: 250px !important;
    }
    body .page-title-area.theme-banner .title-content {
        padding: 20px 6px !important;
    }
    body .page-title-area.theme-banner .title-content h2 {
        font-size: 34px !important;
        line-height: 1.12 !important;
        margin-bottom: 10px !important;
    }
    body .page-title-area.theme-banner .page-banner-subtitle {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }
    body .product-detail-area,
    body .linkage-html-section,
    body .rotary-products-section,
    body .combine-products-section,
    body .trailer-products-section {
        padding-top: 42px !important;
    }
    .thank-you-section {
        margin-top: 10px !important;
        padding-top: 58px !important;
        padding-bottom: 74px !important;
    }
    .nayyar-captcha-box {
        margin-bottom: 24px !important;
    }
}
