/* main styles */

.ag-container h2 {
    font-size: 6.4rem;
    font-style: normal;
    font-weight: 450;
    letter-spacing: 4.2px;
    text-transform: uppercase;
    color: #fff;
}

.ag-container h3 {
    font-size: 3.2rem;
    font-style: normal;
    font-weight: 600;
    line-height: 3.8rem;
    color: #000;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.ag-container h4 {
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    padding-bottom: 10px;
}

.ag-container h5 {
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2rem;
    color: #000;
}

.tile-arrow img,
.stories-arrow img,
.add-arrow img {
    height: 20px;
    width: 20px;
    text-decoration: none;
}

a.mlkn-btn-secondary {
    border: 1px solid #00378c;
    color: #00378c;
    background-color: #fff;
    margin-left: 2rem;
}

a.mlkn-btn-secondary:hover {
    background-color: #003366;
    color: #fff;
}

/* header */
#ag-header {
    text-align: center;
    padding: 0;
    background-size: cover;
    height: 600px;
}

.ag-microenc-header {
    background-image: url(/-/media/ECD78E26DEA44C7DB50974C30057D68E.ashx);
}

.ag-soil-header {
    background-image: url(/-/media/DE1E8CD964D24F9894700CA4E3D34588.ashx);
}

.ag-colors-header {
    background-image: url(/-/media/E9417EF3F7EB4BBC9C15E63941E976DE.ashx);
}

#ag-header>.row {
    height: 100%;
    margin:0;
}

#ag-header .text-container {
    padding: 6rem;
    background: #04172ABF;
    backdrop-filter: blur(10px);
    margin: auto;
    /* transform: translateY(30%); */
}

#ag-header h4 {
    color: #fff;
}

#ag-header .text-container p {
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: 2.6rem;
}

/* Taking You From Lab... */
#ag-view-prod {
    padding: 6rem 14rem;
    background-color: #f5f5f5;
}

#ag-view-prod .action-btns {
    margin-top: 2rem;
}

/* Slider Section */
#ag-info-slider {
    padding: 6rem 14rem;
    position: relative;
}

.carousel-arrow {
    display: none;
}

.ag-tile {
    margin-top: 3rem;
}

#ag-info-slider .carousel-container {
    display: flex;
    justify-content: center;
}

.tile-card {
    background: #fff;
    padding: 0;
    margin-right: 1.5rem;
}

.tile-card:last-of-type {
    margin-right: 0;
}

#ag-info-slider .card-text {
    padding: 2.4rem;
    display: none;
}

#ag-info-slider .card-text p {
    font-size: 1.4rem;
    line-height: 2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

#ag-info-slider .tile-card {
    position: relative;
    cursor: default;
    text-align: center;
}

#ag-info-slider .tile-arrow {
    position: absolute;
    bottom: 0;
    padding-left: 1.4em;
    left: 0;
    display: none;
}

#ag-info-slider .tile-arrow p a {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#ag-info-slider .tile-arrow p a:hover {
    opacity: .4;
    margin-left: 1rem;
}
#ag-info-slider .mt-2-desktop {
    display: block;
}
#ag-info-slider .mt-2-mobile {
    display: none;
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
}
/* Offset Tile Section */

#ag-offset-comp {
    color: white;
    padding: 6rem 14rem;
    background-size: cover;
}

.ag-offset-micro {
    background: url(/-/media/629A067453F5471FA41DDD341366E7A9.ashx);
}

.ag-offset-soil {
    background: url(/-/media/E4F9607444234F038DE9CFD939050E57.ashx);
}

.ag-offset-colors {
    background: url(/-/media/A4821166015140D8B44B087769BB3073.ashx);
}
#ag-offset-comp .row {
    margin: 0;
}
#ag-img {
    display: none;
}

#ag-offset-comp .ag-text {
    background: rgba(0,0,0,0.6);
    padding: 4.8rem;
    color: #fff;
}

#ag-offset-comp .ag-text h3 {
    color: #fff;
    font-size: 3.6rem;
    font-weight: 700;
}
#ag-offset-comp .ag-text h4 {
    color: #fff;
}

#ag-offset-comp p {
    color: #fff;
    line-height: 2.8rem;
}

#ag-offset-comp .action-button {
    margin-top: 3rem;
}

/* Basic Title with Text Component */
#ag-basic-comp {
    background-color: #007AFF;
    padding: 6rem 14rem;
    text-align: center;
}
#ag-basic-comp h3 {
    color: #fff;
}
#ag-basic-comp h4 {
    color: #fff;
}
#ag-basic-comp p {
    color: #fff;
}
#ag-basic-comp p a.btn-primary {
    margin-top: 1rem;
}

/* Related Products Carousel */
    #ag-carousal {
        padding: 6rem 11rem;
        position: relative;
    }
    #ag-carousal .ag-tile {
        margin-top: 1.5rem;
        padding: 0 1.6rem;
    }
    #ag-carousal .carousel-container {
        display: flex;
    }
    #ag-carousal .tile-cards {
        border: 1px solid #d4d4d4;
        background: #fff;
        padding:0;
        margin-right: 1.5rem;
        max-width: 260px;
    }
    #ag-carousal .tile-cards:last-of-type {
        margin-right: 0;
    }
    #ag-carousal .card-text {
        padding: 2.4rem;
    }
    #ag-carousal h5 {
        padding-bottom: 1.6rem;
    }
    #ag-carousal .card-text p {
        line-height: 2rem;
    }
    #ag-carousal .tile-cards {
        position: relative;
        cursor: default;
    }
    #ag-carousal .tile-arrow {
        position: absolute;
        bottom: 0;
        padding-left: 1.4em;
        left:0;
    }
    #ag-carousal .tile-arrow p a {
        opacity: 1; 
        transition: opacity 0.3s ease-in-out; 
    }
    #ag-carousal .tile-arrow p a:hover {
        opacity: .4;
        margin-left: 1rem;
    }
    #ag-carousal {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }


    /* Related Articles */

#rel-stories {
    padding: 6rem 16rem;
}
#rel-stories h4 {
    padding-bottom: 20px;
}
#rel-stories .stories-title {
    font-weight: 600;
    font-size: 2rem;
    line-height: 3rem;
}

#rel-stories .stories-text {
    font-size: 1.4rem;
    line-height: 2.2rem;
}
.rel-stories-main {
    background-image: url(/-/media/E203E2C0D0C94DBD8FBA8D7355101242.ashx);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}
.rel-stories-main .stories-text {
    color: #fff;
    padding: 2.4rem;
    padding-bottom: 1rem;
    background: rgba(2, 18, 34, 0.76);
    backdrop-filter: blur(4px);
}
.rel-stories-main .stories-img {
    height: 300px;
}
.rel-stories-main a.stories-arrow {
    text-decoration: none;
    color: #fff;
    opacity: 1; 
    transition: opacity 0.3s ease-in-out;
}
.rel-stories-main a.stories-arrow:hover {
    opacity: .4;
    margin-left: 1rem;
}
.rel-stories-list {
    display: none;
    position: relative;
    padding-left:1.6rem;
}
.rel-stories-list .rel-stories {
    padding-bottom: 2rem;
}
.rel-stories-list .rel-stories:last-of-type {
    padding-bottom: 0;
}
.rel-stories-list a.stories-arrow {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.rel-stories-list a.stories-arrow:hover {
    opacity: 4;
    margin-left: 1rem;
}
.rel-stories-action {
    position: absolute;
    bottom: 0;
}
.rel-stories-action .mlkn-button-secondary {
    padding: 1rem 2rem;
}

/* Explore Our Links */

#ag-explore {
    background: #00378C;
    padding: 6rem 14rem;
}

.add-arrow img {
    color: #fff;
}

#ag-explore h4 {
    color: #fff;
    text-align: center;
}

#ag-explore h3 {
    color: #fff;
    text-align: center;
    padding-bottom: 4rem;
}

#ag-explore p.add-title {
    font-weight: 600;
    color: #fff;
    font-size: 1.5rem;

}

#ag-explore p {
    font-size: 1.3rem;
    color: #fff;
    line-height: 2.1rem;
}

#ag-explore .add-info {
    position: relative;
    padding-bottom: 4.5rem;
    padding-left: 2.4rem;
    padding-right: 2.4rem;
}

#ag-explore .add-arrow {
    position: absolute;
    bottom: 0;
}

#ag-explore .add-arrow p a {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#ag-explore .add-arrow p a:hover {
    opacity: .4;
    margin-left: 1rem;
}

#ag-explore p.link-desc {
    display: inline-block;
}

@media (max-width: 1400px) {
    .ag-container h2 {
        font-size: 3.6rem;
    }
    #ag-carousal .card-text {
        padding-bottom: 3rem;
    }
}

/* mobile */
@media (max-width: 991px) {

    .ag-container h2 {
        font-size: 2.4rem;
        line-height: 3rem;
    }

    .ag-container h3 {
        font-size: 2.8rem;
        line-height: 3.4rem;
    }

    .ag-container h4 {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    .ag-container h5 {
        font-size: 1.3rem;
        line-height: 1.9rem;
    }

    a.mlkn-btn-secondary {
        margin-left:0;
        margin-top: 1rem;
    }

    #ag-offset-comp .btn-primary {
        line-height: 2rem;
    }

    /* Prod View Section MOBILE */
    #ag-view-prod {
        padding: 3rem;
    }
    #ag-view-prod .action-btns a {
        display:block;
    }

    /* Slider Section MOBILE  */
    #ag-info-slider {
        padding: 3rem;
        padding-bottom:6rem;
    }

    #ag-info-slider h3 {
        font-size: 2.2rem;
        line-height: 3rem;
    }

    #ag-info-slider .row:first-of-type {
        width: 100%;
    }
    #ag-info-slider .mt-2-desktop {
        display: none;
    }
    #ag-info-slider .mt-2-mobile {
        display: block;
    }

    /*CAROUSEL*/
    #ag-info-slider .ag-tile {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 64px;
        padding: 0;
    }

    #ag-info-slider .carousel-container {
        padding-block: 0 15px;
        overflow-x: auto;
        display: flex;
        align-items: center;
        scroll-snap-type: x mandatory;
        flex-flow: row nowrap;
        scroll-behavior: smooth;
    }

    #ag-info-slider .ag-colors .carousel-container {
        overflow-x: visible;
    }

    .carousel-container::-webkit-scrollbar {
        height: 8px;
    }

    .carousel-container::-webkit-scrollbar-track {
        background: #fff;
        border-radius: 5px;
    }

    .carousel-container::-webkit-scrollbar-thumb {
        background: #00378c;
        border-radius: 5px;
    }

    #ag-info-slider .tile-card {
        flex: 1 0 50%;
        aspect-ratio: 1;
        flex-flow: column nowrap;
        display: flex;
        justify-content: center;
        align-items: center;
        scroll-snap-align: center;
        max-width: 100px;
    }

    #ag-info-slider .ag-colors .tile-card {
        flex: auto;
        max-width: 100%;
    }

    .carousel-arrow {
        display: flex;
        border: 2px solid #00378c;
        border-radius: 100px;
        height: 32px;
        width: 32px;
        color: #00378c;
        position: absolute;
        justify-content: center;
        bottom: 10px;
        margin-block: auto;
        background-color: white;
        font-size: 2rem;
        padding: 0;
        cursor: pointer;
        opacity: 0.5;
        transition: opacity 100ms;
    }
   
    .carousel-arrow:hover,
    .carousel-arrow:focus {
        opacity: 1;
    }

    .carousel-arrow--prev {
        left: 3rem;
    }

    .carousel-arrow--next {
        right: 3rem;
    }

    /* Related Products Carousel MOBILE */
    #ag-carousal {
        padding: 2rem 3rem;
        padding-bottom: 6rem;
    }
    #ag-carousal h3 {
        font-size: 2.2rem;
        line-height: 3rem;
    }
    #ag-carousal .row:first-of-type {
        width: 100%;
    }
    
    /*CAROUSEL*/
    #ag-carousal .ag-tile {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 64px;
        padding: 0 1.2rem;
    }
    #ag-carousal .carousel-container {
        padding-block: 0 25px;
        overflow-x: auto;
        display: flex;
        align-items: center;
        scroll-snap-type: x mandatory;
        flex-flow: row nowrap;
        scroll-behavior:smooth;
    }
    
    #ag-carousal .tile-cards {
        flex: 1 0 85%;
        aspect-ratio: 1;
        flex-flow: column nowrap;
        display: flex;
        justify-content: center;
        align-items: left;
        scroll-snap-align: center;
    }
    #ag-carousal h5 {
        padding-bottom: 1.6rem;
        font-size: 1.5rem;
    }
    #ag-carousal .card-text {
        padding: 2rem;
    }
    
    /* Offset Tile Section MOBILE */

    #ag-offset-comp {
        padding: 0;
        padding-top: 3rem;
        background: none;
        background-color: #fff;
        box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
    }

    .ag-offset-colors {
        padding-top:0 !important;

    }

    #ag-img {
        display: inline-block;
        padding:0;
    }

    #ag-img img {
        width: 100%;
    }

    #ag-offset-comp .ag-text {
        text-align: left;
        padding: 2rem 3rem;
    }

    #ag-offset-comp p {
        font-size: 1.6rem;
        line-height: 2.4rem;
    }

    #ag-offset-comp a.mlkn-button {
        width: 100%;
        text-align: center;
    }

    /* Basic Text Section MOBILE */
    #ag-basic-comp {
        padding: 3rem;
    }
    /* Related Stories MOBILE */
    #rel-stories {
        padding: 2rem 3rem;
    }
    .rel-stories-list {
        padding-left:1rem;
        padding-top: 2rem;
    }
    .rel-stories-action {
        position: initial;
        padding-top: 2rem;
    }
    .rel-stories-action .mlkn-button {
        width:100%;
        text-align:center;
    }

    /* Explore Our Additional Links MOBILE*/
    #ag-explore {
        padding: 3rem;
    }

    #ag-explore h4 {
        text-align: center;
    }

    #ag-explore h3 {
        text-align: center;
        padding-bottom: 0;
    }

    #ag-explore .add-info {
        padding-bottom: 0;
        padding-right: 1rem;
        padding-left: 1rem;
        margin-top: 2rem;
    }

    #ag-explore .add-arrow {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    #ag-explore p.link-desc {
        display: none;
    }
}