/**
 * Verbosec Events Showcase - Modern Frontend Styles
 * Pokemon-card inspired design with tabs, filters, and calendar
 * Author: Verbosec
 * Version: 2.0.0
 */

/* ==================== BASE STYLES ==================== */
.verbosec-events-modern-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==================== COLOR VARIABLES ==================== */
:root {
    --primary-color: #1a253e;
    --secondary-color: #ed2024;
    --text-primary: #1a253e;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

/* ==================== TABS SECTION ==================== */
.verbosec-tabs-wrapper {
    margin-bottom: 40px;
}

.verbosec-tabs {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
}

.verbosec-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--border-color);
    /* Border for inactive */
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.verbosec-tab.active {
    background: var(--secondary-color);
    /* Red for active */
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(237, 32, 36, 0.4);
    font-weight: 700;
}

.verbosec-tab:hover:not(.active) {
    background: var(--bg-light);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.verbosec-tab:hover:not(.active) {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.tab-icon,
.tab-text {
    position: relative;
    z-index: 1;
}

.tab-icon {
    font-size: 1.3rem;
}

/* ==================== MAIN CONTENT LAYOUT ==================== */
.verbosec-main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ==================== FILTERS ==================== */
.verbosec-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.verbosec-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verbosec-filter:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.verbosec-filter.active {
    background: var(--secondary-color);
    /* RED for high visibility */
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(237, 32, 36, 0.4);
    font-weight: 700;
    transform: translateY(-1px);
}

.filter-icon {
    font-size: 1.1rem;
}

/* ==================== TAB CONTENT ==================== */
.verbosec-tab-content {
    display: none;
}

.verbosec-tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== EVENTS GRID ==================== */
.verbosec-events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ==================== MODERN EVENT CARD (Clean Split Design) ==================== */
.verbosec-event-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.verbosec-event-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

/* Card Image Section - Top Half */
.card-image-section {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.card-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.badge-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.badge-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.card-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Card Details Section - Bottom Half */
.card-details-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--secondary-color);
}

/* Info Grid */
.card-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    color: #64748b;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* View Details Button */
.card-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.card-view-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 32, 36, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.button-icon {
    transition: transform 0.3s ease;
}

.card-view-button:hover .button-icon {
    transform: translateX(4px);
}

/* ==================== NO EVENTS MESSAGE ==================== */
.verbosec-no-events-modern {
    text-align: center;
    padding: 80px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-events-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.verbosec-no-events-modern h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.verbosec-no-events-modern p {
    font-size: 1.1rem;
    color: #64748b;
}

/* ==================== CALENDAR SECTION ==================== */
.verbosec-calendar-section {
    position: sticky;
    top: 20px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.verbosec-calendar-header {
    margin-bottom: 24px;
}

.verbosec-calendar-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 16px 0;
    font-weight: 700;
}

/* Toggle Switch */
.verbosec-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.verbosec-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #e2e8f0;
    border-radius: 13px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.verbosec-toggle input:checked+.toggle-slider {
    background: var(--primary-color);
}

.verbosec-toggle input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

/* Calendar Grid */
.verbosec-calendar {
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-nav-btn {
    background: #f8fafc;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #e2e8f0;
}

.calendar-month-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.other-month {
    color: #cbd5e1;
}

.calendar-day.today {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: var(--white);
}

.calendar-day.has-live-event::after {
    background: var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Calendar Events List */
.verbosec-calendar-events-list {
    max-height: 300px;
    overflow-y: auto;
}

.calendar-event-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid var(--primary-color);
}

.calendar-event-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.calendar-event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.calendar-event-time {
    font-size: 0.8rem;
    color: #64748b;
}

.calendar-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .verbosec-main-content {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }

    .verbosec-events-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .verbosec-main-content {
        grid-template-columns: 1fr;
    }

    .verbosec-calendar-section {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .verbosec-events-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .verbosec-events-modern-container {
        padding: 20px 15px;
    }

    .verbosec-tabs {
        max-width: 100%;
    }

    .verbosec-tab {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .tab-icon {
        font-size: 1.1rem;
    }

    .verbosec-filters {
        padding: 16px;
    }

    .verbosec-filter {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .verbosec-events-grid-modern {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .verbosec-tab {
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
    }

    .tab-text {
        font-size: 0.9rem;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-content-wrapper {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
        min-height: auto;
    }

    .card-excerpt {
        min-height: auto;
    }
}

/* ==================== LOADING ANIMATION ==================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.verbosec-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ==================== SINGLE EVENT PAGE ==================== */

.verbosec-single-event-wrapper {
    background-color: var(--white);
    padding-bottom: 60px;
}

/* Hero Section */
.verbosec-event-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    padding: 0 0 60px;
    margin-bottom: 40px;
}

.verbosec-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 37, 62, 0.4) 0%, rgba(26, 37, 62, 0.9) 100%);
    z-index: 1;
}

.verbosec-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.verbosec-back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.verbosec-back-btn:hover {
    opacity: 1;
    text-decoration: none;
}

.verbosec-hero-type {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.verbosec-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.2;
}

.verbosec-hero-meta {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Layout */
.verbosec-event-body-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.verbosec-event-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Sections */
.verbosec-section {
    margin-bottom: 60px;
}

.verbosec-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.verbosec-event-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Speakers Grid */
.verbosec-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.verbosec-speaker-card {
    text-align: center;
}

.speaker-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    margin: 0 auto 16px;
    border: 3px solid var(--border-color);
}

.speaker-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-primary);
}

.speaker-title {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Schedule Timeline */
.verbosec-timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.timeline-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Sidebar / Action Card */
.verbosec-sidebar-column {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.verbosec-action-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.action-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.verbosec-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.verbosec-btn-block {
    width: 100%;
    display: block;
}

.verbosec-btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.verbosec-btn-primary:hover {
    background: #2c3e50;
    /* slightly lighter for hover */
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 37, 62, 0.3);
}

.verbosec-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.verbosec-btn-outline:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.verbosec-btn.disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.action-details-list {
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.action-share {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.share-icon {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.share-icon:hover {
    text-decoration: underline;
}


/* Responsive - Single Event */
@media (max-width: 900px) {
    .verbosec-event-grid {
        grid-template-columns: 1fr;
    }

    .verbosec-sidebar-column {
        position: static;
        margin-top: 40px;
    }

    .verbosec-event-hero {
        height: 300px;
    }

    .verbosec-hero-title {
        font-size: 2rem;
    }
}

/* ==================== SINGLE EVENT TWEAKS (User Feedback) ==================== */

/* Force Title White */
.verbosec-hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Move Back Button Up */
.verbosec-back-btn {
    position: absolute;
    top: 30px;
    left: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.verbosec-back-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Fix Registration Card Layout */
.verbosec-action-card h3.action-card-title {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.action-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

/* Fix Action Price Contrast */
.action-price {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.price-amount {
    font-weight: 800;
}


/* ==================== WIDE LAYOUT ADJUSTMENTS ==================== */

/* Details Page Container - Standard Width */
.verbosec-event-body-container {
    max-width: 1400px !important;
    width: 95%;
}

/* Events List Container - Standard Width (Reverted from 1800px) */
.verbosec-events-modern-container {
    max-width: 1400px !important;
    width: 95%;
    padding: 40px 20px;
}

/* Event Grid - Standard Card Size (Reverted from 350px) */
.verbosec-events-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 28px;
}

/* Force Active States to be RED (Secondary Color) */
.verbosec-tab.active,
.verbosec-filter.active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

/* Related Events Section (New) */
.verbosec-related-events-section {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.related-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}


/* Ensure full height on large screens */
.verbosec-single-event-wrapper {
    min-height: 85vh;
}

/* Adjust Related Events Title Spacing */
.verbosec-related-events-section h2 {
    margin-bottom: 40px;
}

/* Responsive Font Sizes for Very Large Screens */
@media (min-width: 1920px) {
    .verbosec-hero-title {
        font-size: 3.5rem;
    }

    .card-title {
        font-size: 1.4rem;
    }
}
/* ==================== BACK BUTTON (TOP) ADJUSTMENTS ==================== */

.verbosec-back-btn-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.verbosec-back-btn-top:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(26, 37, 62, 0.2);
    border-color: var(--primary-color);
    text-decoration: none;
}


/* ==================== LAYOUT REFINEMENTS (Step 357) ==================== */

/* Single Event Grid - Wider Gap, Fixed Sidebar Width */
.verbosec-event-grid {
    display: grid !important;
    grid-template-columns: 1fr 350px !important; /* Fixed sidebar width */
    gap: 80px !important; /* Wider gap pushes sidebar right */
    align-items: start;
}

/* Sidebar Column */
.verbosec-sidebar-column {
    width: 100%;
    max-width: 350px;
    margin-left: auto; /* Ensure it stays to the right */
}

/* Speakers Grid - Better Density */
.verbosec-speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 30px !important;
}

/* Timeline Left Alignment Fix */
.verbosec-timeline {
    margin-left: 0 !important;
    padding-left: 20px !important;
}

/* Responsive Reset for Mobile */
@media (max-width: 991px) {
    .verbosec-event-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .verbosec-sidebar-column {
        max-width: 100%;
    }
}


/* ==================== STORY-FIRST LAYOUT (Step 384) ==================== */

/* header */
.verbosec-story-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-main-info {
    margin-top: 20px;
}

.story-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Grid Layout */
.verbosec-story-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* Sidebar Facts Panel */
.verbosec-facts-panel {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 40px;
}

.facts-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #cbd5e1;
}

.facts-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Fact Rows with SVGs */
.fact-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.fact-icon {
    color: var(--secondary-color);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.fact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fact-price-row {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 30px 0 20px;
    text-align: center;
}

/* Mobile Sticky CTA */
.mobile-cta-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.mobile-cta-info {
    display: flex;
    flex-direction: column;
}

.mobile-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.mobile-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Hide/Show */
@media (min-width: 901px) {
    .mobile-cta-sticky { display: none; }
}

@media (max-width: 900px) {
    .verbosec-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .verbosec-facts-panel {
        position: static;
        margin-top: 40px;
    }
    
    .story-title {
        font-size: 2rem;
    }
    
    .verbosec-single-event-wrapper {
        padding-bottom: 100px; /* Space for sticky bar */
    }
}


/* ==================== POLISH & MICRO-INTERACTIONS (Step 403) ==================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Timeline Hover Effect */
.timeline-item {
    transition: transform 0.2s ease;
}

.timeline-item:hover {
    transform: translateX(8px);
}

/* Speaker Image Subtle Zoom */
.speaker-img {
    transition: transform 0.3s ease;
}

.verbosec-speaker-card:hover .speaker-img {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}


/* ==================== FULL WIDTH LAYOUT UNLOCK (Step 418) ==================== */

/* Unlock the container width */
.verbosec-event-body-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 40px !important; /* Minimal padding for edges */
}

/* Allow grid to stretch */
.verbosec-story-grid {
    max-width: 1800px; /* Cap it only at very wide 4k screens for readability */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Ensure Back Button Top area is full width */
.verbosec-story-header {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* Full Width Schedule and Related Events */
.story-full-width, 
.verbosec-related-events-section {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Padding Adjustments */
@media (max-width: 768px) {
    .verbosec-event-body-container {
        padding: 0 20px !important;
    }
}

/* ==================== GALLERY STYLES ==================== */

/* Desktop: 4 columns, ~200px each */
.verbosec-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 900px;
}

/* Tablet: 3 columns, ~180px each */
@media (max-width: 1200px) {
    .verbosec-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 650px;
    }
}

/* Small devices: 2 columns, ~150px each */
@media (max-width: 768px) {
    .verbosec-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
    }
}

/* Mobile: 1 column, full width */
@media (max-width: 480px) {
    .verbosec-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Keep thumbnail aspect ratio */
.gallery-image-wrapper {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-image-wrapper:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Thumbnail image fills the wrapper */
.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-thumbnail {
    transform: scale(1.05);
}

/* Expand button styling */
.gallery-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.gallery-image-wrapper:hover .gallery-expand {
    opacity: 1;
}

.gallery-expand:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ==================== LIGHTBOX OVERLAY ==================== */

/* Ensure lightbox overlay is visible and on top */
.gallery-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 200ms ease-in-out !important;
}

.gallery-lightbox-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Lightbox container - center everything */
.gallery-lightbox-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Main image - scale appropriately */
.gallery-lightbox-image {
    max-width: 90% !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    animation: fadeInImage 300ms ease-in-out !important;
    cursor: zoom-out !important;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button - always visible */
.gallery-lightbox-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    font-size: 32px !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 200ms ease-in-out !important;
    z-index: 1000001 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.gallery-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

/* Navigation arrows */
.gallery-nav-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 200ms ease-in-out !important;
    z-index: 1000001 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.gallery-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.gallery-nav-button.prev {
    left: 20px !important;
}

.gallery-nav-button.next {
    right: 20px !important;
}

/* Image counter */
.gallery-image-counter {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    z-index: 1000001 !important;
}

/* ==================== PAGINATION STYLES ==================== */
.verbosec-pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.verbosec-pagination a,
.verbosec-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    margin: 3px 2px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
    background: var(--white);
}

.verbosec-pagination a:hover {
    background: var(--bg-light);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(237, 32, 36, 0.2);
}

.verbosec-pagination span.page-numbers.current {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(237, 32, 36, 0.3);
    min-width: 36px;
}

.verbosec-pagination a.prev,
.verbosec-pagination a.next {
    font-weight: 700;
    padding: 0 12px;
    font-size: 12px;
    min-width: auto;
    white-space: nowrap;
}

.verbosec-pagination a.prev::before,
.verbosec-pagination a.next::after {
    font-size: 14px;
    font-weight: 800;
}

/* Mobile/Tablet Responsive */
@media (max-width: 768px) {
    .verbosec-pagination {
        gap: 4px;
        margin-top: 30px;
    }
    
    .verbosec-pagination a,
    .verbosec-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
        margin: 2px 1px;
        border-radius: 5px;
    }
    
    .verbosec-pagination a.prev,
    .verbosec-pagination a.next {
        padding: 0 10px;
        font-size: 11px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .verbosec-pagination {
        gap: 3px;
        margin-top: 25px;
    }
    
    .verbosec-pagination a,
    .verbosec-pagination span {
        min-width: 28px;
        height: 28px;
        padding: 0 4px;
        font-size: 11px;
        margin: 2px 1px;
    }
    
    .verbosec-pagination a.prev,
    .verbosec-pagination a.next {
        padding: 0 8px;
        font-size: 10px;
    }
    
    /* Hide intermediate page numbers on mobile - show only prev/next and current */
    .verbosec-pagination span:not(.page-numbers.current):not(.prev):not(.next) {
        display: none;
    }
}

/* Hide old lightbox if it exists */
.gallery-lightbox {
    display: none !important;
}

/* Ensure body doesn't scroll behind lightbox */
body.lightbox-active {
    overflow: hidden !important;
}

/* ==================== GALLERY VIDEO STYLES ==================== */

.verbosec-gallery-video {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 37, 62, 0.05) 0%, rgba(237, 32, 36, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(237, 32, 36, 0.2);
}

.gallery-video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.gallery-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ==================== RESPONSIVE GALLERY ==================== */

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .gallery-lightbox-image {
        max-width: 95% !important;
        max-height: 85vh !important;
    }

    .gallery-lightbox-close {
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
        top: 15px !important;
        right: 15px !important;
    }

    .gallery-nav-button {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .gallery-nav-button.prev {
        left: 10px !important;
    }

    .gallery-nav-button.next {
        right: 10px !important;
    }

    .gallery-image-counter {
        bottom: 20px !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    .gallery-expand {
        top: 8px;
        right: 8px;
        padding: 6px;
    }
    
    .gallery-expand svg {
        width: 18px;
        height: 18px;
    }
    
    .verbosec-gallery-video {
        padding: 20px;
    }
}

/* =====================================================================
   PRIVATE EVENT ACCESS PAGE — NAVY THEME
   ===================================================================== */

/* Main wrapper - override purple gradient to navy */
div[style*="linear-gradient(135deg, #667eea"] {
    background: linear-gradient(135deg, #1a253e 0%, #152238 100%) !important;
    padding: 20px !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Container - expand width and improve spacing */
div[style*="max-width: 400px"] {
    max-width: 520px !important;
    padding: 60px 40px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(26, 37, 62, 0.1) !important;
    box-shadow: 0 20px 60px rgba(26, 37, 62, 0.2) !important;
    animation: privateEventSlideUp 0.5s ease-out !important;
}

@keyframes privateEventSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title styling */
div[style*="max-width: 400px"] h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a253e !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.02em !important;
}

/* Subtitle */
div[style*="max-width: 400px"] p {
    font-size: 16px !important;
    color: #475569 !important;
    margin: 0 0 40px 0 !important;
    line-height: 1.6 !important;
}

/* Form styling */
div[style*="max-width: 400px"] form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

div[style*="max-width: 400px"] label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 5px !important;
    display: block !important;
}

div[style*="max-width: 400px"] input[type="email"] {
    padding: 14px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    color: #1a253e !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

div[style*="max-width: 400px"] input[type="email"]:focus {
    outline: none !important;
    border-color: #1a253e !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(26, 37, 62, 0.08) !important;
}

div[style*="max-width: 400px"] input[type="email"]::placeholder {
    color: #94a3b8 !important;
}

/* Button styling */
div[style*="max-width: 400px"] button[type="submit"] {
    background: linear-gradient(135deg, #1a253e 0%, #152238 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-top: 8px !important;
    box-shadow: 0 10px 24px rgba(26, 37, 62, 0.15) !important;
}

div[style*="max-width: 400px"] button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 32px rgba(26, 37, 62, 0.2) !important;
}

div[style*="max-width: 400px"] button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Success message */
div[style*="margin-top: 20px; padding: 15px; background: #e8f5e9"] {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-left: 4px solid #10b981 !important;
    padding: 16px 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    animation: messageSlideIn 0.3s ease-out !important;
    margin-top: 24px !important;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== PAID EVENT BADGES & PRICE STYLES ==================== */

.price-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 800;
}

.price-paid {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.price-free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.card-paid-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Mobile price adjustments */
.mobile-price.price-paid,
.mobile-cta-sticky .mobile-price {
    color: #d97706;
}

/* Multi-day date display in cards */
.info-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* Paid interest note */
.fact-price-row p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    div[style*="max-width: 400px"] {
        max-width: 100% !important;
        padding: 40px 24px !important;
        border-radius: 12px !important;
    }

    div[style*="max-width: 400px"] h1 {
        font-size: 24px !important;
    }

    div[style*="max-width: 400px"] p {
        font-size: 14px !important;
        margin: 0 0 32px 0 !important;
    }

    div[style*="max-width: 400px"] input[type="email"] {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }

    div[style*="max-width: 400px"] button[type="submit"] {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}
