/* Conference Mobile Styles (< 768px) */
/* Base Variables & Reset adapted for mobile */
:root {
    --conf-primary: #0a1128;
    --conf-accent: #3498db;
    --conf-bg: #f8f9fa;
    --conf-text: #2c3e50;
    --conf-text-light: #7f8c8d;
    --conf-card-bg: #ffffff;
    --conf-border: #ecf0f1;
}

body {
    background-color: var(--conf-bg);
    color: var(--conf-text);
    font-family: 'Noto Sans SC', sans-serif;
}

/* =========================================
   Hero Section
   ========================================= */
.conf-hero {
    height: 30vh;
    /* Reduced height */
    min-height: 240px;
    /* Reduced min-height */
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(20, 30, 48, 0.8) 100%), url('../../assets/images/conference-hero.jpg') no-repeat center center/cover;
    background-attachment: scroll;
    /* Fixed is bad on mobile */
    /* Fixed is bad on mobile */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 90px 20px 20px !important;
    /* Reduced to 90px to pull content further up */
    margin-top: -56px;
    /* Pull under nav */
    margin-bottom: 30px;
    /* Reduced margin */
    border-radius: 0 0 24px 24px;
    /* More rounded */
}

.conf-hero-content {
    animation: fadeInUp 1s ease-out;
}

.conf-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    /* Reduced further to prevent wrapping */
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.conf-hero-subtitle {
    font-size: 0.7rem;
    /* Reduced further */
    opacity: 0.95;
    max-width: 95%;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 300;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Main Container
   ========================================= */
.conf-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px 60px;
    /* Safe mobile gutters */
}

.conf-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.conf-section-title h2 {
    font-size: 1.8rem;
    color: var(--conf-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.conf-section-title p {
    color: var(--conf-text-light);
    font-size: 0.95rem;
}

/* =========================================
   Dimensions Grid (Premium 2-Column)
   ========================================= */
.conf-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Keep 2 cols for mobile efficiency */
    gap: 12px;
    margin-bottom: 60px;
}

.conf-dimension-card {
    background: linear-gradient(145deg, #ffffff, #fdfdfd);
    border-radius: 12px;
    padding: 16px;
    /* Compact padding */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    /* Compact fixed height */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

/* Accent Top Line */
.conf-dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color, #3498db);
    opacity: 0.8;
}

.conf-dimension-card:active {
    transform: scale(0.98);
    /* Tactile feedback */
}

/* Watermark Number */
.conf-card-number {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    /* Increased from 3.5rem */
    font-weight: 700;
    color: var(--accent-color, #3498db);
    /* Use accent color */
    opacity: 0.12;
    /* Slightly more visible */
    position: absolute;
    top: -5px;
    right: 10px;
    /* Moved inside - Fully visible */
    line-height: 1;
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 0;
}

.conf-card-content {
    position: relative;
    z-index: 1;
}

.conf-dimension-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    position: relative;
    word-break: break-word;
}

.conf-dimension-subtitle {
    font-size: 0.75rem;
    color: #7f8c8d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 10px;
    margin-top: auto;
}

.conf-topic-badge {
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.03);
    color: #7f8c8d;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.conf-card-arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    /* Colorful arrow */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Accent Colors */
.conf-dimension-card:nth-child(1) {
    --accent-color: #e74c3c;
}

.conf-dimension-card:nth-child(2) {
    --accent-color: #3498db;
}

.conf-dimension-card:nth-child(3) {
    --accent-color: #9b59b6;
}

.conf-dimension-card:nth-child(4) {
    --accent-color: #1abc9c;
}

.conf-dimension-card:nth-child(5) {
    --accent-color: #f39c12;
}

.conf-dimension-card:nth-child(6) {
    --accent-color: #2ecc71;
}

.conf-dimension-card:nth-child(7) {
    --accent-color: #34495e;
}

.conf-dimension-card:nth-child(8) {
    --accent-color: #d35400;
}

.conf-dimension-card:nth-child(9) {
    --accent-color: #16a085;
}

.conf-dimension-card:nth-child(10) {
    --accent-color: #c0392b;
}

/* =========================================
   Timeline Section - Mobile Left-Aligned
   ========================================= */
.conf-timeline-section {
    padding: 40px 0;
    background: #fff;
    position: relative;
}

.conf-timeline-header {
    text-align: center;
    margin-bottom: 20px;
}

.conf-timeline-header h2 {
    font-size: 1.8rem;
}

.conf-timeline-container {
    padding: 0 10px;
}

/* Timeline vertical line left-aligned */
.conf-timeline-container::before {
    left: 20px;
    transform: none;
    width: 3px;
    background: linear-gradient(to bottom, #3498db, #9b59b6);
}

.conf-timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
    left: 0 !important;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.conf-timeline-dot {
    left: 10.5px !important;
    /* Proper alignment with line */
    right: auto !important;
    width: 22px;
    height: 22px;
    top: 0;
    background: #fff;
    border: 3px solid #3498db;
    z-index: 2;
}

.conf-timeline-content {
    width: 100%;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #3498db;
}

/* =========================================
   Calendar Compact Mode (Premium)
   ========================================= */
.conf-calendar-container {
    width: 100%;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
    /* Subtle header bg */
    border-radius: 12px;
}

.calendar-current-month {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
    /* Prevent wrapping */
}

.calendar-nav-btn {
    width: 28px !important;
    /* Smaller */
    height: 28px !important;
    min-width: 28px !important;
    /* Prevent squishing */
    font-size: 0.9rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 50% !important;
    /* Force circle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3498db !important;
    /* Accent color text */
    transition: all 0.2s;
    margin: 6px;
    /* Spacing from edge */
}

.calendar-nav-btn:active {
    transform: scale(0.9);
    background: #f0f9ff;
    box-shadow: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0;
    background: transparent;
}

.calendar-week-header {
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #95a5a6;
}

.calendar-day-cell {
    background: white;
    min-height: 52px;
    /* Fixed height for clean grid */
    padding: 4px;
    border-radius: 10px;
    /* Softer rounds */
    border: 1px solid transparent;
    /* Prepare for hover/active */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s;
}

.calendar-day-cell:active {
    background: #f0f9ff;
    border-color: #3498db;
    transform: scale(0.95);
}

.calendar-day-cell.today {
    background: #ffffff;
    border: 1px solid #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    /* Glow ring */
}

.calendar-day-cell.today .calendar-day-number {
    color: #3498db;
    font-weight: 800;
}

.calendar-day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Selected/Active visual feedback */
.calendar-day-cell.today .calendar-day-number {
    background: #e0f2fe;
}

/* Mobile: Meeting Count Badge */
.calendar-event-count-badge {
    font-size: 0.65rem;
    color: #3498db;
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
}

/* Mobile: Dots instead of text for events */
.calendar-events {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-event-dot {
    font-size: 0;
    /* Hide text */
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    margin-bottom: 0;
    /* Colors handled by types below */
}

/* Event Types - Dot Colors */
.calendar-event-dot.type-1 {
    background-color: #0ea5e9;
}

.calendar-event-dot.type-2 {
    background-color: #22c55e;
}

.calendar-event-dot.type-3 {
    background-color: #eab308;
}

.calendar-event-dot.type-4 {
    background-color: #ef4444;
}

.calendar-event-dot.type-5 {
    background-color: #a855f7;
}

.calendar-event-more {
    display: none;
    /* Hide 'more' on mobile */
}

/* =========================================
   Popover Mobile (Fixed & Centered)
   ========================================= */
@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.calendar-popover {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100000 !important;

    width: 85vw !important;
    /* Slightly narrower */
    max-width: 320px !important;
    /* Max width constraint */
    max-height: 60vh;
    /* Shorter max height */

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

    display: none;
    flex-direction: column;
    padding: 16px;
    /* Reduced padding */
    animation: popoverFadeIn 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
    padding-right: 40px !important;
    /* Make space for close button */
}

.popover-header h3 {
    font-size: 1.1rem !important;
    /* Smaller title */
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.popover-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1128;
}

.popover-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popover-timeline-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ccc;
}

.popover-timeline-item.type-1 {
    background: #f0f9ff;
    border-left-color: #0ea5e9;
}

.popover-timeline-item.type-2 {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.popover-timeline-item.type-3 {
    background: #fefce8;
    border-left-color: #eab308;
}

.popover-timeline-item.type-4 {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.popover-timeline-item.type-5 {
    background: #faf5ff;
    border-left-color: #a855f7;
}

/* Close Button Mobile - Re-designed to blend in */
.popover-close-btn {
    position: absolute !important;
    top: 4px !important;
    /* Moved up from 12px */
    right: 12px !important;
    width: 32px !important;
    /* Larger touch target */
    height: 32px !important;
    border-radius: 50% !important;

    background: transparent !important;
    /* No more bubble */
    border: none !important;
    box-shadow: none !important;

    color: #94a3b8 !important;
    /* Subtle Grey */

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 28px !important;
    /* Slightly larger for thin weight */
    font-weight: 300 !important;
    /* Ligher weight */
    line-height: 1 !important;
    padding: 0 0 4px 0 !important;
    /* Visual optical adjustment */
    margin: 0 !important;
    -webkit-appearance: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000002 !important;
}

.popover-close-btn:active {
    background: #f1f5f9 !important;
    /* Subtle feedback */
    color: #64748b !important;
    transform: scale(0.95);
}

/* Modals Mobile */
.topic-modal-content {
    max-height: 90vh;
}