/* Abel Begena Public Site v2 */
:root {
    --royal: #1e3a8a;
    --royal-dark: #172554;
    --royal-light: #3b5ccc;
    --orange: #ea580c;
    --orange-light: #fb923c;
    --gold: #d4a853;
    --gold-light: #f0d78c;
    --cream: #faf7f2;
    --header-height: 5rem;
    --radius: 1rem;
    --shadow-sm: 0 2px 12px rgba(23, 37, 84, 0.06);
    --shadow-md: 0 8px 30px rgba(23, 37, 84, 0.1);
    --shadow-lg: 0 20px 50px rgba(23, 37, 84, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    background-color: var(--cream);
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

::selection {
    background: rgba(212, 168, 83, 0.35);
    color: var(--royal-dark);
}

img { max-width: 100%; height: auto; }

/* Brand */
.bg-royal { background-color: var(--royal); }
.bg-royal-dark { background-color: var(--royal-dark); }
.bg-orange { background-color: var(--orange); }
.bg-gold { background-color: var(--gold); }
.bg-cream { background-color: var(--cream); }
.text-royal { color: var(--royal); }
.text-royal-dark { color: var(--royal-dark); }
.text-orange { color: var(--orange); }
.text-gold { color: var(--gold); }
.text-orange-light { color: var(--orange-light); }

/* Header */
.site-header {
    transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98) !important;
}

.nav-link {
    position: relative;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.25rem 0;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.is-active { color: var(--royal); }
.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    border-radius: 2px;
}

#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary,
.btn-gold,
.btn-outline-light,
.btn-secondary,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(30, 58, 138, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #e8c06a);
    color: var(--royal-dark);
    box-shadow: 0 6px 18px rgba(212, 168, 83, 0.35);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 168, 83, 0.45);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-login {
    background: transparent;
    color: var(--royal);
    border: 1.5px solid var(--royal);
    box-shadow: none;
}
.btn-login:hover {
    background: rgba(30, 58, 138, 0.08);
    border-color: var(--royal-dark);
    color: var(--royal-dark);
    transform: translateY(-1px);
}

/* Section system */
.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--royal-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-subheading {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.625rem;
}

.section-intro {
    color: #6b7280;
    max-width: 38rem;
    margin: 0.625rem auto 0;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.floral-divider {
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--orange) 50%, var(--gold) 80%, transparent);
    height: 2px;
    width: 5rem;
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

.section-block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-block--alt { background: #fff; }
.section-block--pattern {
    background-color: var(--cream);
    background-image: radial-gradient(circle at 1px 1px, rgba(30, 58, 138, 0.035) 1px, transparent 0);
    background-size: 22px 22px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Hero */
.hero-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    transform-origin: center 58%;
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(23,37,84,0.94) 0%, rgba(30,58,138,0.82) 42%, rgba(23,37,84,0.5) 100%);
    z-index: 1;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--cream), transparent);
    z-index: 2;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 3; width: 100%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 26rem;
}
.hero-stat__value {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}
.hero-stat__label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.2rem;
    line-height: 1.3;
}

.hero-scroll {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.5);
    animation: bounceSoft 2.5s ease-in-out infinite;
}
@keyframes bounceSoft {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* About */
.about-image-wrap {
    position: relative;
}
.about-image-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(30,58,138,0.08), rgba(234,88,12,0.08));
    border-radius: 1.5rem;
    z-index: -1;
}
.about-quote {
    border-left: 3px solid var(--gold);
    padding: 1rem 0 1rem 1.25rem;
    margin-top: 1.5rem;
    font-style: italic;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Scripture & Begena */
.scripture-section {
    border-top: 1px solid rgba(30, 58, 138, 0.06);
}

.scripture-panel__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--royal-dark);
    letter-spacing: -0.02em;
}

.scripture-quote {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(250, 247, 242, 0.9), #fff);
    border: 1px solid rgba(212, 168, 83, 0.22);
    border-left: 3px solid var(--gold);
}

.scripture-quote__text {
    font-style: italic;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.75;
}

.scripture-quote__ref {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    color: var(--orange);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scripture-order {
    background: linear-gradient(160deg, #fff 0%, rgba(250, 247, 242, 0.65) 100%);
    border: 1px solid rgba(30, 58, 138, 0.08);
}

.scripture-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.scripture-step {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding-bottom: 0.875rem;
    border-bottom: 1px dashed rgba(30, 58, 138, 0.1);
}

.scripture-step:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.scripture-step__number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
}

.scripture-step__title {
    font-weight: 700;
    color: var(--royal-dark);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.scripture-step__am {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.125rem;
}

.scripture-step__desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 0.25rem;
}

.scripture-order__closing {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(212, 168, 83, 0.25);
    font-style: italic;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
}

.instrument-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: 0.875rem;
    background: white;
    border: 1px solid #f0f0f0;
    transition: all 0.25s;
}
.instrument-card:hover {
    border-color: rgba(30,58,138,0.2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.instrument-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.625rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(30,58,138,0.07), rgba(234,88,12,0.07));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* Steps */
.steps-grid {
    position: relative;
}
@media (min-width: 1024px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 2.75rem;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #e5e7eb, #e5e7eb, transparent);
        z-index: 0;
    }
}
.step-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    position: relative;
    z-index: 1;
}
.step-card__number {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 16px rgba(30,58,138,0.3);
    border: 3px solid white;
}

.course-card {
    padding: 1.625rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    background: rgba(234,88,12,0.08);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}
.course-card__fee {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Portfolio */
.portfolio-card__img {
    height: 14rem;
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.portfolio-card:hover .portfolio-card__img {
    transform: scale(1.06);
}

/* Gallery */
.gallery-tab {
    transition: all 0.2s;
    border: 1px solid transparent;
}
.gallery-tab.is-active {
    background: var(--royal) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(30,58,138,0.3);
    border-color: var(--royal);
}
.gallery-item {
    aspect-ratio: 4/3;
    cursor: pointer;
    border: none;
    padding: 0;
}
.gallery-item--featured {
    aspect-ratio: auto;
    min-height: 280px;
}
@media (min-width: 768px) {
    .gallery-item--featured { min-height: 100%; }
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    background: linear-gradient(to top, rgba(23,37,84,0.88) 0%, rgba(23,37,84,0.2) 50%, transparent 100%);
    opacity: 1;
    transition: opacity 0.3s;
}
@media (min-width: 768px) {
    .gallery-caption { opacity: 0; }
    .gallery-item:hover .gallery-caption { opacity: 1; }
}
.gallery-zoom-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s;
}
.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 60%, var(--royal-light) 100%);
    border-radius: 1.25rem;
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner::before {
    top: -40%; right: -10%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(212,168,83,0.18), transparent 70%);
}
.cta-banner::after {
    bottom: -50%; left: -5%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
}

/* Contact */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: background 0.2s, border-color 0.2s;
}
.contact-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(212,168,83,0.2);
}
.contact-item__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(212,168,83,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}
.contact-item__link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item__link:hover {
    color: var(--gold-light);
}
.contact-map iframe {
    display: block;
    width: 100%;
    filter: grayscale(20%) contrast(1.05);
}

/* Registration form */
.page-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: linear-gradient(135deg, var(--royal-dark), var(--royal) 50%, var(--royal-dark));
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 24px 24px;
}

.form-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.form-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--royal-dark);
    margin-bottom: 1.5rem;
}
.form-section__num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.125rem;
}
.form-label-am {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 0.375rem;
}
.form-input,
.form-select {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.875rem;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #fafafa;
    font-size: 0.9375rem;
}
.form-input:focus,
.form-select:focus {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
    background: white;
}
.form-input::placeholder { color: #9ca3af; }

.form-checkbox,
.form-radio {
    accent-color: var(--royal);
    width: 1rem;
    height: 1rem;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.choice-card:hover { border-color: rgba(30,58,138,0.25); background: white; }
.choice-card:has(:checked) {
    border-color: var(--royal);
    background: rgba(30,58,138,0.04);
}
.choice-card--accent:has(:checked) {
    border-color: var(--orange);
    background: rgba(234,88,12,0.04);
}

.photo-upload {
    width: 7rem;
    height: 7rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.photo-upload:hover { border-color: var(--royal); }

/* Success page */
.success-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(34,197,94,0.2);
}
.registration-id-box {
    background: linear-gradient(135deg, rgba(30,58,138,0.06), rgba(30,58,138,0.02));
    border: 1px solid rgba(30,58,138,0.1);
    border-radius: 0.875rem;
    padding: 1.25rem;
}

/* Utilities */
.line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--royal);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--royal-dark); transform: translateY(-2px); }

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(12px);
    animation: fadeIn 0.25s ease;
}
.gallery-lightbox.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.gallery-lightbox-content { max-width: 56rem; width: 100%; text-align: center; }
.gallery-lightbox-image {
    max-height: 72vh;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.gallery-lightbox-caption { color: white; margin-top: 1.25rem; }
.gallery-lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}
.gallery-lightbox-close {
    position: absolute; top: 1rem; right: 1.25rem;
    color: white; font-size: 2rem; line-height: 1;
    background: rgba(255,255,255,0.1); border: none;
    border-radius: 50%; width: 2.5rem; height: 2.5rem;
    cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: white; font-size: 1.75rem;
    background: rgba(255,255,255,0.1); border: none;
    border-radius: 50%; width: 2.75rem; height: 2.75rem;
    cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
@media (max-width: 640px) { .gallery-lightbox-nav { display: none; } }

.has-\[\:checked\]\:border-orange:has(:checked) { border-color: var(--orange); }
.has-\[\:checked\]\:bg-orange\/5:has(:checked) { background-color: rgba(234,88,12,0.05); }
.has-\[\:checked\]\:border-royal:has(:checked) { border-color: var(--royal); }
.has-\[\:checked\]\:bg-royal\/5:has(:checked) { background-color: rgba(30,58,138,0.05); }

@media (max-width: 640px) {
    .hero-stats { gap: 0.75rem; }
    .hero-stat__value { font-size: 1.125rem; }
    .nav-link.is-active::after { display: none; }
}

/* ── Registration page ── */
.register-page { background: var(--cream); }

.register-hero {
    background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 55%, #1e40af 100%);
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 4.5rem);
    position: relative;
    overflow: hidden;
}
.register-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 22px 22px;
}
.register-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3rem;
    background: linear-gradient(to top, var(--cream), transparent);
}
.register-hero__inner { position: relative; z-index: 1; }

.register-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.register-layout {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: grid;
    gap: 1.5rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 1024px) {
    .register-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
        padding: 0 1.5rem 4rem;
        margin-top: -2rem;
    }
}

.register-sidebar {
    display: none;
}
@media (min-width: 1024px) {
    .register-sidebar {
        display: block;
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

.register-steps {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.register-steps__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 1rem;
}
.register-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}
.register-step:last-child { border-bottom: none; }
.register-step:hover { opacity: 0.8; }
.register-step__dot {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.register-step.is-active .register-step__dot {
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(30,58,138,0.3);
}
.register-step__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    padding-top: 0.2rem;
}
.register-step.is-active .register-step__label { color: var(--royal-dark); }
.register-step__sub {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

.register-info-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(30,58,138,0.06), rgba(212,168,83,0.08));
    border: 1px solid rgba(30,58,138,0.08);
}
.register-info-card p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
}
.register-info-card strong { color: var(--royal-dark); }

/* Mobile progress */
.register-progress-mobile {
    display: flex;
    gap: 0.375rem;
    padding: 0 0.25rem;
    margin-bottom: 0.25rem;
}
@media (min-width: 1024px) { .register-progress-mobile { display: none; } }
.register-progress-mobile__bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #e5e7eb;
    transition: background 0.3s;
}
.register-progress-mobile__bar.is-active { background: var(--royal); }
.register-progress-mobile__bar.is-done { background: var(--gold); }

.register-form-card {
    background: white;
    border-radius: 1.125rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

.register-form-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, rgba(30,58,138,0.04), rgba(212,168,83,0.06));
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.register-form-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--royal-dark);
}
.register-form-header p {
    font-size: 0.75rem;
    color: #9ca3af;
}
.register-form-header__tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    background: rgba(234,88,12,0.08);
    padding: 0.3rem 0.625rem;
    border-radius: 9999px;
}

.register-form-body { padding: 1.5rem; }
@media (min-width: 768px) { .register-form-body { padding: 2rem 2.25rem; } }

.form-section { scroll-margin-top: 6rem; }

.form-subsection {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--royal-dark);
    margin: 1.5rem 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.form-subsection span { font-weight: 400; color: #9ca3af; font-size: 0.75rem; }

.form-field { margin-bottom: 0; }
.form-field.has-error .form-input,
.form-field.has-error select { border-color: #f87171; background: #fef2f2; }
.form-field.has-error .form-label { color: #dc2626; }

.form-grid { display: grid; gap: 1rem; }
.form-grid--2 { grid-template-columns: 1fr; }
.form-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Photo upload */
.photo-upload-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.875rem;
    border: 1px solid #f0f0f0;
}
@media (min-width: 640px) {
    .photo-upload-wrap { flex-direction: row; align-items: center; }
}
.photo-upload {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    background: white;
    border: 2px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.photo-upload:hover {
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
}
.photo-upload.has-image { border-style: solid; border-color: var(--royal); }
.photo-upload__icon { color: #9ca3af; margin-bottom: 0.25rem; }
.photo-upload__text { font-size: 0.65rem; color: #9ca3af; text-align: center; }

.file-input-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.btn-file {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--royal);
    background: white;
    border: 1px solid rgba(30,58,138,0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-file:hover {
    background: rgba(30,58,138,0.04);
    border-color: var(--royal);
}

.choice-grid { display: grid; gap: 0.625rem; }
.choice-grid--2 { grid-template-columns: 1fr; }
.choice-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .choice-grid--2 { grid-template-columns: 1fr 1fr; }
    .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.register-terms {
    padding: 1.125rem 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.register-terms:has(:checked) {
    border-color: rgba(30,58,138,0.2);
    background: rgba(30,58,138,0.03);
}

.register-submit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}
@media (min-width: 640px) {
    .register-submit { flex-direction: row; }
}

.register-errors {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    color: #b91c1c;
}
.register-errors svg { flex-shrink: 0; margin-top: 0.125rem; }
.register-errors ul { font-size: 0.8125rem; line-height: 1.6; list-style: disc; padding-left: 1rem; }

.register-form-footer {
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}
.register-form-footer a { color: var(--royal); font-weight: 500; text-decoration: none; }
.register-form-footer a:hover { text-decoration: underline; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--royal-dark);
    cursor: pointer;
    list-style: none;
}

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

.faq-item__question::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #f3f4f6;
    color: var(--royal);
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
    content: '−';
    background: var(--royal);
    color: #fff;
}

.faq-item__answer {
    padding: 0 1.25rem 1.125rem;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.65;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.875rem;
}

.faq-item[open] .faq-item__question {
    border-bottom: none;
}

/* Announcements */
.announcements-section {
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.announcements-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .announcements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .announcements-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.announcement-card {
    background: #fff;
    border: 1px solid rgba(23, 37, 84, 0.08);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 168, 83, 0.35);
}

.announcement-card--pinned {
    border-color: rgba(212, 168, 83, 0.55);
    background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
    box-shadow: var(--shadow-md);
}

.announcement-card__header {
    margin-bottom: 0.75rem;
}

.announcement-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.announcement-badge--pinned {
    background: rgba(212, 168, 83, 0.18);
    color: #92610d;
}

.announcement-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.announcement-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--royal-dark);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.announcement-card__body {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.65;
    flex: 1;
}

.announcement-card__body--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose-announcement p {
    margin: 0 0 0.75rem;
}

.prose-announcement p:last-child {
    margin-bottom: 0;
}

.prose-announcement ul,
.prose-announcement ol {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.announcement-toggle {
    margin-top: 1rem;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--royal);
    cursor: pointer;
    transition: color 0.2s ease;
}

.announcement-toggle:hover {
    color: var(--orange);
}

.announcements-pinned .announcement-card__body {
    max-width: 48rem;
}

