/* Event Detail Mobile Styles (< 768px) */
:root {
    --bg-light: #fdfcfb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-gold: #cba174;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Noto Sans SC', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Hero Section */
.detail-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0 60px;
    /* Reduced padding */
    color: white;
    position: relative;
    text-align: left;
    /* Keep left alignment but adjust container padding */
}

.detail-hero .container {
    margin: 0 20px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0;
}

.sticky-nav-container {
    position: relative;
    top: 0;
    z-index: 800;
    pointer-events: none;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.sticky-nav-container.sticky-active {
    position: fixed;
    top: 80px;
    /* Increased to 80px for better spacing */
    left: 0;
    margin-bottom: 0;
    background: transparent;
    /* Remove background */
    backdrop-filter: none;
    /* Remove blur */
    padding: 0 20px;
    /* Reset padding */
    box-shadow: none;
    /* Remove container shadow */
    animation: slideDown 0.3s ease;
    pointer-events: none;
    /* Ensure container doesn't block clicks */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    pointer-events: auto;
}

.back-link-btn:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: var(--card-shadow-hover);
    transform: translateX(-3px);
}

.event-type-badge {
    display: inline-block;
    background: rgba(203, 161, 116, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    border: 1px solid rgba(203, 161, 116, 0.5);
    color: #f0e6d8;
    font-weight: 600;
}

.detail-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    /* Smaller font on mobile */
    margin-bottom: 30px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1rem;
    color: #e2e8f0;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}

/* Main Content Area */
.detail-content {
    background: white;
    margin: 0 auto;
    padding: 40px 0 80px;
    position: relative;
    z-index: 10;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
}

/* Overview Stats - Stacked or Grid */
.overview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.9rem;
}

/* Highlights Grid */
.highlights-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    /* Stacked icon and content might be better vertical on very small screens, but row is fine if icon small */
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.highlight-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Agenda Timeline */
.agenda-day {
    margin-bottom: 30px;
}

.day-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.session-item {
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked layout for agenda items on mobile */
    gap: 5px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.session-time {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.95rem;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.speaker-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    align-items: flex-start;
}

.speaker-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Registration Table - Ensure horizontal scrolling */
.registration-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

/* Sidebar Column - Stacked below */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
    padding-bottom: 5px;
    color: var(--text-primary);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list .icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}

.info-list .text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.info-list .label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-top: 20px;
    background: linear-gradient(135deg, #cba174 0%, #aa845a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(203, 161, 116, 0.4);
}