:root {
    --nextgen-color: #091022;
    --nextgen-color-light: #F2FAFD;
    --nextgen-gap-size: 10px;
}

/* Layout Styles
======================================= */

.hn-main-container {
    display: flex;
    flex-direction: column;
    gap: var(--nextgen-gap-size)
}

.nextgen-header {
    position: relative;
}

.nextgen-header-text {
    font-size: larger;
    position: absolute;
    top: 50%;
    right: min(5%, 100px);
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.nextgen-laptop,
.nextgen-mobile {
    display: flex;
    align-self: stretch;
    gap: var(--nextgen-gap-size);
}

.nextgen-section-header {
    background: var(--nextgen-color);
    padding: 40px;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.nextgen-section-content {
    background: var(--nextgen-color-light);
    padding: 40px;
    flex: 1;
}

.nextgen-section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #00adf0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.nextgen-section-link svg {
    width: 24px;
    height: 24px;
}

.nextgen-tech-highlights {
    display: flex;
    flex-direction: row;
    gap: var(--nextgen-gap-size);
}

.nextgen-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nextgen-gap-size);
}

.nextgen-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--nextgen-color-light);
    text-decoration: none;
    color: var(--nextgen-color);
}

.nextgen-product-button {
    padding: 8px 16px;
    background: var(--nextgen-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}


.nextgen-laptop-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--nextgen-gap-size);
}

.nextgen-feature,
.nextgen-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: var(--nextgen-color-light);
}

.nextgen-brand {
    justify-content: center;
}

.nextgen-brand-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.nextgen-tech-item {
    overflow: hidden;
}

.nextgen-tech-item img,
.nextgen-product img,
.nextgen-brand img {
    transition: transform .3s ease;
}


.nextgen-tech-item:hover img,
.nextgen-product:hover img,
.nextgen-brand:hover img {
    transform: scale(1.03);
}

.nextgen-by-brand,
.nextgen-mobile-by-brand {
    display: grid;
    gap: var(--nextgen-gap-size);
}

.nextgen-by-brand {
    grid-template-columns: repeat(6, 1fr);
}

.nextgen-mobile-by-brand {
    grid-template-columns: repeat(3, 1fr);
}

.nextgen-mobile-by-brand {
    grid-template-columns: 1fr 2.5fr 2.5fr 
}

.nextgen-feature img {
    margin-bottom: 16px
}

/* FAQ */

.next-gen-ai-faqs-parent-container {
    display: flex;
    justify-content: space-between;
    margin: 15px;
    gap: 20px;
    padding-bottom: 20px;
}

.next-gen-ai-faqs-parent-image {
    height: 500px;
}

.next-gen-ai-faqs-parent-accordion-content {
    flex: 2;
}

.next-gen-ai-faqs-heading {
    padding: 0 20px;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
    padding: 10px 0;
    margin-bottom: 8px;
}

.next-gen-ai-faq-container h1 {
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion::after {
    content: " ";
    background-image: url(https://hnuk.blob.core.windows.net/hnuk-assets/hn-landing-pages/next-gen-ai/images/upload.png);
    position: absolute;
    right: 9px;
    width: 10px;
    height: 9px;
    background-size: cover;
    top: 50%;
    transform: rotate(180deg);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-answer-content {
    font-size: 16px;
    text-align: left;
    margin-bottom: 20px;
}

.next-gen-ai-faq-container .tabs {
    display: flex;
    justify-content: start;

}

.next-gen-faq-tab-button {
    color: var(--nextgen-color);
    padding: 10px 20px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    border: none;
}

.next-gen-faq-tab-button.active {
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    margin-bottom: -1px;
    background: var(--nextgen-color);
    color: white;
}

.next-gen-faq-tab-content {
    display: none;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.accordion {
    position: relative;
    background-color: #fff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s;
}

.next-gen-faq-active::after {
    transform: rotate(0) !important;
}

.next-gen-faq-content-panel {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    color: #5E6F77;
}

.next-gen-faq-content-panel.next-gen-faq-show {
    display: block;
}



/* Font Styles
======================================= */
.hn-main-container h1,
.hn-main-container h2,
.hn-main-container h3,
.hn-main-container p {
    margin: 0 0 10px 0;
    line-height: 130%;;
}

.hn-main-container p {
    line-height: 150%;
}

/* Media Queries
======================================= */
@media screen and (max-width: 730px) {
    .hn-main-container {
        font-size: larger;
    }

    .nextgen-header {
        display: flex;
        flex-direction: column;
        background: var(--nextgen-color);
    }

    .nextgen-header-image {
        min-height: 180px;
        max-height: 230px;
        object-fit: cover;
        object-position: center 400px center;
    }

    .nextgen-header-text {
        padding: 40px;
        position: initial;
        transform: none;
        text-align: left;
    }
    
    .nextgen-laptop-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .nextgen-tech-highlights {
        flex-direction: column;
    }

    .nextgen-by-brand {
        grid-template-columns: repeat(2, 1fr);
    }

    .nextgen-mobile-by-brand {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Laptops */
    .nextgen-products {
        grid-template-columns: 1fr;
    }

    .nextgen-laptop, 
    .nextgen-mobile {
        flex-direction: column;
        width: 100%;
    }
    
}