@import "sections/hero.css";
@import "sections/reviewers.css";
@import "sections/zigzag.css";
@import "sections/benefits.css";
@import "sections/prefooter.css";
@import "sections/faqs.css";

.h1, h1 {
    font-size: 3rem;
}

.h2, h2 {
    font-size: 3.5rem;
}

.best-dns-servers-page--content a:not(.cta-btn) {
    text-decoration: underline;
}

.best-dns-servers-page--content a:not(.cta-btn):hover {
    text-decoration: none;
}

.cta-btn {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 120%;
}

@media screen and (max-width: 1199px) {
    h1, .h1 {
        font-size: 3rem;
    }

    h2, .h2 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 991px) {
    .cta-btn {
        width: 100%;
        text-align: center;
        border-radius: 1rem;
        padding: 1rem;
    }
}

@media screen and (max-width: 575px) {
    h1, .h1 {
        font-size: 2.5rem;
    }

    h2, .h2 {
        font-size: 2.5rem;
    }

    h2, .h2 {
        font-size: 2.5rem;
    }

    .row > * {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cta-btn {
        border-radius: 1.25rem;
        width: 100%;
    }
}

/* Hero Section*/
.hero {
    border-radius: 2.5rem;
    background-image: url("/images/redesign/home/hero-bg.jpg");
    margin-bottom: 0;
    padding: 4rem 0;
}

.hero .hero-foreground {
    object-position: 40%;
}

.hero .cta-btn {
    padding: 1rem 7rem;
    border-radius: 1.25rem;
}

.hero .col-6 > p {
    padding-right: 4rem;
}

.hero-devices svg {
    height: 1.5rem;
}

@media screen and (max-width: 1399px) {
    .hero .cta-btn {
        padding: 1rem 5rem;
    }
}

@media screen and (max-width: 1199px) {
    .hero .cta-btn {
        padding: 1rem 4rem;
    }
}

@media screen and (max-width: 991px) {
    .hero {
        padding-bottom: 0;
        padding-top: 3rem;
    }

    .hero .hero-foreground {
        margin-top: 2rem;
    }

    .hero .cta-btn {
        padding: 1rem;
        font-size: 1.25rem;
    }

    .hero--subtext {
        text-align: center;
        width: 80%;
        margin: 1.5rem auto 0 auto;
    }

    .hero .col-6 > p {
        padding: 0;
        text-align: center;
    }
}

/* Hero Section*/

/* Reviewers Section*/
.reviewers {
    padding: 4.75rem 0 2rem 0;
    margin-top: -2.75rem;
    margin-bottom: -2.75rem;
    position: relative;
}
@media screen and (max-width: 991px) {
    .reviewers {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        padding: 4rem 0 1.5rem 0;
    }
    .reviewers--list svg {
        max-width: 15rem;
        max-height: 5rem;
        width: auto;
        height: auto;
        margin: .75rem;
    }
    .reviewers h3 {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin: 0;
    }
}
/* Reviewers Section*/


/* dns-servers-desc section */
.dns-servers-desc {
    padding: 3.75rem 0;
}

.dns-servers-desc h2 {
    margin-bottom: 1.5rem;
}

.dns-servers-desc h5 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 140%;
    width: calc(85% - 2rem);
    margin: 0 auto;
    padding: 0;
}

.dns-servers-desc .zigzag {
    background: none;
    padding: 0;
}

.dns-servers-desc p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 155%;
    margin-bottom: 1.5rem;
}

.dns-servers-desc .zigzag--item h3 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 500;
    line-height: 120%;
}

.dns-servers-desc .zigzag--item .zigzag--item_text {
    order: 2;
    padding-right: 0;
    padding-left: 2.5rem;
    display: flex;
    flex-wrap: wrap;
}

.dns-servers-desc .zigzag--item .zigzag--item_img {
    order: 1;
    padding-left: 0;
    padding-right: 2.5rem;
}

@media screen and (max-width: 991px) {
    .dns-servers-desc {
        padding: 3rem 0;
    }

    .dns-servers-desc h5 {
        width: 100%;
        padding: 0 1rem;
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 155%;
    }

    .dns-servers-desc .zigzag--items {
        margin-bottom: 0;
    }
    .dns-servers-desc .zigzag--item {
        margin: 0;
    }

    .dns-servers-desc p {
        font-size: 1rem;
        width: 100%;
    }
    
    .dns-servers-desc .zigzag--item_text .cta-btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .dns-servers-desc .zigzag--item .zigzag--item_img, .dns-servers-desc .zigzag--item .zigzag--item_text {
        margin: 0;
        padding: 0;
    }
    
    .dns-servers-desc .zigzag--item .zigzag--item_img {
        margin-bottom: 1rem;
    }
}

/* dns-servers-desc section */

/* why-nh-dns Zigzag Section*/
.why-nh-dns .zigzag {
    background: #EBEBEB;
}

.why-nh-dns .zigzag h2 {
    margin-bottom: 1.5rem;
}

.why-nh-dns .subtitle {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 140%;
}

.why-nh-dns .zigzag--items, .why-nh-dns .zigzag--item {
    margin-bottom: 0;
}

.why-nh-dns .zigzag--item ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.why-nh-dns .zigzag--item li {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
    margin: .75rem 0;
}

.why-nh-dns .zigzag--item li:before {
    content: "";
    background: url("/images/redesign/svg/check-rounded.svg") no-repeat;
    background-size: contain;
    width: 1.75rem;
    height: 1.75rem;
    filter: invert(1);
    margin-right: 0.5rem;
}

.why-nh-dns .zigzag--item li p {
    display: inline;
    width: calc(100% - 2.5rem);
    text-align: left;
}

@media screen and (max-width: 991px) {
    .why-nh-dns .zigzag--items {
        margin-top: 0;
    }
    .why-nh-dns .zigzag--item li {
        display: flex;
    }

    .why-nh-dns .zigzag--item ul {
        margin-bottom: 0;
    }
}

/* why-nh-dns Zigzag Section*/

/* dns-features Benefits Section */
.dns-features {
    background: #FAFAFA;
}
.dns-features .benefits--item {
    background: #EBEBEB;
    width: calc(50% - 1rem);
}

.dns-features .benefits h2 {
    margin-bottom: 1.5rem;
}

.dns-features .benefits h4 {
    font-size: 1.25rem;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.dns-features .benefits--item:nth-child(odd) {
    margin-left: 0;
}

.dns-features .benefits--item:nth-child(even) {
    margin-right: 0;
}

.dns-features .benefits--item_icon {
    padding: 1.125rem;
    border-radius: 1rem;
}

.dns-features .benefits--item_icon svg {
    width: 2rem;
    height: 2rem;
}

.dns-features .benefits--bottom-text {
    text-align: center;
    font-size: 1.25rem;
}

.dns-features .cta-btn {
    border-radius: 1.25rem;
}

@media screen and (max-width: 991px) {
    .dns-features .benefits h4 {
        margin-bottom: 0;
    }

    .dns-features .benefits--list {
        margin-bottom: 0;
    }

    .dns-features .benefits--item_desc {
        overflow: auto;
        max-height: initial;
    }

    .dns-features .benefits--item {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: .75rem 0;
    }
    .dns-features .benefits--bottom-text {
        margin-top: 1rem;
    }
    .dns-features .benefits--item:after {
        content: none;
    }

    .dns-features .benefits--item_icon {
        display: flex;
        margin-bottom: 1.5rem;
    }

    .benefits--item_text h5 {
        font-size: 1.5rem;
    }
}

/* dns-features Benefits Section */

/* faqs section */
.faqs-section {
    background: #fff;
}
.faqs-section .accordion-item {
    background: #F7F6F5;
    border: none;
}
#faqs-accordion {
    margin-bottom: 0;
}
.faqs-section a:not(.cta-btn) {
    text-decoration: none;
}
.faqs-section a:not(.cta-btn):hover {
    text-decoration: underline;
}
@media screen and (max-width: 991px) {
    .faqs-section {
        padding: 3rem 0;
    }
    .faqs-section .accordion-button {
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 140%;
    }
    #faqs-accordion {
        margin-top: 1.5rem;
    }
}
/* faqs section */


