@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
@import url('patern.css');

:root {
    --committee-green: #08783F;
    --committee-green-dark: #07552F;
    --committee-green-light: #EAF4EC;
    --committee-gold: #D6B978;
    --committee-text: #1a2e24;
    --committee-muted: #5a6b62;
    --committee-radius: 16px;
    --committee-shadow: 0 12px 40px rgba(8, 120, 63, 0.12);
}

body.committee-site {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    color: var(--committee-text);
    background: #f7fbf8;
}

.committee-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(8, 120, 63, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

body.committee-site .committee-nav-offcanvas {
    z-index: 1060;
}

body.committee-site .offcanvas-backdrop {
    z-index: 1055;
}

.committee-nav .navbar-brand img {
    height: 52px;
    width: auto;
}

.committee-nav .nav-link {
    color: var(--committee-text);
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
}

.committee-nav .nav-link:hover {
    color: var(--committee-green);
}

.btn-committee {
    background: linear-gradient(135deg, var(--committee-green), var(--committee-green-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(8, 120, 63, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-committee:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(8, 120, 63, 0.32);
}

.btn-committee-outline {
    border: 2px solid var(--committee-green);
    color: var(--committee-green);
    background: transparent;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
}

.btn-committee-outline:hover {
    background: var(--committee-green-light);
    color: var(--committee-green-dark);
}

.committee-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    background: var(--committee-green-dark);
    color: #fff;
    height: min(78vh, 720px);
    min-height: min(78vh, 720px);
    box-shadow: 0 20px 50px rgba(7, 85, 47, 0.25);
}

.committee-hero .carousel,
.committee-hero .carousel-inner {
    height: 100%;
    min-height: 100%;
}

.committee-hero .carousel-item.hero-slide {
    height: min(78vh, 720px);
    min-height: min(78vh, 720px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
    padding: 0;
    box-sizing: border-box;
}

/* فقط اسلاید فعال/در حال انتقال نمایش داده شود — display:flex روی همه آیتم‌ها کارousel را می‌شکند */
.committee-hero .carousel-item.hero-slide.active,
.committee-hero .carousel-item.hero-slide.carousel-item-next,
.committee-hero .carousel-item.hero-slide.carousel-item-prev,
.committee-hero .carousel-item.hero-slide.carousel-item-start,
.committee-hero .carousel-item.hero-slide.carousel-item-end {
    display: flex;
    align-items: center;
    justify-content: center;
}

.committee-hero .hero-slide > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.committee-hero .hero-slide .container.h-100 {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.committee-hero .hero-slide .row.h-100 {
    width: 100%;
    align-items: center !important;
}

.committee-hero .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        125deg,
        rgba(7, 45, 30, 0.78) 0%,
        rgba(0, 0, 0, 0.52) 45%,
        rgba(8, 120, 63, 0.65) 100%
    );
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}

.committee-hero .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow:
        inset 0 -60px 80px rgba(0, 0, 0, 0.4),
        inset 0 40px 100px rgba(0, 0, 0, 0.15);
}

.committee-hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
}

.committee-hero .carousel-indicators .active {
    background-color: var(--committee-gold);
    border-color: var(--committee-gold);
}

.committee-hero .carousel-indicators,
.committee-hero .carousel-control-prev,
.committee-hero .carousel-control-next {
    z-index: 3;
}

.committee-hero h1 {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.35;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-slide-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero-slide-title-link:hover,
.hero-slide-title-link:focus {
    color: var(--committee-gold);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.committee-footer-tagline-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.committee-footer-tagline-link:hover,
.committee-footer-tagline-link:focus {
    color: var(--committee-gold);
    text-decoration: underline;
}

.committee-cta-credit-link:hover,
.committee-cta-credit-link:focus {
    color: var(--committee-gold) !important;
    text-decoration: underline;
}

.committee-hero p.lead,
.committee-hero .text-warning {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.committee-hero p.lead {
    opacity: 0.95;
    max-width: 36rem;
}

.committee-hero .hero-emblem {
    max-width: 280px;
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
}

@media (max-width: 991.98px) {
    .committee-hero .hero-emblem--split-top {
        max-width: 200px;
        margin-bottom: 0.25rem;
    }

    .committee-hero .hero-slide-split-row {
        gap: 1.25rem !important;
    }
}

.committee-section {
    padding: 4.5rem 0;
}

.committee-section-title {
    font-weight: 800;
    color: var(--committee-green-dark);
    margin-bottom: 0.75rem;
}

.committee-section-sub {
    color: var(--committee-muted);
    max-width: 40rem;
    margin-bottom: 2rem;
}

.committee-card {
    background: #fff;
    border: 1px solid rgba(8, 120, 63, 0.08);
    border-radius: var(--committee-radius);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.committee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--committee-shadow);
}

.committee-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--committee-green-light);
    color: var(--committee-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.committee-card .icon-wrap--wg {
    width: auto;
    height: auto;
    background: transparent;
    margin-bottom: 1rem;
}

.committee-card .icon-wrap--wg .wg-icon-img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    display: block;
}

@media (min-width: 992px) {
    .committee-card .icon-wrap--wg .wg-icon-img {
        width: 144px;
        height: 144px;
    }
}

.committee-cta-band {
    background: linear-gradient(120deg, var(--committee-green-dark), var(--committee-green));
    color: #fff;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
}

.committee-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    background-color: var(--committee-green-dark);
}

.committee-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        -45deg,
        #043d22,
        var(--committee-green-dark),
        var(--committee-green),
        #065a32,
        #07552F,
        rgba(214, 185, 120, 0.35),
        var(--committee-green-dark)
    );
    background-size: 400% 400%;
    animation: committee-footer-gradient 16s ease infinite;
}

.committee-footer > .container {
    position: relative;
    z-index: 1;
}

@keyframes committee-footer-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .committee-footer::before {
        animation: none;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}

.committee-footer a {
    color: var(--committee-gold);
    text-decoration: none;
}

/* Multi-step membership wizard */
.membership-wizard {
    max-width: 820px;
    margin: 0 auto;
}

.membership-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.membership-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.membership-progress-step .dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2ece6;
    color: var(--committee-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.35rem;
    transition: all 0.25s ease;
}

.membership-progress-step.active .dot,
.membership-progress-step.done .dot {
    background: var(--committee-green);
    color: #fff;
}

.membership-progress-step span.label {
    display: block;
    font-size: 0.78rem;
    color: var(--committee-muted);
}

.membership-panel {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--committee-shadow);
    border: 1px solid rgba(8, 120, 63, 0.06);
}

.wg-select-card {
    border: 2px solid #e8efe9;
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
}

.wg-select-card:focus-visible {
    outline: 3px solid rgba(8, 120, 63, 0.35);
    outline-offset: 2px;
}

.wg-select-card__title {
    font-weight: 700;
    color: var(--committee-text);
    cursor: pointer;
}

.wg-select-card__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

.wg-select-card.selected {
    border-color: var(--committee-green);
    background: var(--committee-green-light);
    box-shadow: 0 4px 16px rgba(8, 120, 63, 0.12);
}

.wg-select-card input[type=checkbox] {
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
    accent-color: var(--committee-green);
}

.wg-fieldset--error .wg-select-card {
    border-color: rgba(220, 53, 69, 0.35);
}

.wg-select-card input {
    pointer-events: auto;
}

.membership-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    border: 1px solid transparent;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.membership-form-alert[hidden] {
    display: none !important;
}

.membership-form-alert__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.membership-form-alert--danger {
    background: linear-gradient(135deg, #fff5f5 0%, #ffecec 100%);
    border-color: rgba(220, 53, 69, 0.25);
    color: #842029;
}

.membership-form-alert--danger .membership-form-alert__icon {
    background: rgba(220, 53, 69, 0.12);
    color: #c92a3a;
}

.membership-form-alert--warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(214, 185, 120, 0.45);
    color: #7c5e10;
}

.membership-form-alert--warning .membership-form-alert__icon {
    background: rgba(214, 185, 120, 0.35);
    color: #92680a;
}

.membership-form-alert ul {
    margin: 0.5rem 0 0;
    padding-right: 1.15rem;
}

.membership-form-alert ul li {
    margin-bottom: 0.25rem;
}

.membership-form-alert strong {
    display: block;
    margin-bottom: 0.15rem;
}

#membershipForm .form-control.is-invalid,
#membershipForm .form-select.is-invalid {
    border-color: #e35d6a;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

.success-celebration {
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-celebration .check-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--committee-green-light);
    color: var(--committee-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

/* Digital membership card */
.membership-card-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top, var(--committee-green-light), #f0f7f2 45%);
}

.membership-card-shell {
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.membership-card-back {
    width: 100%;
}

.membership-card-back .btn {
    width: 100%;
}

.digital-card {
    width: 100%;
    background: linear-gradient(160deg, #fff 0%, #f4fbf6 100%);
    border-radius: 24px;
    border: 1px solid rgba(8, 120, 63, 0.15);
    box-shadow: 0 24px 60px rgba(8, 120, 63, 0.18);
    overflow: hidden;
}

.digital-card-header {
    background: linear-gradient(135deg, var(--committee-green), var(--committee-green-dark));
    color: #fff;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.digital-card-header img {
    height: 64px;
    margin-bottom: 0.5rem;
}

.digital-card-body {
    padding: 1.5rem;
}

.digital-card-body .field-label {
    font-size: 0.75rem;
    color: var(--committee-muted);
    margin-bottom: 0.15rem;
}

.digital-card-body .field-value {
    font-weight: 700;
    margin-bottom: 1rem;
}

.digital-card-qr {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(8, 120, 63, 0.2);
}

.digital-card-qr img {
    width: 160px;
    height: 160px;
}

.digital-card-link {
    word-break: break-all;
}

.digital-card-actions .btn-committee-outline {
    border-color: var(--committee-green);
    color: var(--committee-green);
}

.digital-card-actions .btn-committee-outline:hover {
    background: var(--committee-green-light);
    color: var(--committee-green-dark);
}

.committee-nav-toggler {
    text-decoration: none;
}

.committee-nav-toggler:hover,
.committee-nav-toggler:focus {
    text-decoration: none;
}

.committee-nav-offcanvas {
    max-width: min(320px, 88vw);
    background: #fff;
}

.committee-nav-offcanvas .committee-nav-actions .btn-outline-danger {
    border-radius: 0.65rem;
}

.committee-nav-offcanvas-header {
    gap: 0.75rem;
}

.committee-nav-offcanvas-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 2.5rem);
}

.committee-nav-offcanvas-brand:hover,
.committee-nav-offcanvas-brand:focus {
    opacity: 0.9;
}

.committee-nav-offcanvas-logo {
    display: block;
    height: 52px;
    width: auto;
    /* max-width: 100%; */
    object-fit: contain;
    flex-shrink: 0;
}

#faqAccordion {
    --bs-accordion-active-color: var(--committee-green-dark);
    --bs-accordion-active-bg: var(--committee-green-light);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(8, 120, 63, 0.2);
}

#faqAccordion .accordion-button:not(.collapsed) {
    background-color: var(--committee-green-light);
    color: var(--committee-green-dark);
}

#faqAccordion .accordion-button:not(.collapsed)::after {
    filter: none;
}

.committee-nav-offcanvas .nav-link {
    font-size: 1.05rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
}

.committee-nav-offcanvas .nav-link:hover {
    background: var(--committee-green-light);
}

.committee-nav-offcanvas .committee-nav-actions .btn {
    width: 100%;
}

.committee-nav-user-dropdown .dropdown-menu {
    min-width: 12rem;
}

.committee-nav-offcanvas .committee-nav-user-dropdown,
.committee-nav-offcanvas .committee-nav-user-dropdown .dropdown-toggle {
    width: 100%;
}

.committee-nav-offcanvas .committee-nav-user-dropdown .dropdown-menu {
    width: 100%;
}

.committee-nav-desktop .navbar-nav {
    flex-direction: row;
}

@media (max-width: 991px) {
    .committee-nav .container {
        flex-wrap: nowrap;
    }
}

/* Landing slick sliders (news & events) */
.committee-slider-wrap {
    position: relative;
    padding: 0 2.75rem 2.5rem;
}

.committee-landing-slider .slick-list {
    margin: 0 -0.5rem;
}

.committee-landing-slider .slick-slide {
    height: auto;
}

.committee-landing-slider .committee-slider-item {
    padding: 0 0.5rem;
    height: 100%;
}

.committee-slide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.committee-slide-card__media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 16 / 10;
    background: var(--committee-green-light, #e8f5ee);
}

.committee-slide-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.committee-slide-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--committee-green, #08783f);
    font-size: 2rem;
}

.committee-landing-slider .slick-dots {
    bottom: -2rem;
}

.committee-landing-slider .slick-dots li button:before {
    font-size: 10px;
    color: var(--committee-green, #08783f);
    opacity: 0.35;
}

.committee-landing-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--committee-green-dark, #065a2f);
}

.committee-slick-prev,
.committee-slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(8, 120, 63, 0.25);
    border-radius: 50%;
    background: #fff;
    color: var(--committee-green-dark, #065a2f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.committee-slick-prev:hover,
.committee-slick-next:hover,
.committee-slick-prev:focus-visible,
.committee-slick-next:focus-visible {
    background: var(--committee-green-light, #e8f5ee);
    border-color: var(--committee-green, #08783f);
}

.committee-slick-prev {
    right: 0;
}

.committee-slick-next {
    left: 0;
}

@media (max-width: 575.98px) {
    .committee-slider-wrap {
        padding-left: 0;
        padding-right: 0;
    }
}
