/* Hero Section */

#hero {
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #1a1a1a;
    background-image: linear-gradient(hsl(165 75% 25% / 0.8), #107058cc),
        url("../image/home/hero/hero-bg3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

#hero .hero-content h1 {
    font-size: 72px;
    font-weight: 700;
    animation: onload 0.6s ease-in-out forwards;
}

#hero .hero-content h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 40px;
    color: var(--dark-secondary-color);
    animation: onload 0.7s ease-in-out forwards;
}

#hero .hero-content p {
    max-width: 768px;
    font-size: 24px;
    line-height: 32px;
    color: hsl(35deg 25% 96% / 90%);
    animation: onload 0.8s ease-in-out forwards;
}

#hero .hero-content .hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    animation: onload 0.9s ease-in-out forwards;
}

.hero-buttons .left {
    color: var(--text-light);
    background-color: var(--secondary-color);
    font-weight: 500;
    font-size: 18px;
    max-width: 190px;
    width: 100%;
    border-radius: 0.75rem;
    height: 44px;
    outline: none;
    box-shadow: none;
}

.hero-buttons .left:hover {
    background-color: var(--dark-secondary-color);
}

.hero-buttons .right {
    color: var(--primary-color);
    background-color: var(--background-light);
    font-weight: 500;
    font-size: 18px;
    max-width: 270px;
    width: 100%;
    border-radius: 0.75rem;
    height: 44px;
    outline: none;
    box-shadow: none;
}

/* Benefits Section */

#benefits {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-light);
    padding-top: 80px;
    padding-bottom: 80px;
}

#benefits .cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

#benefits .cards-container .card {
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: scale(1);
    box-shadow: 0 6px 18px hsla(165, 75%, 25%, 0.25);
    border-radius: 8px;
    border: 0;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#benefits .cards-container .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px hsla(165, 75%, 25%, 0.35);
}

#benefits .cards-container .card .card-body {
    padding: 24px;
}

#benefits h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 48px;
    font-size: 36px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#benefits h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 20px;
}

.svg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hero-gradient);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 0 auto 16px auto;
}

.svg svg {
    color: var(--text-light);
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

#benefits .card-text {
    color: var(--text-mute);
}

/* Courses Section */

#courses {
    position: relative;
    background: url('../image/home/courses/background.png') center/cover no-repeat;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#courses>* {
    position: relative;
    z-index: 2;
}

#courses .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-low-light);
    opacity: 1.0;
    z-index: 1;
}

#courses .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

#courses .cards-container .card {
    width: 100%;
    border-radius: 8px;
    border: 0.1px solid #ccc;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: scale(1);
    box-shadow: 0 6px 18px hsla(165, 75%, 25%, 0.25);
    transform-origin: center;
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#courses .cards-container .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px hsla(165, 75%, 25%, 0.35);
}

#courses .card-body {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-align: start;
    height: 100%;
}

#courses h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 16px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#courses p {
    margin-bottom: 48px;
    max-width: 672px;
    color: var(--text-mute);
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#courses .card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--background-low-light);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

#courses .card-title {
    margin-top: 50px;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

#courses .card-text {
    font-size: 16px;
    color: var(--text-mute);
    margin-bottom: 20px;
}

#courses .card-btn {
    margin-top: auto;
    display: block;
    background: var(--hero-gradient);
    color: var(--text-light);
    padding: 8px 16px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

#courses .card-btn:hover {
    background: var(--hero-gradient);
}

#courses .all-course {
    margin-top: 48px;
    color: var(--text-light);
    background-color: var(--secondary-color);
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: none;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#courses .all-course:hover {
    background-color: var(--dark-secondary-color);
}

/* Ruqiya Section */

#ruqiya {
    position: relative;
    height: auto;
    /* adjust as needed */
    background: url('../image/home/ruqiya/ruqiya-bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

#ruqiya .overlay {
    position: absolute;
    inset: 0;
    background-color: var(--primary-color);
    opacity: 0.85;
    z-index: 1;
}

#ruqiya>* {
    position: relative;
    z-index: 2;
}

#ruqiya h2 {
    color: var(--text-light);
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin-bottom: 24px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#ruqiya p {
    color: var(--text-light);
    max-width: 672px;
    font-size: 20px;
    margin-bottom: 32px;
    text-align: center;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#ruqiya .all-ruqiya {
    color: var(--text-light);
    background-color: var(--secondary-color);
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: none;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#ruqiya .all-ruqiya:hover {
    background-color: var(--dark-secondary-color);
}

/* Feedback Section */

#feedback {
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #e8e4de;
}

#feedback .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

#feedback h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 48px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#feedback .card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background-color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: scale(1);
    box-shadow: 0 6px 18px hsla(165, 75%, 25%, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#feedback .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px hsla(165, 75%, 25%, 0.35);
}

#feedback .card .icon {
    position: absolute;
    top: 20px;
    left: 20px;
}

#feedback .card .icon svg {
    color: var(--secondary-color);
}

#feedback .ratings {
    padding-top: 40px;
    position: relative;
}

#feedback .card-body {
    position: relative;
    padding: 20px 0px 0px 0px;
    text-align: start;
}

#feedback .card .ratings svg {
    color: var(--secondary-color);
    fill: var(--secondary-color);
}

#feedback .card .card-body p {
    color: var(--text-mute);
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 16px;
}

#feedback .card .author p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    font-style: normal;
}

#feedback .card .author p {
    color: var(--text-mute);
    margin: 0;
    font-style: normal;
}

/* Enrollment Section */

#enrollment {
    background: var(--hero-gradient);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

#enrollment h2 {
    color: var(--text-light);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 24px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#enrollment p {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 32px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#enrollment .enrollment {
    color: var(--text-light);
    background-color: var(--secondary-color);
    padding: 8px 28px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    outline: none;
    box-shadow: none;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#enrollment .enrollment:hover {
    background-color: var(--dark-secondary-color);
}

/* Media Queries */

@media (max-width: 768px) {
    #hero .hero-content h1 {
        font-size: 48px;
    }

    #hero .hero-content h2 {
        line-height: 36px;
        font-size: 30px;
    }

    #hero .hero-content p {
        line-height: 28px;
        font-size: 20px;
    }

    #benefits .cards-container {
        grid-template-columns: 1fr;
    }

    #courses .cards-container {
        grid-template-columns: 1fr;
    }

    #feedback .cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    #hero .hero-content .hero-buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
