/* ========================================
   Program Page - Reference Design Styles
   Purple accent theme matching regenerationsymposium.com
   ======================================== */

:root {
    --program-primary: #6B21A8;
    --program-primary-dark: #581C87;
    --program-primary-light: #7E3CB9;
    --program-accent: #9333EA;
    --program-bg: #ffffff;
    --program-text: #1f1f2e;
    --program-text-secondary: #6b7280;
    --program-border: #e5e7eb;
    --program-card-bg: #ffffff;
    --program-card-shadow: 0 4px 20px rgba(107, 33, 168, 0.08);
}

/* Loading state */
.program-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--program-text-secondary);
    font-size: 1.1rem;
}

/* Main container */
#program-main {
    background: var(--program-bg);
    padding: 0 0 60px;
}

.program-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Section Titles
   ======================================== */
.program-section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--program-primary);
    text-align: center;
    margin: 0 0 15px;
    line-height: 1.2;
}

.program-section-subtitle {
    text-align: center;
    color: var(--program-text-secondary);
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.program-official-lang {
    text-align: center;
    color: var(--program-text-secondary);
    font-size: 1.1rem;
    margin: 25px 0 50px;
}

/* ========================================
   Program Announcement Cards
   ======================================== */
.program-announcement {
    padding: 60px 0 40px;
}

.announcement-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
    justify-content: center;
}

.announcement-card {
    background: var(--program-card-bg);
    border: 1px solid var(--program-border);
    border-radius: 16px;
    padding: 24px 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    width: calc(25% - 12px);
    min-width: 0;
    overflow: hidden;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--program-card-shadow);
}

.announcement-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--program-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.announcement-card-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--program-text);
    margin-bottom: 10px;
    min-height: 1.2em;
    word-break: break-word;
    overflow-wrap: break-word;
}

.announcement-card-date {
    font-size: 0.9rem;
    color: var(--program-text-secondary);
    margin-bottom: 14px;
}

.announcement-card-date strong {
    color: var(--program-text);
    font-weight: 700;
}

.announcement-btn {
    display: inline-block;
    background: var(--program-primary);
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.announcement-btn:hover {
    background: var(--program-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   Event Venues
   ======================================== */
.event-venues {
    padding: 40px 0;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.venue-card {
    background: var(--program-card-bg);
    border: 1px solid var(--program-border);
    border-radius: 14px;
    padding: 25px 30px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.venue-card:hover {
    box-shadow: var(--program-card-shadow);
}

.venue-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(107, 33, 168, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--program-primary);
    font-size: 1.4rem;
}

.venue-card-content {
    text-align: center;
}

.venue-card-content h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--program-primary);
    margin: 0 0 6px 0;
}

.venue-card-content p {
    color: var(--program-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   Timeline Cards
   ======================================== */
.program-timeline {
    padding: 40px 0;
    position: relative;
}

.timeline-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

.timeline-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--program-primary), transparent);
    z-index: 0;
}

.timeline-card {
    background: var(--program-card-bg);
    border: 1px solid var(--program-border);
    border-radius: 14px;
    padding: 25px 15px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
    width: 200px;
    max-width: 100%;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--program-card-shadow);
}

.timeline-date-badge {
    display: inline-block;
    background: var(--program-primary);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 33, 168, 0.08);
    border-radius: 50%;
    border: 2px solid rgba(107, 33, 168, 0.2);
    overflow: hidden;
}

.timeline-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.timeline-icon i {
    font-size: 1.8rem;
    color: var(--program-primary);
}

.timeline-card-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--program-text);
    line-height: 1.4;
}

/* ========================================
   Detailed Program
   ======================================== */
.detailed-program {
    padding: 60px 0;
}

.detailed-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 40px;
    border-bottom: 2px solid var(--program-border);
    padding-bottom: 0;
}

.detailed-tab {
    padding: 14px 16px;
    border: 2px solid var(--program-primary);
    border-radius: 10px 10px 0 0;
    background: #ffffff;
    color: var(--program-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
    min-width: 0;
    flex: 1;
    word-break: break-word;
    overflow-wrap: break-word;
}

.detailed-tab:hover {
    background: rgba(107, 33, 168, 0.05);
}

.detailed-tab.active {
    background: var(--program-primary);
    color: #ffffff;
}

.detailed-tab strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.detailed-tab em {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 3px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.detailed-tab span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Tab content */
.detailed-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.detailed-content.active {
    display: block;
}

/* Registration button at bottom of each tab */
.program-registration-wrap {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--program-border);
}

.program-registration-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 36px;
    background: var(--program-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    transition: all 0.3s ease;
}

.program-registration-btn:hover {
    background: var(--program-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 33, 168, 0.3);
}

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

/* Program Day Header */
.program-day-header {
    margin: 30px 0 20px;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--program-primary), var(--program-primary-dark));
    border-radius: 12px;
    color: #ffffff;
}

.program-day-header h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.program-day-header span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Session Cards */
.program-session {
    background: #ffffff;
    border: 1px solid var(--program-border);
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.program-session:hover {
    box-shadow: var(--program-card-shadow);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--program-border);
}

.session-header .session-type {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--program-primary);
}

.session-header .session-speaker {
    font-size: 1rem;
    color: var(--program-text-secondary);
    font-weight: 500;
    font-style: italic;
}

.session-venue {
    font-size: 1rem;
    color: var(--program-text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.session-venue::before {
    content: "📍 ";
}

.session-topic {
    font-size: 1.1rem;
    color: var(--program-text);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

/* Session Schedule */
.session-schedule {
    border-top: 1px solid var(--program-border);
    padding-top: 15px;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.schedule-time {
    flex-shrink: 0;
    width: 160px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--program-primary);
    padding: 6px 14px;
    background: rgba(107, 33, 168, 0.08);
    border-radius: 6px;
    text-align: center;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-size: 1.1rem;
    color: var(--program-text);
    font-weight: 500;
    line-height: 1.5;
}

.schedule-speaker {
    display: block;
    font-size: 1rem;
    color: var(--program-primary);
    margin-top: 5px;
    font-weight: 600;
}

/* Break items - visually distinct from session activities */
.schedule-item-break {
    background: #FFF7ED;
    border-left: 4px solid #F59E0B;
    border-radius: 6px;
    padding: 10px 15px !important;
    margin: 8px 0;
}

.schedule-item-break .schedule-time {
    color: #B45309;
    background: rgba(245, 158, 11, 0.12);
}

.schedule-item-break .schedule-title {
    color: #92400E;
    font-weight: 600;
    font-style: italic;
}

/* Session items - highlighted as key activities */
.schedule-item-session {
    background: #F5F3FF;
    border-left: 4px solid var(--program-primary);
    border-radius: 6px;
    padding: 10px 15px !important;
    margin: 8px 0;
}

.schedule-item-session .schedule-title {
    font-weight: 600;
    color: var(--program-text);
}

.schedule-speaker a {
    color: var(--program-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.schedule-speaker a:hover {
    color: var(--program-primary-dark);
    text-decoration: underline;
}

/* ========================================
   Post-Symposium Section
   ======================================== */
.post-symposium-section {
    padding: 60px 0 40px;
    background: #f9fafb;
}

.post-symposium-date-header {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--program-primary);
    margin: -10px auto 30px;
    padding: 12px 24px;
    background: rgba(107, 33, 168, 0.08);
    border-radius: 10px;
    display: block;
    width: fit-content;
    max-width: 100%;
}

/* ========================================
   Gala Dinner Info Section
   ======================================== */
.program-dinner-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border: 2px solid #F59E0B;
    border-radius: 14px;
    padding: 25px 30px;
    margin: 25px 0;
}

.program-dinner-info .dinner-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    font-size: 1.6rem;
    color: #B45309;
}

.program-dinner-info .dinner-content {
    flex: 1;
}

.program-dinner-info .dinner-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #92400E;
    margin-bottom: 8px;
}

.program-dinner-info .dinner-desc {
    font-size: 1.05rem;
    color: #78350F;
    line-height: 1.6;
    margin-bottom: 10px;
}

.program-dinner-info .dinner-price {
    font-size: 1.1rem;
    color: #78350F;
    font-weight: 500;
}

.program-dinner-info .dinner-price strong {
    font-size: 1.3rem;
    color: #B45309;
    font-weight: 800;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Pad (769px - 1024px) */
@media (max-width: 1024px) {
    .announcement-grid {
        gap: 16px;
    }
    
    .announcement-card {
        width: calc(50% - 8px);
        min-width: 0;
    }

    .timeline-grid {
        gap: 15px;
    }

    .timeline-card {
        width: 180px;
    }

    .detailed-tab {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .detailed-tab strong {
        font-size: 0.8rem;
    }

    .detailed-tab em {
        font-size: 0.72rem;
    }

    .detailed-tab span {
        font-size: 0.7rem;
    }

    .program-session {
        padding: 25px 25px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .program-section-title {
        font-size: 2rem;
    }

    .announcement-grid {
        gap: 16px;
    }
    
    .announcement-card {
        width: 100%;
        min-width: 0;
    }

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

    .timeline-grid {
        gap: 25px;
    }

    .timeline-grid::before {
        display: none;
    }

    .timeline-card {
        width: calc(50% - 12px);
        max-width: 280px;
    }

    .detailed-tabs {
        flex-direction: row;
        gap: 6px;
    }

    .detailed-tab {
        border-radius: 10px 10px 0 0;
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .detailed-tab strong {
        font-size: 0.85rem;
        margin-bottom: 1px;
    }

    .detailed-tab em {
        font-size: 0.78rem;
        margin-bottom: 2px;
    }

    .detailed-tab span {
        font-size: 0.72rem;
    }

    .program-day-header {
        padding: 15px 20px;
    }

    .program-day-header h3 {
        font-size: 1.4rem;
    }

    .program-session {
        padding: 20px 18px;
    }

    .session-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-item {
        flex-direction: column;
        gap: 8px;
    }

    .schedule-time {
        width: auto;
        display: inline-block;
    }

    .venue-card {
        padding: 25px 20px;
    }

    .venue-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .announcement-card {
        padding: 30px 25px;
    }
}

/* Mobile small (≤480px) */
@media (max-width: 480px) {
    .timeline-card {
        width: 100%;
        max-width: 320px;
    }

    .program-section-title {
        font-size: 1.7rem;
    }
}