@import url('CityUHK_CSS/CityU-revamp/css/custom.css');


/* Theme colors and variables */
:root {
    --primary-color: #A51C51;
    --secondary-color: #F7941D;
    --gradient-main: linear-gradient(135deg, #F7941D 0%, #A51C51 100%);
    --gradient-light: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
    --text-color: #333;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Hero section styles */
.hero {
    background: var(--gradient-main);
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.28);
    border-radius: 18px;
    padding: 32px 32px 28px 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    backdrop-filter: blur(7px);
}

.hero-content a {
    text-shadow: none !important;
}

.hero h1, .hero-subtitle, .hero-deadline {
    text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin: 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-deadline {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Using CityU component-button-1 styles */

/* Section layout */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About section layout */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.about-text {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    padding: 0 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    text-align: left;
}

/* News section layout - matches About section */
.news-content {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    padding: 0 20px;
    margin: 0 auto;
}

.news-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.news-content ul, .news-content ol {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    padding-left: 30px;
}

.news-content h3, .news-content h4 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.deadline-box {
    background: var(--gradient-main);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.deadline-box i {
    font-size: 1.5rem;
}

/* Thematic areas list */
.thematic-areas {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.thematic-areas li {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.thematic-areas li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

/* Remove the old emoji/::before icons for thematic-areas */
/* .thematic-areas li::before, .thematic-areas li:nth-child(2)::before, .thematic-areas li:nth-child(3)::before { content: none !important; display: none !important; } */

.soft-matter-icon i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Restore icons in thematic-areas */
.thematic-areas i {
    display: inline;
    margin-left: 10px;
    font-size: 1.2em;
    vertical-align: middle;
    color: var(--primary-color);
}

/* Poster info styles */
.poster-content {
    max-width: 800px;
    margin: 0 auto;
}

.poster-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.poster-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.poster-icon i {
    font-size: 2rem;
    color: white;
}

.poster-details h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.poster-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

.poster-themes h4 {
    font-size: 1.2rem;
    color: #007BFF;
    margin-bottom: 15px;
}

.poster-themes ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.poster-themes li {
    background: #f8f9fa;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.poster-themes li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.poster-status {
    margin-top: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F7941D, #A51C51);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.status-badge i {
    font-size: 1.1rem;
}

/* Keynote speakers carousel */
.speakers-carousel {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    padding-bottom: 12px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.speakers-carousel::-webkit-scrollbar {
    display: none;
}
.speakers-track {
    display: flex;
    flex-direction: row;
    gap: 32px;
    min-width: 600px;
    width: max-content;
    padding: 8px 0 8px 2px;
    transition: transform 0.3s;
}
.speaker-card {
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    transition: all 0.3s ease;
    padding: 30px 18px 24px 18px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.speaker-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.speaker-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #A51C51, #F7941D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.speaker-avatar i {
    font-size: 2rem;
    color: white;
}
.speaker-card h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}
.speaker-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.speaker-topic {
    color: #666;
    font-style: italic;
    font-size: 0.98rem;
}
@media (max-width: 700px) {
    .speakers-track {
        gap: 16px;
        min-width: 320px;
    }
    .speaker-card {
        min-width: 210px;
        max-width: 210px;
        padding: 18px 8px 16px 8px;
    }
    .speaker-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
}

/* Schedule table styles */
.schedule-container {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(165,28,81,0.10);
    margin-top: 24px;
}
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.08rem;
    color: #333;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.schedule-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1.13rem;
    border-bottom: 3px solid var(--secondary-color);
    letter-spacing: 0.5px;
}
.schedule-table td, .schedule-table th {
    border: 1px solid #e0d3db;
}
.schedule-table td {
    padding: 18px 14px;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background 0.2s;
}
.schedule-table tr:nth-child(even) td {
    background: #f8f3f7;
}
.schedule-table td:hover {
    background: #f3e3ec;
    box-shadow: 0 2px 8px rgba(165,28,81,0.07);
    z-index: 1;
    position: relative;
}
.schedule-table tr:hover td {
    background: inherit;
    box-shadow: none;
}
.schedule-table tr:last-child td {
    border-bottom: none;
}
@media (max-width: 700px) {
    .schedule-table th, .schedule-table td {
        padding: 10px 4px;
        font-size: 0.98rem;
    }
}

/* Detailed schedule table styles */
.schedule-day-container {
    margin-bottom: 50px;
}

.schedule-detailed {
    margin-bottom: 30px;
}

.schedule-detailed th {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    vertical-align: middle;
}

.schedule-detailed td {
    padding: 16px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e0d3db;
    background: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

.schedule-detailed td:first-child {
    font-weight: 600;
    color: #333;
    background: #f8f3f7;
    text-align: center;
    white-space: nowrap;
}

.schedule-detailed tr:nth-child(even) td:first-child {
    background: #f0e8ed;
}

.schedule-detailed tr:nth-child(even) td:not(:first-child) {
    background: #fafafa;
}

.schedule-detailed td strong {
    color: var(--primary-color);
    font-weight: 700;
}

.schedule-detailed td em {
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

/* Parallel sessions table styles */
.schedule-parallel {
    font-size: 0.95rem;
}

.schedule-parallel th {
    background: var(--primary-color);
    color: #fff;
    padding: 14px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    vertical-align: middle;
    line-height: 1.4;
}

.schedule-parallel th small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.95;
    line-height: 1.5;
}

.schedule-parallel td {
    padding: 14px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0d3db;
    background: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
}

.schedule-parallel td:first-child {
    font-weight: 600;
    color: #333;
    background: #f8f3f7;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.schedule-parallel td:nth-child(5) {
    font-weight: 600;
    color: #333;
    background: #f8f3f7;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.schedule-parallel tr:nth-child(even) td:nth-child(5) {
    background: #f0e8ed;
}

.schedule-parallel tr:nth-child(even) td:first-child {
    background: #f0e8ed;
}

.schedule-parallel tr:nth-child(even) td:not(:first-child) {
    background: #fafafa;
}

.schedule-parallel td[colspan] {
    text-align: center;
    font-weight: 600;
    background: #fff3ec !important;
    color: var(--primary-color);
}

.schedule-parallel td strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .schedule-parallel {
        font-size: 0.85rem;
    }
    
    .schedule-parallel th,
    .schedule-parallel td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    
    .schedule-parallel th small {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .schedule-detailed th,
    .schedule-detailed td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .schedule-parallel {
        font-size: 0.8rem;
    }
    
    .schedule-parallel th,
    .schedule-parallel td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .schedule-parallel th small {
        font-size: 0.7rem;
        margin-top: 4px;
    }
}

/* Venue section layout */
.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.venue-details h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.venue-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-details i {
    color: var(--primary-color);
    width: 20px;
}

.venue-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.venue-map {
    height: 300px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.map-placeholder {
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #007BFF;
}

/* Organizers and sponsors */
.organizers-content {
    padding: 40px 0;
}

.contact-info, .organizer-block, .sponsor-block {
    text-align: center;
    margin-bottom: 30px;
}

.organizer-logos, .sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.organizer-block, .sponsor-block {
    margin-bottom: 40px;
}

.organizer-block h3, .sponsor-block h3 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.org-logo, .sponsor-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design tweaks */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-text {
        max-width: 98vw;
        padding: 0 8px;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .venue-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 15px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .poster-info {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .poster-icon {
        margin: 0 auto 20px;
    }
    
    .poster-themes li {
        text-align: left;
    }
    
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        padding: 16px 12px;
    }
    
    .contact-avatar {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 15px 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .venue-actions {
        flex-direction: column;
    }
}

.org-sponsor-row {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 32px;
    flex-wrap: nowrap;
}
.org-sponsor-row .organizer-block, .org-sponsor-row .sponsor-block {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 400px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}
@media (max-width: 900px) {
    .org-sponsor-row {
        flex-direction: column;
        gap: 32px;
        margin-top: 24px;
    }
    .org-sponsor-row .organizer-block, .org-sponsor-row .sponsor-block {
        max-width: 100%;
    }
}

.contact-info {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
    max-width: 420px;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(165,28,81,0.10);
    padding: 22px 28px 22px 18px;
    border-left: 6px solid var(--primary-color);
    position: relative;
    margin-left: 0;
    margin-right: 0;
    transition: box-shadow 0.3s;
}
.contact-card:hover {
    box-shadow: 0 8px 32px rgba(165,28,81,0.18);
}
.contact-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #A51C51, #F7941D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.contact-avatar i {
    font-size: 1.3rem;
    color: white;
}
.contact-details p {
    margin-bottom: 0;
    font-size: 1.08rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}
.contact-info h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}
@media (max-width: 600px) {
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 10px 16px 10px;
        gap: 10px;
    }
    .contact-info {
        max-width: 98vw;
    }
}

.sponsor-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
@media (max-width: 900px) {
    .sponsor-logos {
        flex-wrap: wrap;
        gap: 18px;
        justify-content: center;
    }
}

.table-legend {
    font-size: 0.98rem;
    color: #A51C51;
    margin-bottom: 10px;
    margin-top: 10px;
    font-style: italic;
    background: #f8f3f7;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
}

/* Back to top button styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(165,28,81,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top:hover {
    background: linear-gradient(135deg, #A51C51 0%, #F7941D 100%);
    box-shadow: 0 10px 25px rgba(165,28,81,0.18);
    transform: translateY(-3px);
}

/* Center organizer logos on all screens */
.organizer-logos {
    display: flex;
    justify-content: center !important;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

/* Speaker card text positioning fix */
.cityu .spotlightSwiper .card-body {
    height: 450px !important;
    min-height: 180px !important;
    padding: 35px 20px 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.cityu .spotlightSwiper .card-body .card-title {
    margin-bottom: 8px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
}

.cityu .spotlightSwiper .card-body .speaker-title {
    margin-bottom: 6px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.cityu .spotlightSwiper .card-body .speaker-topic {
    margin-bottom: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

/* Remove all gradient elements completely */
.cityu .spotlightSwiper .card-body::after {
    display: none !important;
}

/* Create a new grey box that covers the text area */
.cityu .spotlightSwiper .card-body::before {
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    z-index: -1 !important;
}

/* Set clean white background for card body */
.cityu .spotlightSwiper .card-body {
    background: transparent !important;
    background-image: none !important;
    position: relative !important;
    z-index: 1 !important;
}

#venue p {
    margin-bottom: 6px;
}

#venue .section-content {
    padding-top: 10px;
}

.section-content {
    padding-top: 10px !important;
} 

/* Ensure font consistency for About and Call for Registration sections */
.about-content, .about-content *,
.registration-content, .registration-content * {
    font-family: 'Inter', Arial, Helvetica, sans-serif !important;
} 

/* Match About section style to Call for Registration */
.about-content {
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.about-text {
    padding: 0 18px;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
}

.about-text p {
    text-align: left;
    margin-bottom: 18px;
}

.thematic-areas {
    margin: 32px 0 24px 0;
    padding: 0;
}

.thematic-areas li {
    background: #fff;
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.08rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thematic-areas i, .soft-matter-icon i {
    display: inline;
    margin-left: 10px;
    font-size: 1.2em;
    vertical-align: middle;
    color: var(--primary-color);
    margin-right: 0;
}

/* iPad Air and iPad Pro specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .cityu .spotlightSwiper .card-body {
        height: 650px !important;
        min-height: 650px !important;
        max-height: 650px !important;
        padding: 25px 20px 25px 20px !important;
        overflow-y: auto !important;
    }
    
    .cityu .spotlightSwiper .card-body::before {
        height: 650px !important;
        min-height: 650px !important;
    }
}

/* Responsive height for window resizing */
@media (max-width: 1200px) and (min-width: 1025px) {
    .cityu .spotlightSwiper .card-body {
        height: 600px !important;
        min-height: 600px !important;
        max-height: 600px !important;
        overflow-y: auto !important;
    }
    
    .cityu .spotlightSwiper .card-body::before {
        height: 600px !important;
        min-height: 600px !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .cityu .spotlightSwiper .card-body {
        height: 700px !important;
        min-height: 700px !important;
        max-height: 700px !important;
        overflow-y: auto !important;
    }
    
    .cityu .spotlightSwiper .card-body::before {
        height: 700px !important;
        min-height: 700px !important;
    }
}

/* Mobile responsive styles for plenary speaker cards */
@media (max-width: 768px) {
    .cityu .spotlightSwiper .card-body {
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        padding: 20px 15px 20px 15px !important;
        overflow-y: auto !important;
    }
    
    .cityu .spotlightSwiper .card-body::before {
        height: 500px !important;
        min-height: 500px !important;
    }
    
    .cityu .spotlightSwiper .card-body .card-title {
        font-size: 15px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        color: #A51C51 !important;
        text-align: center !important;
    }
    
    .cityu .spotlightSwiper .card-body .speaker-title {
        font-size: 13px !important;
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
        color: #A51C51 !important;
        text-align: center !important;
    }
    
    .cityu .spotlightSwiper .card-body .speaker-title:not(:first-of-type) {
        color: #888 !important;
        text-align: justify !important;
    }
    
    .cityu .spotlightSwiper .card-body .speaker-topic {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
        color: #bbb !important;
        text-align: justify !important;
    }
    
    .cityu .spotlightSwiper .card {
        margin-bottom: 20px !important;
    }
}

/* Override existing card styles for invited speakers - make grey area fit content exactly */
#invited_speakers .cityu .spotlightSwiper .card {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

/* Override CityU CSS fixed height with maximum specificity */
#invited_speakers .cityu .spotlightSwiper .card-body,
#invited_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body,
section#invited_speakers .cityu .spotlightSwiper .card-body,
section#invited_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 15px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
    background-image: none !important;
    background: #f5f5f5 !important;
}

#invited_speakers .cityu .spotlightSwiper .card-body::before,
#invited_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body::before,
section#invited_speakers .cityu .spotlightSwiper .card-body::before,
section#invited_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body::before {
    height: 200px !important;
    min-height: 200px !important;
    max-height: none !important;
    background-image: none !important;
    background: #f5f5f5 !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 8px !important;
}

#invited_speakers .card-img {
    display: block !important;
    margin: 0 auto 10px auto !important;
    width: 120px !important;
    height: 120px !important;
    object-position: center 20% !important;
}

#invited_speakers .card-title {
    text-align: center !important;
    font-size: 1rem !important;
    margin-bottom: 6px !important;
}

#invited_speakers .speaker-university {
    text-align: center !important;
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
}

#invited_speakers .speaker-title {
    text-align: center !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

#invited_speakers .details-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    margin-top: 8px !important;
}

/* Apply same styling to plenary speakers */
#plenary_speakers .card-img {
    display: block !important;
    margin: 0 auto 10px auto !important;
    width: 120px !important;
    height: 120px !important;
    object-position: center 20% !important;
}

#plenary_speakers .card-title {
    text-align: center !important;
    font-size: 1rem !important;
    margin-bottom: 6px !important;
}

#plenary_speakers .speaker-university {
    text-align: center !important;
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
}

#plenary_speakers .speaker-title {
    text-align: center !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

#plenary_speakers .details-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    margin-top: 8px !important;
}

/* Navigation arrows and pagination for invited speakers are now visible */

/* Additional override to ensure CityU CSS is completely overridden */
#invited_speakers .cityu .spotlightSwiper .card-body::after {
    display: none !important;
}

/* Ultra-specific override for invited speakers card height - this should definitely work */
#invited_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#invited_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 15px 12px !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}

#invited_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card .card-body::before {
    height: 200px !important;
    min-height: 200px !important;
    max-height: none !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 8px !important;
    position: absolute !important;
    z-index: -1 !important;
}

/* Final override - target everything possible for invited speakers */
#invited_speakers .card,
#invited_speakers .card-body,
#invited_speakers .swiper-slide,
#invited_speakers .swiper-slide .card,
#invited_speakers .swiper-slide .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
}

/* Apply same styling to plenary speakers */
#plenary_speakers .card {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

/* Override CityU CSS fixed height with maximum specificity for plenary speakers */
#plenary_speakers .cityu .spotlightSwiper .card-body,
#plenary_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body,
section#plenary_speakers .cityu .spotlightSwiper .card-body,
section#plenary_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 15px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
    background-image: none !important;
    background: #f5f5f5 !important;
}

#plenary_speakers .cityu .spotlightSwiper .card-body::before,
#plenary_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body::before,
section#plenary_speakers .cityu .spotlightSwiper .card-body::before,
section#plenary_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body::before {
    height: 200px !important;
    min-height: 200px !important;
    max-height: none !important;
    background-image: none !important;
    background: #f5f5f5 !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 8px !important;
}

/* Ultra-specific override for plenary speakers card height */
#plenary_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#plenary_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 15px 12px !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}

#plenary_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card .card-body::before {
    height: 200px !important;
    min-height: 200px !important;
    max-height: none !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 8px !important;
    position: absolute !important;
    z-index: -1 !important;
}

/* Additional override to ensure CityU CSS is completely overridden for plenary speakers */
#plenary_speakers .cityu .spotlightSwiper .card-body::after {
    display: none !important;
}

/* Final override - target everything possible for plenary speakers */
#plenary_speakers .card,
#plenary_speakers .card-body,
#plenary_speakers .swiper-slide,
#plenary_speakers .swiper-slide .card,
#plenary_speakers .swiper-slide .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
}

/* Apply same styling to keynote speakers */
#keynote_speakers .card {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

/* Override CityU CSS fixed height with maximum specificity for keynote speakers */
#keynote_speakers .cityu .spotlightSwiper .card-body,
#keynote_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body,
section#keynote_speakers .cityu .spotlightSwiper .card-body,
section#keynote_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 15px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
    background-image: none !important;
    background: #f5f5f5 !important;
}

#keynote_speakers .cityu .spotlightSwiper .card-body::before,
#keynote_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body::before,
section#keynote_speakers .cityu .spotlightSwiper .card-body::before,
section#keynote_speakers .cityu .spotlightSwiper .swiper-slide .card .card-body::before {
    height: 200px !important;
    min-height: 200px !important;
    max-height: none !important;
    background-image: none !important;
    background: #f5f5f5 !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 8px !important;
}

/* Ultra-specific override for keynote speakers card height */
#keynote_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#keynote_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
    padding: 15px 12px !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}

#keynote_speakers .component-carousel-1 .component-content .swiper.spotlightSwiper .swiper-wrapper .swiper-slide .card .card-body::before {
    height: 200px !important;
    min-height: 200px !important;
    max-height: none !important;
    background: #f5f5f5 !important;
    background-image: none !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 8px !important;
    position: absolute !important;
    z-index: -1 !important;
}

/* Additional override to ensure CityU CSS is completely overridden for keynote speakers */
#keynote_speakers .cityu .spotlightSwiper .card-body::after {
    display: none !important;
}

/* Apply same styling to keynote speakers */
#keynote_speakers .card-img {
    display: block !important;
    margin: 0 auto 10px auto !important;
    width: 120px !important;
    height: 120px !important;
    object-position: center 20% !important;
}

#keynote_speakers .card-title {
    text-align: center !important;
    font-size: 1rem !important;
    margin-bottom: 6px !important;
}

#keynote_speakers .speaker-university {
    text-align: center !important;
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
}

#keynote_speakers .speaker-title {
    text-align: center !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

#keynote_speakers .details-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    margin-top: 8px !important;
}

/* Final override - target everything possible for keynote speakers */
#keynote_speakers .card,
#keynote_speakers .card-body,
#keynote_speakers .swiper-slide,
#keynote_speakers .swiper-slide .card,
#keynote_speakers .swiper-slide .card-body {
    height: auto !important;
    min-height: 200px !important;
    max-height: none !important;
}

/* Speaker Details Button Styling */
.details-btn {
    background: linear-gradient(135deg, #A51C51 0%, #F7941D 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    margin-top: 12px !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transition: all 0.3s ease !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 12px rgba(165, 28, 81, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

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

.details-btn:hover::before {
    left: 100% !important;
}

.details-btn:hover {
    background: linear-gradient(135deg, #8a1642 0%, #e67e22 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(165, 28, 81, 0.4) !important;
}

/* Speaker Details Modal Styling */
#speakerDetailsModal .modal-content {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

#speakerDetailsModal .modal-header {
    background: linear-gradient(135deg, #A51C51 0%, #F7941D 100%) !important;
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none !important;
}

#speakerDetailsModal .modal-title {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

#speakerDetailsModal .btn-close {
    filter: invert(1) !important;
}

.details-section {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #A51C51 !important;
}

.section-title {
    color: #A51C51 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e9ecef !important;
}

.talk-item {
    background: white !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.talk-item h4 {
    color: #A51C51 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

.talk-item p {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

.talk-item p strong {
    color: #333 !important;
}

#bioContent p {
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* Responsive modal */
@media (max-width: 768px) {
    #speakerDetailsModal .modal-dialog {
        margin: 10px !important;
    }
    
    .details-section {
        padding: 15px !important;
    }
    
    .section-title {
        font-size: 1.2rem !important;
    }
}

/* Remove section-bg divs completely */
.cityu .section-bg,
.section-bg,
.section-bg.bg-skew-radius-left,
.section-bg.bg-skew-radius-right {
    display: none !important;
}

/* Add scroll offset so section titles are visible below fixed header */
html {
    scroll-padding-top: 80px !important;
}

section[id],
.section-wrap {
    scroll-margin-top: 80px !important;
}

/* Reduce scroll offset for news section to show the heading and title */
section#news,
section#news.section-wrap {
    scroll-margin-top: 0px !important;
}

/* Ensure section titles have enough top padding */
.section-content {
    padding-top: 50px !important;
}

/* Make section backgrounds white */
body,
body.cityu {
    background-color: white !important;
    background: white !important;
}

.cityu main,
main {
    background-color: white !important;
    background: white !important;
}

.cityu .section-wrap,
.section-wrap {
    background-color: white !important;
    background: white !important;
}

.cityu .section-content,
.section-content {
    background-color: white !important;
    background: white !important;
}

.cityu section,
section.section-wrap {
    background-color: white !important;
    background: white !important;
}

/* Gallery Styles */
.gallery-content {
    margin-top: 30px;
}

.gallery-title-container {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-title-main {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.gallery-title-sub {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.gallery-content h3,
.gallery-content h4 {
    color: #333;
    margin-bottom: 15px;
}

.image-gallery-container {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-viewport {
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: center;
}

.gallery-slide {
    flex-shrink: 0;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-slide.active {
    width: 40%;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.gallery-slide.prev,
.gallery-slide.next {
    opacity: 0.65;
    transform: scale(0.9);
    pointer-events: auto;
}

.gallery-image {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-caption {
    margin-top: 15px;
    padding: 10px 20px;
    text-align: center;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    max-width: 90%;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(165, 28, 81, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-nav-btn:hover {
    background: rgba(165, 28, 81, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: -25px;
}

.gallery-next {
    right: -25px;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    margin-top: 15px;
}

.gallery-counter {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.gallery-actions {
    display: flex;
    gap: 10px;
}

.gallery-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.gallery-action-btn:hover {
    background: #8a1642;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-action-btn i {
    font-size: 1rem;
}

/* Thumbnail Navigation */
.gallery-thumbnails {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px 15px 15px 25px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(165, 28, 81, 0.5);
    transform: scale(1.15);
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    max-width: 800px;
    padding: 0 20px;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
}

.lightbox-download {
    margin-top: 20px;
}

.lightbox-download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lightbox-download-btn:hover {
    background: #8a1642;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}