/* Explain: Styles for various UI components, including certificate display and print styles. */
.glass-panel {
    border: 1px solid var(--border-color);
    background: var(--glass-color);
    box-shadow: 0 18px 44px rgba(20, 22, 26, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.gold-button {
    min-height: 3.25rem;
    border: 1px solid rgba(245, 242, 230, 0.24);
    color: #07272b;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 12px 30px rgba(216, 174, 99, 0.26);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.gold-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 16px 40px rgba(216, 174, 99, 0.4);
    transform: translateY(-2px);
}

.gold-button:active {
    transform: translateY(1px);
}

.ghost-button {
    min-height: 3.25rem;
    border: 1px solid rgba(245, 242, 230, 0.28);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.ghost-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
    background: var(--primary-soft);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.section-kicker::before {
    width: 2.25rem;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--primary-color), transparent);
    box-shadow: 0 0 12px rgba(216, 174, 99, 0.45);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-head-title {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
}

.link-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.55rem;
    min-height: 2.75rem;
    color: var(--primary-hover);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    transition: gap 220ms ease, color 220ms ease;
}

.link-more:hover {
    gap: 0.95rem;
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .section-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .link-more {
        align-self: auto;
        flex-shrink: 0;
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-brand);
    transform: translateY(-6px);
}

.service-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    color: var(--accent-color);
    background: var(--primary-soft);
    font-size: 1.35rem;
}

.editorial-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.editorial-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-brand);
    transform: translateY(-6px);
}

.editorial-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.editorial-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.editorial-card:hover .editorial-media img {
    transform: scale(1.06);
}

.editorial-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.32rem 0.9rem;
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    color: var(--primary-hover);
    background: var(--primary-soft);
    font-size: 0.75rem;
    font-weight: 700;
}

.agenda-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.agenda-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-brand);
    transform: translateY(-4px);
}

.agenda-media {
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 16 / 10;
}

.agenda-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 640px) {
    .agenda-card {
        grid-template-columns: 14rem 1fr;
        align-items: stretch;
    }
}

.testimonial-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    transition: border-color 300ms ease, transform 300ms ease;
}

.testimonial-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-4px);
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.06) saturate(1.05) brightness(0.97);
    transition: transform 500ms ease, filter 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: contrast(1.02) saturate(1.02) brightness(1);
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(4, 24, 28, 0.9));
    transition: opacity 300ms ease;
}

.gallery-caption {
    position: absolute;
    z-index: 2;
    inset-inline: 0.9rem;
    bottom: 0.9rem;
    display: block;
    width: fit-content;
    max-width: calc(100% - 1.8rem);
    padding-block: 0.7rem 0.75rem;
    padding-inline: 1.35rem 1.05rem;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(18, 20, 24, 0.5), rgba(18, 20, 24, 0.94));
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.75;
    text-align: start;
    text-wrap: balance;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    box-shadow: none;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    clip-path: polygon(0.7rem 0, 100% 0, calc(100% - 0.7rem) 100%, 0 100%);
    transition: background 300ms ease;
}

.gallery-caption::before {
    position: absolute;
    inset-inline-start: 0.7rem;
    inset-block-start: 50%;
    width: 0.45rem;
    height: 0.45rem;
    content: "";
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(196, 31, 85, 0.7);
    transform: translateY(-50%);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
    background: linear-gradient(180deg, rgba(196, 31, 85, 0.45), rgba(18, 20, 24, 0.96));
}

.gallery-item:hover .gallery-caption::before,
.gallery-item:focus-visible .gallery-caption::before {
    box-shadow: 0 0 16px rgba(196, 31, 85, 0.95);
    transform: translateY(-50%) scale(1.15);
}

@media (min-width: 640px) {
    .gallery-caption {
        inset-inline: 1rem;
        bottom: 1rem;
        padding-block: 0.78rem 0.85rem;
        padding-inline: 1.5rem 1.15rem;
        font-size: 0.95rem;
    }

    .gallery-caption::before {
        inset-inline-start: 0.8rem;
        width: 0.5rem;
        height: 0.5rem;
    }
}

.form-field {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(216, 174, 99, 0.2);
}

.form-field::placeholder {
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--graphite-deep);
}

.ticker-bar {
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    padding-block: 0.8rem;
}

.ticker-label {
    flex-shrink: 0;
    padding: 0.32rem 0.95rem;
    border-radius: 999px;
    color: #07272b;
    background: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}

.ticker-track {
    overflow: hidden;
    flex: 1;
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-move {
    display: inline-flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
}

.ticker-bar:hover .ticker-move {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    direction: rtl;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ticker-item::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 999px;
    background: var(--primary-hover);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(196, 31, 85, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.gallery-modal-image {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 340ms ease, transform 340ms ease;
}

.gallery-modal-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-modal-caption {
    width: auto;
    max-width: 100%;
    padding: 0.65rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.75rem;
    color: #ffffff;
    background: rgba(20, 22, 26, 0.88);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.75;
    text-align: center;
    text-wrap: balance;
    box-shadow: 0 12px 28px rgba(20, 22, 26, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .gallery-modal-caption {
        font-size: 1.05rem;
    }
}

.gallery-modal-nav {
    position: absolute;
    z-index: 10;
    top: 50%;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(43, 48, 55, 0.72);
    font-size: 1.05rem;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}

.gallery-modal-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
    background: rgba(28, 31, 36, 0.92);
}

.gallery-modal-prev {
    inset-inline-start: 0.75rem;
}

.gallery-modal-next {
    inset-inline-end: 0.75rem;
}

.gallery-modal-counter {
    position: absolute;
    z-index: 10;
    inset-inline: 0;
    inset-block-end: 1rem;
    width: fit-content;
    margin-inline: auto;
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(28, 31, 36, 0.82);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .gallery-modal-nav {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.15rem;
    }

    .gallery-modal-prev {
        inset-inline-start: 1.5rem;
    }

    .gallery-modal-next {
        inset-inline-end: 1.5rem;
    }
}

.newsletter-light {
    color: var(--graphite-deep);
    background: var(--light-background);
}

.newsletter-light .section-kicker {
    color: var(--gold-deep);
}

.newsletter-light .section-kicker::before {
    background: linear-gradient(90deg, var(--gold-deep), transparent);
    box-shadow: 0 0 12px rgba(164, 124, 44, 0.35);
}

.newsletter-light .section-head-title,
.newsletter-light .newsletter-lead {
    color: var(--graphite-deep);
}

.newsletter-light .newsletter-form {
    border: 1px solid rgba(28, 31, 36, 0.14);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(20, 22, 26, 0.1);
}

.newsletter-light .form-field {
    border: 1px solid rgba(28, 31, 36, 0.16);
    color: var(--graphite-deep);
    background: #f7f4ea;
}

.newsletter-light .form-field:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(216, 174, 99, 0.22);
}

.newsletter-light .form-field::placeholder {
    color: var(--graphite-muted);
}

.services-light {
    color: var(--graphite-deep);
    background: var(--light-background);
}

.services-light .section-kicker {
    color: var(--gold-deep);
}

.services-light .section-kicker::before {
    background: linear-gradient(90deg, var(--gold-deep), transparent);
    box-shadow: 0 0 12px rgba(164, 124, 44, 0.32);
}

.services-light .section-head {
    border-bottom-color: rgba(28, 31, 36, 0.14);
}

.services-light .section-head-title {
    color: var(--graphite-deep);
}

.services-light .link-more {
    color: var(--gold-deep);
}

.services-light .link-more:hover {
    color: var(--graphite-deep);
}

.services-light .service-card {
    border-color: rgba(28, 31, 36, 0.12);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(20, 22, 26, 0.07);
}

.services-light .service-card:hover {
    border-color: rgba(216, 174, 99, 0.55);
    box-shadow: 0 24px 54px rgba(164, 124, 44, 0.18);
}

.services-light .service-card h3 {
    color: var(--graphite-deep);
}

.services-light .service-icon {
    border-color: rgba(164, 124, 44, 0.35);
    color: var(--gold-deep);
    background: rgba(216, 174, 99, 0.16);
}

.booking-light {
    color: var(--graphite-deep);
    background: var(--light-background);
}

.booking-light .section-kicker {
    color: var(--gold-deep);
}

.booking-light .section-kicker::before {
    background: linear-gradient(90deg, var(--gold-deep), transparent);
    box-shadow: 0 0 12px rgba(164, 124, 44, 0.32);
}

.booking-light .section-head-title {
    color: var(--graphite-deep);
}

.booking-light .ghost-button {
    border-color: rgba(28, 31, 36, 0.18);
    color: var(--graphite-deep);
    background: #ffffff;
}

.booking-light .ghost-button:hover {
    border-color: var(--gold-deep);
    color: var(--gold-deep);
    background: rgba(216, 174, 99, 0.12);
}

.booking-form-panel {
    border: 1px solid rgba(28, 31, 36, 0.12);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(20, 22, 26, 0.1);
}

.booking-light .form-field {
    border: 1px solid rgba(28, 31, 36, 0.16);
    color: var(--graphite-deep);
    background: #f7f4ea;
}

.booking-light .form-field:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(216, 174, 99, 0.18);
}

.booking-light .form-field::placeholder {
    color: var(--graphite-muted);
}

.date-field-wrap {
    position: relative;
}

.date-placeholder {
    display: none;
    color: var(--graphite-muted);
}

.date-field-wrap.date-masked .date-placeholder {
    display: flex;
}

.date-field-wrap.date-masked .date-field.has-value + .date-placeholder,
.date-field-wrap.date-masked .date-field:focus + .date-placeholder {
    display: none;
}

.date-field-wrap.date-masked .date-field::-webkit-datetime-edit {
    color: transparent;
}

.date-field-wrap.date-masked .date-field.has-value::-webkit-datetime-edit,
.date-field-wrap.date-masked .date-field:focus::-webkit-datetime-edit {
    color: inherit;
}

.package-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.package-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-brand);
    transform: translateY(-6px);
}

.plan-card {
    transition: border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.plan-card.is-selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 14px 34px rgba(196, 31, 85, 0.16);
    background: #fff7f9;
}

.package-card-featured {
    border-color: rgba(216, 174, 99, 0.55);
    background: linear-gradient(165deg, rgba(216, 174, 99, 0.18), var(--surface-elevated) 58%);
    box-shadow: var(--shadow-brand);
}

.package-card-featured::before {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.field-error-text {
    color: var(--danger-color);
    font-weight: 700;
}

.booking-light .field-error-text,
.newsletter-light .field-error-text {
    color: #b3352b;
}

.form-field.field-invalid,
.booking-light .form-field.field-invalid,
.newsletter-light .form-field.field-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(224, 138, 114, 0.22);
}

.form-field.field-invalid:focus,
.booking-light .form-field.field-invalid:focus,
.newsletter-light .form-field.field-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(224, 138, 114, 0.26);
}

.clip-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.clip-card:hover,
.clip-card:focus-visible {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-brand);
    transform: translateY(-6px);
}

.clip-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.clip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.clip-card:hover .clip-media img,
.clip-card:focus-visible .clip-media img {
    transform: scale(1.06);
}

.clip-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(4, 24, 28, 0.06) 0%, rgba(4, 24, 28, 0.62) 100%);
}

.clip-play {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    width: 3.75rem;
    height: 3.75rem;
    margin: auto;
    place-items: center;
    border: 1px solid rgba(245, 242, 230, 0.5);
    border-radius: 999px;
    color: #07272b;
    background: rgba(216, 174, 99, 0.94);
    font-size: 1.1rem;
    box-shadow: 0 14px 34px rgba(3, 16, 11, 0.45);
    transition: transform 260ms ease, background 260ms ease;
}

.clip-card:hover .clip-play,
.clip-card:focus-visible .clip-play {
    background: var(--primary-hover);
    transform: scale(1.08);
}

.clip-duration {
    position: absolute;
    z-index: 2;
    inset-block-end: 0.75rem;
    inset-inline-end: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(20, 22, 26, 0.88);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.clip-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.4rem 1.5rem 1.6rem;
}

.clip-modal {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--overlay-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.clip-modal.is-open {
    display: flex;
}

.clip-modal-panel {
    display: flex;
    width: 100%;
    max-width: 56rem;
    max-height: 90vh;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.clip-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.clip-modal-close {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(245, 242, 230, 0.28);
    border-radius: 999px;
    color: var(--text-color);
    background: rgba(7, 37, 41, 0.8);
    font-size: 1.25rem;
    cursor: pointer;
    transition: border-color 260ms ease, color 260ms ease, background 260ms ease;
}

.clip-modal-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
    background: rgba(4, 26, 30, 0.94);
}

.clip-modal-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #041f24;
    aspect-ratio: 16 / 9;
}

.clip-modal-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #041f24;
}

.clip-modal-caption {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .clip-modal-panel {
        padding: 1.25rem;
    }
}

.events-light {
    color: var(--graphite-deep);
    background: var(--light-background);
}

.events-light .section-kicker {
    color: var(--gold-deep);
}

.events-light .section-kicker::before {
    background: linear-gradient(90deg, var(--gold-deep), transparent);
    box-shadow: 0 0 12px rgba(164, 124, 44, 0.32);
}

.events-light .section-head {
    border-bottom-color: rgba(28, 31, 36, 0.14);
}

.events-light .section-head-title {
    color: var(--graphite-deep);
}

.events-light .link-more {
    color: var(--gold-deep);
}

.events-light .link-more:hover {
    color: var(--graphite-deep);
}

.events-light .editorial-card {
    border-color: rgba(28, 31, 36, 0.12);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(20, 22, 26, 0.07);
}

.events-light .editorial-card:hover {
    border-color: rgba(216, 174, 99, 0.55);
    box-shadow: 0 24px 54px rgba(164, 124, 44, 0.18);
}

.events-light .editorial-card h3 {
    color: var(--graphite-deep);
}

.events-light .tag-chip {
    border-color: rgba(164, 124, 44, 0.35);
    color: var(--gold-deep);
    background: rgba(216, 174, 99, 0.16);
}

.clips-light {
    color: var(--graphite-deep);
    background: var(--light-background);
}

.clips-light .section-kicker {
    color: var(--gold-deep);
}

.clips-light .section-kicker::before {
    background: linear-gradient(90deg, var(--gold-deep), transparent);
    box-shadow: 0 0 12px rgba(164, 124, 44, 0.32);
}

.clips-light .section-head {
    border-bottom-color: rgba(28, 31, 36, 0.14);
}

.clips-light .section-head-title {
    color: var(--graphite-deep);
}

.clips-light .link-more {
    color: var(--gold-deep);
}

.clips-light .link-more:hover {
    color: var(--graphite-deep);
}

.clips-light .clip-card {
    border-color: rgba(28, 31, 36, 0.12);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(20, 22, 26, 0.07);
}

.clips-light .clip-card:hover,
.clips-light .clip-card:focus-visible {
    border-color: rgba(216, 174, 99, 0.55);
    box-shadow: 0 24px 54px rgba(164, 124, 44, 0.18);
}

.clips-light .tag-chip {
    border-color: rgba(164, 124, 44, 0.35);
    color: var(--gold-deep);
    background: rgba(216, 174, 99, 0.16);
}

/* ===== لوحة التصميم الجديدة: أخضر حرجي داكن + كريمي عاجي + ذهبي ===== */

.gold-button {
    color: #0c2a20;
    background: linear-gradient(135deg, #e8c979, #d8b45f);
    box-shadow: 0 12px 30px rgba(216, 180, 95, 0.24);
}

.gold-button:hover {
    box-shadow: 0 16px 40px rgba(216, 180, 95, 0.38);
}

.ghost-button {
    border-color: var(--primary-border);
    background: rgba(246, 241, 227, 0.05);
}

.ticker-label {
    color: #0c2a20;
}

.gallery-item::after {
    background: linear-gradient(180deg, transparent 45%, rgba(7, 25, 19, 0.92));
}

.gallery-modal-caption {
    background: rgba(7, 25, 19, 0.88);
}

.clip-media::after {
    background: linear-gradient(180deg, rgba(7, 25, 19, 0.06) 0%, rgba(7, 25, 19, 0.68) 100%);
}

.clip-play {
    color: #0c2a20;
    background: rgba(216, 180, 95, 0.94);
}

.clip-duration {
    background: rgba(7, 25, 19, 0.88);
}

.clip-modal-close {
    background: rgba(12, 42, 32, 0.82);
}

.clip-modal-close:hover {
    background: rgba(9, 32, 24, 0.95);
}

.clip-modal-media,
.clip-modal-video {
    background: #081f17;
}

.services-light .service-card {
    padding: 1.9rem 1.5rem;
    text-align: center;
}

.services-light .service-icon {
    margin-inline: auto;
    border-radius: 999px;
    background: rgba(216, 180, 95, 0.18);
}

.package-card {
    background: var(--surface-color);
}

.package-card-featured {
    border-color: rgba(216, 180, 95, 0.6);
    background: linear-gradient(165deg, rgba(216, 180, 95, 0.2), var(--surface-elevated) 60%);
}

.services-light,
.events-light,
.clips-light,
.booking-light,
.newsletter-light {
    border-top-color: rgba(16, 42, 33, 0.12);
}

.gallery-mosaic .gallery-caption {
    padding-block: 0.65rem;
    padding-inline: 1.15rem 0.85rem;
    font-size: 0.72rem;
}

.faq-item {
    overflow: hidden;
    border: 1px solid rgba(28, 31, 36, 0.14);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 1rem 1.25rem;
    color: var(--graphite-deep);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.7;
    cursor: pointer;
    list-style: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--gold-deep);
    transition: transform 260ms ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.15rem;
    color: var(--graphite-muted);
    font-size: 0.9rem;
    line-height: 1.9;
}

/* مساحة أوسع وخط أوضح لأسئلة صفحة الدورة على الجوال */
#faq .faq-summary {
    min-height: 4rem;
    padding: 1.15rem 1.25rem;
    font-size: 1.02rem;
    line-height: 1.85;
}

#faq .faq-answer {
    padding: 0 1.25rem 1.4rem;
    font-size: 0.98rem;
    line-height: 2.05;
}

@media (min-width: 640px) {
    #faq .faq-summary {
        font-size: 1.08rem;
    }

    #faq .faq-answer {
        font-size: 1rem;
    }
}

.about-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.about-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(7, 25, 19, 0.08) 0%, rgba(7, 25, 19, 0.76) 100%);
}

.about-media:hover img {
    transform: scale(1.04);
}

.about-media-play {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    margin: auto;
    place-items: center;
    border: 1px solid rgba(246, 241, 227, 0.5);
    border-radius: 999px;
    color: #0c2a20;
    background: rgba(216, 180, 95, 0.94);
    font-size: 1.35rem;
    box-shadow: 0 16px 40px rgba(3, 16, 11, 0.5);
    transition: transform 260ms ease, background 260ms ease;
}

.about-media:hover .about-media-play {
    background: var(--primary-hover);
    transform: scale(1.07);
}

.about-media-label {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    inset-block-end: 1rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* ===== الهوية: الأبيض والرصاصي أساساً مع لمسات وردية محدودة ===== */

.section-kicker {
    color: var(--graphite-deep);
}

.gold-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: linear-gradient(135deg, #3a4048, #2b3037);
    box-shadow: 0 12px 30px rgba(43, 48, 55, 0.22);
}

.gold-button:hover {
    box-shadow: 0 16px 40px rgba(43, 48, 55, 0.34);
}

.ghost-button {
    border-color: rgba(43, 48, 55, 0.18);
    background: #ffffff;
}

.section-kicker::before {
    background: linear-gradient(90deg, var(--accent-color), transparent);
    box-shadow: 0 0 12px rgba(196, 31, 85, 0.3);
}

.ticker-label {
    color: #ffffff;
}

.form-field {
    border-color: rgba(43, 48, 55, 0.16);
    background: #ffffff;
}

.form-field:focus {
    box-shadow: 0 0 0 3px rgba(43, 48, 55, 0.18);
}

.gallery-item::after {
    background: linear-gradient(180deg, transparent 34%, rgba(24, 27, 32, 0.94));
}

.gallery-modal-caption {
    background: rgba(28, 31, 36, 0.9);
}

.gallery-modal-caption::before {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-inline-end: 0.55rem;
    content: "";
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(196, 31, 85, 0.7);
    vertical-align: middle;
}

.services-light .section-kicker::before,
.events-light .section-kicker::before,
.clips-light .section-kicker::before,
.booking-light .section-kicker::before,
.newsletter-light .section-kicker::before {
    background: linear-gradient(90deg, var(--accent-color), transparent);
    box-shadow: 0 0 12px rgba(196, 31, 85, 0.28);
}

.services-light .service-icon,
.events-light .tag-chip,
.clips-light .tag-chip {
    border-color: rgba(43, 48, 55, 0.22);
    color: var(--graphite-deep);
    background: rgba(43, 48, 55, 0.06);
}

.services-light .service-card:hover,
.events-light .editorial-card:hover,
.clips-light .clip-card:hover,
.clips-light .clip-card:focus-visible {
    border-color: rgba(43, 48, 55, 0.4);
    box-shadow: 0 24px 54px rgba(43, 48, 55, 0.12);
}

.newsletter-light .form-field,
.booking-light .form-field {
    background: #f7f7f9;
}

.newsletter-light .form-field:focus,
.booking-light .form-field:focus {
    box-shadow: 0 0 0 3px rgba(43, 48, 55, 0.14);
}

.booking-light .ghost-button:hover {
    background: rgba(43, 48, 55, 0.08);
}

.booking-light .field-error-text,
.newsletter-light .field-error-text {
    color: var(--danger-color);
}

.package-card-featured {
    border-color: rgba(43, 48, 55, 0.4);
    background: linear-gradient(165deg, rgba(43, 48, 55, 0.08), var(--surface-elevated) 60%);
}

.package-card-featured::before {
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.clip-media::after {
    background: linear-gradient(180deg, rgba(28, 31, 36, 0.06) 0%, rgba(28, 31, 36, 0.72) 100%);
}

.clip-play {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(43, 48, 55, 0.92);
}

.clip-duration {
    background: rgba(28, 31, 36, 0.9);
}

.clip-modal-close {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(43, 48, 55, 0.86);
}

.clip-modal-close:hover {
    background: rgba(43, 48, 55, 0.68);
}

.clip-modal-media,
.clip-modal-video {
    background: #2b3037;
}

.about-media::after {
    background: linear-gradient(180deg, rgba(28, 31, 36, 0.1) 0%, rgba(28, 31, 36, 0.8) 100%);
}

.about-media-play {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(43, 48, 55, 0.92);
}

.services-light,
.events-light,
.clips-light,
.booking-light,
.newsletter-light {
    border-top-color: rgba(20, 22, 26, 0.12);
}

/* ===== معرض الصور: كاروسيل احترافي بانسيابية سينمائية ===== */

.gallery-swiper {
    padding-bottom: 3.75rem;
}

.gallery-swiper .swiper-slide {
    width: 86%;
    height: auto;
}

@media (min-width: 640px) {
    .gallery-swiper .swiper-slide {
        width: 84%;
    }
}

@media (min-width: 1024px) {
    .gallery-swiper .swiper-slide {
        width: 82%;
    }
}

.gallery-slide {
    width: 100%;
    aspect-ratio: 16 / 11;
    box-shadow: 0 18px 44px rgba(20, 22, 26, 0.14);
    transition: box-shadow 320ms ease, opacity 320ms ease;
}

.gallery-swiper .swiper-slide:not(.swiper-slide-active) .gallery-slide {
    opacity: 0.7;
}

.gallery-swiper .swiper-slide-active .gallery-slide {
    box-shadow: 0 28px 64px rgba(20, 22, 26, 0.26);
}

.gallery-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: var(--text-muted);
    opacity: 0.45;
}

.gallery-swiper .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--primary-color);
    opacity: 1;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-color);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 22, 26, 0.14);
    cursor: pointer;
    transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.gallery-swiper .swiper-button-prev:hover,
.gallery-swiper .swiper-button-next:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

@media (max-width: 639px) {
    .gallery-swiper .swiper-button-prev,
    .gallery-swiper .swiper-button-next {
        display: none;
    }
}

/* ===== شريط شعارات العملاء: عرض متحرك مستمر بجانب بعضه ===== */

.logo-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 0.35rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    direction: ltr;
    animation: logo-marquee-scroll 70s linear infinite;
    will-change: transform;
}

.logo-marquee-track.is-paused {
    animation-play-state: paused;
}

.logo-marquee-reverse .logo-marquee-track {
    animation-direction: reverse;
}

.logo-marquee-item {
    display: grid;
    width: 6.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    place-items: center;
    margin-inline-end: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 320ms ease, opacity 320ms ease;
}

.logo-marquee-item:hover {
    transform: translateY(-4px);
}

.logo-marquee-logo {
    width: auto;
    height: 2.6rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

@keyframes logo-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 640px) {
    .logo-marquee-item {
        width: 10rem;
        height: 5.5rem;
        margin-inline-end: 2rem;
    }

    .logo-marquee-logo {
        height: 3.6rem;
    }
}

@media (min-width: 1024px) {
    .logo-marquee-item {
        width: 12rem;
        height: 6.25rem;
    }

    .logo-marquee-logo {
        height: 4.4rem;
    }
}

@media (max-width: 639px) {
    .logo-marquee-track {
        animation-duration: 46s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .logo-marquee-track {
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .logo-marquee-item {
        margin-block-end: 0.75rem;
        margin-inline-end: 0.75rem;
    }

    .logo-marquee-item[aria-hidden="true"] {
        display: none;
    }
}

/* ===== شريط الإنجازات المتحرك: شريط داكن متصل مباشرة أسفل واجهة الموقع ===== */

.ticker-bar {
    position: relative;
    overflow: hidden;
    padding-block: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, #16191d 0%, #2b3037 50%, #16191d 100%);
    color: #ffffff;
}

.ticker-bar::before {
    position: absolute;
    z-index: 2;
    inset-block-start: 0;
    inset-inline: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.75;
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #ffffff;
    background: linear-gradient(135deg, #d4245c, var(--accent-color));
    box-shadow: 0 8px 20px rgba(196, 31, 85, 0.4);
}

.ticker-track {
    position: relative;
    min-width: 0;
    overflow: hidden;
    flex: 1;
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-move {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.ticker-bar:hover .ticker-move,
.ticker-bar:active .ticker-move,
.ticker-bar:focus-within .ticker-move {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.6rem;
    margin-inline-end: 3rem;
    direction: rtl;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.ticker-item::before {
    display: none;
}

.ticker-item i {
    color: var(--accent-color);
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .ticker-bar {
        padding-block: 1rem;
    }

    .ticker-item {
        font-size: 0.95rem;
    }
}

/* ===== نموذج الحجز على الجوال: خطوتان واضحتان مع مؤشر تقدم بسيط ===== */

.booking-steps-progress,
.booking-step-actions {
    display: none;
}

.booking-form--stepped .booking-steps-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--graphite-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
}

.booking-step-dot {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(28, 31, 36, 0.2);
    border-radius: 999px;
    color: var(--graphite-muted);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.booking-step-indicator.is-active {
    color: var(--accent-color);
}

.booking-step-indicator.is-active .booking-step-dot {
    border-color: var(--accent-color);
    color: #ffffff;
    background: var(--accent-color);
}

.booking-step-indicator.is-done .booking-step-dot {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.booking-step-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgba(28, 31, 36, 0.14);
}

.booking-step-line.is-done {
    background: var(--accent-color);
}

.booking-form--stepped [data-booking-step] {
    display: none;
}

.booking-form--stepped [data-booking-step].is-active {
    display: block;
}

.booking-form--stepped .booking-step-actions {
    display: flex;
    gap: 0.75rem;
}

.booking-form--stepped:not(.is-step-2) #booking-step-prev {
    display: none;
}

.booking-form--stepped.is-step-2 #booking-step-next {
    display: none;
}

.booking-form--stepped:not(.is-step-2) #booking-submit-button {
    display: none;
}

/* ===== تقويم المواعيد: مطوي على الجوال ويُفتح بضغطة لتقليل العناصر الظاهرة ===== */

.booking-calendar-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: start;
    cursor: pointer;
}

.booking-calendar-caret {
    flex-shrink: 0;
    color: var(--graphite-muted);
    transition: transform 240ms ease;
}

.booking-calendar-toggle[aria-expanded="true"] .booking-calendar-caret {
    transform: rotate(180deg);
}

.booking-calendar-panel {
    display: block;
}

@media (max-width: 1023px) {
    .booking-calendar-toggle {
        display: flex;
    }

    .booking-calendar-panel {
        display: none;
    }

    .booking-calendar-panel.is-open {
        display: block;
    }
}

/* ===== نموذج التشخيص: خطوتان واضحتان مع مؤشر تقدّم بسيط ===== */

.diag-steps-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.diag-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--graphite-muted);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
}

.diag-step-dot {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(28, 31, 36, 0.2);
    border-radius: 999px;
    color: var(--graphite-muted);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.diag-step-indicator.is-active {
    color: var(--accent-color);
}

.diag-step-indicator.is-active .diag-step-dot {
    border-color: var(--accent-color);
    color: #ffffff;
    background: var(--accent-color);
}

.diag-step-indicator.is-done .diag-step-dot {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.diag-step-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgba(28, 31, 36, 0.14);
}

.diag-step-line.is-done {
    background: var(--accent-color);
}

[data-diag-step] {
    display: none;
}

[data-diag-step].is-active {
    display: block;
}

.diag-step-actions {
    display: flex;
    gap: 0.75rem;
}

#diagnosis-step-prev {
    display: none;
}

#diagnosis-form.is-step-2 #diagnosis-step-prev {
    display: inline-flex;
}

#diagnosis-form.is-step-2 #diagnosis-step-next {
    display: none;
}

#diagnosis-form:not(.is-step-2) #diagnosis-submit {
    display: none;
}

/* ===== محتوى بطاقة الخدمة: أسطر ونقاط قصيرة مقروءة داخل البطاقة ===== */

.service-desc ul,
.service-desc ol {
    margin-top: 0.5rem;
    padding-inline-start: 1.25rem;
    text-align: start;
}

.service-desc ul {
    list-style: disc;
}

.service-desc ol {
    list-style: decimal;
}

.service-desc li {
    margin-top: 0.3rem;
}

.service-desc p + p {
    margin-top: 0.5rem;
}

/* ===== صندوق البحث في القائمة العلوية ===== */

.header-search {
    position: relative;
}

.header-search-toggle {
    list-style: none;
}

.header-search-toggle::-webkit-details-marker {
    display: none;
}

.header-search-toggle::marker {
    content: "";
}

.header-search-panel {
    position: absolute;
    z-index: 60;
    inset-block-start: calc(100% + 0.85rem);
    inset-inline-end: 0;
    width: min(26rem, calc(100vw - 2rem));
}

.header-search[open] .header-search-toggle {
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

/* ===== قائمة «المزيد» في الهيدر: تجمع الصفحات الفرعية لمنع ازدحام التنقل ===== */

.header-more {
    position: relative;
}

.header-more-toggle {
    list-style: none;
}

.header-more-toggle::-webkit-details-marker {
    display: none;
}

.header-more-toggle::marker {
    content: "";
}

.header-more-toggle i {
    transition: transform 240ms ease;
}

.header-more[open] .header-more-toggle {
    background: rgba(43, 48, 55, 0.06);
    color: var(--primary-hover);
}

.header-more[open] .header-more-toggle i {
    transform: rotate(180deg);
}

.header-more-panel {
    position: absolute;
    z-index: 60;
    inset-block-start: calc(100% + 0.85rem);
    inset-inline-end: 0;
    display: grid;
    gap: 0.4rem;
    width: min(18rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.7rem;
    list-style: none;
}

.header-more-group {
    display: grid;
    gap: 0.15rem;
}

.header-more-group + .header-more-group {
    padding-block-start: 0.6rem;
    border-block-start: 1px solid var(--border-color);
}

.header-more-group-title {
    margin: 0;
    padding-inline: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.header-more-group-list {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-more-link {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding-inline: 0.7rem;
    border-radius: 0.7rem;
    color: var(--graphite-deep);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
    transition: background 200ms ease, color 200ms ease;
}

.header-more-link:hover {
    background: rgba(43, 48, 55, 0.06);
    color: var(--primary-hover);
}

.header-more-link.is-current {
    color: var(--accent-color);
    background: var(--accent-soft);
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    .header-more-link {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-more-toggle i {
        transition: none;
    }
}

/* ===== قسم النماذج: التبديل بين حجز الفعالية وتشخيص الأداء ===== */

.forms-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.forms-tab {
    display: inline-flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--graphite-deep);
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.forms-tab i {
    font-size: 1rem;
}

.forms-tab:hover {
    background: rgba(43, 48, 55, 0.06);
}

.forms-tab.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #3a4048, var(--primary-color));
    box-shadow: 0 12px 30px rgba(43, 48, 55, 0.22);
}

.forms-panel[hidden] {
    display: none;
}

/* ===== مؤشر خطوات التسجيل في واجهة صفحة الدورة: يتغير مع حالة النموذج فعلياً ===== */

.hero-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.hero-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.6;
    transition: color 260ms ease;
}

.hero-step-dot {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    transition: border-color 260ms ease, background 260ms ease, color 260ms ease;
}

.hero-step.is-active {
    color: #ffffff;
}

.hero-step.is-active .hero-step-dot {
    border-color: var(--accent-color);
    color: #ffffff;
    background: var(--accent-color);
    box-shadow: 0 8px 20px rgba(196, 31, 85, 0.42);
}

.hero-step.is-done {
    color: rgba(255, 255, 255, 0.92);
}

.hero-step.is-done .hero-step-dot {
    border-color: var(--accent-color);
    color: #ffffff;
    background: rgba(196, 31, 85, 0.55);
    font-size: 0;
}

.hero-step.is-done .hero-step-dot::after {
    content: "✓";
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-step-line {
    width: 1.6rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 260ms ease;
}

.hero-step-line.is-done {
    background: var(--accent-color);
}

@media (prefers-reduced-motion: reduce) {
    .hero-step,
    .hero-step-dot,
    .hero-step-line {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .forms-tab {
        transition: none;
    }
}

/* ===== منطقة المتدربين: شريط التقدّم وأزرار إكمال الدروس ===== */

.members-progress {
    display: none;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 22, 26, 0.05);
}

.members-progress.is-visible {
    display: block;
}

.members-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.members-progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.members-progress-percent {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-color);
}

.members-progress-track {
    overflow: hidden;
    height: 0.65rem;
    margin-top: 0.7rem;
    border-radius: 999px;
    background: rgba(43, 48, 55, 0.1);
}

.members-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #d4245c, var(--accent-color));
    transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.members-progress-note {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.members-certificate-btn {
    display: none;
    width: 100%;
    min-height: 3.25rem;
    margin-top: 0.9rem;
}

.members-certificate-btn.is-visible {
    display: inline-flex;
}

.lesson-complete-btn {
    display: inline-flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(43, 48, 55, 0.2);
    border-radius: 999px;
    color: var(--text-color);
    background: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.lesson-complete-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-soft);
}

.lesson-complete-btn.is-done {
    border-color: var(--accent-color);
    color: #ffffff;
    background: var(--accent-color);
}

.lesson-card.is-complete {
    border-color: var(--accent-border);
    box-shadow: 0 18px 40px rgba(196, 31, 85, 0.14);
}

/* ===== بطاقة الدرس: صف واحد يبرز المحور والمدة وحالة الإنجاز ===== */

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.lesson-module {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    color: var(--accent-color);
    background: var(--accent-soft);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.6;
}

.lesson-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(43, 48, 55, 0.16);
    border-radius: 999px;
    color: var(--text-muted);
    background: #f7f7f9;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.6;
}

.lesson-duration i {
    color: var(--accent-color);
}

.lesson-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.6;
}

.lesson-badge-pending {
    border: 1px dashed rgba(43, 48, 55, 0.28);
    color: var(--text-muted);
    background: #ffffff;
}

.lesson-badge-done {
    display: none;
    border: 1px solid var(--accent-color);
    color: #ffffff;
    background: var(--accent-color);
    box-shadow: 0 6px 16px rgba(196, 31, 85, 0.3);
}

.lesson-card.is-complete .lesson-badge-pending {
    display: none;
}

.lesson-card.is-complete .lesson-badge-done {
    display: inline-flex;
}

.lesson-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-color);
    text-wrap: balance;
}

/* ===== سطر تقدم مختصر أعلى قائمة الدروس: النسبة والأيام المتبقية للشهادة ===== */

.members-progress-summary {
    margin-top: 0.7rem;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--graphite-deep);
    text-wrap: pretty;
}

.members-progress-summary:empty {
    display: none;
}

/* ===== شهادة إتمام الدورة: تصميم قابل للطباعة ===== */

.certificate-sheet {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3.5vw, 2rem);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 55% at 50% -8%, rgba(196, 31, 85, 0.1), transparent 72%),
        radial-gradient(ellipse 90% 62% at 50% 112%, rgba(43, 48, 55, 0.06), transparent 74%),
        #ffffff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(20, 22, 26, 0.24);
}

.certificate-frame {
    position: relative;
    padding: clamp(1.25rem, 3.5vw, 2rem) clamp(0.75rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(196, 31, 85, 0.3);
    border-radius: calc(var(--radius-lg) - 0.6rem);
}

.certificate-frame::before {
    position: absolute;
    inset: 0.45rem;
    content: "";
    border: 1px dashed rgba(43, 48, 55, 0.16);
    border-radius: calc(var(--radius-lg) - 1.1rem);
    pointer-events: none;
}

.certificate-eyebrow {
    font-family: var(--font-heading);
    font-size: clamp(0.72rem, 1.9vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--accent-color);
}

.certificate-course {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--graphite-deep);
    text-wrap: balance;
}

.certificate-divider {
    display: block;
    width: 5.5rem;
    height: 3px;
    margin: 1.25rem auto;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.certificate-label {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.95;
    color: var(--text-muted);
}

.certificate-name {
    display: inline-block;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-border);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 7.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--accent-color);
    text-wrap: balance;
}

.certificate-body {
    max-width: 30rem;
    margin: 1.3rem auto 0;
    font-size: clamp(0.9rem, 2.3vw, 1rem);
    line-height: 2.05;
    color: var(--text-muted);
    text-wrap: pretty;
}

.certificate-date-band {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.6rem;
    padding: 0.7rem 1.85rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-soft);
}

.certificate-date-label {
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    font-weight: 600;
    color: var(--text-muted);
}

.certificate-date-value {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3.4vw, 1.5rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--accent-color);
}

.certificate-signatures {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (min-width: 640px) {
    .certificate-signatures {
        grid-template-columns: minmax(0, 1fr) auto;
        justify-items: start;
        text-align: start;
    }

    .certificate-signatures .certificate-seal {
        justify-self: end;
    }
}

.certificate-sign-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.certificate-sign-line {
    width: 9rem;
    max-width: 100%;
    height: 1px;
    margin-bottom: 0.45rem;
    background: rgba(43, 48, 55, 0.28);
}

.certificate-sign-name {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--graphite-deep);
}

.certificate-sign-role {
    font-size: clamp(0.78rem, 2vw, 0.85rem);
    line-height: 1.7;
    color: var(--text-muted);
}

.certificate-seal {
    display: grid;
    width: clamp(5rem, 16vw, 6.25rem);
    height: clamp(5rem, 16vw, 6.25rem);
    flex-shrink: 0;
    place-items: center;
    border: 2px solid var(--accent-color);
    border-radius: 999px;
    color: var(--accent-color);
    background:
        radial-gradient(circle at 50% 34%, rgba(196, 31, 85, 0.16), transparent 64%),
        #ffffff;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px rgba(196, 31, 85, 0.3);
    transform: rotate(-6deg);
}

.certificate-seal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    line-height: 1.15;
}

.certificate-seal-inner i {
    font-size: clamp(1rem, 3vw, 1.25rem);
}

.certificate-seal-text {
    font-family: var(--font-heading);
    font-size: clamp(0.55rem, 1.7vw, 0.68rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.certificate-seal-year {
    font-size: clamp(0.5rem, 1.5vw, 0.6rem);
    font-weight: 700;
    color: var(--text-muted);
}

.certificate-verify {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: clamp(0.72rem, 2vw, 0.8rem);
    font-weight: 700;
    line-height: 1.9;
    color: var(--text-muted);
}

.certificate-verify span {
    font-family: var(--font-heading);
    font-size: clamp(0.82rem, 2.2vw, 0.92rem);
    letter-spacing: 0.08em;
    color: var(--graphite-deep);
}

.certificate-verify a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== شهادة نموذجية للمعاينة في صفحة الأكاديمية ===== */

.certificate-sample {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.certificate-sample-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.15rem;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    color: var(--accent-color);
    background: var(--accent-soft);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.7;
}

.certificate-sample .certificate-sheet {
    width: 100%;
}

/* توافق مع نسخ قديمة من بطاقة الشهادة (صفحة التحقق) */
.certificate-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--border-color);
}

.certificate-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
}

.certificate-sign {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--graphite-deep);
}

.certificate-sign span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .certificate-footer {
        align-items: flex-end;
        justify-content: space-between;
        text-align: start;
    }
}

@media print {
    @page {
        margin: 14mm;
    }

    html,
    body {
        height: auto !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    .certificate-verify a {
        color: #000000;
        text-decoration: none;
    }

    /* إظهار الشهادة وحدها في الطباعة وحجب بقية عناصر الصفحة */
    body > header,
    body > footer,
    body > main > section:not(#members) {
        display: none !important;
    }

    #members {
        padding: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
    }

    #members .section-head,
    #members-gate,
    #members-area > *:not(#members-certificate-modal) {
        display: none !important;
    }

    #members-certificate-modal {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #members-certificate {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border: 2px solid #d9dbe0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        break-inside: avoid;
    }

    #members-certificate-close,
    .members-certificate-actions {
        display: none !important;
    }
}

/* ===== أزرار التواصل العائمة: واتساب والصوت الهادئ في عمود واحد ===== */

.floating-actions {
    position: fixed;
    z-index: 40;
    inset-block-end: 1rem;
    inset-inline-start: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.floating-actions > * {
    pointer-events: auto;
}

.floating-action {
    position: relative;
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease, color 240ms ease;
}

/* وسم توضيحي يظهر عند المرور بالفأرة أو التركيز بالكيبورد */
.floating-action-label {
    position: absolute;
    inset-inline-end: calc(100% + 0.6rem);
    inset-block-start: 50%;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--graphite-deep);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 22, 26, 0.14);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.94);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    pointer-events: none;
}

.floating-action:hover .floating-action-label,
.floating-action:focus-visible .floating-action-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.floating-action:hover,
.floating-action:focus-visible {
    transform: translateY(-3px) scale(1.06);
}

.floating-action:active {
    transform: translateY(-1px) scale(1.02);
}

/* زر واتساب */
.floating-action-wa {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: #25D366;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.floating-action-wa:hover,
.floating-action-wa:focus-visible {
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55), 0 0 0 6px rgba(37, 211, 102, 0.22);
}

/* زر الصوت الهادئ */
.floating-action-ambient {
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 22, 26, 0.16);
}

.floating-action-ambient:hover,
.floating-action-ambient:focus-visible {
    border-color: var(--accent-border);
    box-shadow: 0 14px 34px rgba(20, 22, 26, 0.24), 0 0 0 6px rgba(196, 31, 85, 0.16);
}

.ambient-toggle:not(.is-muted) {
    color: var(--accent-color);
}

.ambient-toggle.is-muted {
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .floating-action,
    .floating-action-label {
        transition: none;
    }

    .floating-action:hover,
    .floating-action:focus-visible,
    .floating-action:active {
        transform: none;
    }

    .floating-action:hover .floating-action-label,
    .floating-action:focus-visible .floating-action-label {
        transform: translateY(-50%);
    }
}