/**
 * Stago Webinars - Desktop Styles
 *
 * @package StagoWebinars
 */

:root {
    --stago-red: #a82206;
    --stago-red-dark: #8b1a05;
    --stago-red-light: #cc3a1c;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f3f0;
    --bg-tertiary: #e8e4de;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #62523d;
    --text-muted: #80756a;
    --border-color: #d9d4cc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --accent-gradient: linear-gradient(135deg, var(--stago-red) 0%, var(--stago-red-dark) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}


/* Coming Soon Modal (ES redirect) */
.stago-modal-backdrop--blur {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.35);
}

.stago-modal-dialog--coming-soon {
    text-align: center;
    max-width: 480px;
}

.stago-modal-dialog--coming-soon h3 {
    justify-content: center;
    color: var(--stago-red);
    font-size: 20px;
    margin-bottom: 20px;
}

.coming-soon-modal-icon {
    font-size: 52px;
    color: var(--stago-beige-dark, #c4b49a);
    margin-bottom: 16px;
    line-height: 1;
}

.coming-soon-text-block {
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
    text-align: left;
}

.coming-soon-text-block--es {
    background: var(--bg-secondary, #f5f1eb);
    border-left: 3px solid var(--stago-red);
}

.coming-soon-text-block--en {
    background: var(--bg-secondary, #f5f1eb);
    border-left: 3px solid var(--border-color, #d1c8be);
    opacity: 0.75;
}

.coming-soon-lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.coming-soon-lang-badge img {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.coming-soon-text-block p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

#comingSoonModal .stago-modal-actions {
    justify-content: center;
    margin-top: 8px;
}

.btn-coming-soon-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--stago-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-coming-soon-continue:hover {
    background: #8a1b05;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--stago-red) 0%, var(--stago-red-dark) 100%);
    color: white;
    padding: 12px 24px;
    position: relative;
    z-index: 1001;
    display: none;
}

.promo-banner.promo-banner-visible {
    display: block;
}

.promo-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.promo-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-text {
    font-size: 14px;
    font-weight: 500;
}

.promo-text strong {
    font-weight: 700;
}

.promo-cta {
    background: white;
    color: var(--stago-red);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.promo-cta:hover {
    background: var(--bg-tertiary);
    color: var(--stago-red-dark);
}

.promo-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.promo-close:hover {
    color: white;
}

.promo-banner.hidden {
    display: none;
}

/* Language Version Banner (Homepage) */
.lang-version-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 16px 0;
    border-bottom: 3px solid var(--stago-red);
}

.lang-version-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lang-version-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-version-flag {
    width: 30px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-version-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-version-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.lang-version-text span {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 14px;
}

.btn-lang-version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--stago-red);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-lang-version:hover {
    background: var(--stago-red-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.3);
}

/* Live Now Banner */
.live-now-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 16px 0;
    border-bottom: 3px solid var(--stago-red);
}

.live-now-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.live-now-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--stago-red);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-now-info {
    color: white;
}

.live-now-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.live-now-title a {
    color: white;
    text-decoration: none;
}

.live-now-title a:hover {
    text-decoration: underline;
}

.live-now-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-now-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-now-meta i {
    color: var(--stago-red-light);
}

.btn-watch-live {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--stago-red);
    color: white;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-watch-live:hover {
    background: var(--stago-red-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.4);
}

/* Header */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text-suffix {
    font-size: 20px;
    font-weight: 600;
    color: var(--stago-red);
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
    margin-left: 2px;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.search-form:focus-within {
    border-color: var(--stago-red);
    box-shadow: 0 0 0 3px rgba(168, 34, 6, 0.1);
}

.search-form i {
    padding: 0 12px;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px 12px 0;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher - Toggle Style */
.lang-switcher {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    position: relative;
}

.lang-link:hover {
    background: rgba(168, 34, 6, 0.05);
    color: var(--text-primary);
}

.lang-link.active {
    background: var(--stago-red);
    color: white;
}

.lang-link.active .lang-flag {
    opacity: 1;
}

.lang-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-link:hover .lang-flag {
    opacity: 1;
}

.lang-separator {
    display: none; /* Remove separator in toggle style */
}

.user-welcome {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-signin {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--stago-red);
    color: var(--stago-red);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-signin:hover {
    background: rgba(168, 34, 6, 0.05);
    color: var(--stago-red);
}

.btn-register {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gradient);
    border: 1px solid var(--stago-red);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Navigation */
.nav-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.nav-bar .container {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
    line-height: 30px;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--stago-red);
    border-bottom-color: var(--stago-red);
}

.burger-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    background: #1a1a1a;
    padding: 40px 24px;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.slider-wrapper {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: opacity 0.5s ease;
    position: relative;
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slide-content {
    padding: 20px 0;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--stago-red);
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.slide-badge i {
    font-size: 10px;
}

.slide-badge.live {
    background: #d32f2f;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.slide-badge.upcoming {
    background: #e65100;
}

.slide-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    margin-bottom: 12px;
}

.slide-category.hemostasis {
    background: var(--stago-red);
    color: white;
}

.slide-category.hematology {
    background: #62523d;
    color: white;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #ffffff;
}

.slide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.slide-title a:hover {
    color: rgba(255,255,255,0.8);
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-meta i {
    color: var(--stago-red);
}

.slide-description {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.slide-actions {
    display: flex;
    gap: 14px;
}

.slide-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-gradient);
    color: white;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 34, 6, 0.25);
    color: white;
}

.btn-remind {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-remind:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

.slide-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-lg);
}

.slide-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(168, 34, 6, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
}

.slide-thumbnail:hover .slide-play-btn {
    background: var(--stago-red);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #252525;
    border: 1px solid #404040;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-nav:hover {
    background: var(--stago-red);
    border-color: var(--stago-red);
    color: white;
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: #404040;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--stago-red);
    width: 32px;
}

/* Countdown */
.countdown-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    gap: 6px;
}

.countdown-item {
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    text-align: center;
    min-width: 48px;
}

.countdown-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.countdown-unit {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* Webinars Section */
.webinars-section {
    padding: 48px 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title i {
    color: var(--stago-red);
    font-size: 28px;
}

/* Filters */
.filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--border-color);
}

.filter-btn:last-child {
    border-right: none;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--stago-red);
    color: white;
}

.filter-btn.active[data-filter="hemostasis"] {
    background: var(--stago-red);
}

.filter-btn.active[data-filter="hematology"] {
    background: #62523d;
}

.filter-dropdown {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6368' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--stago-red);
}

/* Webinar Grid */
.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.webinar-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.webinar-card:hover {
    border-color: var(--stago-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.webinar-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.webinar-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.webinar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.webinar-card:hover .webinar-thumbnail img {
    transform: scale(1.05);
}

.webinar-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.webinar-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webinar-category.hemostasis {
    background: var(--stago-red);
    color: white;
}

.webinar-category.hematology {
    background: #62523d;
    color: white;
}

.webinar-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.webinar-favorite:hover {
    background: #ffffff;
    color: var(--stago-red);
    transform: scale(1.1);
}

.webinar-favorite.active {
    color: var(--stago-red);
}

.webinar-favorite i.bi::before {
    line-height: 2;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: rgba(168, 34, 6, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    opacity: 0;
    transition: all 0.3s;
}

.webinar-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.webinar-info {
    padding: 16px;
}

.webinar-info .webinar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webinar-speaker {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.webinar-speaker > i {
    color: var(--stago-red);
}

.speaker-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    cursor: help;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    transition: color 0.2s;
}

.speaker-info-trigger:hover {
    color: var(--stago-red);
}

.speaker-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 6px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

.speaker-info-trigger:hover .speaker-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: white;
    line-height: 1.4;
}

.popover-item i {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
}

.webinar-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.webinar-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 48px;
}

.btn-load-more {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-load-more:hover:not(:disabled) {
    border-color: var(--stago-red);
    color: var(--stago-red);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader i {
    animation: rotate 1s linear infinite;
}

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

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--stago-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Fade transitions for grid */
.webinar-grid {
    transition: opacity 0.3s ease;
}

.webinar-grid.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Welcome Section */
.welcome-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 24px;
}

.welcome-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 24px;
}

.welcome-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.welcome-content h2 span {
    color: var(--stago-red);
}

.welcome-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 34, 6, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stago-red);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--stago-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    color: var(--stago-red);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #2a2520;
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 24px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    font-size: 18px;
    background: rgba(255,255,255,0.1);
}

.footer-social-link:first-of-type {
    margin-left: 8px;
}

.footer-social-link + .footer-social-link {
    margin-left: 4px;
}

.footer-social-link:hover {
    color: white;
    background: var(--stago-red);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--stago-red);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--stago-red-dark);
    transform: translateY(-4px);
}

/* 404 Page */
.error-404 {
    padding: 100px 24px;
    text-align: center;
}

.error-title {
    font-size: 120px;
    font-weight: 700;
    color: var(--stago-red);
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Account Page */
.account-section {
    padding: 60px 24px;
}

.account-wrapper {
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.account-box {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.account-header {
    margin-bottom: 30px;
}

.account-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-header h2 i {
    color: var(--stago-red);
}

.account-header p {
    color: var(--text-secondary);
}

.account-form .form-group {
    margin-bottom: 20px;
}

.account-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.account-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    transition: all 0.2s;
}

.account-form select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.account-form .form-control:focus {
    outline: 0;
    border-color: var(--stago-red);
    background: #faf8f5;
    box-shadow: 0 0 0 0.25rem rgba(168, 34, 6, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-right: 5px;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.checkbox-group-vertical .checkbox-label {
    margin: 0;
}

.checkbox-group-vertical .checkbox-label span {
    font-weight: 600;
}

/* Profile page - more space before language preference */
.profile-form-card .form-group:has(.checkbox-group-vertical) {
    margin-top: 20px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.account-divider {
    width: 1px;
    background: var(--border-color);
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.account-divider span {
    background: var(--bg-secondary);
    padding: 20px 0;
    color: var(--text-muted);
    font-weight: 600;
}

.privacy-notice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.privacy-notice p {
    color: var(--text-muted);
    font-size: 13px;
}

.privacy-notice a {
    color: var(--stago-red);
}

.signin-message,
.signup-message {
    margin-bottom: 20px;
}

.signin-message .alert,
.signup-message .alert {
    padding: 12px 16px;
    font-size: 14px;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 18px;
}

/* Pagination */
.pagination-container {
    margin-top: 48px;
}

.pagination-container .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination-container .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-container .page-numbers:hover,
.pagination-container .page-numbers.current {
    background: var(--stago-red);
    border-color: var(--stago-red);
    color: white;
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--stago-red);
    color: var(--stago-red);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-user-menu:hover {
    background: rgba(168, 34, 6, 0.05);
}

.btn-user-menu i.bi-chevron-down {
    font-size: 12px;
    transition: transform 0.2s;
}

.btn-user-menu.open i.bi-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.user-dropdown-header i {
    font-size: 36px;
    color: var(--stago-red);
}

.user-dropdown-header strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
}

.user-dropdown-header small {
    font-size: 13px;
    color: var(--text-muted);
}

.user-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown-menu li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-dropdown-menu li a i {
    font-size: 16px;
    color: var(--stago-red);
}

.user-dropdown-menu li.divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* Page Section */
.page-section {
    padding: 48px 24px;
    min-height: calc(100vh - 400px);
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content h2, .page-content h3, .page-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 15px;
}

.page-content table th,
.page-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.page-content table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.page-content table tbody tr:nth-child(even) td {
    background: var(--bg-secondary);
}

.page-content table tbody tr:hover td {
    background: #f0ece6;
}

.page-content a {
    color: var(--stago-red);
}

/* Single Post */
.single-section {
    padding: 60px 24px;
}

.single-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

.single-thumbnail {
    margin-bottom: 24px;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
}

.single-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-meta i {
    color: var(--stago-red);
}

.single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
}

.single-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

.single-tags a {
    color: var(--stago-red);
    margin-right: 8px;
}

.single-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.single-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.single-navigation a:hover {
    color: var(--stago-red);
}

.single-sidebar .sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--stago-red);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.recent-posts-list a:hover {
    color: var(--stago-red);
}

/* Archive */
.archive-section {
    padding: 60px 24px;
}

.archive-header {
    margin-bottom: 40px;
}

.archive-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.archive-description {
    font-size: 17px;
    color: var(--text-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.post-card:hover {
    border-color: var(--stago-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-info {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--stago-red);
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--stago-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.post-read-more:hover {
    text-decoration: underline;
}

/* On-Demand Page */
.ondemand-section {
    padding: 48px 24px;
}

.ondemand-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.ondemand-section .section-title {
    font-size: 32px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
}

.ondemand-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-info {
    font-size: 14px;
    color: var(--text-muted);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-spinner i {
    font-size: 32px;
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 16px;
}

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

.webinar-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* AJAX Pagination */
.ajax-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.ajax-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ajax-pagination .page-link:hover {
    border-color: var(--stago-red);
    color: var(--stago-red);
}

.ajax-pagination .page-link.current {
    background: var(--stago-red);
    border-color: var(--stago-red);
    color: white;
}

.ajax-pagination .page-dots {
    color: var(--text-muted);
    padding: 0 8px;
}

/* 404 Secondary Button */
.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-action:hover {
    border-color: var(--stago-red);
    color: var(--stago-red);
}

/* Full height main content */
.main-content-full {
    min-height: calc(100vh - 560px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--stago-red);
    border-radius: 6px;
    border: 2px solid var(--bg-tertiary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stago-red-dark);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--stago-red) var(--bg-tertiary);
}

/* Ivory Search - Design original */
header .search-container .is-search-form,
.header .search-container .is-search-form {
    display: flex !important;
    align-items: center;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

header .search-container .is-search-form:focus-within,
.header .search-container .is-search-form:focus-within {
    border-color: var(--stago-red) !important;
    box-shadow: 0 0 0 3px rgba(168, 34, 6, 0.1) !important;
}

header .search-container .is-search-form label,
.header .search-container .is-search-form label {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

header .search-container .is-search-input,
.header .search-container .is-search-input {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5 !important;
}

header .search-container .is-search-input::placeholder,
.header .search-container .is-search-input::placeholder {
    color: var(--text-muted) !important;
}

header .search-container .is-loader-image,
.header .search-container .is-loader-image {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}

header .search-container button.is-search-submit,
.header .search-container button.is-search-submit {
    background: var(--bg-tertiary) !important;
    border: none !important;
    border-left: 1px solid var(--border-color) !important;
    padding: 12px 20px !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    opacity: 1 !important;
    margin: 0 !important;
    outline: 0 !important;
    vertical-align: middle !important;
}

header .search-container button.is-search-submit:hover,
.header .search-container button.is-search-submit:hover {
    background: var(--border-color) !important;
    color: var(--text-primary) !important;
}

header .search-container .is-search-icon,
.header .search-container .is-search-icon {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

header .search-container .is-search-icon svg,
.header .search-container .is-search-icon svg {
    fill: currentColor !important;
    width: 24px !important;
    height: 24px !important;
}

header .search-container .is-screen-reader-text,
.header .search-container .is-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

/* Search results dropdown */
div.is-ajax-search-result,
.is-ajax-search-result {
    height: auto !important;
    max-width: 100% !important;
    position: absolute !important;
    z-index: 999999 !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: 0 !important;
}

.is-ajax-search-result *,
.is-ajax-search-details * {
    box-sizing: border-box !important;
    outline: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: left !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    vertical-align: baseline !important;
}

.is-ajax-search-result .is-ajax-search-post {
    border-bottom: 1px solid var(--border-color) !important;
    transition: background 0.2s !important;
    padding: 12px !important;
}

.is-ajax-search-result .is-ajax-search-post:hover {
    background: var(--bg-tertiary) !important;
}

.is-ajax-search-result .is-ajax-search-post:last-child {
    border-bottom: none !important;
}

.is-ajax-search-result .is-search-sections {
    display: flex !important;
    gap: 12px !important;
}

.is-ajax-search-result .is-search-sections .left-section {
    flex-shrink: 0 !important;
}

.is-ajax-search-result .is-search-sections .thumbnail {
    width: 80px !important;
    height: 80px !important;
    overflow: hidden !important;
    position: relative !important;
    background: var(--bg-tertiary) !important;
}

.is-ajax-search-result .is-search-sections .thumbnail::after {
    content: '\F4F4' !important;
    font-family: 'bootstrap-icons' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 24px !important;
    color: white !important;
    background: rgba(168, 34, 6, 0.9) !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.is-ajax-search-result .is-search-sections .thumbnail img {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    float: none !important;
}

.is-ajax-search-result .is-search-sections .right-section {
    flex: 1 !important;
    min-width: 0 !important;
}

.is-ajax-search-result .is-title a {
    color: var(--text-primary) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.is-ajax-search-result .is-ajax-search-post:hover .is-title a {
    color: var(--stago-red) !important;
}

.is-ajax-search-result .is-ajax-result-description {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
}

.is-ajax-search-result .meta {
    display: flex !important;
    gap: 12px !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 4px !important;
}

.is-ajax-search-result .meta-date {
    display: inline !important;
}

.is-ajax-search-result .is-ajax-search-result-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background 0.2s !important;
}



/* Single Webinar */
/* ==========================================
   SINGLE WEBINAR - SIMPLIFIED LAYOUT
   ========================================== */

.single-webinar-page {
    background: #1a1a1a;
}

/* Simple Hero: Breadcrumb + Title */
.webinar-simple-hero {
    background: #1a1a1a;
    padding: 48px 24px;
}

.webinar-simple-hero .container {
    margin: 0 auto;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 10px;
}

.breadcrumb-current {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Yoast Breadcrumb Styling */
.page-breadcrumb {
    margin-bottom: 24px;
}

.page-breadcrumb .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb .breadcrumb a {
    color: var(--text-secondary);
}

.page-breadcrumb .breadcrumb a:hover {
    color: var(--stago-red);
}

.page-breadcrumb .breadcrumb span {
    color: var(--text-muted);
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin: 0;
    flex: 1;
}

.btn-save-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-save-simple:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.btn-save-simple.active i {
    color: var(--stago-red);
}

.btn-save-simple i {
    font-size: 16px;
    transition: color 0.2s;
}

/* Video Section */
.webinar-video-section {
    background: #1a1a1a;
    padding: 0;
}


.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: visible;
}

.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Remove aspect-ratio when upcoming-countdown is present */
.video-container:has(.upcoming-countdown-container) {
    aspect-ratio: unset;
    min-height: 500px;
    height: auto;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 12px;
}

.placeholder-content p {
    font-size: 14px;
}

/* Info Section */
.webinar-info-section {
    padding: 48px 24px;
    background: #1a1a1a;
}

.webinar-info-section .container {
    margin: 0 auto;
}

.info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-wrapper.has-sidebar {
    display: grid;
    grid-template-columns: 68% 30%;
    gap: 2%;
    align-items: start;
}

.info-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Meta Information */
.info-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.info-meta-badge.hemostasis {
    background: var(--stago-red);
}

.info-meta-badge.hematology {
    background: #62523d;
}

.info-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.info-meta-item i {
    color: var(--stago-red-light);
}

/* Speakers */
.info-speakers {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.speakers-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.speakers-label-row i {
    font-size: 24px;
    color: var(--stago-red-light);
}

.speakers-label {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.speakers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speaker-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.speaker-row:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--stago-red);
}

.speaker-name-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.speaker-name-col i {
    font-size: 28px;
    color: var(--stago-red-light);
    flex-shrink: 0;
}

.speaker-name {
    font-size: 17px;
    font-weight: 600;
    color: white;
}

.speaker-details-col {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-left: 40px;
}

.speaker-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.speaker-detail i {
    color: var(--stago-red-light);
    font-size: 13px;
}

/* Description */
.info-description {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section-title i {
    color: var(--stago-red-light);
    font-size: 22px;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.description-text p {
    margin-bottom: 16px;
}

.description-text ul,
.description-text ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.description-text li {
    margin-bottom: 8px;
}

/* Social Share */
.info-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #000;
    border-color: #000;
    color: white;
}

.share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.share-email:hover {
    background: var(--stago-red);
    border-color: var(--stago-red);
    color: white;
}

.share-copy:hover {
    background: #62523d;
    border-color: #62523d;
    color: white;
}

/* Sidebar CTA */
.info-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-cta-box {
    background: linear-gradient(135deg, var(--stago-red) 0%, var(--stago-red-dark) 100%);
    border: none;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.sidebar-cta-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: white;
}

.sidebar-cta-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.sidebar-cta-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.sidebar-cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.sidebar-cta-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.4;
}

.sidebar-cta-benefits li:last-child {
    margin-bottom: 0;
}

.sidebar-cta-benefits i {
    color: white;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-cta-actions .btn-watch {
    width: 100%;
    justify-content: center;
    background: white;
    color: var(--stago-red);
    border: none;
}

.sidebar-cta-actions .btn-watch:hover {
    background: var(--bg-tertiary);
    color: var(--stago-red-dark);
}

.btn-signin-alt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px;
    transition: color 0.2s;
}

.btn-signin-alt:hover {
    color: white;
}

/* Related Webinars Section */
.related-webinars-section {
    padding: 60px 24px;
    background: var(--bg-primary);
    border-top: 3px solid var(--stago-red);
}

.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

/* Fix webinar-title size in Related Webinars */
.related-webinars-section .webinar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Profile Page */
.profile-section {
    padding: 48px 24px;
}

.profile-wrapper {
    margin: 0 auto;
}

.profile-header {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-user-icon {
    width: 80px;
    height: 80px;
    background: rgba(168, 34, 6, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--stago-red);
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 15px;
    color: var(--text-muted);
}

.profile-form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 32px;
}

.card-header h2 {
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--stago-red);
}

.profile-form {
    margin-top: 24px;
}

.profile-message {
    margin-bottom: 20px;
}

.form-actions {
    margin-top: 32px;
}

.full-width {
    width: 100%;
}

/* Favorites Page */
.favorites-section,
.history-section,
.certificates-section {
    padding: 48px 24px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--stago-red);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Certificates empty state - unset inherited styles */
.certificates-section .empty-state i {
    font-size: unset;
    margin-bottom: unset;
}

/* Certificates Stats */
.certificates-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--stago-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--stago-red);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Certificates Filters */
.certificates-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-radius: 0;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--stago-red);
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.certificate-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    overflow: hidden;
}

.certificate-card:hover {
    border-color: var(--stago-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.certificate-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.certificate-image {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d4af37 0%, #c19a2e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.certificate-badge {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    border-radius: 3px;
}

.certificate-badge.hemostasis {
    background: var(--stago-red);
}

.certificate-badge.hematology {
    background: #62523d;
}

.certificate-body {
    padding: 20px;
    min-height: 220px;
}

.certificate-content-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.certificate-thumbnail {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.certificate-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-text {
    flex: 1;
    min-width: 0;
}

.certificate-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.certificate-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.certificate-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.certificate-meta .meta-item i {
    color: var(--stago-red);
    font-size: 14px;
}

.certificate-footer {
    padding: 16px 20px;
    background: var(--bg-tertiary);
    display: flex;
    gap: 10px;
}

.btn-download-certificate,
.btn-view-certificate {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-download-certificate {
    background: var(--stago-red);
    color: white;
}

.btn-download-certificate:hover {
    background: var(--stago-red-dark);
}

.btn-view-certificate {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-view-certificate:hover {
    background: var(--bg-primary);
    border-color: var(--stago-red);
    color: var(--stago-red);
}

/* Certificates Pagination */
.certificates-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--stago-red);
    color: var(--stago-red);
    background: rgba(168, 34, 6, 0.05);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pagination-info .separator {
    color: var(--border-color);
}

/* History Page */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.history-item:hover {
    border-color: var(--stago-red);
    box-shadow: var(--shadow-md);
}

.history-link {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    text-decoration: none;
    color: inherit;
}

.history-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.history-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.history-item:hover .history-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(168, 34, 6, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.history-item:hover .play-overlay {
    background: var(--stago-red);
    transform: translate(-50%, -50%) scale(1.1);
}

.history-content {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-header {
    margin-bottom: 12px;
}

.history-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.viewed-date {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.viewed-date i {
    color: var(--stago-red);
}

.history-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-meta i {
    color: var(--stago-red);
}

.category-badge-small {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Live Page */
.live-webinar-section {
    background: #1a1a1a;
}

.live-header {
    padding: 40px 0 24px;
    text-align: center;
}

.live-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--stago-red);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: pulse-live 2s infinite;
}

.live-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.live-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.live-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-meta i {
    color: var(--stago-red-light);
}

.live-video-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.live-description {
    padding: 32px 0;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.8;
}

.no-live-section {
    padding: 120px 24px;
    text-align: center;
}

.no-live-message i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 24px;
}

.no-live-message h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.no-live-message p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.no-live-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.no-live-actions .btn-watch {
    padding: 12px 28px;
    font-size: 15px;
}

.upcoming-webinars-section {
    padding: 60px 24px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.upcoming-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.upcoming-card:hover {
    border-color: var(--stago-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.upcoming-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.upcoming-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.upcoming-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.upcoming-card:hover .upcoming-thumbnail img {
    transform: scale(1.05);
}

.upcoming-content {
    padding: 20px;
}


.upcoming-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.upcoming-speaker {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upcoming-speaker i {
    color: var(--stago-red);
}

.upcoming-action {
    display: flex;
    justify-content: flex-end;
}

.btn-register-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stago-red);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}

.upcoming-card:hover .btn-register-link {
    gap: 12px;
}

/* Improved User Dropdown (compact) */
.user-dropdown {
    min-width: 220px;
}

.user-dropdown-header {
    display: none;
}

.user-dropdown-menu li a {
    padding: 10px 16px;
    font-size: 13px;
}

.user-dropdown-menu li a i {
    font-size: 14px;
}

/* Page Footer Edit Link */
.post-edit-link {
    color: var(--stago-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.post-edit-link:hover {
    color: var(--stago-red-dark);
    text-decoration: underline;
}

.post-edit-link i {
    margin-right: 4px;
}

/* Profile Form Styling */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row .form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-row select,
.form-group select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

label .required {
    color: var(--stago-red);
    font-weight: bold;
}

/* History Page Viewed Badge */
.viewed-badge-wrapper {
    margin-bottom: 6px;
}

.viewed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(168, 34, 6, 0.1);
    color: var(--stago-red);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}

.viewed-badge i {
    color: var(--stago-red);
}

/* ==========================================
   LIVE PAGE
   ========================================== */

.live-page {
    background: #000;
}

.live-page.no-live {
    background: #1a1a1a;
}

/* Live Hero Section */
.live-hero-section {
    background: #000;
}

.container-fluid {
    max-width: 100%;
    padding: 0;
}

.live-hero-content {
    position: relative;
}

/* Live Status Bar */
.live-status-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-bottom: 2px solid var(--stago-red);
    padding: 16px 0;
}

.live-status-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--stago-red);
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.live-indicator i {
    font-size: 12px;
    color: white;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-viewers {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.live-viewers i {
    color: var(--stago-red-light);
    font-size: 18px;
}

.viewers-count {
    font-weight: 700;
    color: var(--stago-red-light);
}

/* Live Video Container */
.live-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    max-height: 85vh;
}

.live-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.live-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.live-video-locked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.locked-overlay {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

.locked-overlay i {
    font-size: 72px;
    color: var(--stago-red);
    margin-bottom: 24px;
}

.locked-overlay h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.locked-overlay p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Live Info Section */
.live-info-section {
    background: #1a1a1a;
    padding: 48px 24px;
}

.live-info-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
}

.live-main-info {
    color: white;
}

.live-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: white;
}

.live-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.meta-badge.hemostasis {
    background: var(--stago-red);
}

.meta-badge.hematology {
    background: #62523d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.meta-item i {
    color: var(--stago-red-light);
}

.live-speakers {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.speakers-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.speakers-heading i {
    color: var(--stago-red-light);
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.speaker-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.speaker-badge:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--stago-red);
}

.speaker-badge i {
    font-size: 32px;
    color: var(--stago-red-light);
    flex-shrink: 0;
}

.speaker-badge .speaker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speaker-badge .speaker-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.speaker-badge .speaker-title {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.live-description {
    color: white;
}

.live-description h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.live-description .description-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

/* Live Sidebar */
.live-sidebar {
    position: sticky;
    top: 24px;
}

.live-chat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    height: 500px;
}

.chat-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.chat-title i {
    color: var(--stago-red-light);
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 60px);
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.chat-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* No Live Section */
.no-live-section {
    background: #1a1a1a;
    padding: 120px 24px;
}

.no-live-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.no-live-content > i {
    font-size: 80px;
    color: var(--stago-red);
    margin-bottom: 24px;
    display: inline-block;
}

.no-live-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.no-live-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.no-live-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-live-actions .btn-watch {
    background: var(--stago-red);
    color: white;
    border: none;
}

.no-live-actions .btn-watch i {
    color: white;
    font-size: 18px;
}

.no-live-actions .btn-watch:hover {
    background: var(--stago-red-dark);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline i {
    color: white;
    font-size: 18px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Upcoming Next Section */
.upcoming-next-section {
    background: var(--bg-primary);
    padding: 60px 24px;
    border-top: 3px solid var(--stago-red);
}

.upcoming-next-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.upcoming-next-section .section-title i {
    color: var(--stago-red);
    font-size: 28px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ==========================================
   UPCOMING PAGE
   ========================================== */

.upcoming-page {
    background: #000;
}

.upcoming-page.no-upcoming {
    background: #1a1a1a;
}

/* Upcoming Hero Slideshow */
.upcoming-hero-slideshow {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.upcoming-hero-slideshow .slideshow-container {
    position: relative;
    height: 100%;
}

.upcoming-hero-slideshow .slideshow-track {
    height: 100%;
}

.upcoming-hero-slideshow .upcoming-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    background-size: cover;
    background-position: center;
}

.upcoming-hero-slideshow .upcoming-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.upcoming-hero-slideshow .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 1;
}

.upcoming-hero-slideshow .slide-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.upcoming-hero-slideshow .slide-content {
    max-width: 700px;
    padding: 60px 0;
}

.upcoming-hero-slideshow .slide-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.upcoming-hero-slideshow .slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.upcoming-hero-slideshow .slide-badge.category.hemostasis {
    background: var(--stago-red);
}

.upcoming-hero-slideshow .slide-badge.category.hematology {
    background: #62523d;
}

.upcoming-hero-slideshow .slide-badge.upcoming {
    background: #e65100;
}

.upcoming-hero-slideshow .slide-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.upcoming-hero-slideshow .slide-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.upcoming-hero-slideshow .slide-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.upcoming-hero-slideshow .slide-meta .meta-item i {
    color: var(--stago-red-light);
    font-size: 18px;
}

.upcoming-hero-slideshow .slide-meta .meta-item.highlight {
    background: rgba(168,34,6,0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--stago-red-light);
}

.upcoming-hero-slideshow .slide-speakers {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

.upcoming-hero-slideshow .speakers-label {
    font-weight: 600;
}

.upcoming-hero-slideshow .speaker-name {
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.upcoming-hero-slideshow .slide-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.upcoming-hero-slideshow .slide-actions {
    display: flex;
    gap: 16px;
}

.upcoming-hero-slideshow .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--stago-red);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.upcoming-hero-slideshow .btn-primary:hover {
    background: var(--stago-red-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168,34,6,0.3);
}

.upcoming-hero-slideshow .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.upcoming-hero-slideshow .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Slideshow Navigation */
.upcoming-hero-slideshow .slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.upcoming-hero-slideshow .slideshow-nav:hover {
    background: var(--stago-red);
    border-color: var(--stago-red);
    transform: translateY(-50%) scale(1.1);
}

.upcoming-hero-slideshow .slideshow-nav.prev {
    left: 40px;
}

.upcoming-hero-slideshow .slideshow-nav.next {
    right: 40px;
}

/* Slideshow Indicators */
.upcoming-hero-slideshow .slideshow-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.upcoming-hero-slideshow .slideshow-indicators .indicator {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.upcoming-hero-slideshow .slideshow-indicators .indicator:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.upcoming-hero-slideshow .slideshow-indicators .indicator.active {
    background: var(--stago-red);
    width: 32px;
    border-radius: 6px;
}

/* All Upcoming Section */
/* No Upcoming Section */
.no-upcoming-section {
    background: #1a1a1a;
    padding: 120px 24px;
}

.no-upcoming-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.no-upcoming-content > i {
    font-size: 80px;
    color: var(--stago-red);
    margin-bottom: 24px;
}

.no-upcoming-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.no-upcoming-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.no-upcoming-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.no-upcoming-actions .btn-watch i,
.no-upcoming-actions .btn-outline i {
    color: inherit;
    font-size: 16px;
}

/* Upcoming Card Styles */
.upcoming-card .card-play-btn i {
    content: "\f1f3";
}


/* Live Page Specific Styles */
.live-page .live-hero-section {
    background: #1a1a1a;
    padding: 24px 24px 32px;
}

.live-page .live-hero-section .container {
    margin: 0 auto;
}

/* Hide live-now-banner on live page */
.page-template-tpl-live .live-now-banner {
    display: none;
}

/* Live Page Modifications */
.live-page .live-hero-section .live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--stago-red);
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.live-page .live-hero-section .live-indicator i {
    font-size: 10px;
}

/* Remove margin-bottom from last p in description */
.description-text p:last-child {
    margin-bottom: 0;
}

/* Upcoming Next Section - Inline Header */
.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-title-inline i {
    color: var(--stago-red);
    font-size: 28px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--stago-red);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-view-all:hover {
    gap: 12px;
}

/* Prefix upcoming card styles to upcoming-next-section */
.upcoming-next-section .upcoming-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-next-section .upcoming-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.upcoming-next-section .upcoming-date i {
    color: var(--stago-red);
    font-size: 14px;
}

.upcoming-next-section .upcoming-countdown {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}

/* Upcoming Page - Hero & List Styles */

/* ==========================================
   UPCOMING PAGE - HEADER & LIST
   ========================================== */

/* Header Section */
.page-header-upcoming {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title-upcoming {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.page-title-upcoming i {
    color: var(--stago-red);
    font-size: 44px;
}

.page-header-upcoming .page-description {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* All Upcoming Section */
.all-upcoming-section {
    background: var(--bg-primary);
    padding: 60px 24px;
}

/* Upcoming List Format */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upcoming-list-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    overflow: hidden;
}

.upcoming-list-item .webinar-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.upcoming-list-item:hover {
    border-color: var(--stago-red);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.upcoming-item-thumbnail {
    position: relative;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.upcoming-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.upcoming-list-item:hover .upcoming-item-thumbnail img {
    transform: scale(1.05);
}

.upcoming-item-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    z-index: 2;
}

.upcoming-item-category.hemostasis {
    background: var(--stago-red);
}

.upcoming-item-category.hematology {
    background: #62523d;
}

/* Favorite Button on Thumbnail */
.upcoming-item-thumbnail .webinar-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.upcoming-item-thumbnail .webinar-favorite:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.upcoming-item-thumbnail .webinar-favorite:disabled:hover {
    background: rgba(255,255,255,0.95);
    color: var(--text-muted);
    transform: none;
}

/* Hover Icon */
.upcoming-list-item:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.upcoming-item-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upcoming-item-date-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-item-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.upcoming-item-date i {
    color: var(--stago-red);
    font-size: 16px;
}

.upcoming-item-countdown {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
}

.upcoming-item-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.2s;
}

.upcoming-list-item:hover .upcoming-item-title {
    color: var(--stago-red);
}

.upcoming-item-speaker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upcoming-item-speaker > i {
    color: var(--stago-red);
    font-size: 16px;
}

.upcoming-item-speaker > span {
    font-weight: 500;
}

.upcoming-item-speaker .speaker-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.upcoming-item-speaker .speaker-detail i {
    font-size: 13px;
}

/* Speaker Popover in Slide */
.speaker-info-trigger-slide {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.speaker-info-trigger-slide > i {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    cursor: help;
    transition: color 0.2s;
}

.speaker-info-trigger-slide:hover > i {
    color: white;
}

.speaker-popover-slide {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    padding: 12px 16px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-info-trigger-slide:hover .speaker-popover-slide {
    opacity: 1;
    visibility: visible;
}

.speaker-popover-slide::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.95);
}

.speaker-popover-slide .popover-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: white;
}

.speaker-popover-slide .popover-item i {
    color: var(--stago-red);
    font-size: 14px;
}


/* Favorite Button Disabled State */
.webinar-favorite:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.webinar-favorite:disabled:hover {
    background: rgba(255,255,255,0.95);
    color: var(--text-muted);
    transform: none;
}


/* Upcoming Indicator Badge (Single Webinar) */
.upcoming-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e65100;
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.upcoming-indicator i {
    font-size: 14px;
}


/* Single Webinar - Upcoming Countdown (Homepage Style) */
.upcoming-countdown-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.upcoming-countdown-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 1;
}

.upcoming-countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
}

.upcoming-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.upcoming-date-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.countdown-container-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.countdown-container-single .countdown-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-container-single .countdown {
    display: flex;
    gap: 6px;
}

.upcoming-register-action {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-register-single {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--stago-red);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-register-single:hover {
    background: var(--bg-tertiary);
    color: var(--stago-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-register-single i {
    font-size: 18px;
}





/* Ivory Search - No Results */
.is-ajax-search-result .is-ajax-search-no-result {
    padding: 10px !important;
}

.is-ajax-search-details, 
.is-ajax-search-details *, 
.is-ajax-search-result, 
.is-ajax-search-result * {
    box-sizing: content-box !important;
    padding: 0 !important;
    outline: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: left !important;
    letter-spacing: normal !important;
    font-size: 13px !important;
    line-height: 18px !important;
    vertical-align: baseline !important;
}

.is-ajax-search-result *, 
.is-ajax-search-details * {
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}


/* Language Selector in Mobile Menu */
.nav-lang-selector {
    display: none;
}


/* Live Chat */
.live-video-chat-wrapper {
    display: block;
    max-width: 100%;
}

.live-video-chat-wrapper .video-container {
    max-width: 1000px;
    margin: 0 auto 32px;
}

.live-video-container {
    margin-bottom: 32px;
}

.live-chat-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    max-width: 1000px;
    margin: 0 auto;
}

.chat-header {
    padding: 0;
    margin-bottom: 20px;
}

.chat-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header h3 i {
    color: var(--stago-red);
    font-size: 20px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--stago-red);
}

.chat-timestamp {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-message-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.btn-edit-message,
.btn-delete-message {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-message:hover {
    color: var(--stago-red);
    background: rgba(168, 34, 6, 0.1);
}

.btn-delete-message:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.chat-message-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    padding-left: 0;
}

.chat-input-wrapper {
    padding: 0;
    border: none;
    background: transparent;
}

.chat-input-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s;
    border-radius: 6px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--stago-red);
    box-shadow: 0 0 0 4px rgba(168, 34, 6, 0.1);
}

.chat-input::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-send-message {
    background: var(--stago-red);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.btn-send-message:hover {
    background: var(--stago-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.3);
}

.btn-send-message i {
    font-size: 16px;
}

/* Question Status Message */
#questionStatus {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

#questionStatus.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#questionStatus.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#questionStatus i {
    font-size: 18px;
}

/* Cancel Edit Button */
.btn-cancel-edit {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel-edit:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-cancel-edit i {
    font-size: 16px;
}

/* Chat Input Form - Compact Layout */
.chat-input-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.chat-input-form .chat-input {
    flex: 1;
}

.chat-input-form button {
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.chat-empty-state i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 12px;
}

.chat-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Chat Loading State */
.chat-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chat-loading i {
    font-size: 32px;
    color: var(--stago-red);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-loading p {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary);
}

/* Scrollbar styling for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--stago-red);
}

/* Add to Calendar */
.add-to-calendar-wrapper {
    position: relative;
    display: inline-block;
}

.btn-add-calendar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--stago-red);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 0;
}

.btn-add-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.2);
}

.btn-add-calendar i {
    font-size: 18px;
}

.btn-add-calendar .bi-chevron-down {
    font-size: 12px;
    margin-left: 4px;
}

.calendar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 9999;
}

.calendar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calendar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: all 0.2s;
}

.calendar-option:last-child {
    border-bottom: none;
}

.calendar-option:hover {
    background: var(--bg-tertiary);
    color: var(--stago-red);
    padding-left: 20px;
}

.calendar-option i {
    font-size: 18px;
    color: var(--stago-red);
}

.calendar-option:hover i {
    transform: scale(1.1);
}

/* Login Required Section */
.login-required-section {
    padding: 80px 24px;
    background: #1a1a1a;
}

.login-required-box {
    max-width: 600px;
    margin: 0 auto;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.login-required-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(168, 34, 6, 0.2) 0%, rgba(168, 34, 6, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-required-icon i {
    font-size: 36px;
    color: var(--stago-red);
}

.login-required-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.login-required-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

.login-required-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-signin-required,
.btn-register-required {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-signin-required {
    background: white;
    color: var(--stago-red);
}

.btn-signin-required:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.2);
}

.btn-register-required {
    background: var(--accent-gradient);
    color: white;
}

.btn-register-required:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 34, 6, 0.3);
}

.btn-signin-required i,
.btn-register-required i {
    font-size: 16px;
}


/* Certificates Responsive */


/* ============================================================
   Nav-bar Language Switcher — Toggle/Pill Style
   ============================================================ */

.nav-lang-switcher {
    display: flex;
    align-items: center;
}

/* Pill container */
.nav-lang-switcher-inner {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-tertiary);
    padding: 3px;
    gap: 2px;
}

.nav-lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
    background: transparent;
}

.nav-lang-link:hover {
    color: var(--text-primary);
    background: rgba(168, 34, 6, 0.06);
}

.nav-lang-link.active {
    background: var(--stago-red);
    color: #fff;
}

.nav-lang-link .lang-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav-lang-link:hover .lang-flag,
.nav-lang-link.active .lang-flag {
    opacity: 1;
}

/* Hide the old header-level lang-switcher */
.lang-switcher { display: none !important; }

/* ============================================================
   Auth Pages — Login / Register / Forgot / Reset
   ============================================================ */

.auth-section {
    padding: 48px 0 72px;
    min-height: calc(100vh - 200px);
}

.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.auth-wrapper--wide {
    align-items: stretch;
}

.auth-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 40px 40px 32px;
    width: 100%;
    max-width: 800px;
}

.auth-box--wide {
    max-width: none;
}

.auth-box-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.auth-box-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-box--danger {
    border-color: rgba(168, 34, 6, 0.25);
    background: #fdf8f7;
}

.auth-box--danger .auth-box-header h2 {
    color: var(--stago-red);
}

/* Profile page header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.profile-user-icon {
    font-size: 52px;
    color: var(--stago-red);
    line-height: 1;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.profile-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Danger / Cancel buttons */
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--stago-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #8a1b05;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Modal */
.stago-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stago-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.stago-modal-dialog {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    z-index: 1;
}

.stago-modal-dialog h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--stago-red);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stago-modal-dialog p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}

.stago-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Auth header */
.auth-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.auth-header h1 i {
    color: var(--stago-red);
    margin-right: 6px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Form fields */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* Group-level title labels (Language Preference, Communication, etc.) */
.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-form .form-label.form-label--section {
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s, background 0.25s;
    outline: none;
    font-family: inherit;
}

.auth-form .form-control:focus {
    outline: 0;
    border-color: var(--stago-red);
    background: #faf8f5;
    box-shadow: 0 0 0 0.25rem rgba(168, 34, 6, 0.15);
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.link-forgot {
    font-size: 13px;
    color: var(--stago-red);
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-forgot:hover {
    opacity: 0.75;
    color: var(--stago-red);
}

/* Password show/hide toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-toggle-password:hover { color: var(--stago-red); }

/* CAPTCHA */
.captcha-group {
    margin: 4px 0 18px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.captcha-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.captcha-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--stago-red);
    min-width: 80px;
    letter-spacing: 1px;
}

.captcha-input {
    width: 120px !important;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff !important;
}

.btn-captcha-refresh {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    font-size: 17px;
    flex-shrink: 0;
}

.btn-captcha-refresh:hover {
    color: var(--stago-red);
    transform: rotate(45deg);
}

/* Submit button */
.auth-form .btn-submit {
    width: 100%;
    padding: 13px 24px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.auth-form .btn-submit:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auto-width variant used in success states and outside forms */
.btn-submit--auto,
.auth-form .btn-submit--auto {
    display: inline-flex;
    width: auto;
    margin-top: 20px;
    text-decoration: none;
}

/* Inline messages */
.auth-message {
    padding: 10px 14px;
    font-size: 14px;
    margin: 10px 0 0;
    display: none;
}

.auth-message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #059669;
    display: block;
}

.auth-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #dc2626;
    display: block;
}

/* Banner notices (activation success/error at top) */
.auth-notice {
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-notice i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-notice--success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #059669;
}

.auth-notice--error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

/* Post-submission success state */
.auth-success-state {
    text-align: center;
    padding: 32px 16px;
}

.auth-success-icon {
    font-size: 56px;
    color: var(--stago-red);
    margin-bottom: 16px;
    line-height: 1;
}

.auth-success-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.auth-success-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 440px;
}

/* Resend link */
.auth-resend {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--stago-red);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}

/* Footer link (Already have an account?) */
.auth-footer-link {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.auth-footer-link a {
    color: var(--stago-red);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-footer-link a:hover { text-decoration: underline; }

/* Checkbox styles */
.auth-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-form .checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--stago-red);
}

.auth-form .checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* RGPD Privacy Notice */
.reg-privacy {
    margin-top: 28px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--stago-red);
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.reg-privacy p { margin: 0 0 10px 0; }
.reg-privacy p:last-child { margin-bottom: 0; }
.reg-privacy ol { margin: 4px 0 10px 20px; padding: 0; }
.reg-privacy ol li { margin-bottom: 3px; }
.reg-privacy a { color: var(--stago-red); text-decoration: none; }
.reg-privacy a:hover { text-decoration: underline; }
