.hero-container {
    max-width: 1346px;
    margin: auto;
    /* padding: 0px 0px 128px; */
}

/* navbar */
.math-navbar {
    background-color: #1F97F4;
}

.math-navbar .hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 121px;
    padding: 0;
    position: relative;
}

/* .logo { width: 286.99px; } */
.math-navbar .hero-container .logo img {
    height: 61.44px;
    object-fit: contain;
}

.math-navbar .hero-container .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.math-navbar .hero-container .nav-links ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.math-navbar .hero-container .nav-links ul a {
    font-weight: 600;
    font-size: 17px;
    line-height: 160%;
    letter-spacing: 1.6%;
    color: #FFFFFF;
    transition: all .3s;
}

.math-navbar .hero-container .nav-links ul a.active {
    border-bottom: 1px solid #FFF;
    padding-bottom: 2px;
}

.math-navbar .hero-container .nav-links ul a:hover {
    color: #bfdcf9;
}

.math-navbar .nav-toggle {
    display: none;
}

/* hero section */
.hero-section {
    background-image:
        /* url("./../images/hero-background-image.png"), */
        linear-gradient(180deg, #1F97F4 74.12%, #2B9CF5 81.97%, #FFFFFF 100%);
    background-position: top right;
    background-repeat: no-repeat;
    min-height: 657px;
    overflow: hidden;
    position: relative;
}

.hero-section .hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 657px;
    position: relative;
    z-index: 2;
}

.hero-section .hero-container .left {
    max-width: 550px;
    padding-right: 20px;
}

.hero-section .hero-container .left .heading-1 {
    color: #FFFFFF;
}

.hero-section .hero-container .left .paragraph {
    margin-top: 16px;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.hero-section .hero-container .left .hero-buttons {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-section .hero-container .left .hero-buttons a {
    gap: 10px;
}

.hero-section .hero-container .left .hero-ratings {
    /* min-width: 377px; */
    height: 79px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 39px; */
    border-radius: 100px;
    padding: 11px 33px;
    background: rgba(255, 255, 255, 0.24);
    margin-top: 40px;
}

.hero-section .hero-container .left .hero-ratings>div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: center;
}

.hero-section .hero-container .left .hero-ratings>div h5 {
    font-weight: 600;
    font-size: 35.76px;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(255, 255, 255, 1);
}

.hero-section .hero-container .left .hero-ratings>div span {
    font-weight: 400;
    font-size: 11.92px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #444444;
}

.hero-section .hero-container .left .hero-ratings>div:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.34);
    padding-right: 18px;
}

.hero-section .hero-container .left .hero-ratings>div:last-child {
    padding-left: 28px;
}

.hero-section .hero-container .right {
    position: relative;
    width: 546px;
}

.hero-section .hero-container .right img {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-section .hero-container .right .hero-bg-image {
    position: absolute;
    top: -2%;
    left: -20%;
    z-index: 1;
    width: auto;
}

.hero-phone {
    will-change: transform;
}


/* header-section */
.header-section {
    background: linear-gradient(180deg, #1F97F4 32.21%, #45AEFF 70%, #FFFFFF 100%);
    min-height: 376px;
    overflow: hidden;
    position: relative;
}

.header-section .container-box {
    display: flex;
    justify-content: center;
    text-align: center;
    min-height: 376px;
    padding-bottom: 0;
    padding-top: 60px;
    background: url("../images/header-bg-icons.png"), linear-gradient(180deg, #1F97F4 32.21%, #45AEFF 70%, #FFFFFF 100%);
    background-position: bottom;
    background-repeat: repeat-x;
    background-size: contain;
}

.header-section .container-box>div {
    max-width: 797px;
}

.header-section .container-box .heading-2 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

/* contact navbar */
.contact-navbar .math-navbar {
    background-color: transparent;
    padding-top: 23px;
}

.contact-navbar .hero-container {
    max-width: 1200px;
    background-color: #1F97F4;
    border-radius: 100px;
    height: 97px;
    padding: 0 30px;
}


/* 404 not found */
.notfound-section {
    /* background: linear-gradient(180deg, #1F97F4 32.21%, #45AEFF 70%, #FFFFFF 100%); */
    background: linear-gradient(180deg, #1F97F4 74.12%, #45AEFF 81.97%, #FFFFFF 100%);

    height: calc(100vh - 121px);
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
}

.notfound-section .container-box {
    text-align: center;
    padding-bottom: 0;
}

.notfound-section .container-box .heading-2 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.notfound-section .container-box .box-404 {
    margin: 42px auto 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.notfound-section .container-box .box-404 span {
    font-weight: 600;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -2%;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    filter: drop-shadow(1.97px 4.6px 4.53px 0px #0000001F);
    color: #FFFFFF;
}

.notfound-section .container-box .box-404 img {
    width: 67px;
    height: 67px;
}

.notfound-section .container-box .box-404 .answer {
    min-width: 142.29px;
    border-radius: 8.71px;
    box-shadow: -7.92px -9.97px 12.34px 0px #00000038;
    margin-left: 11px;
    font-weight: 600;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -2%;
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    color: #1A1A1A;
    background-color: #FFFFFF;
    padding: 24px 8px;
    border: 5px solid #44a8f5;
    position: relative;
    z-index: 1;
}

.notfound-section .container-box .box-404 .answer::after {
    content: url("../images/player-1-bg.png");
    display: block;
    width: 234px;
    position: absolute;
    top: -76%;
    right: -52%;
    transform: rotate(24.69deg);
    transform-origin: center center;
    z-index: 2;
}

.notfound-section .container-box .button {
    margin-top: 27px;
}

.notfound-section .container-box .button a {
    padding: 12.5px 34px;
}

/* =============================================
   Responsive Breakpoints
   ============================================= */

/* 1200px — constrained desktops / large tablets */
@media (max-width: 1200px) {
    .hero-container {
        padding: 0 20px;
    }

    .math-navbar .hero-container {
        padding: 0 20px;
    }

    .hero-section .hero-container .right {
        width: 460px;
    }

    .contact-navbar .hero-container {
        max-width: calc(100% - 20px);
    }
}

/* 992px — tablets landscape */
@media (max-width: 992px) {
    .math-navbar .hero-container {
        height: 90px;
    }

    .math-navbar .hero-container .nav-links {
        gap: 28px;
    }

    .math-navbar .hero-container .nav-links ul {
        gap: 5px 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .math-navbar .hero-container .nav-links ul a {
        font-size: 15px;
    }

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

    .hero-section .hero-container {
        min-height: 560px;
    }

    .hero-section .hero-container .left {
        max-width: 460px;
    }

    .hero-section .hero-container .left .paragraph {
        margin-bottom: 28px;
    }

    .hero-section .hero-container .left .hero-ratings {
        padding: 11px 20px;
        margin-top: 28px;
    }

    .hero-section .hero-container .right {
        width: 380px;
    }

    .header-section {
        min-height: 320px;
    }

    .header-section .container-box {
        min-height: 320px;
        padding-top: 48px;
    }

    .header-section .container-box>div {
        max-width: 100%;
    }

    .contact-navbar .hero-container {
        height: 80px;
    }
}

/* 768px — tablets portrait / large phones */
@media (max-width: 768px) {
    .math-navbar .hero-container {
        height: auto;
        padding: 16px 20px;
        flex-wrap: wrap;
        position: relative;
    }

    .math-navbar .nav-links ul {
        gap: 5px 15px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-section .hero-container {
        flex-direction: column;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 40px;
        gap: 32px;
    }

    .hero-section .hero-container .left {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-section .hero-container .left .hero-ratings {
        display: flex;
        width: fit-content;
        margin: 36px auto 0;
    }

    .hero-section .hero-container .left .hero-buttons {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-section .hero-container .right {
        width: 100%;
        max-width: 420px;
        margin: 20px auto 0;
    }

    .hero-section .hero-container .right .hero-bg-image {
        top: 0;
        width: 100%;
        left: 0;
    }

    .header-section {
        min-height: 280px;
    }

    .header-section .container-box {
        min-height: 280px;
        padding-top: 40px;
    }

    .contact-navbar .hero-container {
        height: auto;
        padding: 16px 20px;
        border-radius: 20px;
        margin-top: 16px;
    }

    .notfound-section {
        height: auto;
        min-height: calc(100vh - 80px);
    }

    .notfound-section .container-box .box-404 {
        gap: 16px;
        margin: 32px auto 48px;
    }

    .notfound-section .container-box .box-404 span {
        font-size: 48px;
    }

    .notfound-section .container-box .box-404 .answer {
        font-size: 48px;
        min-width: 110px;
        padding: 18px 8px;
    }
}

/* 580px — small phones */
@media (max-width: 580px) {
    .math-navbar .hero-container {
        padding: 14px 20px;
    }

    .math-navbar .hero-container .logo img {
        height: 51.44px;
    }

    .math-navbar .hero-container .nav-links {
        display: block;
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        background-color: #1F97F4;
        border-radius: 16px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: max-height .35s ease, opacity .25s ease, transform .25s ease, visibility .35s;
        z-index: 30;
    }

    .math-navbar .hero-container .nav-links.open {
        max-height: 320px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 8px 24px;
        width: 94%;
        margin: auto;
    }

    .math-navbar .hero-container .nav-links ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .math-navbar .hero-container .nav-links ul li {
        width: 100%;
    }

    .math-navbar .hero-container .nav-links ul li:not(:last-child) a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .math-navbar .hero-container .nav-links ul a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: 16px;
    }

    .math-navbar .hero-container .nav-links ul a.active {
        border-bottom: 1px solid #FFF;
        padding-bottom: 13px;
    }

    .math-navbar .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 6px;
        width: 30px;
        height: 24px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 31;
    }

    .math-navbar .nav-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        border-radius: 3px;
        background-color: #FFFFFF;
        transition: transform .3s ease, opacity .3s ease, width .3s ease;
    }

    .math-navbar .nav-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        width: 100%;
    }

    .math-navbar .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .math-navbar .nav-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        width: 100%;
    }

    .contact-navbar .hero-container .nav-links {
        top: calc(100% + 8px);
    }

    .hero-section .hero-container {
        padding-top: 32px;
        gap: 24px;
    }

    .hero-section .hero-container .left .hero-ratings {
        display: flex;
        padding: 10px 16px;
        height: auto;
        justify-content: center;
        width: fit-content;
        margin: 28px auto 0;
    }

    .hero-section .hero-container .left .hero-ratings>div h5 {
        font-size: 26px;
    }

    .hero-section .hero-container .left .hero-ratings>div span {
        font-size: 10px;
    }

    .hero-section .hero-container .left .hero-ratings>div:first-child {
        padding-right: 12px;
    }

    .hero-section .hero-container .left .hero-ratings>div:last-child {
        padding-left: 16px;
    }

    .hero-section .hero-container .left .hero-buttons {
        gap: 12px;
        justify-content: center;
    }

    .hero-section .hero-container .right {
        max-width: 320px;
    }

    .header-section {
        min-height: 240px;
    }

    .header-section .container-box {
        min-height: 240px;
        padding-top: 32px;
    }

    .contact-navbar .hero-container {
        border-radius: 16px;
        padding: 14px 20px;
    }

    .notfound-section .container-box .box-404 {
        flex-wrap: wrap;
        gap: 12px;
        margin: 24px auto 40px;
    }

    .notfound-section .container-box .box-404 span {
        font-size: 36px;
    }

    .notfound-section .container-box .box-404 .answer {
        font-size: 36px;
        min-width: 90px;
        padding: 14px 8px;
    }

    .notfound-section .container-box .box-404 img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 420px) {
    .right .hero-phone {
        position: relative;
        left: 5%;
    }
}