/*hero section*/
.hero {
    grid-template-rows: repeat(2, min-content) 1fr;
}

.hero>*:not(.hero-image) {
    grid-column: 2/3;
    z-index: 1;
    text-align: center;
}

.hero-title {
    grid-row: 1/2;
    letter-spacing: 1px;
}

.hero-description {
    grid-row: 2/3;
    letter-spacing: 0.18px;
    color: rgba(var(--rgb-white), .8);
}

.hero-btn-group {
    grid-row: 3/4;
    align-self: start;
    justify-self: center;
}

.hero-image {
    height: 700px;
    grid-column: 1/-1;
    grid-row: 1/-1;
    position: relative;
}

.hero-image>picture>img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-image:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(var(--rgb-black), .8);
}

@media (max-width: 767px) {
    .hero br {
        display: none;
    }

    br {
        display: none;
    }
}

/*hero section END*/

/*section 2*/
.join-grid {
    display: grid;
    grid-template-rows: 100px min-content 1fr;
    row-gap: 24px;
}

@media (max-width: 1024px) {
    .join-grid {
        grid-template-rows: 60px min-content 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 550px) {
    br {
        display: none;
    }
}

/*section 2 END*/

/*trackman*/
.trackman {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: 92px repeat(4, min-content) 92px;
    align-items: start;
    justify-items: start;
    color: var(--white);
}

.trackman > img,
.trackman > picture {
    grid-column: 2/3;
    grid-row: 1/-1;
    align-self: center;
}

@media (max-width: 768px) {
    .trackman {
        grid-template-columns: 1fr;
        grid-template-rows: 92px repeat(5, min-content) 92px;
        justify-items: center;
        text-align: center;
    }
    .trackman > img,
    .trackman > picture {
        grid-column: 1/2;
        grid-row: 5/6;
    }
    .trackman > .btn {
        width: 100%;
    }
}
/*trackman END*/

/*packages section*/
.packages {
    padding: 90px 0 135px;
    background-color: var(--white);
}
.single-lesson {
    display: grid;
    grid-template-columns: max-content max-content max-content max-content;
    column-gap: 36px;
    align-items: center;
    padding: 16px 32px;
    background-color: var(--grey);
    border-radius: 4px;
}

.single-lesson > p {
    white-space: nowrap;
}
.package-box {
    display: grid;
    grid-template-rows: repeat(2, min-content) 1fr min-content;
    border: 2px solid var(--grey-2);
    padding: 20px;
    text-align: center;
}

.package-box:not(:nth-last-child(1)) {
    border-right: none;
}

.package-description {
    border-top: 2px solid var(--grey-2);
}

.package-description > * {
    border-bottom: 2px solid var(--grey-2);
}

@media(max-width: 930px) {
    #packagesWrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 32px;
    }
    .package-box {
        border: 2px solid var(--grey-2) !important;
    }
}
@media(max-width: 768px) {
    .single-lesson {
        grid-template-rows: repeat(4, min-content);
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .price-container {
        grid-row: 2/3;
    }
    .price {
        color: var(--green-dark);
        font-size: 54px;
        line-height: 85px;
    }
}
@media(max-width: 576px) {
    #packagesWrapper {
        grid-template-columns: 1fr
    }
}
/* Highlighted package card */
.package-box-highlighted {
    border: 2px solid var(--green-light) !important;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    transform: scale(1.03);
    z-index: 1;
}

.best-value-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green-light);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Per-unit price and savings */
.per-unit-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.savings-tag {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

/* TrackMan trust badge */
.trackman-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 0;
    opacity: 0.6;
}

.trackman-badge img {
    height: 20px;
}

.trackman-badge span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

/* FAQ section */
.faq-section {
    padding: 60px 0 80px;
    background-color: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--grey-2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--green-dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    outline: none;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-question:focus,
.faq-question:focus-visible {
    outline: none;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--green-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 0 20px;
}

/*packages section END*/

/*get in touch section*/
.get-in-touch {
    padding: 64px 20px;
    background-color: var(--grey);
    margin-bottom: 100px;
}
/*get in touch section END*/