/* =============================================
   Pages CSS - Shared Inner Page Components
   ============================================= */

/* ---- Page Hero ---- */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-primary);
    overflow: hidden;
    margin-top: var(--header-height);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 80, 22, 0.95) 0%,
        rgba(74, 124, 46, 0.85) 50%,
        rgba(45, 80, 22, 0.9) 100%
    );
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.3), transparent);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.page-hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Text Section ---- */
.text-section {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-text);
}

.text-section p {
    margin-bottom: 20px;
    color: var(--gray-text);
}

.text-section p:last-child {
    margin-bottom: 0;
}

/* ---- Small Button ---- */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
    min-height: 40px;
}

/* =============================================
   Contact Page
   ============================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid var(--green-secondary);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--green-secondary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--green-primary);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--gray-text);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-card a {
    color: var(--green-secondary);
    font-weight: 700;
    word-break: break-all;
}

.contact-card a:hover {
    color: var(--green-hover);
    text-decoration: underline;
}

.contact-address {
    direction: ltr;
    text-align: center;
    font-style: normal;
}

/* Legal Section */
.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-card {
    background: var(--gray-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
}

.legal-card h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin-bottom: 12px;
}

.legal-card p {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* =============================================
   Join Page
   ============================================= */

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.benefit-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--green-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.benefit-check svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.benefit-item p {
    font-size: 1.0625rem;
    color: var(--black);
    line-height: 1.6;
}

/* Form Embed */
.form-embed {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.form-embed iframe {
    width: 100%;
    border: none;
    min-height: 900px;
}

/* =============================================
   About Page
   ============================================= */

.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.founder-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.founder-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green-secondary);
    margin: 0 auto 16px;
}

.founder-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.founder-initials.bg-1 { background-color: var(--green-secondary); }
.founder-initials.bg-2 { background-color: var(--brown); }
.founder-initials.bg-3 { background-color: #5B8C5A; }
.founder-initials.bg-4 { background-color: #6B7F5E; }
.founder-initials.bg-5 { background-color: #7A6F5D; }
.founder-initials.bg-6 { background-color: #4A7C6E; }

.founder-card h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin-bottom: 4px;
}

.founder-card p {
    font-size: 0.875rem;
    color: var(--gray-text);
    line-height: 1.5;
}

/* Governance */
.governance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.governance-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--green-secondary);
}

.governance-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.governance-card h3 {
    font-size: 1.25rem;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.governance-count {
    display: inline-block;
    background: var(--green-secondary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.governance-card p {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* =============================================
   Conferences Page
   ============================================= */

.conference-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.conference-info h3 {
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-bottom: 20px;
}

.conference-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.conference-date,
.conference-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.0625rem;
    color: var(--gray-text);
}

.conference-date svg,
.conference-location svg {
    width: 20px;
    height: 20px;
    color: var(--green-secondary);
    flex-shrink: 0;
}

.conference-info p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 24px;
}

.conference-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.conference-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Save the date (Kenes 2) */
.save-the-date {
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 28px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 124, 46, 0.12), rgba(74, 124, 46, 0.04));
    border: 2px dashed var(--green-secondary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.save-the-date-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-primary);
    letter-spacing: 0.3px;
}

.save-the-date-dates {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

/* Organizing committee */
.committee {
    max-width: 1000px;
    margin: 48px auto 40px;
}

.committee-title {
    font-size: 1.5rem;
    color: var(--green-primary);
    margin-bottom: 24px;
    text-align: center;
}

.committee-grid {
    list-style: none;
    padding: 24px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.committee-member {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(74, 124, 46, 0.04);
    line-height: 1.5;
}

.committee-member strong {
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
}

.committee-member span {
    color: var(--gray-text);
    font-size: 0.9375rem;
}

/* Publications page placeholder cards */
.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-top: -16px;
    margin-bottom: 32px;
    font-size: 1.0625rem;
}

.pub-placeholder {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px dashed rgba(74, 124, 46, 0.3);
}

.pub-placeholder svg {
    width: 56px;
    height: 56px;
    color: var(--green-secondary);
    opacity: 0.85;
}

.pub-placeholder h3 {
    font-size: 1.375rem;
    color: var(--green-primary);
    margin: 0;
}

.pub-placeholder p {
    color: var(--gray-text);
    line-height: 1.7;
    margin: 0;
    max-width: 520px;
}

.pub-placeholder-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 124, 46, 0.1);
    color: var(--green-primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 4px;
}

/* Kenes 2 CTA */
.kenes-2-cta {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding-top: 8px;
}

.kenes-2-cta p {
    margin-bottom: 20px;
    font-size: 1.0625rem;
    color: var(--gray-text);
}

.kenes-2-cta p a {
    color: var(--green-secondary);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.kenes-2-cta p a:hover,
.kenes-2-cta p a:focus-visible {
    text-decoration: underline;
}

/* Abstracts */
.abstracts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.abstract-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    transition: var(--transition);
    border-right: 4px solid var(--green-secondary);
}

.abstract-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.abstract-tag {
    display: inline-block;
    background: rgba(74, 124, 46, 0.1);
    color: var(--green-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.abstract-card h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.abstract-authors {
    font-size: 0.875rem;
    color: var(--brown);
    margin-bottom: 12px;
    font-weight: 700;
}

.abstract-card p:last-child {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-grid-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   Publications Page
   ============================================= */

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    transition: var(--transition);
    border-right: 4px solid var(--green-secondary);
}

.publication-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.publication-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.publication-year {
    display: inline-block;
    background: var(--green-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.publication-card h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-authors {
    font-size: 0.875rem;
    color: var(--brown);
    margin-bottom: 12px;
    font-weight: 700;
}

.publication-summary {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* =============================================
   Events Page
   ============================================= */

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.event-date-badge {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--green-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 2px;
}

.event-type {
    display: inline-block;
    background: rgba(74, 124, 46, 0.1);
    color: var(--green-secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-card h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-card-body p {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-right: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--green-secondary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    right: -34px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--green-secondary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--green-secondary);
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--green-secondary);
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.timeline-content h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* =============================================
   Kenes 2 — Hero banner image
   ============================================= */
.kenes-2-hero {
    max-width: 1200px;
    margin: 0 auto 36px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, #cfe8ff 0%, #e8f5e9 100%);
}

.kenes-2-hero picture,
.kenes-2-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .kenes-2-hero {
        margin: 0 auto 24px;
        border-radius: var(--radius-sm);
    }
}

/* Smooth scroll for in-page anchor jumps (nav submenu links to #abstracts,
   #webinars, #shaham, etc.) */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* =============================================
   Jobs page
   ============================================= */
.jobs-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 56px 40px;
    text-align: center;
    border-top: 4px solid var(--green-secondary);
}

.jobs-card-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(74, 124, 46, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobs-card-icon svg {
    width: 42px;
    height: 42px;
    color: var(--green-secondary);
}

.jobs-card-title {
    font-size: 1.75rem;
    color: var(--green-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.jobs-card-text {
    font-size: 1.125rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.jobs-card-btn {
    gap: 10px;
}

.jobs-card-email {
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--gray-text);
}

.jobs-card-email a {
    color: var(--green-secondary);
    font-weight: 700;
    text-decoration: none;
}

.jobs-card-email a:hover,
.jobs-card-email a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .jobs-card {
        padding: 40px 24px;
    }
    .jobs-card-title {
        font-size: 1.5rem;
    }
    .jobs-card-text {
        font-size: 1rem;
    }
}

.jobs-submit-section {
    background-color: var(--gray-light);
}

.job-listing {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border-top: 4px solid var(--green-secondary);
}

.job-listing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 8px;
}

.job-listing-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--green-primary);
}

.job-listing-deadline {
    background: rgba(27, 109, 170, 0.10);
    color: #1B6DAA;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.job-listing-meta {
    color: var(--green-secondary);
    font-weight: 700;
    margin-bottom: 24px;
}

.job-listing-lead {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.7;
    margin-bottom: 12px;
}

.job-listing-text {
    color: var(--gray-text);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.job-listing-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 12px;
}

.job-listing-reqs {
    list-style: none;
    margin-bottom: 32px;
}

.job-listing-reqs li {
    position: relative;
    padding-right: 28px;
    color: var(--gray-text);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.job-listing-reqs li::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 0.65em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green-secondary);
}

.job-listing-apply {
    background: rgba(74, 124, 46, 0.07);
    border-radius: var(--radius-sm);
    padding: 28px 24px;
    text-align: center;
}

.job-listing-apply p {
    color: var(--black);
    line-height: 1.8;
    margin-bottom: 20px;
}

.job-listing-apply p a {
    color: var(--green-secondary);
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: embed;
}

.job-listing-apply p a:hover,
.job-listing-apply p a:focus-visible {
    text-decoration: underline;
}

.job-listing-cta {
    gap: 10px;
    background-color: #1B6DAA;
    border-color: #1B6DAA;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(27, 109, 170, 0.28);
}

.job-listing-cta:hover,
.job-listing-cta:focus-visible {
    background-color: #155890;
    border-color: #155890;
    color: var(--white);
    box-shadow: 0 8px 22px rgba(27, 109, 170, 0.42);
}

.job-listing-pdf {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    color: var(--green-secondary);
    font-weight: 700;
    font-size: 0.9375rem;
}

.job-listing-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-text);
}

@media (max-width: 640px) {
    .job-listing {
        padding: 28px 20px;
    }
    .job-listing-title {
        font-size: 1.5rem;
    }
    .job-listing-apply {
        padding: 24px 16px;
    }
}

/* =============================================
   Upcoming Conferences & Events (publications)
   ============================================= */

.conf-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.conf-event-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.conf-event-card:hover,
.conf-event-card:focus-visible {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.conf-event-card img {
    width: 100%;
    height: auto;
    display: block;
}

.conf-event-body {
    padding: 20px 22px 24px;
}

.conf-event-body h3 {
    font-size: 1.125rem;
    color: var(--green-primary);
    margin: 0 0 6px;
    line-height: 1.4;
}

.conf-event-meta {
    font-size: 0.875rem;
    color: var(--gray-text);
    margin: 0 0 14px;
    line-height: 1.5;
}

.conf-event-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1B6DAA;
}

.conf-event-card:hover .conf-event-link,
.conf-event-card:focus-visible .conf-event-link {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .conf-events-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

/* =============================================
   Webinars (publications page)
   ============================================= */

.webinars-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.webinar-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px 28px;
    border-right: 4px solid var(--green-secondary);
}

.webinar-title {
    font-size: 1.25rem;
    color: var(--green-primary);
    margin: 0 0 8px;
    line-height: 1.45;
}

.webinar-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown);
    margin: 0 0 20px;
}

.webinar-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.webinar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.webinar-table th {
    background: var(--green-primary);
    color: var(--white);
    padding: 10px 14px;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 700;
}

.webinar-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    vertical-align: top;
    line-height: 1.5;
}

.webinar-table td:first-child {
    white-space: nowrap;
    font-weight: 700;
    color: var(--green-primary);
}

.webinar-table tbody tr:nth-child(even) {
    background: rgba(74, 124, 46, 0.04);
}

.webinar-cta-wrap {
    text-align: center;
}

.webinar-cta {
    background-color: #1B6DAA;
    border-color: #1B6DAA;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(27, 109, 170, 0.28);
}

.webinar-cta:hover,
.webinar-cta:focus-visible {
    background-color: #155890;
    border-color: #155890;
    color: var(--white);
    box-shadow: 0 8px 22px rgba(27, 109, 170, 0.42);
}

@media (max-width: 640px) {
    .webinar-card {
        padding: 24px 14px;
    }
    .webinar-table {
        font-size: 0.8125rem;
    }
    .webinar-table th,
    .webinar-table td {
        padding: 8px 8px;
    }
}

/* =============================================
   Current Updates (events page)
   ============================================= */

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Registration: payment-preparation progress ──────────────────────────────
   Creating the Grow link runs through Make and takes roughly sixteen seconds
   no matter how little we send. That is far past the point where a disabled
   button reads as a hung page, so the wait gets named stages and a bar that
   never stops moving. */

.reg-progress {
    padding: 40px 28px;
    text-align: center;
}

.reg-progress-title {
    font-size: 1.35rem;
    color: var(--green-primary);
    margin-bottom: 28px;
}

.reg-progress-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: var(--gray-medium);
    overflow: hidden;
    max-width: 460px;
    margin: 0 auto;
}

.reg-progress-fill {
    /* Positioned so the sheen below anchors to the FILLED width. Left static it
       would resolve against the track instead and shimmer across the empty
       grey, which reads as the whole bar being active. */
    position: relative;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-secondary), var(--green-primary));
    overflow: hidden;
    /* Exactly the JS tick interval. Longer and the fill never finishes catching
       up before the next step, so it trails the value it is meant to show. */
    transition: width 0.2s linear;
}

/* A sheen travelling along the filled part. Progress bars that carry internal
   motion are consistently judged faster than static ones of the same duration,
   and it also signals "still working" during the long third stage. */
.reg-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: reg-progress-sheen 1.6s ease-in-out infinite;
}

@keyframes reg-progress-sheen {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

.reg-progress-step {
    margin-top: 18px;
    font-weight: 600;
    color: var(--green-primary);
    min-height: 1.5em;
}

.reg-progress-steps {
    list-style: none;
    padding: 0;
    margin: 22px auto 0;
    max-width: 320px;
    text-align: right;
}

.reg-progress-steps li {
    position: relative;
    padding-inline-start: 30px;
    margin-bottom: 10px;
    color: var(--gray-text);
    opacity: 0.55;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Logical properties throughout, so the tick sits on the correct side in RTL. */
.reg-progress-steps li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--gray-medium);
    box-sizing: border-box;
}

.reg-progress-steps li.is-active {
    opacity: 1;
    color: var(--green-primary);
    font-weight: 600;
}

.reg-progress-steps li.is-active::before {
    border-color: var(--green-secondary);
}

.reg-progress-steps li.is-done {
    opacity: 1;
    color: var(--green-secondary);
}

.reg-progress-steps li.is-done::before {
    background: var(--green-secondary);
    border-color: var(--green-secondary);
    /* Checkmark drawn with a border rather than a glyph, so it cannot inherit
       the page's RTL direction and flip. */
    content: '';
}

.reg-progress-steps li.is-done::after {
    content: '';
    position: absolute;
    inset-inline-start: 5px;
    top: 0.6em;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.reg-progress-hint {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

@media (prefers-reduced-motion: reduce) {
    .reg-progress-fill { transition: none; }
    .reg-progress-fill::after { animation: none; }
}

/* =============================================
   Conference programme download
   One class, used in the save-the-date box on conferences.html and in the
   registration hero, so the two cannot drift apart.
   ============================================= */
.program-cta {
    /* Blue, so it reads as a CTA against the green palette. */
    background-color: #1B6DAA;
    border-color: #1B6DAA;
    color: var(--white);
    gap: 10px;
    box-shadow: 0 4px 14px rgba(27, 109, 170, 0.32);
    /* The highlight below sweeps past both edges; without this it would paint
       across whatever sits beside the button. */
    position: relative;
    overflow: hidden;
    /* Long Hebrew label on a narrow phone: wrap rather than overflow the
       dashed box it sits in. */
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
}

.program-cta:hover,
.program-cta:focus {
    background-color: #155890;
    border-color: #155890;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(27, 109, 170, 0.45);
}

.program-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* A single highlight crossing the face of the button.
   It spends most of the cycle parked off the left edge — a ~1s pass every 6s
   reads as an occasional catch of the light, where a continuous sweep would
   read as a blinking advert. `left`, not `inset-inline-start`: this is pure
   decoration, and the glint should travel the same way on an RTL page as it
   does anywhere else. */
.program-cta::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg) translateX(-260%);
    animation: program-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes program-shine {
    0%, 83% { transform: skewX(-18deg) translateX(-260%); }
    100%    { transform: skewX(-18deg) translateX(330%); }
}

.save-the-date .program-cta {
    margin-top: 18px;
}

.page-hero .program-cta {
    margin-top: 26px;
}

@media (max-width: 560px) {
    /* .btn-lg's 40px of side padding leaves too little room for the label
       inside the save-the-date box at phone widths. */
    .program-cta {
        padding-inline: 20px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-cta::after { animation: none; opacity: 0; }
    .program-cta:hover,
    .program-cta:focus { transform: none; }
}
