/* ===========================================
   CSS Variables
   =========================================== */
:root {
    --wct-bg: #f3f4f6;
    --wct-card-bg: #ffffff;
    --wct-hero-bg: #1e2433;
    --wct-text-primary: #272a31;
    --wct-text-secondary: #334155;
    --wct-text-muted: #9ca3af;
    --wct-text-light: #ffffff;
    --wct-text-light-muted: rgba(255, 255, 255, 0.7);
    --wct-accent: #2563eb;
    --wct-accent-hover: #1d4ed8;
    --wct-accent-light: #e8f4fc;
    --wct-green: #60ad7d;
    --wct-border: #e5e7eb;
    --wct-border-dark: rgba(255, 255, 255, 0.1);
    --wct-tag-live-bg: #48484e;
    --wct-radius: 20px;
    --wct-radius-sm: 12px;
    --wct-radius-lg: 25px;
}

/* Base */
.wct-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.wct-archive-container, .wct-single-container { background: var(--wct-bg); color: var(--wct-text-primary); line-height: 1.6; }
.wct-page-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 24px; }

/* Archive Speaker/Organizer Title Styles */
.wct-archive-container:has(.wct-speakers-archive-grid) .wct-page-title,
.wct-archive-container:has(.wct-organizers-archive-grid) .wct-page-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.02em;
}

@media (max-width: 576px) {
    .wct-archive-container:has(.wct-speakers-archive-grid) .wct-page-title,
    .wct-archive-container:has(.wct-organizers-archive-grid) .wct-page-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
}

/* Load More Button */
.wct-load-more-btn {
    padding: 14px 32px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wct-load-more-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wct-load-more-btn:disabled,
.wct-load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wct-load-more-count {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--wct-text-secondary);
    margin-bottom: 0;
}

.wct-load-more-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wct-spinner {
    width: 18px;
    height: 18px;
    animation: wct-spin 1s linear infinite;
}

@keyframes wct-spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation for loaded items */
.wct-fade-in {
    animation: wctFadeInUp 0.5s ease forwards;
}

@keyframes wctFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEO Pagination (Hidden but crawlable) */
.wct-seo-pagination {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wct-seo-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wct-seo-pagination a,
.wct-seo-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--wct-text-secondary);
    text-decoration: none;
}

.wct-seo-pagination a:hover {
    background: var(--wct-bg);
}

.wct-seo-pagination .current {
    background: var(--wct-accent);
    color: white;
}

/* Archive Search */
.wct-archive-search {
    position: relative;
    margin: 0 auto;
}

.wct-archive-search__input {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 44px 12px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #e5e7eb !important;
    border-radius: 20px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    font-size: 0.9rem;
    font-family: inherit;
    color: #272a31 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box;
    appearance: none !important;
}

.wct-archive-search__input:focus,
.wct-archive-search__input:active {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.wct-archive-search__input::placeholder {
    color: #9ca3af;
}

.wct-archive-search__icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6b7280;
    pointer-events: none;
}

/* Archive Results Info */
.wct-archive-container .wct-results-info {
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--wct-text-secondary);
}

.wct-archive-container .wct-results-info strong {
    color: var(--wct-text-primary);
    font-weight: 600;
}

/* Center align load more container */
.wct-archive-container .wct-load-more-container {
    text-align: center;
    margin-top: 32px;
}

/* Webinar Cards */
.wct-webinars-list { display: flex; flex-direction: column; gap: 20px; }
.wct-webinar-card { background: var(--wct-card-bg); border-radius: var(--wct-radius); transition: box-shadow 0.2s ease; }
.wct-webinar-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.wct-webinar-card__link { display: block; padding: 28px 32px; text-decoration: none; color: inherit; }
.wct-card-top { margin-bottom: 12px; }

/* Tags & Dots */
.wct-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--wct-text-secondary); }
.wct-dot { width: 8px; height: 8px; border-radius: 50%; }
.wct-dot--green { background: var(--wct-green); }
.wct-dot--gray { background: var(--wct-text-muted); }
.wct-dot--blue { background: var(--wct-accent); }
.wct-card-title { font-size: 1.6rem; font-weight: 600; line-height: 1.25; margin-bottom: 16px;max-width: 620px; }

/* Speaker Row */
.wct-speaker-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.wct-speaker-row.wct-speakers-many { flex-wrap: wrap; }
.wct-speaker-avatars { display: flex; align-items: center; }
.wct-speaker-avatar { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; margin-left: -15px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: margin 0.2s ease; }
.wct-speaker-avatar:first-child { margin-left: 0; }
.wct-speakers-many-avatars .wct-speaker-avatar { width: 46px; height: 46px; margin-left: -10px; }
.wct-webinar-card:hover .wct-speaker-avatar { margin-left: -8px; }
.wct-webinar-card:hover .wct-speaker-avatar:first-child { margin-left: 0; }
.wct-speaker-info { display: flex; flex-direction: column; gap: 2px; }
.wct-speaker-names { font-size: 1rem; font-weight: 600; line-height: 1.1em; color: var(--wct-text-primary); }
.wct-webinar-card:hover .wct-speaker-names { color: var(--wct-text-primary); }

/* Mobile: Speaker names wrap to new line when multiple speakers */
@media (max-width: 768px) {
    .wct-speaker-info {
        width: 100%;
        min-width: 0;
    }
    
    .wct-speaker-row .wct-speaker-names {
        white-space: normal !important;
        word-break: break-word;
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    /* Force wrap after commas for multiple speakers */
    .wct-speaker-row.wct-speakers-many .wct-speaker-names {
        white-space: normal !important;
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    .wct-speaker-row {
        flex-wrap: wrap;
    }
}
.wct-speaker-count { font-size: 0.8rem; color: var(--wct-text-secondary);line-height: 1.25em; max-width: 500px;}

/* Badges */
.wct-badges-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.wct-badge { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.wct-badge--points { background: var(--wct-accent-light); color: var(--wct-accent); }
.wct-badge--org { background: #f1f5f9; color: var(--wct-text-secondary); }

/* Card Bottom */
.wct-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.wct-datetime { display: flex; flex-direction: column; gap: 2px; }
.wct-datetime-date { font-size: 1.05rem; font-weight: 600; line-height: 1.2em; color: var(--wct-text-primary); }
.wct-webinar-card:hover .wct-datetime-date { color: var(--wct-text-primary); }
.wct-datetime-time { font-size: 0.85rem; color: var(--wct-text-secondary); }

/* Buttons */
.wct-card-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 19px; border-radius: 25px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s ease; cursor: pointer; border: none; white-space: nowrap; }
.wct-card-btn svg { width: 16px; height: 16px; }
.wct-card-btn--primary { background: var(--wct-accent); color: var(--wct-text-light); position: relative; overflow: hidden; z-index: 1; }
.wct-card-btn--primary:hover,
.wct-webinar-card:hover .wct-card-btn--primary { background: var(--wct-accent-hover); }
.wct-card-btn--secondary { background: transparent; color: var(--wct-text-secondary); border: 1px solid var(--wct-border); position: relative; overflow: hidden; z-index: 1; }
.wct-card-btn--secondary:hover,
.wct-webinar-card:hover .wct-card-btn--secondary { background: var(--wct-bg); }

/* Cover Left Hover Effect - Shared */
.wct-card-btn--primary::before,
.wct-card-btn--secondary::before,
.wct-hero-btn::before,
.wct-bottom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #404653;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Special color for register button */
#wct-register-btn::before {
    background: #0b49d0;
}

.wct-card-btn--primary:hover::before,
.wct-webinar-card:hover .wct-card-btn--primary::before,
.wct-card-btn--secondary:hover::before,
.wct-webinar-card:hover .wct-card-btn--secondary::before,
.wct-hero-btn:hover::before,
.wct-bottom-btn:hover::before {
    transform: translateX(0);
}

.wct-card-btn--primary:hover,
.wct-webinar-card:hover .wct-card-btn--primary,
.wct-card-btn--secondary:hover,
.wct-webinar-card:hover .wct-card-btn--secondary,
.wct-hero-btn:hover,
.wct-bottom-btn:hover {
    color: #fff;
}

/* Hero Section */
.wct-hero { background: linear-gradient(135deg, #262629 0%, #323741 100%); border-radius: var(--wct-radius-lg); padding: 48px; margin-bottom: 40px; }
.wct-hero-content { color: var(--wct-text-light); }
.wct-hero-tag { display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 8px 16px; border-radius: 25px; background: var(--wct-tag-live-bg); margin-bottom: 24px; text-decoration: none; color: #fff !important; }
.wct-hero-tag:hover { color: #fff !important; }
.wct-hero-title { font-size: 2.3rem; color:#fff; font-weight: 600; line-height: 1.2; margin-bottom: 24px; }
.wct-hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 25px; }
.wct-hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--wct-text-light-muted);line-height: 1.45em; }
.wct-hero-meta-item svg { width: 18px; height: 18px; opacity: 0.7; }
.wct-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.wct-hero-badge { font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; display: inline-block; text-decoration: none; transition: all 0.2s ease; }
.wct-hero-badge--points { background: var(--wct-accent-light); color: var(--wct-accent); }
.wct-hero-badge--org { background: rgba(255, 255, 255, 0.1); color: var(--wct-text-light-muted); border: 1px solid var(--wct-border-dark); }
.wct-hero-badge--org:hover { background: rgba(255, 255, 255, 0.15); color: var(--wct-text-light); transform: translateY(-1px); }
.wct-hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 23px; background: var(--wct-accent); color: var(--wct-text-light); text-decoration: none; border-radius: 30px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease; border: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; z-index: 1; }
.wct-hero-btn:hover { background: var(--wct-accent-hover); }
.wct-hero-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Sections */
.wct-section { margin-bottom: 32px; }
.wct-section-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 24px; }

/* Speakers Grid */
.wct-speakers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wct-speaker-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--wct-card-bg); border-radius: var(--wct-radius-lg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.wct-speaker-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.wct-speaker-card__avatar { width: 95px; height: 95px; border-radius: 50%; object-fit: cover; }
.wct-speaker-card__info { display: flex; flex-direction: column; gap: 4px; }
.wct-speaker-card__name { font-size: 1rem; font-weight: 600; line-height: 1.1em; color: inherit; }
.wct-speaker-card__title { font-size: 0.85rem; color: var(--wct-text-secondary); line-height: 1.2em;}
.wct-speaker-card__role { font-size: 0.7rem; color: var(--wct-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.wct-speaker-card__link { font-size: 0.8rem; color: var(--wct-accent); text-decoration: none; font-weight: 500; margin-top: 4px; }
.wct-speaker-card:hover .wct-speaker-card__link { text-decoration: underline; }
.wct-speaker-card--coordinator .wct-speaker-card__link { display: none; }

/* Description */
.wct-description-card { background: var(--wct-card-bg); border-radius: var(--wct-radius-lg); padding: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.wct-description-content { font-size: 1rem; line-height: 1.8; color: var(--wct-text-secondary); }
.wct-description-content p { margin-bottom: 16px; }
.wct-description-content ul { margin: 16px 0; padding-left: 24px; }

/* Logos */
.wct-logos-section { background: var(--wct-card-bg); border-radius: var(--wct-radius-lg); padding: 15px 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.wct-logos-grid, .wct-sponsors-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px;    flex-wrap: wrap;}
.wct-logo-item { max-width: 100%;object-fit: contain;    opacity: 1;    transition: all 0.2s ease;    max-height: 90px;    width: auto; }
.wct-logo-item:hover { filter: grayscale(0%); opacity: 1; }
.wct-sponsors-grid img { max-width: 100%; object-fit: contain; max-height: 80px; width: auto; }

/* Countdown */
.wct-bottom-cta { padding: 10px 0 40px 0; text-align: center; }
.wct-bottom-btn { width:100%; display: inline-flex; align-items: center; gap: 8px; padding: 18px 36px; background: var(--wct-accent); color: var(--wct-text-light); border-radius: 25px; font-weight: 600; font-size: 1.05rem; transition: all 0.2s ease; border: none; cursor: pointer; margin-bottom: 20px; white-space: nowrap; justify-content: center;max-width: 380px; position: relative; overflow: hidden; z-index: 1;}
.wct-bottom-btn:hover { background: var(--wct-accent-hover); }
.wct-bottom-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.wct-countdown-label { font-size: 1rem; color: var(--wct-text-secondary); margin-bottom: 16px; }
.wct-countdown-boxes { display: flex; justify-content: center; gap: 12px; }
.wct-countdown-box { background: #262629; border-radius: var(--wct-radius-sm); padding: 16px 20px; min-width: 80px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wct-countdown-number { font-size: 1.8rem; font-weight: 700; color: #ffffff; line-height: 1em; }
.wct-countdown-unit { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }

/* Accordion */
.wct-accordion { background: var(--wct-card-bg); border-radius: var(--wct-radius-lg); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.wct-accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; transition: background 0.2s ease; }
.wct-accordion-title { font-size: 1rem; font-weight: 600; }
.wct-accordion-icon { width: 24px; height: 24px; color: var(--wct-text-secondary); transition: transform 0.3s ease; }
.wct-accordion.active .wct-accordion-icon { transform: rotate(180deg); }
.wct-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.wct-accordion.active .wct-accordion-content { max-height: 500px; }
.wct-accordion-body { padding: 20px 24px; border-top: 1px solid var(--wct-border); font-size: 0.95rem; line-height: 1.7; color: var(--wct-text-secondary); }

/* Speaker/Organizer Hero */
.wct-speaker-hero, .wct-organizer-hero { display: flex; align-items: center; gap: 32px; padding: 40px; background: var(--wct-card-bg); border-radius: var(--wct-radius-lg); margin-bottom: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.wct-speaker-hero__avatar img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.wct-organizer-hero__logo img { max-height: 100px; object-fit: contain; }
.wct-speaker-hero__name, .wct-organizer-hero__name { font-size: 2rem; font-weight: 700; margin-bottom: 8px;line-height: 1.25em; }

/* Mobile styles for speaker/organizer hero names */
@media (max-width: 768px) {
    .wct-speaker-hero__name, .wct-organizer-hero__name {
        font-size: 1.4rem;
    }
    body .wct-speaker-hero__title { font-size: 0.98rem;}
}
.wct-speaker-hero__title { font-size: 1.1rem; color: var(--wct-text-secondary); line-height: 1.3em;max-width: 500px;}
.wct-organizer-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.wct-organizer-hero__link, .wct-organizer-hero__phone, .wct-organizer-hero__address { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--wct-text-secondary); }
.wct-organizer-hero__link { color: var(--wct-accent); text-decoration: none; }
.wct-organizer-hero__meta svg { width: 16px; height: 16px; }

/* Mini Cards */
.wct-webinars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wct-webinar-mini-card { background: var(--wct-card-bg); border-radius: var(--wct-radius); transition: box-shadow 0.2s ease; }
.wct-webinar-mini-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.wct-webinar-mini-card a { display: block; padding: 20px 24px; text-decoration: none; color: inherit; }
.wct-webinar-mini-card__title { font-size: 1rem; font-weight: 600; margin: 12px 0 8px; line-height: 1.4; }
.wct-webinar-mini-card__speakers { display: block; font-size: 0.85rem; color: var(--wct-text-secondary); margin-bottom: 8px; }
.wct-webinar-mini-card__date { display: block; font-size: 0.85rem; color: var(--wct-text-secondary); font-weight: 700; margin-top: 8px; }

/* Related Webinars Section - No background */
.wct-related-webinars {
    background: transparent;
    padding: 0;
}

/* Related Webinars Grid - 2 columns desktop, 2 tablet, 1 mobile */
.wct-webinars-grid--related {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .wct-webinars-grid--related {
        grid-template-columns: 1fr;
    }
}

/* Archive Grids */
.wct-speakers-archive-grid, .wct-organizers-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wct-speaker-archive-card, .wct-organizer-archive-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; background: var(--wct-card-bg); border-radius: var(--wct-radius); text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; height: 100%; }
.wct-speaker-archive-card:hover, .wct-organizer-archive-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-4px); }
.wct-speaker-archive-card__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.wct-organizer-archive-card__logo { height: 120px; max-width: 160px; object-fit: contain; margin-bottom: 5px; }
.wct-organizer-archive-card__placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--wct-accent-light); color: var(--wct-accent); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.wct-speaker-archive-card__name, .wct-organizer-archive-card__name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; line-height: 1.2em;}
.wct-speaker-archive-card__title { 
    font-size: 0.85rem; 
    color: var(--wct-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.38em; /* 0.85rem * 1.4 * 2 lines */
    word-break: break-word;
    hyphens: auto;
}

/* Pagination */
.wct-pagination { margin-top: 40px; text-align: center; }
.wct-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.wct-pagination a, .wct-pagination span { padding: 10px 16px; border-radius: 8px; font-size: 0.9rem; }
.wct-pagination a { background: var(--wct-card-bg); color: var(--wct-text-primary); }
.wct-pagination .current { background: var(--wct-accent); color: var(--wct-text-light); }
.wct-no-posts { text-align: center; padding: 60px 20px; font-size: 1.1rem; color: var(--wct-text-secondary); }

/* Responsive */
@media (max-width: 900px) {
    .wct-hero { padding: 32px; }
    .wct-hero-title { font-size: 2rem; }
    .wct-speakers-grid, .wct-webinars-grid { grid-template-columns: 1fr; }
    .wct-speakers-archive-grid, .wct-organizers-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .wct-webinar-card__link { padding: 20px 24px; }
    .wct-card-title { font-size: 1.2rem; }
    .wct-card-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
    .wct-card-btn { width: 100%; justify-content: center; }
    .wct-speaker-row.wct-speakers-many { flex-direction: column; align-items: flex-start; }
    .wct-hero { padding: 24px; }
    .wct-hero-title { font-size: 1.4rem; }
    .wct-hero-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .wct-hero-meta-item--time { margin-left: 0; }
    .wct-speaker-card__avatar { width: 70px; height: 70px; }
    .wct-countdown-boxes { gap: 8px; }
    .wct-countdown-box { padding: 12px 14px; min-width: 65px; }
    .wct-countdown-number { font-size: 1.4rem; }
    .wct-speaker-hero, .wct-organizer-hero { flex-direction: column; text-align: center; }
    .wct-speakers-archive-grid, .wct-organizers-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .wct-card-title { font-size: 1.1rem; }
    .wct-speaker-avatar { width: 65px; height: 65px; margin-left: -12px; }
    .wct-speakers-archive-grid, .wct-organizers-archive-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   Archive Container Override
   =========================================== */
.wct-archive-webinars .wct-container {
    max-width: 1000px;
}

.wct-archive-webinars .wct-page-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 32px;
    line-height: 1.1em;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ===========================================
   Filters
   =========================================== */
.wct-filters {
    padding: 16px 0;
    
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search Input */
.wct-filter-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.wct-filter-search__icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.wct-filter-search__input {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 44px 12px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #e5e7eb !important;
    border-radius: 20px !important;
    font-size: 0.9rem;
    font-family: inherit;
    color: #272a31 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box;
    appearance: none !important;
}

.wct-filter-search__input:focus,
.wct-filter-search__input:active {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.wct-filter-search__input::placeholder {
    color: #9ca3af;
}

/* Archive Search Input (Speakers/Organizers) */
.wct-archive-search {
    position: relative;
    margin-bottom: 32px;
}

.wct-archive-search__input {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 44px 12px 16px !important;
    border: 1px solid #e5e7eb !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #e5e7eb !important;
    border-radius: 20px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    font-size: 0.9rem;
    font-family: inherit;
    color: #272a31 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box;
    appearance: none !important;
}

.wct-archive-search__input:focus,
.wct-archive-search__input:active {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.wct-archive-search__input::placeholder {
    color: #9ca3af;
}

.wct-archive-search__icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

/* Dropdowns */
.wct-filter-select {
    position: relative;
    min-width: 140px;
}

.wct-filter-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #272a31;
    cursor: pointer;
    transition: border-color 0.2s ease;
    width: 100%;
}

.wct-filter-select__trigger:hover {
    border-color: #9ca3af;
}

.wct-filter-select__trigger.has-value {
    background: #e8f4fc;
    border-color: #2563eb;
    color: #2563eb;
}

.wct-filter-select__icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.wct-filter-select.open .wct-filter-select__icon {
    transform: rotate(180deg);
}

.wct-filter-select__trigger.has-value .wct-filter-select__icon {
    color: #2563eb;
}

.wct-filter-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    overflow: hidden;
    min-width: 200px;
}

.wct-filter-select.open .wct-filter-select__menu {
    display: block;
}

.wct-filter-select__option {
    padding: 12px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wct-filter-select__option:hover {
    background: #f3f4f6;
}

.wct-filter-select__option.selected {
    background: #e8f4fc;
    color: #2563eb;
    font-weight: 500;
}

/* Clear Button */
.wct-filter-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wct-filter-clear:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.wct-filter-clear__icon {
    width: 14px;
    height: 14px;
}

.wct-filter-clear__count {
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 2px;
}

/* Results Info Row */
.wct-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
    font-size: 0.9rem;
    color: #334155;
}

.wct-results-count strong {
    color: #272a31;
    font-weight: 600;
}

.wct-results-page {
    color: #9ca3af;
}

/* ===========================================
   Mobile Filters
   =========================================== */
.wct-filters-mobile {
    display: none;
}

.wct-filters-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    color: #272a31;
    cursor: pointer;
    margin-bottom: 16px;
}

.wct-filters-mobile-trigger__icon {
    width: 18px;
    height: 18px;
    color: #334155;
}

.wct-filters-mobile-trigger__count {
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Mobile Panel */
.wct-filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: flex-end;
}

.wct-filters-panel.open {
    display: flex;
}

.wct-filters-panel__content {
    background: #ffffff;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: wctSlideUp 0.3s ease;
}

.wct-filters-panel__scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 0;
}

@keyframes wctSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.wct-filters-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 24px 16px 24px;
}

.wct-filters-panel__title {
    font-size: 1.1rem;
    font-weight: 600;
}

.wct-filters-panel__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.wct-filters-panel__close svg {
    width: 18px;
    height: 18px;
    color: #334155;
}

.wct-filters-panel__group {
    margin-bottom: 20px;
}

.wct-filters-panel__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 10px;
}

.wct-filters-panel__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
}

.wct-filters-panel__input:focus {
    outline: none;
    border-color: #2563eb;
}

.wct-filters-panel__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wct-filters-panel__option {
    padding: 14px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wct-filters-panel__option.selected {
    background: #e8f4fc;
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 500;
}

.wct-filters-panel__actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
}

.wct-filters-panel__btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.wct-filters-panel__btn--clear {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #334155;
}

.wct-filters-panel__btn--apply {
    background: #2563eb;
    border: none;
    color: white;
}

/* ===========================================
   Loading State
   =========================================== */
.wct-webinars-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

.wct-loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.wct-loading-spinner.visible {
    display: block;
}

/* ===========================================
   Animations
   =========================================== */
@keyframes wctFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wct-webinar-card {
    opacity: 0;
    animation: wctFadeInUp 0.5s ease forwards;
}

.wct-webinar-card:nth-child(1) { animation-delay: 0.0s; }
.wct-webinar-card:nth-child(2) { animation-delay: 0.1s; }
.wct-webinar-card:nth-child(3) { animation-delay: 0.15s; }
.wct-webinar-card:nth-child(4) { animation-delay: 0.2s; }
.wct-webinar-card:nth-child(5) { animation-delay: 0.25s; }
.wct-webinar-card:nth-child(6) { animation-delay: 0.3s; }
.wct-webinar-card:nth-child(7) { animation-delay: 0.35s; }
.wct-webinar-card:nth-child(8) { animation-delay: 0.4s; }
.wct-webinar-card:nth-child(9) { animation-delay: 0.45s; }
.wct-webinar-card:nth-child(10) { animation-delay: 0.5s; }

/* Pagination Links */
.wct-pagination__links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wct-pagination__link {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--wct-text-primary);
    background: var(--wct-card-bg);
    transition: all 0.2s ease;
    display: inline-block;
}

.wct-pagination__link:hover {
    background: var(--wct-accent-light);
    color: var(--wct-accent);
}

.wct-pagination__link.current {
    background: var(--wct-accent);
    color: var(--wct-text-light);
}

.wct-pagination__ellipsis {
    padding: 10px 8px;
    color: var(--wct-text-muted);
}

/* ===========================================
   Responsive Filters
   =========================================== */
@media (max-width: 768px) {
    .wct-filters {
        display: none;
    }
    
    .wct-filters-mobile {
        display: block;
    }
    
    .wct-results-info {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .wct-archive-webinars .wct-page-title {
        font-size: 1.5rem;
        padding-top: 0;
    }
}

/* ===========================================
   Videos & Arthrography Cards
   =========================================== */

/* Page Header */
.wct-archive-videos .wct-page-header,
.wct-archive-arthrography .wct-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.wct-archive-videos .wct-page-title,
.wct-archive-arthrography .wct-page-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2em;
}

.wct-page-description {
    font-size: 1rem;
    color: var(--wct-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.wct-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Card Base */
.wct-card {
    background: var(--wct-card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    opacity: 0;
    animation: wctFadeInUp 0.5s ease forwards;
}

.wct-card:nth-child(1) { animation-delay: 0.0s; }
.wct-card:nth-child(2) { animation-delay: 0.1s; }
.wct-card:nth-child(3) { animation-delay: 0.15s; }
.wct-card:nth-child(4) { animation-delay: 0.2s; }
.wct-card:nth-child(5) { animation-delay: 0.25s; }
.wct-card:nth-child(6) { animation-delay: 0.3s; }
.wct-card:nth-child(7) { animation-delay: 0.35s; }
.wct-card:nth-child(8) { animation-delay: 0.4s; }
.wct-card:nth-child(9) { animation-delay: 0.45s; }
.wct-card:nth-child(10) { animation-delay: 0.5s; }

.wct-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.wct-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.wct-card__image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.wct-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wct-card:hover .wct-card__image {
    transform: scale(1.05);
}

/* Play Icon (Videos only) */
.wct-card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wct-card:hover .wct-card__play-icon {
    opacity: 1;
}

.wct-card__play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
    color: var(--wct-text-primary);
}

/* Card Content */
.wct-card__content {
    padding: 20px 24px 24px;
}

/* Categories (no links, just display) */
.wct-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.wct-card__category {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wct-text-secondary);
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Title Row */
.wct-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.wct-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--wct-text-primary);
    flex: 1;
    margin: 0;
}

/* Arrow Icon - Default state: white with black border */
.wct-card__arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #272a31;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.wct-card__arrow svg {
    width: 18px;
    height: 18px;
    color: #272a31;
    transition: color 0.3s ease;
}

/* Arrow Icon - Hover state: black background with white arrow */
.wct-card:hover .wct-card__arrow {
    background: #272a31;
    border-color: #272a31;
    transform: translate(2px, -2px);
}

.wct-card:hover .wct-card__arrow svg {
    color: #ffffff;
}

/* ===========================================
   Cards Responsive
   =========================================== */
@media (max-width: 768px) {
    .wct-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wct-archive-videos .wct-page-title,
    .wct-archive-arthrography .wct-page-title {
        font-size: 1.6rem;
    }

    .wct-page-description {
        font-size: 0.95rem;
    }

    .wct-card__content {
        padding: 16px 20px 20px;
    }

    .wct-card__title {
        font-size: 1.05rem;
    }

    .wct-card__arrow {
        width: 36px;
        height: 36px;
    }

    .wct-card__arrow svg {
        width: 16px;
        height: 16px;
    }

    .wct-card__play-icon {
        width: 50px;
        height: 50px;
    }

    .wct-card__play-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================================
   Single Video Template
   =========================================== */

/* Single Video Page Background */
.wct-single-video {
    background: #f3f4f6;
}

/* Hero Wrapper */
.wct-video-hero-wrapper {
    padding: 40px 20px 0;
}

/* Hero Section (Contained) */
.wct-video-hero {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #262629 0%, #323741 100%);
    border-radius: 20px;
    padding: 48px 48px 0;
    padding-bottom: calc(56.25% * 0.25 + 48px);
    position: relative;
}

.wct-video-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wct-video-hero__category {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wct-text-light, #ffffff);
    background: var(--wct-tag-live-bg);
    padding: 6px 14px;
    border-radius: 20px;
}

.wct-video-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wct-text-light, #ffffff);
    line-height: 1.3;
    margin-bottom: 32px;
}

/* Video Container (Overlapping) */
.wct-video-container-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: calc(-56.25% * 0.25 - 48px + 68px);
    position: relative;
    z-index: 10;
}

.wct-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.wct-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Content Section */
.wct-video-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wct-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--wct-text-primary);
}

/* Description Card */
.wct-video-description {
    background: var(--wct-card-bg);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.wct-video-description__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--wct-text-secondary);
}

.wct-video-description__text p {
    margin-bottom: 16px;
}

.wct-video-description__text p:last-child {
    margin-bottom: 0;
}

/* Share Section */
.wct-video-share {
    background: var(--wct-card-bg);
    border-radius: 16px;
    padding: 32px;
}

.wct-video-share__buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.wct-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.wct-share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wct-share-btn--facebook {
    background: #1877f2;
    color: white;
}

.wct-share-btn--facebook:hover {
    background: #0d65d9;
}

.wct-share-btn--x {
    background: #000000;
    color: white;
}

.wct-share-btn--x:hover {
    background: #333333;
}

.wct-share-btn--linkedin {
    background: #0a66c2;
    color: white;
}

.wct-share-btn--linkedin:hover {
    background: #004182;
}

.wct-share-btn--whatsapp {
    background: #25d366;
    color: white;
}

.wct-share-btn--whatsapp:hover {
    background: #1da851;
}

.wct-share-btn--email {
    background: #64748b;
    color: white;
}

.wct-share-btn--email:hover {
    background: #272a31;
}

.wct-share-btn--copy {
    background: var(--wct-bg, #ffffff);
    color: var(--wct-text-primary);
    border: 1px solid var(--wct-border, #e5e7eb);
}

.wct-share-btn--copy:hover {
    background: var(--wct-border, #e5e7eb);
}

.wct-share-btn--copy.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Related Videos Section */
.wct-related-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.wct-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wct-related-card {
    background: var(--wct-card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wct-related-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.wct-related-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wct-related-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.wct-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wct-related-card:hover .wct-related-card__image img {
    transform: scale(1.05);
}

.wct-related-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wct-related-card:hover .wct-related-card__play {
    opacity: 1;
}

.wct-related-card__play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
    color: var(--wct-text-primary);
}

.wct-related-card__content {
    padding: 16px;
}

.wct-related-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--wct-text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   Single Video Responsive
   =========================================== */
@media (max-width: 1024px) {
    .wct-video-share__buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .wct-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wct-video-hero-wrapper {
        padding: 20px 20px 0;
    }

    .wct-video-hero {
        padding: 32px 24px 0;
        padding-bottom: calc(56.25% * 0.25 + 32px);
        border-radius: 16px;
    }

    .wct-video-hero__title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .wct-video-container-wrapper {
        margin-top: calc(-56.25% * 0.25 - 32px + 52px);
    }

    .wct-video-description,
    .wct-video-share {
        padding: 24px;
    }

    .wct-video-share__buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .wct-share-btn {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .wct-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wct-video-hero {
        padding: 24px 20px 0;
        padding-bottom: calc(56.25% * 0.25 + 24px);
    }

    .wct-video-hero__title {
        font-size: 1.3rem;
    }

    .wct-video-container-wrapper {
        margin-top: calc(-56.25% * 0.25 - 24px + 44px);
    }
}

/* ===========================================
   Screen Reader Only - for accessibility
   =========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   Single Arthrography Template
   =========================================== */

/* Single Article Page Background */
.wct-single-article {
    background: #f3f4f6;
}

/* Hero Wrapper */
.wct-article-hero-wrapper {
    padding: 40px 20px 0;
}

/* Hero Section (Contained) */
.wct-article-hero {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #262629 0%, #323741 100%);
    border-radius: 20px;
    padding: 48px;
}

.wct-article-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.wct-article-hero__badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.wct-article-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wct-article-hero__category {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wct-text-light, #ffffff);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
}

.wct-article-hero__title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--wct-text-light, #ffffff);
    line-height: 1.3;
    margin-bottom: 24px;
}

.wct-article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.wct-article-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wct-article-hero__meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Content Section */
.wct-article-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Article Hero Wrapper Container */
.wct-article-hero-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Main Content Card */
.wct-article-main {
    background: var(--wct-card-bg);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
}

.wct-article-main__content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--wct-text-secondary);
}

.wct-article-main__content p {
    margin-bottom: 20px;
}

.wct-article-main__content p:last-child {
    margin-bottom: 0;
}

/* PDF Embedder Plugin Styling */
.wct-article-main__content .pdf-embedder-wrapper,
.wct-article-main__content .pdfemb-viewer,
.wct-article-main__content iframe[src*="pdf"],
.wct-article-main__content .wp-block-embed {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
}

/* Style PDF Embedder container if it uses specific classes */
.wct-article-main__content .pdfemb-viewer {
    background: #1a1a1a;
    padding: 0;
}

/* PDF Embedder Toolbar Override */
.pdfemb-viewer .pdfemb-toolbar {
    background-color: #2f333c !important;
}

/* Share Section */
.wct-article-share {
    background: var(--wct-card-bg);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.wct-article-share__buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* Related Articles Section */
.wct-related-section {
    margin-top: 20px;
}

/* Related Card Categories (for articles) */
.wct-related-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.wct-related-card__category {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wct-text-secondary);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ===========================================
   Single Arthrography Responsive
   =========================================== */
@media (max-width: 1024px) {
    .wct-article-share__buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .wct-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wct-article-hero-wrapper {
        padding: 20px 20px 0;
    }

    .wct-article-hero {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .wct-article-hero__title {
        font-size: 1.5rem;
    }

    .wct-article-hero__meta {
        flex-direction: column;
        gap: 12px;
    }

    .wct-article-main {
        padding: 24px;
    }

    .wct-article-share {
        padding: 24px;
    }

    .wct-article-share__buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .wct-share-btn {
        padding: 12px 14px;
        font-size: 0.8rem;
    }

    .wct-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wct-article-hero {
        padding: 24px 20px;
    }

    .wct-article-hero__title {
        font-size: 1.3rem;
    }
}

/* ===========================================
   GoTo Registration Modal - Fullscreen
   =========================================== */

.wct-goto-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wct-goto-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.wct-goto-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f3f4f6;
    cursor: pointer;
    z-index: 1; /* Behind modal content */
}

.wct-goto-modal[aria-hidden="true"] .wct-goto-modal__overlay {
    pointer-events: none;
    cursor: default;
}

.wct-goto-modal__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Always align to top for consistent positioning */
    justify-content: center;
    padding-top: 20px; /* Always 20px from top */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    z-index: 10;
}

.wct-goto-modal__close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: rgb(255, 255, 255);
    border: 2px solid rgba(51, 53, 62, 0.77);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000000;
}

.wct-goto-modal__close:hover {
    background: rgb(255, 255, 255);
    border-color: rgba(51, 53, 62, 1);
    transform: scale(1.05);
}

.wct-goto-modal__close svg {
    width: 24px;
    height: 24px;
    color: #252835;
    stroke-width: 2.5;
}

.wct-goto-modal__inner,
.wct-goto-modal__content {
    width: 100%;
    max-width: 800px;
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: visible; /* No scroll here - scroll happens in container */
    margin-left: auto; /* Center horizontally */
    margin-right: auto;
    margin-top: 0; /* Always at top - no vertical centering */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px); /* Max height: viewport minus padding */
}

/* Ensure loading doesn't create overlay or background */
.wct-goto-modal__loading {
    background: transparent !important;
}

/* Loading State */
.wct-goto-modal__loading {
    text-align: center;
    padding: 60px 20px;
    display: none; /* Hidden by default */
    position: relative;
    z-index: 1;
    visibility: visible;
}

/* Show loading only when modal is open and not loaded */
.wct-goto-modal[aria-hidden="false"]:not(.wct-goto-modal--loaded) .wct-goto-modal__loading {
    display: block !important;
}

/* Hide loading when modal is hidden */
.wct-goto-modal[aria-hidden="true"] .wct-goto-modal__loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide spinner when modal is loaded, even if loading element is still visible */
.wct-goto-modal--loaded .wct-goto-modal__loading .wct-goto-modal__spinner,
.wct-goto-modal--loaded .wct-goto-modal__spinner:not(.wct-goto-modal__submitting .wct-goto-modal__spinner) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.wct-goto-modal--loaded .wct-goto-modal__loading,
.wct-goto-modal--loaded .wct-goto-modal__loading *,
.wct-goto-modal--loaded .wct-goto-modal__spinner,
.wct-goto-modal--loaded .wct-goto-modal__loading-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* Hide ALL spinners except the one in submitting state */
.wct-goto-modal--loaded .wct-goto-modal__spinner:not(.wct-goto-modal__submitting .wct-goto-modal__spinner),
.wct-goto-modal--loaded .wct-goto-modal__loading .wct-goto-modal__spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide any duplicate loading elements */
.wct-goto-modal .wct-goto-modal__loading:nth-of-type(n+2) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Specifically hide spinner when loading is hidden */
.wct-goto-modal--loaded .wct-goto-modal__loading .wct-goto-modal__spinner,
.wct-goto-modal--loaded .wct-goto-modal__spinner:not(.wct-goto-modal__submitting .wct-goto-modal__spinner) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Also hide when form wrapper is visible */
.wct-goto-modal__form-wrapper:not([style*="display: none"]) ~ .wct-goto-modal__loading,
.wct-goto-modal__form-wrapper[style*="display: block"] ~ .wct-goto-modal__loading,
.wct-goto-modal--loaded .wct-goto-modal__loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
    background: transparent !important;
    z-index: -1 !important;
}

.wct-goto-modal__submitting {
    text-align: center;
    padding: 60px 20px;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 20px;
    pointer-events: none;
}

.wct-goto-modal__submitting .wct-goto-modal__spinner {
    border: 3px solid rgba(37, 40, 53, 0.2);
    border-top-color: #252835;
}

.wct-goto-modal__submitting .wct-goto-modal__loading-text {
    color: #252835;
}

.wct-goto-modal--submitting .wct-goto-modal__submitting {
    display: flex !important;
}

.wct-goto-modal__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(37, 40, 53, 0.2);
    border-top-color: #252835;
    border-radius: 50%;
    animation: wct-modal-spin 0.8s linear infinite;
    margin: 0 auto 20px;
    display: block;
}

@keyframes wct-modal-spin {
    to { transform: rotate(360deg); }
}

.wct-goto-modal__loading p,
.wct-goto-modal__loading-text {
    color: #252835;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Form Wrapper */
.wct-goto-modal__form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 48px 48px 48px; /* Top padding: 20px, others: 48px */
    /* Use opacity/visibility instead of display:none for Formidable Pro compatibility */
    opacity: 0;
    visibility: hidden;
    position: relative;
    z-index: 20; /* Above overlay (z-index: 1) and inner container */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Keep form in DOM for Formidable Pro to calculate conditional logic */
    display: block;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Removed duplicate rule - using the more comprehensive one above */

.wct-goto-modal--loaded .wct-goto-modal__form-wrapper,
.wct-goto-modal[aria-hidden="false"] .wct-goto-modal--loaded .wct-goto-modal__form-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: wct-modal-fade-in 0.3s ease;
}

@keyframes wct-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error State */
.wct-goto-modal__error {
    text-align: center;
    padding: 60px 20px;
}

.wct-goto-modal__error p {
    color: #ef4444;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Success Message */
.wct-goto-modal__success {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    animation: wct-modal-fade-in 0.3s ease;
}

.wct-goto-modal__success-icon {
    width: 48px;
    height: 48px;
    background: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.wct-goto-modal__success p {
    color: #166534;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ===========================================
   Formidable Form Styling Inside Modal
   =========================================== */

.wct-goto-modal__form-wrapper .frm_forms {
    margin: 0;
}

.wct-goto-modal__form-wrapper .frm_form_title {
    font-size: 1.1rem;
  font-weight: 700;
  color: var(--wct-text-primary);
  margin-top: 20px;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.3em;
}

.wct-goto-modal__form-wrapper .frm_description {
    color: var(--wct-text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.wct-goto-modal__form-wrapper .frm_form_field {
    margin-bottom: 20px;
}

.wct-goto-modal__form-wrapper .frm_primary_label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--wct-text-primary);
    margin-bottom: 8px;
}

.wct-goto-modal__form-wrapper .frm_form_field input[type="text"],
.wct-goto-modal__form-wrapper .frm_form_field input[type="email"],
.wct-goto-modal__form-wrapper .frm_form_field input[type="tel"],
.wct-goto-modal__form-wrapper .frm_form_field select,
.wct-goto-modal__form-wrapper .frm_form_field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--wct-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.wct-goto-modal__form-wrapper .frm_form_field input:focus,
.wct-goto-modal__form-wrapper .frm_form_field select:focus,
.wct-goto-modal__form-wrapper .frm_form_field textarea:focus {
    outline: none;
    border-color: var(--wct-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wct-goto-modal__form-wrapper .frm_submit {
    margin-top: 32px;
    position: relative;
    z-index: 10;
}

.wct-goto-modal__form-wrapper .frm_submit button,
.wct-goto-modal__form-wrapper .frm_submit input[type="submit"] {
    width: 100%;
    padding: 16px 24px;
    background: var(--wct-hero-bg);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* Hide Formidable's own loader/spinner - ALL possible selectors */
.wct-goto-modal__form-wrapper .frm_loading_form,
.wct-goto-modal__form-wrapper .frm_loading_overlay,
.wct-goto-modal__form-wrapper .frm_loading,
.wct-goto-modal__form-wrapper .frm_spinner,
.wct-goto-modal__form-wrapper .frm_ajax_loading,
.wct-goto-modal__form-wrapper .frm_loading_icon,
.wct-goto-modal__form-wrapper .frm_loading_img,
.wct-goto-modal__form-wrapper .frm_loading_icon img,
.wct-goto-modal__form-wrapper .frm_loading_icon svg,
.wct-goto-modal__form-wrapper img.frm_loading,
.wct-goto-modal__form-wrapper .frm_loading_icon:before,
.wct-goto-modal__form-wrapper .frm_loading_icon:after,
.wct-goto-modal__form-wrapper [class*="frm_loading"],
.wct-goto-modal__form-wrapper [class*="frm_spinner"],
.wct-goto-modal__form-wrapper .frm_forms .frm_loading,
.wct-goto-modal__form-wrapper .frm_forms .frm_spinner,
.wct-goto-modal__form-wrapper .frm_forms .frm_loading_form,
.wct-goto-modal__form-wrapper .frm_forms .frm_ajax_loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide ANY spinner/loader in modal except our submitting one */
.wct-goto-modal--loaded [class*="spinner"]:not(.wct-goto-modal__submitting):not(.wct-goto-modal__submitting *),
.wct-goto-modal--loaded [class*="loading"]:not(.wct-goto-modal__loading):not(.wct-goto-modal__submitting):not(.wct-goto-modal__submitting *),
.wct-goto-modal--loaded [class*="loader"]:not(.wct-goto-modal__loading):not(.wct-goto-modal__submitting):not(.wct-goto-modal__submitting *) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Also hide any spinners/loaders outside form wrapper but inside modal */
.wct-goto-modal .frm_loading_form,
.wct-goto-modal .frm_loading_overlay,
.wct-goto-modal .frm_loading,
.wct-goto-modal .frm_spinner,
.wct-goto-modal .frm_ajax_loading,
.wct-goto-modal .frm_loading_icon,
.wct-goto-modal .frm_loading_img,
.wct-goto-modal [class*="frm_loading"]:not(.wct-goto-modal__loading),
.wct-goto-modal [class*="frm_spinner"]:not(.wct-goto-modal__spinner) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.wct-goto-modal__form-wrapper .frm_submit button:hover,
.wct-goto-modal__form-wrapper .frm_submit input[type="submit"]:hover {
    background: #000000;
}

/* Hide Formidable's own loader/spinner */
.wct-goto-modal__form-wrapper .frm_loading_form,
.wct-goto-modal__form-wrapper .frm_loading_overlay,
.wct-goto-modal__form-wrapper .frm_loading,
.wct-goto-modal__form-wrapper .frm_spinner,
.wct-goto-modal__form-wrapper .frm_ajax_loading {
    display: none !important;
    visibility: hidden !important;
}

/* Required Asterisk */
.wct-goto-modal__form-wrapper .frm_required {
    color: #ef4444;
}

/* Error Messages */
.wct-goto-modal__form-wrapper .frm_error_style {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.wct-goto-modal__form-wrapper .frm_error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Success Message */
.wct-goto-modal__form-wrapper .frm_message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
}

/* Hidden Fields */
.wct-goto-modal__form-wrapper .frm_hidden_container {
    display: none !important;
}

/* ===========================================
   Registration Button Styling
   =========================================== */

.wct-goto-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wct-goto-register-btn svg {
    width: 20px;
    height: 20px;
}

/* ===========================================
   Modal Responsive
   =========================================== */

@media (max-width: 768px) {
    .wct-goto-modal__container {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
        padding-top: 20px; /* Always 20px from top - consistent with desktop */
        align-items: flex-start; /* Always align to top */
    }
    
    .wct-goto-modal__inner,
    .wct-goto-modal__content {
        max-height: calc(100vh - 40px); /* Max height: viewport minus padding */
    }
    
    .wct-goto-modal__close {
        top: 16px;
    right: 25px;
    width: 30px;
    height: 30px;
    background: rgb(255, 255, 255);
    border: 2px solid rgba(26, 26, 30, 0.9);
    }
    
    .wct-goto-modal__close svg {
        width: 20px;
        height: 20px;
    }
    
    .wct-goto-modal__form-wrapper {
        padding: 20px 24px 32px 24px; /* Top padding: 20px, bottom: 32px, sides: 24px */
        border-radius: 16px;
    }
    
    .wct-goto-modal__form-wrapper .frm_form_title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .wct-goto-modal__form-wrapper {
        padding: 20px 20px 24px 20px; /* Top padding: 20px, bottom: 24px, sides: 20px */
    }
}

/* Body scroll lock when modal open */
body.wct-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Ensure modal doesn't block clicks when hidden */
.wct-goto-modal[aria-hidden="true"] {
    pointer-events: none !important;
    z-index: -1;
}

.wct-goto-modal[aria-hidden="true"] * {
    pointer-events: none !important;
}

/* Hide form wrapper when modal is hidden */
.wct-goto-modal[aria-hidden="true"] .wct-goto-modal__form-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure overlay doesn't block when modal is closed */
.wct-goto-modal[aria-hidden="true"] .wct-goto-modal__overlay {
    pointer-events: none !important;
    cursor: default;
}

/* Success Message in Modal */
.wct-goto-modal__success {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.wct-goto-modal--success .wct-goto-modal__success {
    display: block;
}

.wct-goto-modal__success-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    color: #059669;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.wct-goto-modal__success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #252835;
    margin-bottom: 12px;
}

.wct-goto-modal__success p {
    color: #666;
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Form Validation Error Styling */




/* Hide validation errors during initial form load */
.wct-goto-modal__form-wrapper:not(.wct-form-ready) .frm_error,
.wct-goto-modal__form-wrapper:not(.wct-form-ready) .frm_error_style,
.wct-goto-modal__form-wrapper:not(.wct-form-ready) .frm_blank_field,
.wct-goto-modal__form-wrapper:not(.wct-form-ready) .frm_error_box,
.wct-goto-modal__form-wrapper:not(.wct-form-ready) .frm_message,
.wct-goto-modal__form-wrapper:not(.wct-form-ready) .frm_warning_style {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Show validation errors after form is ready */
.wct-goto-modal__form-wrapper.wct-form-ready .frm_error,
.wct-goto-modal__form-wrapper.wct-form-ready .frm_error_style,
.wct-goto-modal__form-wrapper.wct-form-ready .frm_error_box,
.wct-goto-modal__form-wrapper.wct-form-ready .frm_message,
.wct-goto-modal__form-wrapper.wct-form-ready .frm_warning_style {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

