/* Event Detail Tablet Styles (768px - 1199px) */
: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: 160px 0 80px;
    color: white;
    position: relative;
}

.detail-hero .container {
    margin: 0 50px !important;
    width: auto !important;
    padding: 0;
}

.event-type-badge {
    display: inline-block;
    background: rgba(203, 161, 116, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border: 1.5px solid rgba(203, 161, 116, 0.5);
    color: #f0e6d8;
    font-weight: 600;
}

.detail-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: white;
    line-height: 1.25;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 1.1rem;
    color: #e2e8f0;
}

/* Main Content Area */
.detail-content {
    background: white;
    padding: 60px 0 100px;
    position: relative;
    z-index: 10;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default mobile-first/tablet-stacked */
    gap: 40px;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
}

.sticky-nav-container {
    position: sticky;
    top: 140px;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 30px;

    /* Align with content-grid */
    width: 100%;
    box-sizing: border-box;
    padding: 0 40px;
}

.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    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(-5px);
}

/* For larger tablets (landscape >= 1020px), we might want a sidebar layout */
@media (min-width: 1020px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }

    .sidebar-column {
        position: sticky;
        top: 110px;
        /* Match desktop */
        align-self: start;
    }
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
}

/* Overview Stats */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stat-item {
    padding: 15px;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

/* Agenda */
.session-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.speaker-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.speaker-avatar {
    margin-bottom: 10px;
}

/* Sidebar behavior */
@media (max-width: 1019px) {
    .sidebar-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-card {
        height: 100%;
        margin-bottom: 0;
    }
}

/* Sidebar behavior already handled above */

.sidebar-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    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);
}