/*
================================================================================
  Custom CSS for the Modern Single Event Page Template (V5 - Final Optimized)
================================================================================
*/

/* --- Header Spacing & Alignment (New) --- */
header .navbar-brand img {
    max-height: 50px; /* Increased logo size for better balance */
}
header .navbar .navbar-nav .nav-link {
    padding-left: 16px; 
    padding-right: 16px;
}
header .navbar > .container-fluid {
    align-items: center;
}
header .header-button {
    margin-left: 15px; /* Adds space between "Contact Us" and the button */
}

/* --- General Layout & Spacing --- */
.event-template-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.event-main-content .event-section {
    padding-top: 80px; 
    margin-top: -60px; 
    margin-bottom: 50px;
}
.event-main-content .event-section:last-of-type {
    margin-bottom: 0;
}
.event-main-content .event-section h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--extra-medium-gray);
    display: inline-block;
}

/* --- Top Banner Section --- */
.event-top-section {
    padding-top: 60px; /* Header height + spacing */
    padding-bottom: 60px;
    background-color: #f7f8f9;
}
.event-banner-slider {
    height: 550px; 
    border-radius: 12px;
    overflow: hidden;
}
.event-banner-slider .swiper-slide {
    background-size: cover;
    background-position: center;
}
.event-banner-slider .swiper-button-next, 
.event-banner-slider .swiper-button-prev {
    color: #fff; background-color: rgba(0,0,0,0.3); border-radius: 50%; width: 45px; height: 45px; transition: background-color 0.3s ease;
}
.event-banner-slider .swiper-button-next:hover, 
.event-banner-slider .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.6);
}
.event-banner-slider .swiper-pagination-bullet { background: rgba(255,255,255,0.7); opacity: 1; }
.event-banner-slider .swiper-pagination-bullet-active { background: var(--base-color); }

/* --- Registration Form Widget --- */
.sidebar-sticky { position: -webkit-sticky; position: sticky; top: 120px; }
.registration-widget { background-color: var(--dark-gray); padding: 35px; border-radius: 12px; }
.registration-widget h5, .registration-widget .form-label { color: #fff; }
.registration-widget .form-control { height: 48px; background-color: #343a40; border-color: #495057; color: #fff; }
.registration-widget .form-control::placeholder { color: #adb5bd; }

/* --- Event Header Info (Re-styled) --- */
.event-header-info {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e9e9e9;
}
.event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
    width: 65px;
}
.event-date-block .month {
    font-size: 16px;
    color: var(--base-color);
    text-transform: uppercase;
    font-weight: 700;
}
.event-date-block .day {
    font-size: 36px;
    color: var(--dark-gray);
    letter-spacing: -1px;
}
.event-title-details {
    flex-grow: 1;
}
.event-title-details h2 {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
}
.event-title-details .location-info {
    margin: 0;
    font-size: 15px;
    color: var(--medium-gray);
}
.event-title-details .location-info i {
    margin-right: 8px;
}
.event-share-button {
    margin-left: auto;
    flex-shrink: 0;
}
.event-share-button .btn {
    border-color: var(--extra-medium-gray);
    font-weight: 600;
    font-size: 13px;
    padding: 5px 15px;
}


/* --- In-Page Sticky Navigation --- */
.event-navigation-bar {
    position: -webkit-sticky; position: sticky; top: 100px; 
    background: #fff; padding: 10px 20px; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07); z-index: 10;
    margin-bottom: 30px; display: flex; gap: 25px; border: 1px solid #e9e9e9;
}
.event-navigation-bar a {
    font-weight: 600; color: var(--medium-gray); padding: 10px 5px;
    border-bottom: 2px solid transparent; transition: all 0.3s ease;
}
.event-navigation-bar a:hover, .event-navigation-bar a.active {
    color: var(--dark-gray); border-bottom-color: var(--base-color);
}

/* --- Custom Highlight List Style (Added) --- */
.custom-highlight-list { list-style: none; padding-left: 0; }
.custom-highlight-list li {
    position: relative; padding-left: 30px; margin-bottom: 12px;
    font-size: 16px; line-height: 1.6; color: var(--dark-gray);
}
.custom-highlight-list li::before {
    content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    color: #fff; background-color: var(--base-color);
    position: absolute; left: 0; top: 4px; font-size: 12px;
    height: 20px; width: 20px; line-height: 20px; text-align: center;
    border-radius: 50%;
}

/* --- Gallery (Masonry with working lightbox) (Optimized) --- */
.gallery-wrapper.grid { margin-left: -15px; margin-right: -15px; }
.gallery-wrapper .grid-item { padding: 15px; }
.gallery-wrapper .gallery-box { display: block; }
.gallery-wrapper .gallery-image {
    transition: all 0.3s ease; border-radius: 8px;
}
.gallery-wrapper .gallery-box .gallery-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-wrapper .gallery-box:hover .gallery-image {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- Speakers & Venue --- */
.speaker-list { list-style: none; padding: 0; margin: 0; }
.speaker-list li { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; background-color: #f8f9fa; padding: 15px; border-radius: 8px; }
.speaker-list img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.speaker-info .speaker-name { display: block; font-weight: 600; color: var(--dark-gray); font-size: 18px; }
.speaker-info .speaker-title { display: block; color: var(--medium-gray); font-size: 15px; }

.sidebar-widget#venue { 
    background-color: #f8f9fa; 
    border-radius: 12px; 
    padding: 30px; 
}
.sidebar-widget#venue h5.venue-title { font-weight: 600; color: var(--dark-gray); margin-bottom: 20px; }
.venue-details img { width: 100%; border-radius: 8px; flex-shrink: 0; }
.venue-info { padding-top: 15px; }
.venue-info h5 { margin-bottom: 10px; font-weight: 700; }
.venue-info p { margin-bottom: 15px; }
.venue-info .btn-link { font-weight: 600; }

/* --- Sponsors Section (Optimized) --- */
.sponsor-slider .swiper-slide { text-align: center; }
.sponsor-slider .sponsor-logo img {
    max-height: 60px; 
    width: auto; 
    filter: grayscale(100%);
    opacity: 0.6; 
    transition: all 0.3s ease;
}
.sponsor-slider .swiper-slide:hover .sponsor-logo img {
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.05);
}


/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .sidebar-sticky, .event-navigation-bar { position: static; top: auto; }
    .event-main-content { margin-top: 40px; }
    .registration-widget { margin-top: 40px; }
}
@media (max-width: 767px) {
    .event-navigation-bar { flex-wrap: nowrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
    .event-navigation-bar::-webkit-scrollbar { display: none; }
    .event-navigation-bar a { flex-shrink: 0; }
    .event-header-info { flex-direction: column; align-items: flex-start; }
    .event-title-details h2 { font-size: 1.8rem; }
    .event-share-button { margin-left: 0; margin-top: 15px; }
}