/* =================================================================
   Modern Conference Program Styles
   Clean blue gradient design with tabbed navigation
   Version: 2.0
   ================================================================= */

/* ===== PAGE HEADER ===== */
.conference-page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.header-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.conference-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.conference-page-header .stake-name {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    opacity: 0.95;
}

/* ===== SESSION NAVIGATION ===== */
.session-nav {
    background: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 190px;
    z-index: 100;
}

.session-nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.session-nav-button {
    flex: 1;
    padding: 1rem 1.25rem;
    background-color: white !important; 
    border: none;
    border-bottom: 3px solid transparent;
    color: #333333;
    font-family: "Lato", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.session-nav-button:hover {
    background-color: #f8f9fa !important;
    border-bottom-color: #2c5282;
}

.session-nav-button.active {
    background-color: #1e3a5f !important;
    color: white;
    border-bottom-color: #2c5282;
}

.session-nav-button:focus {
    outline: 2px solid #2c5282;
    outline-offset: -2px;
}

/* ===== MAIN CONTAINER ===== */
.conference-program {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0rem;
}

/* ===== SESSION CARDS ===== */
.conference-session {
    display: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.conference-session.active {
    display: block;
}

/* ===== SESSION HEADER ===== */
.session-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* ===== STICKY SESSION HEADER CLONE ===== */
.session-header-sticky {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.session-header-sticky.visible {
    max-height: 200px;
    padding: 1rem 2rem;
}

.session-header-sticky .session-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.session-header-sticky .session-datetime {
    font-size: 1rem;
    margin: 0;
}

.session-header-sticky .session-location {
    font-size: 0.9rem;
}

.session-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.session-datetime {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    opacity: 0.95;
    margin: 0.5rem 0;
}

.session-location {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: white;
}

/* ===== SESSION CONTENT ===== */
.session-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.5rem;
}

/* ===== PROGRAM ITEMS ===== */
.program-item {
    line-height: 1.8;
    padding: 1.2rem 1.7rem;
}

/* ===== LEADERSHIP ROW ===== */
.leadership-row {
    text-align: center;
    font-size: 1.1rem;
    color: #333333;
    padding: 0 1.7rem 1.2rem 1.7rem;
    border-bottom: 2px solid #e9ecef;
}

.leadership-row span {
    display: inline-block;
    margin: 0 1.5rem;
}

.leadership-row strong {
    font-weight: 600;
    color: #333333;
}

/* ===== MUSIC ROW ===== */
.music-row {
    text-align: center;
    font-size: 1.05rem;
    color: #333333;
    padding: 1.2rem 1.7rem;
}

.music-row span {
    display: inline-block;
    margin: 0 1rem;
}

.music-row strong {
    font-weight: 600;
    color: #333333;
}

/* ===== STANDARD PROGRAM ITEMS (hymns, prayers, etc) ===== */
.program-item.standard {
    text-align: center;
    font-size: 1.15rem;
    color: #333333;
    border-top: 2px solid rgba(221, 221, 221, 0.4);
}

.program-item.standard strong {
    font-weight: 700;
    color: #1e3a5f;
}

/* ===== FEATURED ITEMS (speakers, testimonies, stake business) ===== */
.program-item.featured {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fbff 100%);
    border-left: 4px solid #2c5282;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.program-item.featured strong {
    font-weight: 700;
    color: #1e3a5f;
    display: block;
}

.program-item.featured em {
    color: #333333;
    font-style: italic;
    font-size: 1rem;
}

/* ===== ANNOUNCEMENTS ===== */
.announcements {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.announcements h4 {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #333333;
    margin: 0 0 1rem 0;
    text-align: center;
}

.announcements p {
    font-family: "Lato", sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 0.75rem;
}

.announcements p:last-child {
    margin-bottom: 0;
}

/* ===== SESSION TEXT & SPECIAL INSTRUCTIONS ===== */
.session-text,
.special-instructions {
    background: #fffaf0;
    border: 2px solid #ffd966;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.session-text h4,
.special-instructions h4 {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #333333;
    margin: 0 0 1rem 0;
    text-align: center;
}

.session-text p,
.special-instructions p {
    font-family: "Lato", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.session-text p:last-child,
.special-instructions p:last-child {
    margin-bottom: 0;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Tablet Styles */
@media (max-width: 768px) {
    .conference-page-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .conference-page-header h1 {
        font-size: 2rem;
    }
    
    .conference-page-header .stake-name {
        font-size: 1.1rem;
    }
    
    .header-image {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .header-image-placeholder {
        font-size: 1.5rem;
    }
    
    .session-nav-button {
        min-width: 120px;
        padding: 1rem 1rem;
        font-size: 1rem;
    }
    
    .conference-program {
        padding: 2rem 0rem;
    }
    
    .session-header {
        padding: 1.5rem;
    }
    
    .session-title {
        font-size: 1.7rem;
    }
    
    .session-datetime {
        font-size: 1.15rem;
    }
    
    .session-location {
        font-size: 1rem;
    }
    
    .session-content {
        padding: 2rem 2rem;
    }
    
    .leadership-row,
    .music-row {
        font-size: 1rem;
    }
    
    .leadership-row span,
    .music-row span {
        margin: 0 0.75rem;
    }
    
    .program-item.featured {
        padding: 1.25rem 1.5rem;
        font-size: 1.15rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .conference-page-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .conference-page-header h1 {
        font-size: 1.75rem;
    }
    
    .conference-page-header .stake-name {
        font-size: 1rem;
    }
    
    .header-image {
        width: 70px;
        height: 70px;
        margin-bottom: 0.75rem;
    }
    
    .header-image-placeholder {
        font-size: 1.25rem;
    }
    
    .session-nav {
        top: 115px;
    }
    
    .session-nav-container {
        flex-direction: column;
    }
    
    .session-nav-button {
        min-width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;

    }

    
    .conference-program {
        padding: 1.5rem 0rem;
    }
    
    .conference-session {
        border-radius: 8px;
    }
    
    .session-header {
        padding: 1.25rem;
    }
    
    .session-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .session-header-sticky .session-title
    {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }
    
    .session-datetime {
        font-size: 1.05rem;
    }
    
    .session-location {
        font-size: 0.95rem;
    }
    
    .session-content {
        padding: 1.5rem 1.25rem;
        gap: 0;
    }
    
    .leadership-row,
    .music-row {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .leadership-row span,
    .music-row span {
        display: block;
        margin: 0.25rem 0;
    }
    
    .program-item {
        margin-bottom: 1.25rem;
    }
    
    .program-item.standard {
        font-size: 1.05rem;
    }
    
    .program-item.featured {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .program-item.featured em {
        font-size: 0.95rem;
    }
    
    .announcements,
    .session-text,
    .special-instructions {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .announcements h4,
    .session-text h4,
    .special-instructions h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .announcements p,
    .session-text p,
    .special-instructions p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* =================================================================
   ACCESSIBILITY & PRINT STYLES
   ================================================================= */

/* Focus States */
.conference-session:focus-within {
    outline: 2px solid #2c5282;
    outline-offset: 2px;
}

.program-item:focus-within {
    outline: 1px solid #2c5282;
    outline-offset: 1px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .conference-page-header,
    .session-header {
        background: #1e3a5f;
    }
    
    .conference-session {
        border: 2px solid #000;
        background-color: #fff;
    }
    
    .leadership-row,
    .music-row {
        border-color: #000;
    }
    
    .program-item.featured {
        background-color: #e3f2fd;
        border-color: #1e3a5f;
    }
    
    .announcements,
    .session-text,
    .special-instructions {
        background-color: #fff;
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .session-nav-button,
    .conference-session {
        transition: none;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .conference-page-header {
        background: #1e3a5f;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .session-nav {
        display: none;
    }
    
    .conference-program {
        max-width: 100%;
        padding: 1rem;
    }
    
    .conference-session {
        display: block !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .session-header {
        background: #1e3a5f;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .session-content {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .program-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .program-item.featured {
        background: #e3f2fd;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .announcements,
    .session-text,
    .special-instructions {
        background-color: #f8f9fa;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
