/* =====================================================
   HERO — MOBILE
   Viewport: up to 767.98px
   ===================================================== */

@media (max-width: 767.98px) {

    .hero-section {
        min-height: 520px;
    }

    .hero-content {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .hero-description {
        font-size: var(--nc-text-lg);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .about-subpage-cta-inner {
        gap: 1.4rem;
    }
}

/* =====================================================
   HERO VALUE STRIP — MOBILE
   ===================================================== */

@media (max-width: 767.98px) {

    .hero-value-item {
        min-height: 110px;
        padding: 1.4rem 1.5rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-value-item:last-child {
        border-bottom: 0;
    }

    .hero-value-item h3 {
        font-size: 1.7rem;
        line-height: 1.25;
    }
}


/* =====================================================
   HOMEPAGE ABOUT — MOBILE
   ===================================================== */

@media (max-width: 575.98px) {

    .about-home-section {
        padding: 4rem 0;
    }

    .about-visual {
        min-height: 480px;
        transform: scale(0.9);
        transform-origin: top center;
        margin-bottom: -40px;
    }

    .about-photo {
        width: 330px;
        height: 360px;
        left: 15px;
    }

    .about-shape {
        width: 150px;
        height: 150px;
    }

    .about-shape-green {
        right: 15px;
    }

    .about-shape-orange {
        right: 15px;
        top: 220px;
    }

    .about-visual::after {
        width: 110px;
        height: 110px;
        right: 55px;
        top: 145px;
    }

    .about-photo-card {
        width: 230px;
        min-height: 145px;
        left: 0;
        bottom: 15px;
        padding: 1.3rem;
    }

    .about-photo-card h3 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .about-title {
        font-size: var(--nc-h2-size);
        line-height: 1.25;
    }

    .about-mission-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* =====================================================
   HOMEPAGE SERVICES — MOBILE
   ===================================================== */

@media (max-width: 575.98px) {

    .services-home-section {
        padding: 4rem 0;
    }

    .services-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .service-card {
        min-height: 340px;
        padding: 1.5rem;
    }

    .service-number {
        margin-bottom: 3rem;
    }

    .service-link {
        left: 1.5rem;
    }
}


/* =====================================================
   HOMEPAGE FEATURED PRODUCTS — MOBILE
   ===================================================== */

@media (max-width: 575.98px) {

    .featured-products-section {
        padding: 4rem 0;
    }

    .featured-products-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .product-feature-image {
        height: 300px;
    }
}


/* =====================================================
   HOMEPAGE TRUSTED BY FARMERS — MOBILE
   ===================================================== */

@media (max-width: 575.98px) {

    .farmer-trust-section {
        padding: 4rem 0;
    }

    .farmer-trust-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .farmer-story-panel {
        min-height: 360px;
        padding: 1.75rem;
    }

    .farmer-story-footer {
        left: 1.75rem;
        right: 1.75rem;
    }

    .farmer-video-placeholder {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}


/* =========================================================
   HOMEPAGE — WHY NUTRICORP — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .why-nutricorp-section {
        padding: 4rem 0;
    }

    .why-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-item {
        min-height: auto;
    }
}


/* =========================================================
   HOMEPAGE — OUR PEOPLE — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .team-home-section {
        padding: 4rem 0;
    }

    .team-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .team-image-wrap {
        height: 425px;
        border-radius: 0 0 1.25rem 1.25rem;
    }

    .team-image-content {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .team-image-content h3 {
        font-size: 2.1rem;
        line-height: 1.25;
    }
}


/* =========================================================
   HOMEPAGE — MEDIA & INSIGHTS — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .media-insights-section {
        padding: 4rem 0;
    }

    .media-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .media-card {
        min-height: 300px;
        padding: 1.5rem;
    }

    .media-card-content h3 {
        font-size: 1.8rem;
        line-height: 1.25;
    }
}


/* =========================================================
   HOMEPAGE — FINAL CTA — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .final-cta-section {
        padding: 1.5rem 0.6rem;
    }

    .final-cta-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }
}

/* =========================================================
   ABOUT PAGE — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .about-page-hero {
        padding: 4rem 0;
    }

    .about-company-section {
        padding: 4rem 0;
    }

    .about-company-image img {
        height: 400px;
    }

    .about-company-content h2 {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }
}

/* =========================================================
   ABOUT — MISSION & VISION — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .about-mission-section {
        padding: 4rem 0;
    }

    .about-section-title {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .purpose-card {
        min-height: 300px;
        padding: 2rem;
    }

    .purpose-card h3 {
        font-size: 2.35rem;
        line-height: 1.25;
    }
}

/* =========================================================
   ABOUT — CORE VALUES — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .about-values-section {
        padding: 5rem 0;
    }

    .about-values-heading {
        margin-bottom: 3rem;
        line-height: 1.25;
    }

    .about-value-mark {
        display: none;
    }

    .about-value-content h3 {
        font-size: 2rem;
        line-height: 1.25;
    }

    .about-value-content p {
        font-size: .9rem;
    }
}

@media (max-width: 575.98px) {
    .about-values-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: 100%;
    }

    .about-value-item,
    .about-value-item:nth-child(4),
    .about-value-item:nth-child(5) {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 1.5rem;
    }

    .about-value-item:hover {
        padding: 1.5rem;
    }
}

/* =========================================================
   ABOUT — LEADERSHIP
   ========================================================= */

@media (max-width: 575.98px) {
    .about-leadership-section {
        padding: 4rem 0;
    }

    .leadership-image {
        min-height: 420px;
    }

    .leadership-content {
        padding: 2rem;
    }

}


/* =========================================================
   ABOUT — OUR PEOPLE
   ========================================================= */

@media (max-width: 575.98px) {
    .about-people-section {
        padding: 4rem 0;
    }

    .about-people-image img {
        height: 420px;
    }

    .about-people-caption {
        width: calc(100% - 1.5rem);
        margin: -3rem 0 0 1.5rem;
        padding: 2rem;
    }

    .about-people-caption h3 {
        font-size: 2.3rem;
        line-height: 1.25;
    }
}

/* =========================================================
   ABOUT — R&D / INNOVATION
   ========================================================= */

@media (max-width: 767.98px) {
    .about-rnd-section {
        padding: 4.5rem 0;
    }

    .rnd-visual {
        min-height: 420px;
        margin-top: 1rem;
    }

    .rnd-visual-main {
        width: 300px;
        height: 300px;
    }

    .rnd-core {
        width: 125px;
        height: 125px;
    }

    .rnd-core span {
        font-size: 2rem;
    }

    .rnd-note {
        min-width: 135px;
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    .rnd-note-one {
        left: 0;
        top: 6%;
    }

    .rnd-note-two {
        right: 0;
        top: 44%;
    }

    .rnd-note-three {
        left: 3%;
        bottom: 5%;
    }

    .rnd-bottom-strip {
        grid-template-columns: 1fr;
    }

    .rnd-bottom-strip > div {
        min-height: auto;
        padding: 18px 20px;
    }

    .rnd-bottom-strip > div + div {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.12);
    }
}

@media (max-width: 575.98px) {
    .rnd-visual {
        min-height: 360px;
    }

    .rnd-visual-main {
        width: 255px;
        height: 255px;
    }

    .rnd-core {
        width: 108px;
        height: 108px;
    }

    .rnd-core span {
        font-size: 1.7rem;
    }

    .rnd-core small {
        font-size: 0.875rem;
    }

    .rnd-note {
        min-width: 118px;
        max-width: 125px;
        font-size: 0.875rem;
    }

    .rnd-note-one {
        left: -5px;
    }

    .rnd-note-two {
        right: -5px;
    }

    .rnd-note-three {
        left: 0;
    }
}


/* =========================================================
   ABOUT — BOARD OF DIRECTORS
   ========================================================= */

@media (max-width: 767.98px) {
    .about-board-section {
        padding: 4.5rem 0;
    }

    .about-board-featured {
        border-radius: 20px;
    }

    .about-board-featured-image {
        min-height: 380px;
    }

    .about-board-featured-content {
        padding: 2.25rem;
    }

    .about-board-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .about-board-card-image {
        min-height: 300px;
    }

    .about-board-card-content {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .nc-board-preview {
        padding: 65px 0;
    }

    .nc-board-preview .about-leadership-heading {
        margin-bottom: 75px;
        line-height: 1.25;
    }

    .nc-board-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 58px;
        margin-bottom: 60px;
    }

    .nc-board-row-senior,
    .nc-board-row-team {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-board-section.nc-board-preview .nc-board-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 58px;
    }

    .nc-board-person {
        max-width: 380px;
        width: 100%;
        justify-self: center;
        padding: 0 22px 25px;
    }

    .nc-board-portrait {
        width: 135px;
        height: 135px;
        margin-bottom: 20px;
    }

    .nc-board-person h3 {
        margin-bottom: 15px;
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .about-board-section.nc-board-preview {
        padding: 75px 0;
    }

    .nc-board-full-section {
        padding: 35px 0 50px;
    }

    .nc-director-row,
    .nc-director-row-reverse {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 38px 5px;
        text-align: left;
    }

    .nc-director-row-reverse .nc-director-photo,
    .nc-director-row-reverse .nc-director-details {
        order: initial;
    }

    .nc-director-photo img {
        width: 185px;
        height: 185px;
    }

    .nc-director-details {
        width: 100%;
        text-align: left;
    }

    .nc-director-details h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    .nc-director-details p:not(.nc-director-qualification) {
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }

    .nc-director-qualification {
        font-size: 0.875rem;
    }
}


/* =========================================================
   ABOUT — TEAM GROUP PHOTO
   ========================================================= */

@media (max-width: 767.98px) {
    .about-team-photo-section {
        padding: 4.5rem 0;
    }

    .about-team-photo {
        border-radius: 20px;
    }

    .about-team-photo img {
        min-height: 240px;
    }

    .about-team-photo-caption {
        padding-top: 2.5rem;
    }
}


/* =========================================================
   ABOUT — WHY CHOOSE US
   ========================================================= */

@media (max-width: 767.98px) {
    .about-why-section {
        padding: 4.5rem 0;
    }

    .about-why-heading {
        margin-bottom: 2.5rem;
        line-height: 1.25;
    }

    .about-why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-why-card {
        min-height: auto;
        padding: 25px 24px 27px;
    }

    .about-why-number {
        margin-bottom: 24px;
    }
}

/* =========================================================
   ABOUT — LEADERSHIP (SECOND IMPLEMENTATION)
   ========================================================= */

@media (max-width: 767.98px) {
    .about-leadership-section {
        padding: 4.5rem 0;
    }

    .about-leadership-heading {
        margin-bottom: 5rem;
        line-height: 1.25;
    }

    .about-leader-content {
        padding: 25px 24px 28px;
    }
}


/* =========================================================
   ABOUT — OUR PEOPLE (SECOND IMPLEMENTATION)
   ========================================================= */

@media (max-width: 767.98px) {
    .about-people-section {
        padding: 4.5rem 0;
    }

    .about-people-heading {
        margin-bottom: 2.5rem;
        line-height: 1.25;
    }

    .about-person-content {
        padding: 24px 23px 27px;
    }
}

/* =========================================================
   ABOUT SUBPAGE — MISSION & VISION
   ========================================================= */

@media (max-width: 767.98px) {
    .about-subpage-hero {
        padding: 5rem 0 3.5rem;
    }

    .about-subpage-breadcrumb {
        margin-bottom: 2.5rem;
    }

    .about-mission-section {
        padding: 4.5rem 0;
    }

    .about-mission-card {
        padding: 2.25rem;
        border-radius: 20px;
    }

    .about-mission-label {
        margin-bottom: 3rem;
    }

    .about-subpage-cta {
        padding: 1.5rem 0.5rem;
    }
}

/* =========================================================
   ABOUT — TEAM PAGE
   ========================================================= */

@media (max-width: 767.98px) {
    .about-team-intro {
        padding: 4.5rem 0;
    }

    .about-team-placeholder {
        padding: 4.5rem 0;
    }

    .about-team-placeholder-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }
}

/* =========================================================
   MEDIA — SUBPAGE & BLOG LISTING
   ========================================================= */

@media (max-width: 767.98px) {
    .media-subpage-hero {
        padding: 1.5rem 0 1.5rem;
    }

    .media-subpage-breadcrumb {
        margin-bottom: 2.5rem;
    }

    .media-blog-section {
        padding: 4.5rem 0;
    }

    .media-empty-state {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }
}

/* =========================================================
   MEDIA GALLERY — LIGHTBOX NAVIGATION
   ========================================================= */

@media (max-width: 767.98px) {
    .media-gallery-lightbox-nav {
        top: auto;
        bottom: 18px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .media-gallery-lightbox-prev {
        left: calc(50% - 52px);
    }

    .media-gallery-lightbox-next {
        right: calc(50% - 52px);
    }
}

/* =========================================================
   MEDIA GALLERY — MOBILE LAYOUT
   ========================================================= */

@media (max-width: 767.98px) {
    .media-gallery-section {
        padding: 55px 0 70px;
    }

    .media-gallery-intro {
        display: block;
        margin-bottom: 28px;
    }

    .media-gallery-intro > p {
        margin-top: 15px;
    }

    .media-gallery-filters {
        gap: 8px;
        margin-bottom: 25px;
    }

    .media-gallery-filter {
        padding: 9px 14px;
        font-size: 0.875rem;
    }

    .media-gallery-card-content {
        padding: 17px;
    }

    .media-gallery-lightbox {
        padding: 60px 15px 25px;
    }

    .media-gallery-lightbox-content > img {
        max-height: 65vh;
    }

    .media-gallery-lightbox-caption h3 {
        font-size: 19px;
        line-height: 1.25;
    }
}

/* =========================================================
   BLOG POST — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .media-blog-post-hero {
        padding-bottom: 3.5rem;
    }

    .media-blog-post-section {
        padding: 4.5rem 0;
    }

    .media-blog-post-featured-image {
        margin-bottom: 2rem;
        border-radius: 18px;
    }

    .media-blog-post-excerpt {
        margin-bottom: 2.25rem;
        padding: 1.5rem;
        font-size: var(--nc-text-base);
    }

    .media-blog-post-content {
        font-size: .95rem;
        line-height: 1.8;
    }

    .media-blog-post-content h2 {
        font-size: 1.9rem;
        line-height: 1.25;
    }

    .media-blog-post-content h3 {
        font-size: 1.55rem;
        line-height: 1.25;
    }
}


/* =========================================================
   BLOG LISTING — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .media-blog-card-content {
        padding: 1.5rem;
    }

    .media-blog-card-content h3 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .media-blog-pagination {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .media-blog-categories {
        gap: 8px;
        margin-bottom: 2.5rem;
    }

    .media-blog-category-link {
        padding: 9px 14px;
        font-size: 0.875rem;
    }
}

/* =========================================================
   VIDEO POPUP — MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
    .video-popup-overlay {
        padding: 12px;
    }

    .video-popup-header {
        padding: 12px 14px;
    }

    .video-popup-header h2 {
        font-size: 17px;
        line-height: 1.25;
    }
}

/* =========================================================
   PRODUCT DETAIL — MOBILE LAYOUT
   ========================================================= */

@media (max-width: 767.98px) {
    .product-detail-page {
        padding-bottom: 50px;
    }

    .product-detail-page .product-detail-breadcrumb {
        padding: 17px 0 22px;
        font-size: 0.875rem;
    }

    .product-detail-main-image {
        border-radius: 14px;
    }

    .product-detail-main-info .product-pack-sizes {
        padding: 15px;
    }

    .product-detail-main-info .product-pack-size-item {
        min-width: 88px;
        padding: 9px 11px;
    }

    .product-detail-main-info .product-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-detail-main-info .product-detail-actions .btn {
        width: 100%;
    }

    .product-detail-two-column {
        margin-bottom: 18px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

}


/* =========================================================
   PRODUCT DETAIL — VISUAL REFINEMENT — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .product-detail-main-image img {
        transform: scale(1);
    }
}

/* =========================================================
   PRODUCT DETAIL — FINAL VISUAL POLISH — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .product-detail-intro {
        padding-bottom: 42px;
    }

    .product-detail-intro-grid {
        gap: 28px;
    }

    .product-detail-main-image {
        min-height: 350px;
    }

    .product-detail-main-info {
        padding: 0;
    }

    .product-detail-category {
        margin-bottom: 10px;
    }

    .product-detail-name {
        margin-bottom: 18px;
        font-size: clamp(2.7rem, 13vw, 3rem);
        line-height: 1.25;
    }

    .product-detail-short-description {
        margin-bottom: 22px;
        font-size: 0.93rem;
        line-height: 1.7;
    }

    .product-detail-about-section {
        padding: 35px 0 20px;
        margin-top: 5px;
        margin-bottom: 20px;
    }

    .product-information-stacked {
        padding: 35px 0 45px;
        margin-top: 5px;
    }

    .product-information-heading {
        margin-bottom: 22px;
        line-height: 1.25;
    }

    .product-information-heading h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    .product-information-block {
        padding: 20px;
    }

    .product-information-block h3 {
        margin-bottom: 12px;
        font-size: 17px;
        line-height: 1.25;
    }

    .product-information-block .product-rich-content,
    .product-detail-about .product-rich-content {
        font-size: 14px;
        line-height: 1.75;
    }

    .product-information-block .product-rich-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .product-detail-about {
        padding: 28px 22px;
    }

    .product-detail-crop {
        padding: 22px;
    }

    .product-detail-information-card {
        min-height: 0;
        padding: 28px 22px;
    }

    .product-detail-page .product-rich-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .product-detail-page .product-information-block,
    .product-detail-page .product-information-block:first-child,
    .product-detail-page .product-information-block:last-child,
    .product-detail-page .product-information-block:only-child {
        padding: 20px;
    }

    .product-related-section {
        margin-top: 5px;
    }

}
/* =========================================================
   CAREERS — RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 767.98px) {

    .careers-page-hero {
        padding: 3.5rem 0 3.75rem;
    }

    .careers-page-hero .about-subpage-breadcrumb {
        margin-bottom: 2.25rem;
    }

    .careers-page-hero h1 {
        font-size: clamp(2.5rem, 11vw, 3rem);
        line-height: 1.25;
    }

    .careers-opportunities-grid,
    .careers-vacancies-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .careers-opportunity-card,
    .careers-vacancy-card {
        min-height: 0;
        padding: 1.5rem;
    }

    .careers-vacancy-card .apply-for-role,
    .careers-vacancies-empty .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   CAREERS — LEGACY MOBILE REFINEMENTS
   ========================================================= */

@media (max-width: 767.98px) {
    .careers-intro-section,
    .careers-opportunities-section {
        padding: 48px 0;
    }

    .careers-opportunities-grid {
        gap: 18px;
    }

    .careers-application-section {
        padding: 44px 0;
    }

    .careers-application-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .careers-vacancies-section {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .careers-opportunities-section > .container > h2,
    .careers-vacancies-section > .container > h2 {
        margin-bottom: 16px;
        line-height: 1.25;
    }
}

/* =========================================
   CAREERS — APPLICATION MODAL
========================================= */

@media (max-width: 575.98px) {
    .careers-modal {
        padding: 10px;
    }

    .careers-modal-dialog {
        max-height: calc(100vh - 20px);
        padding: 26px 18px;
        border-radius: 12px;
    }

    .careers-modal-header {
        padding-right: 20px;
    }
}

/* =========================================
   CONTACT PAGE — MOBILE
========================================= */

@media (max-width: 767.98px) {
    .contact-page-section {
        padding: 64px 0 72px;
    }

    .contact-information,
    .contact-enquiry-card {
        padding: 28px;
        border-radius: 20px;
    }
}

/* =========================================
   PRODUCT DETAIL — RELATED PRODUCTS
   Mobile layout
========================================= */

@media (max-width: 767.98px) {

    .product-related-section {
        padding: 65px 0 75px;
    }

    .product-related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 30px;
        line-height: 1.25;
    }

}

/* =========================================
   RELATED PRODUCT CARDS — MOBILE
========================================= */

@media (max-width: 767.98px) {
    .product-related-section .product-card-content {
        padding: 20px;
    }

    .product-related-section .product-card .product-image-frame {
        padding: 16px;
    }
}

/* =========================================
   PRODUCT CATEGORY — PRODUCT GRID
   Small mobile
========================================= */

@media (max-width: 575.98px) {
    .product-card {
        border-radius: 18px;
    }

    .product-card-content {
        padding: 23px 23px 26px;
    }

    .product-card-content h2 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .product-card-content p {
        font-size: 0.875rem;
    }
}

/* =========================================
   PRODUCT CATEGORY — PAGE REFINEMENT
   Mobile
========================================= */

@media (max-width: 767.98px) {
    .product-category-hero-image {
        height: 240px;
        margin-bottom: 26px;
        border-radius: 14px;
    }

    .product-category-hero h1 {
        font-size: clamp(2.3rem, 9vw, 3rem);
        line-height: 1.25;
    }

    .product-category-products {
        padding-top: 26px;
        padding-bottom: 48px;
    }
}

@media (max-width: 575.98px) {
    .product-category-hero-image {
        height: 210px;
    }
}

/* =================================================
   PRODUCT CATEGORY — HERO Original mobile rules
================================================= */

@media (max-width: 767.98px) {

    .product-category-hero {
        padding: 55px 0 60px;
    }

    .product-category-breadcrumb {
        margin-bottom: 28px;
    }

    .product-category-hero-description {
        font-size: .95rem;
    }
}

@media (max-width: 575.98px) {

    .product-category-hero {
        padding: 45px 0 50px;
    }

    .product-category-hero h1 {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }
}

/* =========================================
   PRODUCTS LISTING PAGE — MOBILE
========================================= */

@media (max-width: 767.98px) {
    .products-page-hero {
        padding: 30px 0 34px;
    }

    .products-page-title {
        font-size: clamp(3rem, 10vw, 3rem);
        line-height: 1.25;
    }

    .products-page-intro {
        max-width: 580px;
        font-size: 0.95rem;
    }

    .products-category-section {
        padding: 34px 0 52px;
    }

    .products-section-heading {
        margin-bottom: 28px;
        line-height: 1.25;
    }

    .products-section-title {
        font-size: clamp(2.2rem, 7vw, 3rem);
        line-height: 1.25;
    }

}

/* PRODUCTS LISTING PAGE — SMALL MOBILE */
@media (max-width: 575.98px) {
    .products-page-title {
        font-size: clamp(2.65rem, 11vw, 3rem);
        line-height: 1.25;
    }

    .products-page-intro {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .products-section-heading > p {
        font-size: 0.92rem;
        line-height: 1.25;
    }

}

/* PRODUCTS CATEGORY GRID — MOBILE */
@media (max-width: 767.98px) {
    .products-category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


/* PRODUCT CATEGORY CARDS — MOBILE */
@media (max-width: 767.98px) {
    .product-category-card {
        border-radius: 20px;
    }

    .product-category-card-image {
        aspect-ratio: 16 / 9;
    }

    .product-category-card-placeholder {
        padding: 25px;
    }

    .product-category-card-placeholder span {
        font-size: 3rem;
    }

    .product-category-card-content {
        padding: 24px 24px 28px;
    }
}

/* PRODUCT CATEGORY CARDS — SMALL MOBILE */
@media (max-width: 575.98px) {
    .product-category-card-placeholder {
        padding: 22px;
    }

    .product-category-card-placeholder span {
        font-size: 3rem;
    }

    .product-category-card-content {
        padding: 22px 22px 26px;
    }
    
    .product-category-card-content h3 {
        font-size: 2rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

}

/* PRODUCT DETAIL — LEGACY MOBILE LAYOUT */
@media (max-width: 767.98px) {
    .product-detail-content {
        padding: 65px 0 75px;
    }

    .product-detail-information {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .product-detail-section {
        padding: 35px 27px;
    }

    .product-detail-section h2 {
        font-size: 2rem;
        line-height: 1.25;
    }
}

/*------------------------------------------------------
       PRODUCT DETAIL PAGE — FINAL MOBILE LAYOUT
------------------------------------------------------*/
@media (max-width: 767.98px) {
    .product-detail-page > .container {
        width: calc(100% - 32px);
    }

    .product-detail-page .product-detail-intro {
        margin-block: 20px 32px;
    }

    .product-detail-page .product-detail-intro-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .product-detail-page .product-detail-main-image {
        padding: 20px;
    }

    .product-detail-page .product-detail-main-image img {
        max-height: 420px;
    }

    .product-detail-page .product-detail-name {
        font-size: 34px;
        line-height: 1.25;
    }

    .product-detail-page .product-detail-short-description {
        font-size: 15px;
    }

    .product-detail-page .product-detail-about-section {
        display: block;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-block: 28px;
    }

    .product-detail-page .product-detail-about,
    .product-detail-page .product-detail-crop {
        padding: 22px;
    }

    .product-detail-page .product-information-section {
        padding: 20px;
        margin-block: 28px;
    }

    .product-detail-page .product-information-tab-list {
        gap: 8px;
    }

    .product-detail-page .product-information-tab {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        padding: 11px 12px;
    }

}

/* PRODUCT DETAIL PAGE — SMALL MOBILE */
@media (max-width: 420px) {
    .product-detail-page > .container {
        width: calc(100% - 24px);
    }

    .product-detail-page .product-detail-name {
        font-size: 30px;
        line-height: 1.25;
    }

    .product-detail-page .product-detail-main-info .product-detail-actions {
        gap: 8px;
    }

    .product-detail-page .product-detail-main-info .product-detail-actions .btn {
        flex: 1 1 auto;
        padding-inline: 12px;
    }

    .product-detail-page .product-information-tab {
        flex-basis: 100%;
    }

}

/*------------------------------------------------------
      PRODUCT INFORMATION TABS — TABLET AND MOBILE 
------------------------------------------------------*/
@media (max-width: 767.98px) {
    .product-information-section {
        margin: 24px 0 42px;
        padding: 30px 24px;
    }

    .product-information-tab-list {
        gap: 7px;
    }

    .product-information-tab {
        padding: 10px 13px;
        font-size: 0.875rem;
    }

    .product-information-panels {
        padding-top: 22px;
    }
}

/* PRODUCT INFORMATION TABS — SMALL MOBILE */
@media (max-width: 575.98px) {
    .product-information-section {
        padding: 24px 18px;
        border-radius: 10px;
    }

    .product-information-tab-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-information-tab {
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;
        text-align: center;
    }
}

/* SERVICES PAGE — SMALL MOBILE */
@media (max-width: 575.98px) {
    .service-detail-lead {
        font-size: var(--nc-text-base);
    }

    .service-detail-art {
        width: min(100%, 300px);
    }

    .services-page-cta {
        padding: 4rem 0;
    }

    .services-page-cta-inner {
        display: block;
        padding: 2.5rem 2rem;
    }

    .services-page-cta h2 {
        font-size: var(--nc-display-sm);
        line-height: 1.25;
    }

    .services-cta-button {
        margin-top: 2rem;
    }
}

/* SERVICE DETAIL — MOBILE SPACING */
@media (max-width: 767.98px) {
    .services-page-hero {
        padding-top: 26px;
        padding-bottom: 28px;
    }

    .service-detail-grid,
    .service-detail-grid-reverse {
        padding-top: 28px;
        padding-bottom: 28px;
        gap: 24px;
    }

    .service-detail-copy h2 {
        margin-bottom: 14px;
        line-height: 1.25;
    }

    .service-detail-copy > p:not(.service-detail-lead) {
        margin-bottom: 16px;
    }

    .service-detail-list {
        margin-top: 14px;
        margin-bottom: 18px;
    }
}

/* SERVICES PAGE CTA — COMPACT MOBILE SPACING */
@media (max-width: 767.98px) {
    .services-page-cta {
        padding-top: 26px;
        padding-bottom: 26px;
    }
}

/* SERVICES PAGE — SMALL MOBILE TYPOGRAPHY */
@media (max-width: 575.98px) {
    .services-page-title {
        font-size: 2.75rem;
        line-height: 1.25;
    }

    .service-detail-copy h2 {
        font-size: 2.5rem;
        line-height: 1.25;
    }
}

/* PRODUCT VIDEO POPUP — MOBILE */
@media (max-width: 767.98px) {
    .product-video-dialog {
        width: 94vw;
        border-radius: 12px;
    }

    .product-video-container {
        border-radius: 12px;
    }

    .product-video-close {
        top: -15px;
        right: -8px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* HOMEPAGE HERO VIDEO — EXTRA SMALL MOBILE */
@media (max-width: 380px) {
    .hero-section {
        height: 480px;
        min-height: 480px;
    }
}

/* SERVICES HOMEPAGE CARDS — MOBILE */
@media (max-width: 767.98px) {
    .services-home-section .service-card {
        min-height: 150px;
    }

    .services-home-section .service-number {
        margin-bottom: 2.5rem;
    }
}

/* FEATURED PRODUCTS — SMALL MOBILE */
@media (max-width: 575.98px) {
    .featured-products-section .product-feature-image {
        height: 280px;
        padding: 16px;
    }

    .featured-products-section .product-feature-content {
        padding: 1.5rem;
    }

    .featured-products-section .product-feature-content h3 {
        font-size: 1.8rem;
        line-height: 1.25;
    }
}

/* =========================================================
   FOOTER — CONSOLIDATED RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 32px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .footer-legal,
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-top: 28px;
    }

    .footer-main {
        padding-bottom: 22px;
    }

    .footer-column h3 {
        margin-bottom: 10px;
        line-height: 1.25;
    }

    .footer-column li {
        margin-bottom: 7px;
    }

    .footer-bottom {
        gap: 10px;
        padding-top: 14px;
    }

    .footer-legal,
    .footer-social {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .footer-logo img {
        max-width: 190px;
        height: auto;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* ==========================================================
   PRODUCT DETAIL CTA — CONSOLIDATED MOBILE LAYOUT
   ========================================================== */

@media (max-width: 767.98px) {

    .product-detail-page .product-detail-cta {
        padding: 28px 0 36px;
    }

    .product-detail-page .product-detail-cta > .container {
        width: calc(100% - 32px);
    }

    .product-detail-page .product-detail-cta-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 22px;
        padding: 28px 24px;
        border-radius: 12px;
    }

    .product-detail-page .product-detail-cta-inner > div {
        width: 100%;
        min-width: 0;
    }

    .product-detail-page .product-detail-cta-inner h2 {
        max-width: 100%;
        margin: 0;
        font-size: clamp(26px, 6vw, 34px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .product-detail-page .product-detail-cta-inner > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 12px 20px;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 420px) {

    .product-detail-page .product-detail-cta > .container {
        width: calc(100% - 24px);
    }

    .product-detail-page .product-detail-cta-inner {
        gap: 18px;
        padding: 24px 20px;
    }

    .product-detail-page .product-detail-cta-inner h2 {
        font-size: 27px;
        line-height: 1.25;
    }
}

/* ---------------------------------------------------------
    About-page section
----------------------------------------------------------*/

@media (max-width: 767.98px) {
    .about-page-title,
    .about-subpage-hero h1,
    .media-subpage-hero h1,
    .media-blog-post-hero h1 {
        font-size: clamp(2.1rem, 7vw, 3rem);
        line-height: 1.25;
    }

    .about-why-section .about-section-title,
    .about-leadership-section .about-section-title,
    .about-people-section .about-section-title,
    .about-team-intro h2,
    .about-team-photo-caption h2,
    .about-board-featured-content h2,
    .media-section-heading h2 {
        font-size: clamp(1.85rem, 5.5vw, 2.5rem);
        line-height: 1.25;
    }

    .about-mission-card h2,
    .about-subpage-cta h2,
    .about-team-placeholder-card h2 {
        font-size: clamp(1.75rem, 5vw, 2.3rem);
        line-height: 1.25;
    }

    .product-detail-hero h1 {
        font-size: clamp(2rem, 6vw, 2.8rem);
        line-height: 1.25;
    }
}

@media (max-width: 575.98px) {
    .about-page-title,
    .about-subpage-hero h1,
    .media-subpage-hero h1,
    .media-blog-post-hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
        line-height: 1.25;
    }

    .about-why-section .about-section-title,
    .about-leadership-section .about-section-title,
    .about-people-section .about-section-title,
    .about-team-intro h2,
    .about-team-photo-caption h2,
    .about-board-featured-content h2,
    .media-section-heading h2 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        line-height: 1.25;
    }

    .leadership-content h3,
    .about-leader-content h3,
    .about-person-content h3,
    .about-board-card-content h3,
    .about-why-card h3,
    .media-empty-state h3 {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
        line-height: 1.25;
    }

    .product-detail-hero h1 {
        font-size: clamp(1.85rem, 7vw, 2.35rem);
        line-height: 1.25;
    }

}

/*----------------------------------------------
        FOOTER — TABLET TWO-COLUMN OVERRIDE 
----------------------------------------------*/
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   FOOTER — FINAL MOBILE GRID
   ========================================================= */

@media (max-width: 767.98px) {

    .site-footer {
        width: 100%;
        overflow: hidden;
    }

    .footer-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        width: 100%;
        padding-bottom: 28px;
    }

    /* Brand occupies the complete first row */
    .site-footer .footer-main > .footer-brand {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100%;
        min-width: 0;
    }

/* Company */
.footer-main > .footer-column:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

/* Product & Services */
.footer-main > .footer-column:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* Farmer Community */
.footer-main > .footer-community {
    grid-column: 1 !important;
    grid-row: 3 !important;
}

/* Contact Us */
.footer-main > .footer-contact {
    grid-column: 2 !important;
    grid-row: 3 !important;
}

    .footer-main > .footer-column {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .footer-legal,
    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {

    .footer-main {
        gap: 24px 16px;
    }

    .footer-logo img {
        max-width: 190px;
        height: auto;
    }

    .footer-description {
        max-width: 100%;
    }
}
