/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Lato', Roboto, sans-serif;
    line-height: 1.6;
    /*color: #333;*/
    /*background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);*/
    min-height: 100vh;
}

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

/* Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.prim-blue { color: #86C6CE; }
.prim-mar { color: #81236A; }
.prim-green { color: #43B188; }
.prim-dark { color: #3b3a3c; }
.prim-white { color: #ffffff; }

.app-header {
    /*background: url('../images/FestMarkBlue.png') center no-repeat scroll;*/
    background-color: #81236A;/*linear-gradient(135deg, #7c3aed 0%, #a855f7 30%, #c084fc 70%, #e879f9 100%);*/
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/*@keyframes shimmer {*/
/*    0%, 100% { transform: translateX(-100%); }*/
/*    50% { transform: translateX(100%); }*/
/*}*/

.app-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.app-header p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    opacity: 0.95;
}

.app-nav {
    /*background: rgba(255, 255, 255, 0.95);*/
    /*backdrop-filter: blur(10px);*/
    /*border-bottom: 1px solid rgba(124, 58, 237, 0.1);*/
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    min-height: 70px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

/* Ensure nav items are inline */
.nav-item {
    display: inline-block;
    position: relative;
}

.nav-item {
    display: inline-block;
    position: relative;
}

/* Navigation Links - Icon Only */
.nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 2.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #74b9ff;
    border-radius: 1.5px 1.5px 0 0;
}

/* Font Awesome Icon Styling - White Icons Only */
.nav-icon {
    margin: 0;
    font-size: 1.1rem;
    width: 1.2rem;
    text-align: center;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
    color: #FFFFFF !important;
    transform: scale(1.1);
}

.nav-link.active .nav-icon {
    color: #FFFFFF !important;
    transform: scale(1.2);
}

/* Remove nav-text styling since we're not using it */
.nav-text {
    display: none;
}

/* Mobile Menu Toggle - Hidden on Desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

/*.nav-link {*/
/*    color: #64748b;*/
/*    text-decoration: none;*/
/*    margin-right: 2.5rem;*/
/*    font-weight: 600;*/
/*    padding: 0.75rem 1.25rem;*/
/*    border-radius: 0.75rem;*/
/*    transition: all 0.3s ease;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.nav-link::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: -100%;*/
/*    width: 50%;*/
/*    height: 100%;*/
/*    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);*/
/*    transition: left 0.5s;*/
/*}*/

/*.nav-link:hover::before {*/
/*    left: 100%;*/
/*}*/

/*.nav-link:hover {*/
/*    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);*/
/*    color: #7c3aed;*/
/*    transform: translateY(-2px);*/
/*}*/


.app-main {
    flex: 1;
    padding: 0;
}

.app-footer {
    background: #3B3A3C;/*linear-gradient(135deg, #374151 0%, #4b5563 100%);*/
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid #10b981;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 2rem 2rem;
    /*background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);*/
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section-img {
    background-image: url('images/FestMarkBlue.png') !important;
    /*background-repeat: no-repeat; !* Optional: prevents image from repeating *!*/
    /*background-size: cover; !* Optional: scales image to cover the element *!*/
    /*background-position: center center; !* Optional: centers the image *!*/
}

/*.hero-section::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: -50%;*/
/*    left: -50%;*/
/*    width: 200%;*/
/*    height: 200%;*/

/*    !*background: url('../images/FestMarkBlue.png') center no-repeat scroll;*!*/
/*    background: conic-gradient(from 0deg, transparent, rgba(124, 58, 237, 0.03), transparent, rgba(16, 185, 129, 0.03), transparent);*/
/*    !*animation: rotate 20s linear infinite;*!*/
/*}*/

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 3rem;
    /*background: linear-gradient(135deg, #86C6CE, #81236A, #43B188) ;*/
    background-color: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-text {
    font-size: 1.4rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.festival-dates {
    font-size: 1.3rem;
    /*background: linear-gradient(135deg, #7c3aed, #10b981);*/
    background: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Event cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #34d399, #60a5fa, #a78bfa, #f472b6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -3px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.event-card.featured {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.event-time {
    color: #7c3aed;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ede9fe, #f3f4f6);
    border-radius: 0.5rem;
    display: inline-block;
}

.event-card h4, .event-card h5 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.event-authors {
    color: #475569;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.moderator {
    color: #64748b;
    font-style: italic;
    font-weight: 500;
}

.event-venue {
    color: #10b981;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-sponsor {
    color: #7c3aed;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ede9fe, #f3f4f6);
    border-radius: 0.5rem;
    margin-top: 0.75rem;
}

/* Highlights section */
.highlights-section, .venues-section {
    margin-bottom: 2rem;
}

.highlights-section h3, .venues-section h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /*margin-bottom: 1.5rem;*/
    font-weight: 800;
    text-align: center;
}

/* Venues section 
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.venue-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #10b981;
    position: relative;
    overflow: hidden;
}

.venue-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: scale(0);
}

.venue-card:hover::before {
    transform: scale(1);
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -3px rgba(0, 0, 0, 0.15);
    border-top-color: #7c3aed;
}

.venue-card h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.venue-card p {
    color: #64748b;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
*/
/* Schedule page */
.schedule-header {
    margin-bottom: 3rem;
}

.schedule-header h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, #1e293b, #7c3aed, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    font-weight: 800;
    text-align: center;
}

.schedule-header h4 {
    font-size: 1.5rem;
    /*background: linear-gradient(135deg, #1e293b, #7c3aed, #10b981);*/
    background-color: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-weight: 800;
    text-align: center;
}

.faqs-header h4 {
    font-size: 1.5rem;
    /*background: linear-gradient(135deg, #1e293b, #7c3aed, #10b981);*/
    background-color: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    font-weight: 800;
    text-align: center;
}

.authors-header h4 {
    font-size: 1.5rem;
    /*background: linear-gradient(135deg, #1e293b, #7c3aed, #10b981);*/
    background-color: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    font-weight: 800;
    text-align: center;
}

.venues-header h4 {
    font-size: 1.5rem;
    /*background: linear-gradient(135deg, #1e293b, #7c3aed, #10b981);*/
    background-color: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    font-weight: 800;
    text-align: center;
}

.schedule-filters {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.day-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.day-tab {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 2px solid #cbd5e1;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.day-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.5s;
}

.day-tab:hover::before {
    left: 100%;
}

.day-tab:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    transform: translateY(-2px);
}

.day-tab.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.day-tab small {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.venue-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.venue-filter label {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.venue-filter select {
    padding: 0.75rem 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.venue-filter select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Schedule content */
.schedule-content h4 {
    font-size: 1.5rem;
    /*background: linear-gradient(135deg, #1e293b, #7c3aed);*/
    background-color: #81236A;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.time-slot {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #10b981;
}

.time-header h4 {
    color: #7c3aed;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.events-in-slot {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-header h5 {
    flex: 1;
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.3;
}

.event-time-venue {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.5rem;
}

.time {
    color: #7c3aed;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #ede9fe, #f3f4f6);
    border-radius: 0.5rem;
}

.venue {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-details > div {
    font-size: 1rem;
    line-height: 1.5;
}

.authors {
    color: #475569;
    font-weight: 500;
}

.moderator {
    color: #64748b;
    font-weight: 500;
}

.description {
    color: #64748b;
    font-style: italic;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #10b981;
}

.sponsor {
    color: #7c3aed;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    background: linear-gradient(135deg, #ede9fe, #f3f4f6);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .app-header h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-section h2 {
        font-size: 2.2rem;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

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

    .schedule-filters {
        padding: 1.5rem;
    }

    .day-tabs {
        justify-content: center;
    }

    .venue-filter {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .event-header {
        flex-direction: column;
        align-items: stretch;
    }

    .event-time-venue {
        align-items: flex-start;
        text-align: left;
    }
    
    .nav-toggle {
        display: flex;
    }
    /*.accordion-container {*/
    /*    margin: 0 10px;*/
    /*}*/
    
    /*.accordion-header {*/
    /*    padding: 12px 15px;*/
    /*}*/
    
    /*.faq-section {*/
    /*    padding: 10px 15px 15px;*/
    /*}*/
    
    /*.accordion-header h5 {*/
    /*    font-size: 1.1rem;*/
    /*}*/
    
    /*.faq-header h6 {*/
    /*    font-size: 0.95rem;*/
    /*}*/
}

/* Small Mobile Header Optimization - Added for viewport under 400x680 */
@media (max-width: 400px) and (max-height: 680px) {
    .app-header {
        padding: 1rem 0;
    }

    .app-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .app-header p {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }

    .container {
        padding: 0 10px;
    }

    .app-nav {
        padding: 0.5rem 0;
    }


    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .nav-link {
        flex-direction: column;
        padding: 1rem 0.5rem;
        text-align: center;
    }

    .nav-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 1.5rem;
    }

    .nav-text {
        font-size: 0.85rem;
    }


    .app-main {
        padding: 1.5rem 0;
    }
}

/* PWA specific styles */
/*@media (display-mode: standalone) {*/
/*    .app-header {*/
/*        padding-top: env(safe-area-inset-top, 2.5rem);*/
/*    }*/
/*}*/

/* Loading states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading::after {
    content: '';
    width: 3rem;
    height: 3rem;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional book-themed animations and effects */
.page-turn {
    animation: pageFlip 0.6s ease-in-out;
}

@keyframes pageFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(-90deg); }
    100% { transform: rotateY(0deg); }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.btn:focus, .day-tab:focus, .venue-filter select:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .event-card, .venue-card, .time-slot {
        border: 2px solid #000;
    }

    .btn-primary {
        background: #000;
        color: #fff;
    }
}

/*.accordion-container {*/
/*    max-width: 800px;*/
/*    margin: 0 auto;*/
/*}*/

/*.accordion-item {*/
/*    border: 1px solid #ddd;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 10px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
/*}*/

/*.accordion-header {*/
/*    background-color: #f8f9fa;*/
/*    padding: 15px 20px;*/
/*    cursor: pointer;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    transition: background-color 0.3s ease;*/
/*    user-select: none;*/
/*}*/

/*.accordion-header:hover {*/
/*    background-color: #e9ecef;*/
/*}*/

/*.accordion-header h5 {*/
/*    margin: 0;*/
/*    font-weight: 600;*/
/*    color: #333;*/
/*}*/

/*.accordion-icon {*/
/*    font-size: 14px;*/
/*    transition: transform 0.3s ease;*/
/*    color: #666;*/
/*}*/

/*.accordion-icon.expanded {*/
/*    transform: rotate(180deg);*/
/*}*/

/*.accordion-content {*/
/*    max-height: 0;*/
/*    overflow: hidden;*/
/*    transition: max-height 0.3s ease;*/
/*    background-color: white;*/
/*}*/

/*.accordion-content.open {*/
/*    max-height: 2000px;*/
/*}*/

/*.faq-section {*/
/*    padding: 10px 20px 20px;*/
/*}*/

/*.faq-item {*/
/*    border-bottom: 1px solid #eee;*/
/*    margin-bottom: 15px;*/
/*    padding-bottom: 10px;*/
/*}*/

/*.faq-item:last-child {*/
/*    border-bottom: none;*/
/*    margin-bottom: 0;*/
/*}*/

/*.faq-header {*/
/*    cursor: pointer;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    padding: 10px 0;*/
/*    user-select: none;*/
/*}*/

/*.faq-header:hover {*/
/*    background-color: #f8f9fa;*/
/*    padding: 10px;*/
/*    border-radius: 4px;*/
/*}*/

/*.faq-header h6 {*/
/*    margin: 0;*/
/*    font-weight: 500;*/
/*    color: #444;*/
/*    font-size: 1rem;*/
/*}*/

/*.faq-icon {*/
/*    font-size: 12px;*/
/*    transition: transform 0.3s ease;*/
/*    color: #666;*/
/*    margin-left: 10px;*/
/*}*/

/*.faq-icon.expanded {*/
/*    transform: rotate(180deg);*/
/*}*/

/*.faq-content {*/
/*    max-height: 0;*/
/*    overflow: hidden;*/
/*    transition: max-height 0.3s ease;*/
/*    padding-left: 15px;*/
/*}*/

/*.faq-content.open {*/
/*    max-height: 500px;*/
/*    padding: 10px 15px;*/
/*}*/

/*.faq-content p {*/
/*    margin: 0;*/
/*    line-height: 1.6;*/
/*    color: #555;*/
/*}*/

.placeholder-text {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}



/* Responsive Author Image Styles */
.authorn-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.authorn-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.authorn-avatar:hover {
    transform: scale(1.05);
}

.book-cover {
    position: relative;
    width: 160px;
    height: 240px;
    z-index: 4;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-card:hover .book-cover-corner {
    transform: scale(1.6);
}

/* Desktop and large screens */
@media (min-width: 992px) {
    .authorn-image-container {
        width: 200px;
        height: 200px;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .authorn-image-container {
        width: 160px;
        height: 160px;
    }
}

/* Mobile landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .authorn-image-container {
        width: 140px;
        height: 140px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .authorn-image-container {
        width: 120px;
        height: 120px;
    }

    .authorn-name {
        font-size: 1.1rem;
    }

    .authorn-bio-snippet {
        padding-top: 15px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .latest-book-infon {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-titlen {
        font-size: 0.9rem;
    }
    
    .modal-buttons {
        gap: 8px;
    }
}

/* Grid responsiveness */
.authorn-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 575px) {
    .authorn-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .card {
        margin-bottom: 1rem !important;
    }
}

/* Image loading states */
.authorn-avatar {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 24px;
}

.authorn-avatar[src]:not([src=""]) {
    background-image: none;
}




/*!* Responsive Author Image Styles *!*/
/*.author-image-container {*/
/*    position: relative;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    margin: 0 auto;*/
/*    overflow: hidden;*/
/*    border-radius: 50%;*/
/*    background-color: #f8f9fa;*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.author-avatar {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    object-position: center;*/
/*    border-radius: 50%;*/
/*    transition: transform 0.3s ease;*/
/*}*/

/*.author-avatar:hover {*/
/*    transform: scale(1.05);*/
/*}*/

/*!* Desktop and large screens *!*/
/*@media (min-width: 992px) {*/
/*    .author-image-container {*/
/*        width: 150px;*/
/*        height: 150px;*/
/*    }*/
/*}*/

/*!* Tablets *!*/
/*@media (min-width: 768px) and (max-width: 991px) {*/
/*    .author-image-container {*/
/*        width: 120px;*/
/*        height: 120px;*/
/*    }*/
/*}*/

/*!* Mobile landscape *!*/
/*@media (min-width: 576px) and (max-width: 767px) {*/
/*    .author-image-container {*/
/*        width: 100px;*/
/*        height: 100px;*/
/*    }*/
/*}*/

/*!* Small mobile *!*/
/*@media (max-width: 575px) {*/
/*    .author-image-container {*/
/*        width: 90px;*/
/*        height: 90px;*/
/*    }*/

/*    .author-name {*/
/*        font-size: 1.1rem;*/
/*    }*/

/*    .author-bio-snippet {*/
/*        font-size: 0.9rem;*/
/*        line-height: 1.4;*/
/*    }*/

/*    .latest-book-info {*/
/*        flex-direction: column;*/
/*        align-items: flex-start;*/
/*    }*/

/*    .book-title {*/
/*        font-size: 0.9rem;*/
/*    }*/
/*}*/

/*!* Grid responsiveness *!*/
/*.authors-grid {*/
/*    display: grid;*/
/*    gap: 1.5rem;*/
/*    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
/*}*/

/*@media (max-width: 575px) {*/
/*    .authors-grid {*/
/*        grid-template-columns: 1fr;*/
/*        gap: 1rem;*/
/*        padding: 0 0.5rem;*/
/*    }*/

/*    .card {*/
/*        margin-bottom: 1rem !important;*/
/*    }*/
/*}*/

/*!* Image loading states *!*/
/*.author-avatar {*/
/*    background-color: #f8f9fa;*/
/*    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");*/
/*    background-repeat: no-repeat;*/
/*    background-position: center;*/
/*    background-size: 24px;*/
/*}*/

/*.author-avatar[src]:not([src=""]) {*/
/*    background-image: none;*/
/*}*/

/* Logo Grid Styles */
.logo-grid-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 600;
    font-size: 2rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    padding: 1rem 0;
}

.logo-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.logo-item:hover .logo-overlay {
    transform: translateY(0);
}

.logo-name {
    font-weight: 500;
    font-size: 0.7rem;
}

/* PWA-friendly responsive design */
@media (max-width: 768px) {
    .logo-grid {
        gap: 0.5rem;
    }

    .logo-grid-container {
        padding: 1rem;
    }

    .grid-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .logo-item {
        width: 75px;
        height: 75px;
        padding: 0.2rem;
    }

    .logo-image {
        width: 75px;
        height: 75px;
    }

    .logo-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        gap: 0.5rem;
    }

    .logo-item {
        width: 75px;
        height: 75px;
        padding: 0.15rem;
        flex-shrink: 0;
    }

    .logo-image {
        width: 75px;
        height: 75px;
    }

    .logo-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}


.logo-name {
    font-weight: 500;
    font-size: 0.7rem;
}

/* PWA-friendly responsive design */
@media (max-width: 768px) {
    .logo-grid {
        gap: 0.5rem;
    }

    .logo-grid-container {
        padding: 1rem;
    }

    .grid-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .logo-item {
        width: 192px;
        height: 192px;
        padding: 0.2rem;
    }

    .logo-image {
        width: 192px;
        height: 192px;
    }

    .logo-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        gap: 0.5rem;
    }

    .logo-item {
        width: 100px;
        height: 100px;
        padding: 0.15rem;
        flex-shrink: 0;
    }

    .logo-image {
        width: 100px;
        height: 100px;
    }

    .logo-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}



/* Bootstrap v5.0 Accordion Styling */

.accordionc {
    --bs-accordion-color: #212529;
    --bs-accordion-bg: #fff;
    --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    --bs-accordion-border-color: #dee2e6;
    --bs-accordion-border-width: 1px;
    --bs-accordion-border-radius: 0.375rem;
    --bs-accordion-inner-border-radius: calc(0.375rem - 1px);
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: #212529;
    --bs-accordion-btn-bg: var(--bs-accordion-bg);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: #86b7fe;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: #052c65;
    --bs-accordion-active-bg: #cfe2ff;
}

.accordionc-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
    font-size: 1rem;
    color: var(--bs-accordion-btn-color);
    text-align: left;
    background-color: var(--bs-accordion-btn-bg);
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: var(--bs-accordion-transition);
}

.accordionc-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
    box-shadow: inset 0 calc(var(--bs-accordion-border-width) * -1) 0 var(--bs-accordion-border-color);
}

.accordionc-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}

.accordionc-button::after {
    flex-shrink: 0;
    width: var(--bs-accordion-btn-icon-width);
    height: var(--bs-accordion-btn-icon-width);
    margin-left: auto;
    content: "";
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-size: var(--bs-accordion-btn-icon-width);
    transition: var(--bs-accordion-btn-icon-transition);
}

.accordionc-button:hover {
    z-index: 2;
}

.accordionc-button:focus {
    z-index: 3;
    border-color: var(--bs-accordion-btn-focus-border-color);
    outline: 0;
    box-shadow: var(--bs-accordion-btn-focus-box-shadow);
}

.accordionc-header {
    margin-bottom: 0;
}

.accordionc-item {
    color: var(--bs-accordion-color);
    background-color: var(--bs-accordion-bg);
    border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
}

.accordionc-item:first-of-type {
    border-top-left-radius: var(--bs-accordion-border-radius);
    border-top-right-radius: var(--bs-accordion-border-radius);
}

.accordionc-item:first-of-type .accordionc-button {
    border-top-left-radius: var(--bs-accordion-inner-border-radius);
    border-top-right-radius: var(--bs-accordion-inner-border-radius);
}

.accordionc-item:not(:first-of-type) {
    border-top: 0;
}

.accordionc-item:last-of-type {
    border-bottom-right-radius: var(--bs-accordion-border-radius);
    border-bottom-left-radius: var(--bs-accordion-border-radius);
}

.accordionc-item:last-of-type .accordionc-button.collapsed {
    border-bottom-right-radius: var(--bs-accordion-inner-border-radius);
    border-bottom-left-radius: var(--bs-accordion-inner-border-radius);
}

.accordionc-item:last-of-type .accordionc-collapse {
    border-bottom-right-radius: var(--bs-accordion-border-radius);
    border-bottom-left-radius: var(--bs-accordion-border-radius);
}

.accordionc-body {
    padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
}

.accordionc-flush .accordionc-collapse {
    border-width: 0;
}

.accordionc-flush .accordionc-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.accordionc-flush .accordionc-item:first-of-type {
    border-top: 0;
}

.accordionc-flush .accordionc-item:last-of-type {
    border-bottom: 0;
}

.accordionc-flush .accordionc-item .accordionc-button {
    border-radius: 0;
}

/* Collapse Animation Classes */
.collapsec:not(.show) {
    display: none;
}

.collapsingc {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.collapsingc.horizontal {
    width: 0;
    height: auto;
    transition: width 0.35s ease;
}

/* Additional utility classes for accordion functionality */
.accordionc-button[aria-expanded="true"] {
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
}

.accordionc-button[aria-expanded="false"] {
    color: var(--bs-accordion-btn-color);
    background-color: var(--bs-accordion-btn-bg);
}
