/* =====================================================
   HEADER — TABLET
   Viewport: 768px to 991.98px
   ===================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {

    .site-header {
        padding: 8px 0;
    }

 /*   .site-header .navbar {
        min-height: 72px;
    }

    .site-header .navbar > .container {
        flex-wrap: wrap;
    }

    /* Keep logo in the first row */
 /*   .site-header .navbar-brand {
        margin-right: auto;
    }

    /* Hide mobile hamburger on tablets */
  /*  .site-header .navbar-toggler {
        display: none !important;
    }

    /* Show desktop navigation below the logo */
  /*  .site-header .navbar-collapse.nc-nav-shell {
        display: block !important;
        flex-basis: 100%;
        flex-grow: 1;
        width: 100%;
        margin-top: 10px;
    }

    .site-header .nc-nav-shell .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        padding: 0;
    }

    .site-header .nc-nav-shell .nav-link {
        padding: 10px 11px;
        font-size: 12px;
        white-space: nowrap;
    }

    .site-header .nc-products-dropdown {
        position: static;
    }

    /* Compact tablet mega-menu */
  /*  .site-header .nc-mega-menu {
        width: calc(100vw - 40px);
        max-width: 850px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-top: 10px;
    }

    .site-header .nc-mega-inner {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 12px;
    }

    .nc-mega-category {
        min-height: 45px;
        gap: 8px;
        padding: 5px;
    }

    .nc-mega-category img {
        width: 32px;
        height: 32px;
    }

    .nc-mega-category > span:nth-child(2) {
        font-size: 11px;
    }

    .nc-mega-promo {
        min-height: 340px;
    }

    .nc-mega-promo-content {
        padding: 38px 22px;
    }

    .nc-mega-promo h3 {
        font-size: 25px;
    }

    .nc-promo-button {
        padding: 10px 16px;
        font-size: 11px;
    }

    .site-header .offcanvas {
        z-index: 1060;
    }

    .site-logo {
        height: 50px;
        max-width: 190px;
    }*/
}

/* =====================================================
   HEADER — MOBILE
   Viewport: below 768px
   ===================================================== */

@media (max-width: 767.98px) {

    .site-header .navbar {
        min-height: 72px;
    }

    .site-header .navbar-collapse {
        display: none !important;
    }

    .site-header .navbar-toggler {
        display: block;
        border: 0;
        padding: .5rem;
        box-shadow: none;
    }

    .site-header .navbar-toggler:focus {
        box-shadow: none;
    }

    .site-header .offcanvas {
        z-index: 1060;
    }

    .site-logo {
        height: 50px;
        max-width: 190px;
    }

    .site-header .navbar-nav {
        padding: 1rem 0;
    }

    .site-header .nav-link {
        padding: 0.7rem 0;
    }

    .site-header .nav-link::after {
        display: none;
    }
}

/* =====================================================
   HERO VALUE STRIP — TABLET
   ===================================================== */

@media (max-width: 991.98px) {

    .hero-value-item {
        min-height: 115px;
    }

    .hero-value-item:nth-child(2) {
        border-right: 0;
    }

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

/* =====================================================
   HOMEPAGE ABOUT — TABLET
   ===================================================== */

@media (max-width: 991.98px) {

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

    .about-content {
        padding-left: 0;
    }

    .about-visual {
        margin-bottom: 2rem;
    }

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

/* =====================================================
   HOMEPAGE SERVICES — TABLET
   ===================================================== */

@media (max-width: 991.98px) {

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

    .services-intro {
        margin: 1.5rem 0 0;
    }

    .service-card {
        min-height: 360px;
    }

    .services-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =====================================================
   HOMEPAGE FEATURED PRODUCTS — TABLET
   ===================================================== */

@media (max-width: 991.98px) {

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

    .featured-products-intro {
        margin: 1.5rem 0 0;
    }

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


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

@media (max-width: 991.98px) {

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

    .farmer-trust-intro {
        margin: 1.5rem 0 0;
    }
}


/* =========================================================
   HOMEPAGE — WHY NUTRICORP — TABLET
   ========================================================= */

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

    .why-title {
        margin-bottom: 1.5rem;
        line-height: 1.25;
    }

    .why-intro {
        margin-bottom: 1.75rem;
    }

    .why-grid {
        margin-top: 4rem;
    }
}


/* =========================================================
   HOMEPAGE — OUR PEOPLE — TABLET
   ========================================================= */

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

    .team-intro {
        margin-top: 1.5rem;
    }

    .team-image-wrap {
        height: 425px;
    }
}


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

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

    .media-view-all {
        margin-top: 1.5rem;
    }
}


/* =========================================================
   HOMEPAGE — FINAL CTA — TABLET
   ========================================================= */

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

    .final-cta-action {
        justify-content: flex-start;
        margin-top: 2rem;
    }
}

/* =========================================================
   FOOTER NAVIGATION — TABLET
   ========================================================= */

@media (max-width: 1199.98px) {
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 22px;
    }

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

/* =========================================================
   ABOUT PAGE — TABLET
   ========================================================= */

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

    .about-page-intro {
        margin: 1.5rem 0 0;
    }

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

    .about-company-content {
        padding-left: 0;
    }
}


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

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

    .about-section-intro {
        margin: 1.5rem 0 0;
    }

    .purpose-card {
        min-height: 250px;
    }
}


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

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

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

    .leadership-content {
        padding: 3rem;
    }
}


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

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

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

    .about-people-caption {
        margin: -5rem 0 0 2rem;
    }
}

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

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

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

    .rnd-note {
        min-width: 155px;
    }

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

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

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

    .rnd-visual {
        min-height: 500px;
        margin-top: 2rem;
    }

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

    .rnd-bottom-strip {
        margin-top: 45px;
    }
}


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

@media (max-width: 991.98px) {
    .about-values-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-value-item,
    .about-value-item:nth-child(4),
    .about-value-item:nth-child(5) {
        grid-column: auto;
    }
}

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

@media (max-width: 1199.98px) {
    .about-board-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

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

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

    .about-board-featured {
        grid-template-columns: 1fr;
    }

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

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

    .about-board-grid {
        grid-template-columns: 1fr;
    }

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

    .nc-board-row {
        gap: 65px 24px;
    }

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

    .nc-board-full-section {
        padding: 55px 0 70px;
    }

    .nc-director-row,
    .nc-director-row-reverse {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 35px;
        padding: 45px 10px;
    }

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

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

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


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

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

    .about-team-photo-caption {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 3rem;
    }
}


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

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

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

    .about-why-section .about-section-intro {
        margin: 25px 0 0;
    }

    .about-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .about-leadership-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 5rem;
        line-height: 1.25;
    }

    .about-leadership-section .about-section-intro {
        margin: 0;
    }
}


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

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

    .about-people-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        line-height: 1.25;
    }

    .about-people-section .about-section-intro {
        margin: 0;
    }
}

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

@media (max-width: 991.98px) {
    .about-subpage-hero {
        padding: 6rem 0 4.5rem;
    }

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

    .about-mission-grid {
        grid-template-columns: 1fr;
    }

    .about-mission-card {
        min-height: auto;
    }

    .about-subpage-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


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

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

    .about-team-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

@media (max-width: 991.98px) {
    .media-subpage-hero {
        padding: 6rem 0 4.5rem;
    }

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

    .media-section-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        line-height: 1.25;
    }

    .media-section-heading > p {
        margin: 0;
        line-height: 1.25;
    }
}

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

@media (max-width: 991.98px) {
    .product-detail-intro {
        padding-top: 5px;
        padding-bottom: 55px;
    }

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

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

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

    .product-detail-name {
        font-size: clamp(3rem, 8vw, 3rem);
        line-height: 1.25;
    }

    .product-detail-about {
        padding: 36px 34px;
    }

    .product-detail-crop {
        padding: 24px 34px;
    }

    .product-detail-information-card {
        padding: 32px 34px;
    }
}

/* =========================================
   PRODUCT CATEGORY — PRODUCT GRID
   Tablet
========================================= */

@media (max-width: 991.98px) {
    .product-category-products {
        padding: 75px 0 95px;
    }

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

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

/* =========================================
   PRODUCTS LISTING PAGE — TABLET
========================================= */

@media (max-width: 991.98px) {
    .products-page-hero {
        padding: 36px 0 40px;
    }

    .products-page-intro {
        margin: 0;
    }

    .products-category-section {
        padding: 40px 0 64px;
    }

    .products-category-grid {
        gap: 22px;
    }
}

/* PRODUCT CATEGORY CARDS — TABLET */
@media (max-width: 991.98px) {
    .product-category-card-content {
        padding: 26px 27px 30px;
    }

    .product-category-card-content h3 {
        font-size: 2.25rem;
        line-height: 1.25;
    }
}

/* PRODUCT DETAIL PAGE — FINAL TABLET LAYOUT */
@media (max-width: 991.98px) {
    .product-detail-page .product-detail-intro-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
    }

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

}

/* SERVICES PAGE — TABLET */
@media (max-width: 991.98px) {
    .services-page-hero {
        padding: 5.5rem 0;
    }

    .services-page-intro {
        margin: 1.5rem 0 0;
    }

    .service-detail-grid,
    .service-detail-grid-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 36px 0;
    }

    .service-detail-grid-reverse .service-detail-art {
        grid-row: 1;
        margin: 0 auto;
    }

    .service-detail-grid-reverse .service-detail-copy {
        grid-row: 2;
    }

    .service-detail-art {
        width: min(100%, 400px);
        margin: 0 auto;
    }

    .services-page-cta-inner {
        padding: 3rem;
    }
}

/* FOOTER — TABLET SPACING */
@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 32px;
    }

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

    .footer-bottom {
        gap: 14px;
    }
}

/* HOMEPAGE HERO VIDEO — TABLET */
@media (max-width: 991.98px) {
    .hero-section {
        height: clamp(440px, 65vw, 620px);
    }
}

/* SERVICES HOMEPAGE CARDS — TABLET */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .services-home-section .service-card {
        min-height: 210px;
        padding: 1.5rem;
    }

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

    .services-home-section .service-link {
        font-size: 0.875rem;
    }
}

/* FEATURED PRODUCTS — INTERMEDIATE SCREENS */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .featured-products-section .product-feature-image {
        height: 250px;
        padding: 14px;
    }

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

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

/* FEATURED PRODUCTS — TABLET */
@media (max-width: 991.98px) {
    .featured-products-section .product-feature-image {
        height: 300px;
    }

    .featured-products-section .product-feature-content h3 {
        font-size: clamp(1.65rem, 3vw, 2rem);
        line-height: 1.25;
    }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

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

    .product-detail-page .product-detail-cta-inner h2 {
        font-size: clamp(26px, 3.5vw, 34px);
        line-height: 1.25;
    }

    .product-detail-page .product-detail-cta-inner > a {
        min-width: 160px;
    }
}


/* Tablet */
@media (max-width: 991.98px) {
    .about-subpage-hero,
    .media-subpage-hero {
        padding-top: 26px;
        padding-bottom: 30px;
    }

    .about-company-section,
    .about-mission-section,
    .about-values-section,
    .about-why-section,
    .about-leadership-section,
    .about-people-section,
    .about-board-section,
    .about-rnd-section,
    .about-subpage-cta,
    .service-detail,
    .contact-page-section,
    .media-blog-section,
    .media-gallery-section,
    .product-information-section,
    .product-related-section,
    .about-home-section,
    .services-home-section,
    .featured-products-section,
    .farmer-trust-section,
    .why-nutricorp-section,
    .team-home-section,
    .media-insights-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* =========================================================
   CAREERS — TABLET
   ========================================================= */
@media (max-width: 991.98px) {
    .careers-intro-section,
    .careers-opportunities-section,
    .careers-vacancies-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* Desktop Trusted by Farmers navigation: separate link and dropdown toggle */
/*
@media (min-width: 991.98px) {
    .site-header .trusted-farmers-nav-inner {
        display: flex;
        align-items: center;
    }

    .site-header .trusted-farmers-nav-inner > .nav-link {
        display: inline-flex;
        align-items: center;
    }

    .site-header .trusted-farmers-toggle {
        flex: 0 0 28px;
        width: 28px;
        min-width: 28px;
        height: 42px;
        padding: 0;
        border: 0;
        background: var(--nc-transparent);
        color: var(--nc-primary-deep);
    }

    .site-header .trusted-farmers-toggle::after {
        position: static;
        display: inline-block;
        width: 0;
        height: 0;
        margin: 0;
        background: var(--nc-transparent);
        transform: none;
        border-top: 0.3em solid currentColor;
        border-right: 0.3em solid var(--nc-transparent);
        border-bottom: 0;
        border-left: 0.3em solid var(--nc-transparent);
    }

    .site-header .trusted-farmers-toggle:hover::after,
    .site-header .trusted-farmers-toggle:focus::after {
        transform: none;
    }
}*/