/* Hero Section */

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 37px 0px;
    background: var(--hero-gradient);
}

#hero svg {
    color: var(--text-light);
    margin-bottom: 22px !important;
    animation: onload 0.6s ease-in-out forwards !important;
}

#hero h1 {
    color: var(--text-light);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    animation: onload 0.7s ease-in-out forwards !important;
}

#hero p {
    color: var(--text-light);
    max-width: 672px;
    font-size: 20px;
    animation: onload 0.8s ease-in-out forwards !important;
}

/* Cards Section */

#cards-container {
    background-color: #f7f5f2;
}

#cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 auto;
    padding: 64px 20px 64px 20px;
    background-color: #f7f5f2;
}

@keyframes onload-no-scale {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#cards .card:nth-child(1),
#cards .card:nth-child(2) {
    animation: onload-no-scale 0.6s ease-in-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Inner elements staggered animation for first two cards */
#cards .card:nth-child(1) .icon-circle,
#cards .card:nth-child(2) .icon-circle {
    animation: onload2 0.7s ease-in-out forwards;
}

#cards .card:nth-child(1) .title,
#cards .card:nth-child(2) .title {
    animation: onload2 0.8s ease-in-out forwards;
}

#cards .card:nth-child(1) .price-tag .tag,
#cards .card:nth-child(2) .price-tag .tag {
    animation: onload2 0.9s ease-in-out forwards;
}

#cards .card:nth-child(1) .price-tag .price,
#cards .card:nth-child(2) .price-tag .price {
    animation: onload2 0.9s ease-in-out forwards;
}

#cards .card:nth-child(1) .desc,
#cards .card:nth-child(2) .desc {
    animation: onload2 1.0s ease-in-out forwards;
}

#cards .card:nth-child(1) .info-list li,
#cards .card:nth-child(2) .info-list li {
    animation: onload2 1.1s ease-in-out forwards;
}

#cards .card:nth-child(1) .enroll-btn,
#cards .card:nth-child(2) .enroll-btn {
    animation: onload2 1.1s ease-in-out forwards;
}

/* Base card styling */
#cards .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px;
    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: 11px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* Hover effect for all cards */
#cards .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px hsla(165, 75%, 25%, 0.35);
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hero-gradient);
    color: var(--text-light);
    margin-bottom: 24px;
    margin-right: auto;
}

#cards .card .title {
    width: 100%;
    text-align: start;
    font-weight: 600;
    font-size: 24px;
    color: var(--primary-color);
}

#cards .card .price-tag {
    width: 100%;
    display: flex;
    padding-bottom: 6px;
    justify-content: space-between;
    align-items: center;
}

.tag {
    color: var(--text-mute);
    font-size: 14px;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.card .desc {
    color: var(--text-mute);
    width: 100%;
    margin-bottom: 24px;
}

.card .info-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.card .info-list li {
    font-size: 14px;
    color: var(--text-mute);
    list-style: disc;
}

.card .info-list li::marker {
    color: var(--secondary-color);
}

.card .enroll-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: var(--hero-gradient);
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    margin-top: auto;
}

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

/* Process Section */

#process {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ebe6e0;
    padding-top: 64px;
    padding-bottom: 64px;
}

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

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

.protocol {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.init {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    height: 64px;
    width: 64px;
    font-size: 24px;
    font-weight: 700;
    background-color: var(--secondary-color);
    margin-bottom: 16px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.protocol h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary-color);
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.protocol p {
    color: var(--text-mute);
    text-align: center;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* Guide Section */

#guide {
    background-color: #1c8b6f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 64px;
    padding-bottom: 64px;
}

#guide svg {
    color: var(--text-light);
    margin-bottom: 16px !important;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

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

#guide p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 576px;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

#guide .guide-btn {
    color: var(--text-light);
    background-color: var(--secondary-color);
    padding: 10px 22px;
    font-weight: 500;
    font-size: 14.5px;
    border-radius: 11px;
    outline: none;
    box-shadow: none;
    animation: appear ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

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

/* Media Query */


@media (max-width: 1024px) {
    #cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #process .cards-container {
        grid-template-columns: 1fr;
    }
}
