.top-navbar {
    position: absolute !important;
}


/* Featured Section */
.featured-section {
    background-image: url('/images/backgrounds/islamic-galaxy-planets.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    max-height: 900px;
    min-height: 900px;
    padding: var(--five-percent-padding);
}

.featured-section .row {
    z-index: 10;
}



/* Featured Content Section */
.featured-content-section {
    min-height: 800px;
    padding: var(--five-percent-padding);
    background-color: var(--primary);
}

.featured-content-section img {
    padding: 10px;
}

.thumbnail-row {
    position: relative;
    overflow: visible;
    flex-wrap: nowrap;
}

.thumbnail-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}

.thumbnail-wrapper:hover {
    z-index: 10;
}

.styled-thumb {
    border-radius: 50px !important;
    max-height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.styled-thumb:hover {
    transform: scale(1.05);
}



/* Featured Reviews Section */
.featured-reviews-section {
    background-image: url('/images/backgrounds/galaxy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 725px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Overlay Styling */
.featured-reviews-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Carousel Wrapper */
.featured-reviews-section .carousel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

/* Carousel Background Transparency */
.featured-reviews-section .carousel,
.featured-reviews-section .carousel-item {
    justify-items: center;
    background-color: transparent;
    transition: ease all 0.5s;
}

/* Thumbnails Styling */
.featured-reviews-section .carousel-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-reviews-section .carousel-thumbnails img.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.5s, transform 0.5s, filter 0.5s;
    margin: 0 0.5rem;
    filter: brightness(0.75);
    border: 2px solid transparent;
}

.featured-reviews-section .carousel-thumbnails img.thumbnail.active {
    opacity: 1;
    transform: scale(1.25);
    filter: brightness(1);
    border-color: #fff;
}

.featured-reviews-section .carousel-thumbnails img.thumbnail:hover {
    opacity: 1;
}

/* Blockquote Styling */
.featured-reviews-section .blockquote {
    font-family: var(--metro, Arial, sans-serif);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.5;
    height: 225px;
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5%;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Carousel Indicators */
.featured-reviews-section .carousel-indicators {
    position: static;
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-reviews-section .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 5px;
    border: none;
    border-radius: 2px;
    opacity: 0.25;
    color: white;
}

.featured-reviews-section .carousel-indicators .active {
    width: 20px;
    opacity: 1;
}

/* Star Rating Styling */
.featured-reviews-section .star-rating {
    margin-bottom: 1rem;
}

/* Start Free Trial Button */
.featured-reviews-section .btn-galaxy-bright {
    margin-top: 1.5rem;
    background-color: var(--purple2);
    border: none;
    transition: ease all 0.3s;
}

.featured-reviews-section .btn-galaxy-bright:hover {
    background-color: darken(var(--purple2), 10%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-reviews-section {
        padding: 3rem 1rem;
    }

    .featured-reviews-section .carousel-thumbnails img.thumbnail {
        width: 40px;
        height: 40px;
        margin: 0.3rem;
    }

    .featured-reviews-section .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 4px;
    }

    .featured-reviews-section .carousel-indicators .active {
        width: 16px;
    }
}



/* Why Islamic Galaxy? */
.why-islamic-galaxy-section {
    height: 100%;
    padding: 80px 15px 40px 15px;
    text-align: center;
    color: white;
}

.why-islamic-galaxy-section h3 {
    font-size: 38px;
    line-height: 42px;
    margin-bottom: 20px;
}

.why-islamic-galaxy-section h5 {
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 40px;
}

.why-islamic-galaxy-section .btn-galaxy-bright {
    margin-top: 40px;
}



/* Make the Most of Your Child's Time */
.make-the-most-section {
    background-image: url('/images/backgrounds/galaxy2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    height: 100%;
    max-height: 850px;
    min-height: 800px;
    z-index: 0;
}

.make-the-most-section .content-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
}

.make-the-most-section p {
    font-size: 20px;
    text-align: start;
}

.make-the-most-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--body);
    opacity: 0.4;
}



/* Top 10 Favorites Section */
.top-ten-favorites-section {
    max-height: 450px;
}

.top-ten-favorites-section .favorites-wrapper {
    padding: 0 15px;
}

.top-ten-favorites-section .card {
    position: relative;
    background-color: var(--body, #343a40);
    border: unset;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 300px;
    display: flex;
    flex-direction: row;
    overflow: visible;
}

.top-ten-favorites-section .card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 125px;
    left: 65px;
    top: 50%;
    background: var(--galaxy);
    filter: blur(40px);
    margin-top: -62px;
}

.top-ten-favorites-section .card:hover {
    transform: scale(1.05);
}

.top-ten-favorites-section .top-number {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 160px;
    font-weight: bold;
    font-family: var(--roboto);
    -webkit-text-stroke: 2px white;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Image Styling */
.top-ten-favorites-section .card a {
    z-index: 1;
}

.top-ten-favorites-section .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}



/* What Will Your Child Learn? Section */
.what-will-your-child-learn-section {
    min-height: 700px;
}

/* Video Wrapper */
.what-will-your-child-learn-section .video-wrapper {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

/* Video Container Styling */
.what-will-your-child-learn-section .video-container {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.what-will-your-child-learn-section .video-container iframe {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: none;
}

.what-will-your-child-learn-section .btn-play {
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    background: none;
}

/* Thumbnails Container */
.what-will-your-child-learn-section .thumbnails-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, .5);
}

/* Remove background-color from Prev and Next Buttons */
.what-will-your-child-learn-section .thumbnails-container #prevButton,
.what-will-your-child-learn-section .thumbnails-container #nextButton {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    margin: 5px 0;
}

/* Thumbnails Wrapper */
.what-will-your-child-learn-section .thumbnails-wrapper {
    overflow: hidden;
    height: calc(4 * 80px + 3 * 8px);
}

/* Thumbnail Items */
.what-will-your-child-learn-section .thumbnail-items {
    transition: transform 0.3s ease;
}

.what-will-your-child-learn-section .thumbnail-item {
    width: 90px;
    height: auto;
    margin-bottom: 8px;
}

.what-will-your-child-learn-section .thumbnail-item img {
    width: 100%;
    border-radius: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease, border 0.3s ease;
    cursor: pointer;
}

.what-will-your-child-learn-section .img-thumbnail {
    border: none;
    background-color: transparent;
}

.what-will-your-child-learn-section .thumbnail-item img:hover,
.what-will-your-child-learn-section .thumbnail-item.active img {
    opacity: 1;
    background-color: var(--purple2);
    border-radius: 25%;
}



/* Subscribe Today */
.subscribe-today-section {
    background-image: url('/images/backgrounds/galaxy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 55vh;
    max-height: 350px;
}



/* Scrolling Catalog */
.scrolling-catalog-section {
    height: 100%;
    min-height: 650px;
    background-color: var(--primary);
}



/* Blog */
.blog-section {
    height: 100%;
    min-height: 675px;
}

.blog-section img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5%;
}

.blog-section .blog-title {
    padding-right: 6rem;
}

.blog-section .blog-excerpt {
    font-family: var(--metro);
    font-size: 15px;
    line-height: 24px;
    color: grey;
}

.blog-card.card {
    background: var(--tertiary);
    border-color: transparent;
    border-radius: 18px;
    border-style: solid;
    border-width: 2px;
    transition: 0.2s ease all;
}

.blog-card:hover,
.blog-card:focus,
.blog-card:active {
    border-color: var(--purple1) !important;
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}



/* FAQ */
.faq-section {
    height: 100%;
    min-height: 950px;
    background-color: var(--tertiary);
}

.faq-section .accordion-wrapper {
    padding-top: 3.5em;
    padding-bottom: 3.5em;
}

/* Remove default background and borders from accordion headers */
.faq-section .accordion-button {
    background-color: transparent;
    color: white;
    border: none;
    padding-left: 0;
}

/* Remove background from accordion item */
.faq-section .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid white;
}

/* Remove default focus outline */
.faq-section .accordion-button:focus {
    box-shadow: none;
}

/* Remove default caret icon */
.faq-section .accordion-button::after {
    display: none;
}

/* Add custom caret icon on the left */
.faq-section .accordion-button::before {
    content: '';
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 8 8"><path d="M0 0l4 4-4 4z"/></svg>');
    background-repeat: no-repeat;
    background-size: .65rem;
    width: .65rem;
    height: .65rem;
    margin-right: 0.35rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

/* Expanded state: caret points upwards */
.faq-section .accordion-button:not(.collapsed)::before {
    transform: rotate(-90deg);
}

/* Orange text when expanded */
.faq-section .accordion-button:not(.collapsed) {
    color: var(--orange);
}

/* Ensure the accordion body has white text */
.faq-section .accordion-body {
    color: white;
    background-color: transparent;
    font-family: var(--roboto);
    text-align: start;
}

.faq-section .accordion-button {
    font-weight: 600;
}



/* Sign Up */
.sign-up-section {
    background-image: url('/images/backgrounds/islamic-galaxy-planets.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 55vh;
    max-height: 350px;
}