/* ArifFarm public site — navbar layout fixes */

.header-section {
    height: 80px;
    overflow: visible;
}

.header-section .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 80px;
    max-height: 80px;
}

.header-section .navbar-brand {
    flex: 0 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
}

.header-section .navbar-brand img {
    max-height: 48px;
    width: auto;
}

.menu-wrap {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    overflow: visible;
}

.mainmenu {
    flex: 0 1 auto;
    min-width: 0;
}

#mainmenu ul.nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
}

#mainmenu ul.nav > li {
    flex: 0 0 auto;
}

.header-section ul.nav > li > a {
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .header-section ul.nav > li > a {
        padding: 0 18px;
        font-size: 15px;
    }
}

.header-right {
    flex: 0 0 auto;
    gap: 0.5rem;
}

.header-right .menu-btn {
    padding: 0 12px;
    font-size: 13px;
    line-height: 42px;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .header-right .menu-btn {
        padding: 0 16px;
        font-size: 14px;
    }
}

.header-right .menu-btn-active {
    background-color: #2a9648;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.header-right .menu-btn-outline {
    background-color: transparent;
    border: 2px solid #34ad54;
    color: #34ad54 !important;
    line-height: 38px;
}

.header-right .menu-btn-outline:hover {
    background-color: #34ad54;
    color: #fff !important;
}

.ariffarm-cap-desc {
    font-size: 14px;
    color: #6a8695;
    margin: 8px 0 0;
    line-height: 1.45;
}

.service-content a,
.section-heading a,
.product-content h3 a,
.feature-content h3 a,
.promo-item h3 a {
    color: inherit;
    text-decoration: none;
}

.service-content h3 a:hover,
.product-content h3 a:hover,
.feature-content h3 a:hover,
.promo-item h3 a:hover {
    color: #34ad54;
}

.section-heading a {
    color: #34ad54;
    text-decoration: underline;
}

/* Stock photography — consistent crop in cards & carousel */
.product-carousel .product-thumb,
.ariffarm-module-card .product-thumb,
.gallery-item img,
.feature-img img,
.faq-item > img,
.blog-thumb img {
    overflow: hidden;
}

.product-carousel .product-thumb img,
.ariffarm-module-card .product-thumb img {
    width: 100%;
    height: 266px;
    object-fit: cover;
    object-position: center;
}

.gallery-item img,
.feature-img img {
    width: 100%;
    object-fit: cover;
}

.faq-item > img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
}

.ariffarm-module-card .product-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.ariffarm-module-card .product-content h3 a {
    color: inherit;
    text-decoration: none;
}

.ariffarm-module-card .product-content h3 a:hover {
    color: #34ad54;
}

.ariffarm-soon {
    font-size: 12px;
    font-weight: 600;
    color: #6a8695;
}

/* Platform modules — single horizontal scroll row */
.ariffarm-modules-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-left: 15px;
    scroll-padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
    padding-bottom: 12px;
    height: auto !important;
}

.ariffarm-modules-scroll .ariffarm-module-slide {
    flex: 0 0 auto;
    width: 285px;
    max-width: 82vw;
    scroll-snap-align: start;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.ariffarm-modules-scroll::-webkit-scrollbar {
    height: 6px;
}

.ariffarm-modules-scroll::-webkit-scrollbar-thumb {
    background: rgba(38, 58, 79, 0.25);
    border-radius: 3px;
}

.ariffarm-modules-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ariffarm-modules-scroll.ariffarm-modules-scroll--center {
    justify-content: center;
    overflow-x: hidden;
}

/* Merged intelligence section (carousel + services) */
.ariffarm-services-inline {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(38, 58, 79, 0.08);
}

.ariffarm-services-inline-heading {
    text-align: center;
    font-size: 22px;
    margin-bottom: 8px;
    color: #263a4f;
}

.ariffarm-services-inline-lead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 24px;
    color: #6a8695;
}

/* Gallery — masonry layout, ArifFarm site styling */
#gallery.ariffarm-gallery-masonry .section-heading {
    text-align: left;
    margin-bottom: 45px;
}

#gallery.ariffarm-gallery-masonry .section-heading h2 {
    font-size: 48px;
    line-height: 56px;
}

#gallery.ariffarm-gallery-masonry .section-heading h2 .ariffarm-gallery-lead {
    color: #263a4f;
    font-weight: 400;
    text-transform: none;
    font-size: inherit;
    letter-spacing: normal;
}

#gallery.ariffarm-gallery-masonry .section-heading p {
    max-width: 450px;
    margin-bottom: 0;
    color: #6a8695;
}

#gallery.ariffarm-gallery-masonry .portfolio-wrapper {
    display: flex;
    flex-wrap: wrap;
}

#gallery.ariffarm-gallery-masonry .left .portfolio-wrapper .post-thumb:nth-child(3) {
    width: 100%;
}

#gallery.ariffarm-gallery-masonry .portfolio-wrapper .post-thumb {
    width: 50%;
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner {
    margin: 5px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner::before {
    background-color: rgba(52, 173, 84, 0.8);
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.37, 0.31, 0.2, 0.85);
    visibility: hidden;
    opacity: 0;
    z-index: 1;
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner:hover::before {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner:hover img {
    transform: scale(1.05);
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner img {
    display: block;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.37, 0.31, 0.2, 0.85);
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner .gallery-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-block;
    background-color: #ffffff;
    color: #34ad54;
    font-size: 15px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transform: translate(-50%, calc(-50% + 12px));
    transition: all 0.4s cubic-bezier(0.37, 0.31, 0.2, 0.85);
    transition-delay: 0.1s;
    visibility: hidden;
    opacity: 0;
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner:hover .gallery-icon {
    transform: translate(-50%, -50%);
    visibility: visible;
    opacity: 1;
}

#gallery.ariffarm-gallery-masonry .post-thumb-inner .gallery-icon:hover {
    background-color: #ff9933;
    color: #ffffff;
}

#gallery.ariffarm-gallery-masonry .ariffarm-gallery-actions {
    margin-top: 40px;
}

@media (max-width: 767px) {
    #gallery.ariffarm-gallery-masonry .section-heading h2 {
        font-size: 34px;
        line-height: 42px;
    }
}

.team-social {
    display: none !important;
}

.contact-info a {
    color: #1a4d8c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-info a:hover {
    color: #0f3460;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Pricing cards — homepage & plans */
.pricing-currency-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin: 0 auto 28px;
    max-width: 640px;
}

.pricing-currency-toggle {
    display: inline-flex;
    border: 1px solid #d8e3ea;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.pricing-currency-btn {
    border: 0;
    background: transparent;
    color: #263a4f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pricing-currency-btn.active {
    background: #34ad54;
    color: #fff;
}

.pricing-fx-note {
    margin: 0;
    font-size: 12px;
    color: #6a8695;
    text-align: center;
    flex: 1 1 220px;
}

.pricing-box .pricing-bg {
    display: none;
}

.pricing-wrap {
    align-items: stretch !important;
}

.pricing-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-box .pricing-list {
    flex: 1 1 auto;
}

.pricing-box-featured {
    border-bottom-color: #34ad54;
    transform: scale(1.03);
    z-index: 2;
}

@media (max-width: 991px) {
    .pricing-box-featured {
        transform: none;
    }
}

.pricing-badge-popular {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #34ad54;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 3;
}

.pricing-price-row {
    margin: 12px 0 4px;
    line-height: 1.1;
}

.pricing-price-row .price-old {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #8d9aa8;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.pricing-price-row .price-now {
    color: #ff9933;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.pricing-price-row .price-now span {
    font-size: 16px;
    font-weight: 600;
    color: #263a4f;
    margin-left: 6px;
}

.pricing-herd-note {
    font-size: 13px;
    color: #6a8695;
    margin: 0 0 8px;
}

.pricing-section .pricing-head h4 {
    margin-top: 0;
    font-size: 22px;
    color: #263a4f;
}

.pricing-footnote {
    max-width: 720px;
    margin: 20px auto 0;
    font-size: 14px;
    color: #6a8695;
    text-align: center;
}

/* Tighter vertical rhythm — OrganZe .padding defaults to 100px top/bottom */
.padding {
    padding-top: 56px;
    padding-bottom: 56px;
}

.widget-section .widget-wrap.padding {
    padding-top: 44px;
    padding-bottom: 36px;
}

.widget-section .footer-section {
    padding-top: 16px;
    padding-bottom: 16px;
}

.section-heading.mb-40,
.padding .section-heading.mb-40 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 28px;
}

.pricing-box {
    padding: 28px;
}

.contact-section .padding-15,
.contact-wrap .padding-15 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.product-carousel .owl-stage-outer {
    padding-top: 8px;
    padding-bottom: 8px;
}

.sponsor-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (max-width: 991px) {
    .padding {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .widget-section .widget-wrap.padding {
        padding-top: 36px;
        padding-bottom: 28px;
    }
}

@media (max-width: 767px) {
    .padding {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .widget-section .widget-wrap.padding {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .mb-40,
    .section-heading.mb-40 {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .header-right {
        display: none;
    }
}

/* Mobile nav — Marketplace & Login in slicknav drawer */
.slicknav_nav .ariffarm-slicknav-extra {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 6px;
    padding-top: 6px;
}

.slicknav_nav .ariffarm-slicknav-extra a {
    font-weight: 600;
}

.slicknav_nav .ariffarm-slicknav-login a {
    color: #34ad54 !important;
}

/* CTA — member login block */
.ariffarm-cta-member-note {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    opacity: 0.92;
}

.cta-btn {
    overflow: hidden;
    position: relative;
}

.cta-btn .default-btn {
    position: relative;
    z-index: 1;
}

/* Hero slider — unified quick fade-in (all lines together) */
#main-slider [data-animation].animated.fade-in-bottom {
    animation-duration: 0.45s !important;
    -webkit-animation-duration: 0.45s !important;
}

/* Hero slider — tablet & mobile */
@media (max-width: 991px) {
    .dl-slider .dl-caption.medium,
    .dl-slider .dl-caption.big,
    .dl-slider .dl-caption.small {
        white-space: normal;
        height: auto !important;
    }

    .dl-slider .dl-caption.big {
        line-height: 1.25;
    }
}

@media (max-width: 767px) {
    .slider-content-wrap {
        height: auto !important;
        min-height: 340px;
        align-items: flex-end !important;
        padding-bottom: 36px;
    }

    #main-slider .container {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
    }

    .dl-slider .slider-content {
        padding-left: 0;
    }

    .dl-slider .dl-caption.medium,
    .dl-slider .dl-caption.big,
    .dl-slider .dl-caption.small {
        white-space: normal;
        height: auto !important;
    }

    .dl-slider .dl-caption.medium {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .dl-slider .dl-caption.big {
        font-size: 22px;
        line-height: 1.25;
        letter-spacing: -0.5px;
    }

    .dl-slider .dl-caption.small {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 8px;
    }

    .dl-slider .dl-btn-group {
        margin-top: 14px;
    }

    .dl-slider .dl-btn {
        padding: 0 18px;
        font-size: 12px;
        min-height: 40px;
        line-height: 40px;
    }

    /* Testimonials — stack on narrow screens */
    .testi-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 18px;
        gap: 12px;
    }

    .testi-item img {
        margin: 0 auto;
        align-self: center;
    }

    .testi-content {
        padding-left: 0;
        width: 100%;
    }

    .testi-content p {
        font-size: 14px;
        line-height: 1.55;
    }

    .testi-item .fa-quote-right {
        right: 14px;
        bottom: 14px;
        font-size: 28px;
    }

    .testimonial-carousel .owl-stage-outer {
        padding-bottom: 44px;
    }

    /* Inner pages — page header */
    .page-header {
        height: auto !important;
        min-height: 200px;
        padding: 28px 0 40px;
    }

    .page-content {
        padding: 0 16px;
    }

    .page-content h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .page-content h2 span {
        display: block;
        font-size: 13px !important;
        margin-top: 4px;
        font-weight: 600;
    }

    .page-content p {
        font-size: 13px;
        line-height: 1.55;
        margin-top: 10px;
    }

    .page-header-bottom {
        width: min(280px, 90vw);
        height: auto;
        aspect-ratio: 544 / 144;
    }

    .ariffarm-cta-member-note,
    .cta-btn {
        text-align: center !important;
    }

    /* Pricing — smaller currency line on narrow screens */
    .pricing-price-row .price-now {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -0.01em;
    }

    .pricing-price-row .price-now span {
        display: block;
        font-size: 12px;
        font-weight: 600;
        margin-left: 0;
        margin-top: 4px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    /* Footer — Company + Headquarters side by side */
    .widget-section .widget-wrap .row > .ariffarm-footer-col-half {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Carousel nav — chevron only (no circles), all breakpoints */
#main-slider {
    position: relative;
}

.dl-slider .slick-arrow {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.92);
    padding: 6px;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
}

.dl-slider .slick-arrow:hover {
    background: transparent !important;
    color: #fff;
}

.dl-slider .slick-prev {
    left: 4px;
}

.dl-slider .slick-next {
    right: 4px;
    left: auto;
}

.dl-slider .slider-content {
    padding-left: 36px;
    padding-right: 36px;
}

.product-carousel-section .container {
    position: relative;
    padding-left: 32px;
    padding-right: 32px;
}

.product-carousel .owl-nav div {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 22px;
    color: #263a4f;
    opacity: 0.75;
    visibility: visible !important;
    top: 38%;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, color 0.2s ease;
}

.product-carousel .owl-nav div:hover {
    opacity: 1;
    color: #34ad54;
    background: transparent !important;
}

.product-carousel .owl-nav div.owl-prev {
    left: 0 !important;
}

.product-carousel .owl-nav div.owl-next {
    left: auto !important;
    right: 0;
}

.product-carousel:hover .owl-nav div.owl-prev {
    left: 0 !important;
}

.product-carousel:hover .owl-nav div.owl-next {
    right: 0;
    left: auto !important;
}

@media (max-width: 767px) {
    .dl-slider .slick-arrow {
        font-size: 18px;
        padding: 4px;
    }

    .dl-slider .slider-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .product-carousel-section .container {
        padding-left: 26px;
        padding-right: 26px;
    }

    .product-carousel .owl-nav div {
        font-size: 18px;
    }
}

/* Hero — dark overlay + readable light text */
.dl-slider .single-slide {
    position: relative;
}

.dl-slider .single-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

.dl-slider .slider-content-wrap {
    position: relative;
    z-index: 1;
}

.dl-slider .dl-caption.big,
.dl-slider .dl-caption.small {
    color: #fff;
}

/* Contact form card */
.ariffarm-contact-form-card {
    background: #fff;
    border: 1px solid #e2e9ef;
    border-radius: 10px;
    padding: 28px 26px 24px;
    box-shadow: 0 4px 18px rgba(38, 58, 79, 0.07);
}

.ariffarm-contact-form-heading {
    font-size: 20px;
    font-weight: 700;
    color: #263a4f;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.ariffarm-contact-form .form-control {
    border: 1px solid #d4dde6;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.45;
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ariffarm-contact-form textarea.form-control.message {
    min-height: 148px;
    resize: vertical;
    line-height: 1.55;
}

.ariffarm-contact-form .form-control:focus {
    background: #fff;
    border-color: #34ad54;
    box-shadow: 0 0 0 3px rgba(52, 173, 84, 0.14);
}

.ariffarm-contact-form .form-group {
    margin-bottom: 14px;
}

.ariffarm-contact-form #submit {
    min-width: 168px;
    margin-top: 4px;
}

.ariffarm-contact-form #form-messages {
    margin-top: 12px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .ariffarm-contact-form-card {
        padding: 20px 16px 18px;
        margin-top: 8px;
    }

    .ariffarm-contact-form-heading {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .ariffarm-contact-form .form-group.colum-row .col-sm-6:first-child {
        margin-bottom: 14px;
    }

    .ariffarm-contact-form #submit {
        width: 100%;
        max-width: none;
    }
}

/* Footer widget row — vertically center content in each column */
.widget-section .widget-wrap > .container > .row {
    align-items: stretch;
}

.widget-section .widget-wrap > .container > .row > [class*="col-"] {
    display: flex;
}

.widget-section .widget-wrap .widget-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Footer & contact hyperlinks — dark blue */
.widget-content.footer span a,
.widget-content.footer .widget-links li a,
.footer-section p a {
    color: #1a4d8c !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.widget-content.footer span a:hover,
.widget-content.footer .widget-links li a:hover,
.footer-section p a:hover {
    color: #0f3460 !important;
}

/* Blog article page */
.ariffarm-blog-article h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a3d2e;
}

.ariffarm-blog-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.ariffarm-blog-meta a {
    color: #16a34a;
    font-weight: 600;
}

.ariffarm-blog-hero img {
    width: 100%;
    border-radius: 12px;
    margin: 1rem 0 1.5rem;
}

.ariffarm-blog-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #374151;
}

#farm-blog-editor-root .farm-blog-field {
    margin-bottom: 1rem;
}

#farm-blog-editor-root label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

#farm-blog-editor-root input[type="text"],
#farm-blog-editor-root textarea,
#farm-blog-editor-root select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

#farm-blog-editor-root textarea {
    min-height: 10rem;
}

#farm-blog-editor-root textarea#farm-blog-body {
    min-height: 16rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}

.farm-blog-post-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.farm-blog-post-row h4 {
    margin: 0;
    font-size: 1rem;
}

.farm-blog-post-row small {
    color: #6b7280;
}
