/*
 * custom.css - site CSS that used to live in <style> blocks inside the Blade views.
 *
 * Page-specific rules are scoped with :where(.page-xxx), where .page-xxx is a class the page
 * sets on <html> via @include('include.head', ['pageClass' => 'page-xxx']). :where() adds
 * NO specificity, so every rule keeps exactly the weight it had in its old <style> block and
 * cannot affect any other page. Global rules keep their original order (head first, footer last).
 */

/* ==========================================================================
   Global - moved from include/head.blade.php (was inside <head>, right after style.css)
   ========================================================================== */

img.lazy-img,
img.lazy-loaded {
    transition: opacity .45s ease-in-out;
}

img.lazy-img {
    opacity: 0;
}

img.lazy-loaded {
    opacity: 1;
}

.language {
    position: fixed;
    right: 0;
    top: 45%;
    background-color: #fff;
    width: auto;
    z-index: 9999;
    padding: 5px 10px;
    text-align: center;
    box-shadow: 2px 2px 3px #cecece;
}

.translater_box .ul.lang {
    text-align: center;
    padding-left: 0;
}

.translater_box .lang li {
    display: inline-block;
    padding: 10px;
}

.translater_box .btn-close {
    position: absolute;
    right: -15px;
    top: -15px;
    background: #d9261c;
    color: #ffffff !important;
    padding: 10px;
    cursor: pointer;
}

.translater_box .translater_close {
    line-height: 1em;
}

.translater_box .translater_title {
    font-size: 30px;
    font-weight: 700;
    margin-block: 20px;
    text-align: center;
}

/* ==========================================================================
   404 page (404.blade.php)
   ========================================================================== */

:where(.page-404) .error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Makes the section fill the full viewport height */
}

:where(.page-404) .error-page__wrapper {
    text-align: center;
}

:where(.page-404) .main-header--one--two .main-menu .main-menu__list>li>a {
    color: #000000;
}

:where(.page-404) .main-header--one--two .main-header--one__bottom-right .contact-box .text a {
    color: #85c226;
}

:where(.page-404) .main-header--one--two .main-header--one__bottom-right .contact-box .text p {
    color: #000000;
}

@media only screen and (max-width:1400px) {
    :where(.page-404) .error-page__big-title h2 {
        font-size: 230px;
    }
}

/* ==========================================================================
   Blog listing (blog.blade.php)
   ========================================================================== */

:where(.page-blog) .blog-one__single p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 10px;
    overflow: hidden;
}

:where(.page-blog) .page-item.active .page-link {
    background-color: var(--agriox-base, #d9261c);
    border-color: var(--agriox-base, #d9261c);
    color: #fff !important;
}

:where(.page-blog) .page-link {
    color: #000;
    border: 1px solid #000;
}

:where(.page-blog) .page-link:hover {
    background-color: var(--agriox-base, #d9261c);
    color: #fff;
    border-color: var(--agriox-base, #d9261c);
}

/* ==========================================================================
   Blog details (blog-details.blade.php)
   ========================================================================== */

:where(.page-blog-details) body,
html:where(.page-blog-details) {
    scroll-padding-top: 80px;
}

:where(.page-blog-details) table {
    border-collapse: collapse;
    width: 100%;
    overflow-x: scroll;
    border: 1px solid black;
}

:where(.page-blog-details) table td,
:where(.page-blog-details) table th {
    font-size: 14px;
    line-height: 20px;
}

:where(.page-blog-details) th,
:where(.page-blog-details) td {
    text-align: left;
    padding: 8px;
    border: 1px solid black;
}

:where(.page-blog-details) tr:nth-child(even) {
    background-color: #f2f2f2;
}

:where(.page-blog-details) .ques_bg {
    background-color: #fff6e0;
}

:where(.page-blog-details) .ans_bg {
    background-color: #e8f7e7;
}

:where(.page-blog-details) .ans_bg,
:where(.page-blog-details) .ques_bg {
    max-width: 52px;
    width: 100%;
    height: 24px;
    text-align: center;
    margin-right: 4px;
}

:where(.page-blog-details) .blog-details .widget-author .thumb {
    width: 100px;
    height: 100px;
}

:where(.page-blog-details) .widget-author .thumb {
    width: 150px;
    height: 150px;
    border-radius: 100px;
    overflow: hidden;
    border: 8px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0px 15px 65px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

:where(.page-blog-details) .news-details .blog-one__single-content h1,
:where(.page-blog-details) .news-details .blog-one__single-content h2,
:where(.page-blog-details) .news-details .blog-one__single-content h3,
:where(.page-blog-details) .news-details .blog-one__single-content h4,
:where(.page-blog-details) .news-details .blog-one__single-content h5,
:where(.page-blog-details) .news-details .blog-one__single-content h6 {
    padding-top: 17px;
    padding-bottom: 10px;
}

:where(.page-blog-details) .news-details p {
    margin-bottom: 10px;
}

:where(.page-blog-details) .sidebar__latest-posts-list img {
    height: 80px;
    width: 80px;
    border-radius: 10px;
}

:where(.page-blog-details) .sidebar__latest-posts-list .img-box {
    height: 80px;
    width: 80px;
}

:where(.page-blog-details) .sidebar__latest-posts-list-item .img-box {
    overflow: visible;
}

:where(.page-blog-details) .news-details a {
    color: #d9261c;
}

:where(.page-blog-details) .sidebar__latest-posts-list-item .title h4 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 10px;
    overflow: hidden;
}

:where(.page-blog-details) .toc ol {
    padding-left: 0;
}

:where(.page-blog-details) .sidebar__latest-posts,
:where(.page-blog-details) .sidebar__categories {
    padding: 25px;
}

:where(.page-blog-details) .blog-details ul li {
    list-style: disc;
}

:where(.page-blog-details) .blog-details ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

:where(.page-blog-details) .toc ol li:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    padding-left: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: black;
}

:where(.page-blog-details) .sidebar__latest-posts-list-item {
    margin-top: 20px;
}

:where(.page-blog-details) .sidebar__categories .title {
    padding-left: 0;
}

:where(.page-blog-details) .widget-toc li a {
    color: var(--agriox-color-1, #687469);
}

:where(.page-blog-details) .toc li {
    padding-left: 20px;
    position: relative;
}

:where(.page-blog-details) .toc .toc-title {
    display: none;
}

:where(.page-blog-details) .sidebar__latest-posts-list-item .title h4 a {
    color: #334b35;
}

:where(.page-blog-details) .related_title {
    font-family: "Averia Sans Libre", cursive;
    font-weight: 600;
    font-size: 16px !important;
    line-height: 22px;
}

:where(.page-blog-details) .related_title a {
    color: #334b35 !important;
}

@media only screen and (max-width:767px) {
    :where(.page-blog-details) .page-header.mtop_mobile {
        padding: 145px 0 30px;
    }
}

/* ==========================================================================
   Hydraulic Reversible Disc Plough + ZA Disc Plough (identical FAQ tweaks)
   ========================================================================== */

:where(.page-disc-plough, .page-za-disc-plough) .faq-one--faq {
    background: none;
}

:where(.page-disc-plough, .page-za-disc-plough) .faq-one__accordions .accrodion.active .accrodion-title h4::before {
    color: #000000;
}

:where(.page-disc-plough, .page-za-disc-plough) .faq-one::before {
    background: linear-gradient(180deg, #f4f4f4, transparent);
}

:where(.page-disc-plough, .page-za-disc-plough) .faq-one__accordions .accrodion {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin-bottom: 15px;
}

/* ==========================================================================
   Hydraulic Reversible Plough + Tractor Operated Sprayer (identical FAQ tweaks)
   ========================================================================== */

:where(.page-reversible-plough, .page-tractor-operated-sprayer) .faq-one--faq {
    background: none;
}

:where(.page-reversible-plough, .page-tractor-operated-sprayer) .faq-one__accordions .accrodion.active .accrodion-title h4::before {
    color: #000000;
}

:where(.page-reversible-plough, .page-tractor-operated-sprayer) .faq-one::before {
    background: linear-gradient(180deg, #f4f4f4, #f4f4f4);
}

:where(.page-reversible-plough, .page-tractor-operated-sprayer) .faq-one__accordions .accrodion {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin-bottom: 15px;
}

:where(.page-reversible-plough, .page-tractor-operated-sprayer) .faq-p-10 {
    margin-top: 10px;
}

/* ==========================================================================
   FAQ page (faq.blade.php) - classes are unique to this page (faq-page*)
   ========================================================================== */

.faq-page-header.page-header {
    height: auto;
    min-height: 390px;
}

.faq-page-header .page-header__inner h1 {
    font-size: 44px;
    line-height: 1.15em;
    max-width: 980px;
    margin: 0 auto;
}

.faq-page-intro {
    padding: 90px 0 50px;
}

.faq-page-intro .sec-title {
    margin-bottom: 20px;
}

.faq-page-intro__text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
    line-height: 30px;
}

.faq-page-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.faq-page-nav a {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #e3e0d4;
    border-radius: 30px;
    background: #fff;
    color: var(--agriox-primary, #334b35);
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    transition: all 0.2s linear;
}

.faq-page-nav a:hover,
.faq-page-nav a:focus {
    background: var(--agriox-base, #d9261c);
    border-color: var(--agriox-base, #d9261c);
    color: #fff;
}

.faq-page.faq-one {
    padding: 90px 0 70px;
}

.faq-page .faq-one__accordions {
    margin-left: 0;
}

.faq-page__group {
    scroll-margin-top: 120px;
}

.faq-page__group+.faq-page__group {
    margin-top: 55px;
}

.faq-page__group-title {
    color: var(--agriox-primary, #334b35);
    font-size: 30px;
    line-height: 40px;
    margin-bottom: 20px;
}

/* Questions are h3 headings (the theme only styles h4): same look, room for the +/- icon. */
.faq-page .accrodion .accrodion-title h3 {
    position: relative;
    margin: 0;
    padding-right: 36px;
    color: #1c1c1c;
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.2s linear;
}

.faq-page .accrodion.active .accrodion-title h3 {
    color: var(--agriox-base, #d9261c);
}

.faq-page .accrodion .accrodion-title h3::before {
    content: "\e938";
    font-family: icomoon !important;
    font-weight: 900;
    font-size: 20px;
    color: var(--agriox-base, #d9261c);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transition: all 0.5s ease;
}

.faq-page .accrodion.active .accrodion-title h3::before {
    content: "\e937";
    color: var(--agriox-primary, #334b35);
}

.faq-page .accrodion .accrodion-title:focus-visible {
    outline: 2px solid var(--agriox-base, #d9261c);
    outline-offset: -2px;
}

.faq-page .accrodion .accrodion-content .inner p {
    margin: 0;
    line-height: 28px;
}

.faq-page-cta {
    padding: 90px 0;
}

.faq-page-cta__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.faq-page-cta__inner h2 {
    color: var(--agriox-primary, #334b35);
    font-size: 32px;
    line-height: 42px;
    margin-bottom: 15px;
}

.faq-page-cta__inner p {
    margin-bottom: 30px;
}

@media (max-width: 1199px) {
    .faq-page-header .page-header__inner h1 {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .faq-page__group-title {
        font-size: 26px;
        line-height: 36px;
    }

    .faq-page-cta__inner h2 {
        font-size: 28px;
        line-height: 38px;
    }
}

@media (max-width: 767px) {
    .faq-page-header .page-header__inner h1 {
        font-size: 26px;
    }

    .faq-page-intro {
        padding: 55px 0 30px;
    }

    .faq-page-intro__text {
        font-size: 16px;
        line-height: 28px;
    }

    .faq-page-nav a {
        padding: 7px 14px;
        font-size: 14px;
    }

    .faq-page.faq-one {
        padding: 55px 0 45px;
    }

    .faq-page__group+.faq-page__group {
        margin-top: 38px;
    }

    .faq-page__group-title {
        font-size: 22px;
        line-height: 32px;
    }

    .faq-page .accrodion .accrodion-title {
        padding: 18px 20px;
    }

    .faq-page .accrodion .accrodion-title h3 {
        font-size: 17px;
        line-height: 26px;
        padding-right: 30px;
    }

    .faq-page .accrodion .accrodion-content {
        padding: 0 20px 20px;
    }

    .faq-page-cta {
        padding: 55px 0;
    }

    .faq-page-cta__inner {
        padding: 35px 20px;
    }

    .faq-page-cta__inner h2 {
        font-size: 24px;
        line-height: 34px;
    }
}

/* ==========================================================================
   Global - moved from include/footer.blade.php (was at the end of <body>; kept last)
   ========================================================================== */

a:hover {
    color: #d9261c;
}

.popup_title {
    font-family: "Averia Sans Libre", cursive;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
}
