* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    box-sizing: border-box;
    width: 100vw;
    position: relative;
    overflow-x: hidden;

}

.page-has-muted-background {
    background-color: #f6f7f8;
}

.page-has-golden-background {
    background: radial-gradient(50% 50% at 50% 50%, #FDF2DF 0%, #F8CA7F 100%);
}

.main-header {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    z-index: 1030;
}

.main-header--solid {
    position: relative;
    background-color: #fff;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none;
}

.navbar.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

.main-content {
    width: 100%;
    margin-top: 0 !important;
}

.main-content--inner {
    background-color: #f6f7f8;
}

.main-content--golden {
    background: radial-gradient(50% 50% at 50% 50%, #FDF2DF 0%, #F8CA7F 100%);
}

.page-content {
    width: 100%;
    overflow-x: hidden;
}

.inquiries-page {
    width: 100%;
    min-height: 79vh !important;
}

@media (min-width: 992px) {
    .inquiries-page {
        min-height: 79vh !important;
    }

    .inquiries-container {
        margin: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-logo__img {
        display: none;
    }
}

section.hero-section {
    position: relative;
    isolation: isolate;
    background: none;
    min-height: 88vh;
    padding: 120px 0 40px;
    overflow: hidden;
}

section.hero-section>* {
    position: relative;
    z-index: 1;
}

section.hero-section::before,
section.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(360px, 45vw, 680px);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

section.hero-section::before {
    left: 0;
    background-image: url('/hero/bg1.png');
    background-position: left center;
}

section.hero-section::after {
    right: 0;
    background-image: url('/hero/bg2.png');
    background-position: right center;
}

div.container.landing-container {
    background: none;
    min-height: 70vh;

}

.hero-gallery-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.hero-logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-logo__img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: min(1150px, 100%);
    align-items: stretch;
}

.hero-gallery--single {
    display: flex;
    justify-content: center;
    width: min(1150px, 100%);
}

.hero-gallery__column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: clamp(360px, 44vw, 520px);
}

.hero-gallery__column--centered {
    justify-content: center;
}

.hero-gallery__column--stacked .hero-gallery__item,
.hero-gallery__column--full .hero-gallery__item {
    flex: 1;
}

.hero-gallery__item {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0px 10px 30px rgba(0, 0, 0, 0.15));
}

.hero-gallery--single .hero-gallery__item {
    width: 100%;
    max-width: 1150px;
}

.hero-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.hero-gallery--single .hero-gallery__item img {
    height: auto;
    object-fit: contain;
}

.hero-gallery__item--small {
    max-width: 180px;
    align-self: center;
}

.hero-mobile-gallery {
    width: 100%;
    justify-content: center;
}

.hero-mobile-gallery__item {
    width: min(480px, 100%);
    filter: drop-shadow(0px 10px 30px rgba(0, 0, 0, 0.15));
}

.hero-mobile-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-gallery__item--small img {
    height: auto;
    aspect-ratio: 1/1;
}

.cards-container img {
    max-width: 100px;
}

.single-card {
    /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.104); */
    background-color: #F3F3F3;
}

.first-banner .container {
    min-height: 600px;
    background: radial-gradient(50% 50% at 50% 50%, #FDF2DF 0%, #F8CA7F 100%);

}

.second-banner .container {
    background: radial-gradient(50% 50% at 50% 50%, #8BC6B8 0%, #51A295 100%);
    min-height: 600px;

    h1,
    div {
        color: #fff;
    }
}

.btn {
    padding: 8px 35px;
}

.registration-type-options .registration-type-btn {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.5;
}

.registration-type-options .registration-type-btn.btn-outline-primary {
    border-width: 2px;
}

.btn-secondary {
    background-color: #fff;
    border: solid 1px #494949;
}

.third-banner .container {
    background-color: #F3F3F3;
}

.third-banner .images-container .third-banner__img {
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.third-banner .images-container .third-banner__img--tilt-left {
    transform: rotate(-9deg);
}

.third-banner .images-container .third-banner__img--tilt-right {
    transform: rotate(9deg);
}

section.details {
    background-color: #F3F3F3;
}

.lower {
    img {
        max-width: 200px;
    }
}

footer {
    background: radial-gradient(50% 50% at 50% 50%, #8BC6B8 0%, #51A295 100%);
}

@media(max-width:991px) {
    .navbar {
        min-height: 100px;
    }

    .navbar-brand img {
        max-width: 220px;
    }

    .navbar .navbar-collapse {
        background-color: #fff;
        border-radius: 16px;
        padding: 12px 16px;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
    }

    section.hero-section {
        min-height: auto;
        padding: 100px 0 20px;
    }

    section.hero-section.mb-5 {
        margin-bottom: 1.75rem !important;
    }

    div.container.landing-container {
        min-height: auto;
    }

    .third-banner>.container>.row {
        flex-direction: column-reverse;
    }

    .hero-gallery {
        gap: 14px;
        width: 100%;
    }

    .hero-gallery__column {
        height: clamp(300px, 52vw, 420px);
    }

    .hero-logo__img {
        max-width: 260px;
    }

    .hero-gallery__item img {
        border-radius: 24px;
    }

    .hero-gallery__item--small {
        max-width: 150px;
    }
}

@media(max-width:576px) {
    .hero-gallery {
        gap: 12px;
        width: 100%;
        grid-template-columns: 1fr 1fr 1.5fr 1fr 1fr;
    }

    .hero-gallery__column {
        height: clamp(260px, 56vw, 360px);
    }

    .hero-logo__img {
        max-width: 210px;
    }

    .hero-gallery__item img {
        border-radius: 20px;
    }

    .hero-gallery__item--small {
        max-width: 130px;
    }

    .registration-type-options .registration-type-btn {
        width: 130px;
        height: 130px;
    }

    section.hero-section {
        padding: 80px 0 12px;
    }

    section.hero-section::before {
        background-image: url('/hero/bgm1.png');
        background-position: left top;
    }

    section.hero-section::after {
        background-image: url('/hero/bgm2.png');
        background-position: right top;
    }
}

.test-details .number {
    width: 40px;
    height: 40px;
    padding: 8px 0px 8px 0px;
    border: 1px solid #8bc6b8;
    background-color: #e8f4f1;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-details .choose-question span {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.test-details .choose-question {
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
}

.test-details .choose-question:hover {
    background-color: #8bc6b8;
}

.test-details .choose-question.active {
    background-color: #8bc6b8 !important;
}

.test-details input {
    opacity: 0;
}

.test-details .choose-question.active .number {
    font-family: "Font Awesome 6 Free";
    content: "\f078";
    font-weight: 900;
    margin-left: 5px;
    font-size: 14px;
}

.test-details a {
    border: 1px solid #8bc6b8;
    background-color: #e8f4f1;
}

.test-details a:hover {
    background-color: #8bc6b8;
}

.test-details .end-test {
    background-color: #8bc6b8;
}


.main-personal .all-dots li {
    background-color: #858585;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.main-personal .all-dots li.active {
    background-color: #51a295;
}

.developed-by-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.developed-by {
    --developed-by-text-color: #ffffff;
    --developed-by-logo-filter: brightness(0) saturate(100%) invert(82%) sepia(17%) saturate(1103%) hue-rotate(113deg) brightness(91%) contrast(90%);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--developed-by-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.developed-by span,
.developed-by a {
    display: inline-flex;
    align-items: center;
}

.developed-by a {
    color: inherit;
    text-decoration: none;
}

.developed-by__logo {
    height: 32px;
    width: auto;
    filter: var(--developed-by-logo-filter);
    transition: filter 0.3s ease;
}

/* Override --developed-by-logo-filter when the footer palette changes */

/* Quran registration form */
.quran-form-wrapper {
    width: 100%;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.quran-form-wrapper .container {
    width: 100%;
    padding-inline: 0;
}

.quran-form-wrapper .page-content {
    width: min(100%, 760px);
    margin-inline: auto;
}

.quran-form-wrapper .form-container {
    width: 100%;
    max-width: 720px;
    min-width: auto;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .quran-form-wrapper .form-container {
        margin-inline: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .quran-form-wrapper {
        padding-inline: 1.25rem;
    }

    .quran-form-wrapper .form-container {
        padding: 1.25rem !important;
        max-width: none;
    }
}

.quran-form-wrapper .form-select,
.quran-form-wrapper textarea,
.quran-form-wrapper input[type="text"],
.quran-form-wrapper input[type="tel"],
.quran-form-wrapper input[type="email"],
.quran-form-wrapper input[type="number"] {
    max-width: 100%;
}