/* Remove red overlay from main slider */
.page-section.background-img-slider:before,
.page-section.background-img-slider:after {
    display: none !important;
    background: none !important;
    content: none !important;
}

.page-section.background-img-slider {
    background-color: transparent !important;
}

/* Ensure slide items don't have red background */
#main-slider .item {
    background-color: transparent !important;
}

/* Specific fix for slide3 red overlay */
.slide3:before,
.slide3:after,
.slide3 .caption .container:before,
.slide3 .caption .container:after {
    display: none !important;
    background: none !important;
    content: none !important;
}

/* Ensure consistent text color if needed, though background removal is primary */
.slide3 .caption-title,
.slide3 .caption-subtitle,
.slide3 .caption-text {
    z-index: 10;
    /* Ensure text is above any potential remaining background */
    position: relative;
}

/* Navbar Logo Right Styling */
/* Navbar Logo Group (Flexbox for perfect alignment) */
.logos-group {
    float: left;
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure it takes full height of header if needed, or let content dictate */
}

/* Navbar Logo Styling */
.logo {
    float: none;
    /* Flex item */
    margin-right: 20px;
    padding: 15px 0;
    /* Add padding to match header height or spacing */
    margin-top: 0 !important;
    /* Reset margin */
}

.logo-right {
    float: none;
    /* Flex item */
    margin-left: 0;
    margin-top: 0 !important;
    /* Let flexbox handle vertical alignment */
    padding: 15px 0;
}

.logo img,
.logo-right img {
    vertical-align: middle;
}

.shrink .logo,
.shrink .logo-right {
    padding: 5px 0;
    /* Reduce padding on shrink */
}

.logo-right img {
    height: 50px !important;
    width: auto !important;
    display: block;
}

@media (max-width: 991px) {
    .logos-group {
        width: 100%;
        padding-right: 50px; /* Make room for the menu toggle */
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .logo-right {
        display: flex;
        margin-left: 0;
        margin-top: 0 !important;
        padding: 5px 0 !important;
    }

    .logo-right img {
        height: 35px !important;
        width: auto !important;
    }

    .logo {
        display: flex;
        margin-right: 0;
        margin-top: 0 !important;
        padding: 5px 0 !important;
    }

    .logo img {
        max-height: 35px !important;
        width: auto !important;
    }

    .navigation {
        clear: both;
        margin-left: 0;
        float: none !important;
    }
}

/* Override navigation to float left */
.navigation {
    float: left !important;
    margin-left: 30px;
}

/* Header Vertical Alignment Fix */
.header-wrapper {
    display: flex;
    align-items: center;
}

/* Ensure mobile menu doesn't break flex layout */
@media (max-width: 991px) {
    .header-wrapper {
        display: block;
        /* Revert to block on mobile for standard behavior */
    }

    .navigation {
        float: none !important;
    }
}

/* Reduce header grey bar visibility */
.wide .header.shrink,
.boxed .header.shrink>.container,
.header.shrink-off {
    background-color: rgba(68, 68, 68, 0.9) !important;
}

/* Fix for invisible headers in Host Institution section */
#about h4,
#about h5,
#host-institution h4,
#host-institution h5 {
    color: #2c3e50 !important;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Helper class for theme color text */
.text-theme {
    color: #ed4a43 !important;
}

/* Icon Navigation Tooltips */
.icon-nav li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide text and style as tooltip on desktop */
@media (min-width: 992px) {
    .icon-nav li a .nav-text {
        visibility: hidden;
        opacity: 0;
        width: auto;
        white-space: nowrap;
        background-color: rgba(35, 40, 45, 0.95);
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 6px 14px;
        position: absolute;
        z-index: 999;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px) scale(0.9);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.5px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        pointer-events: none;
        backdrop-filter: blur(4px);
    }

    .icon-nav li a .nav-text::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent rgba(35, 40, 45, 0.95) transparent;
    }

    .icon-nav li a:hover .nav-text {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(8px) scale(1);
    }
    
    .icon-nav li a i {
        font-size: 1.4em;
    }
}

/* Show text normally on mobile menu */
@media (max-width: 991px) {
    .icon-nav li a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
}

/* Sizing for Custom Image Icons */
.icon-nav li a .nav-custom-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.icon-nav li a:hover .nav-custom-icon {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .icon-nav li a .nav-custom-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}

/* Flexbox alignment for desktop navigation */
@media (min-width: 992px) {
    ul.icon-nav {
        display: flex;
        align-items: center;
    }
    ul.icon-nav > li {
        float: none !important;
    }
}

/* Navigation Register Button */
.icon-nav .nav-register-item a.nav-register-btn {
    background-color: #374146; /* Modern grey */
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 8px 22px !important;
    border-radius: 30px;
    margin-left: 15px;
    margin-top: 0; /* Align vertically with the icons using flexbox instead */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
    white-space: nowrap;
}

.icon-nav .nav-register-item a.nav-register-btn:hover {
    background-color: #ed4a43 !important; /* Theme pink */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(237, 74, 67, 0.4);
}

@media (max-width: 991px) {
    .icon-nav .nav-register-item a.nav-register-btn {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
        border-radius: 6px;
    }
}

/* Modern Dropdown Styling */
.sf-menu ul {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 10px 0 !important;
    border: none !important;
    min-width: 280px !important;
}

.sf-menu ul li {
    background-color: transparent !important;
}

.sf-menu ul li a {
    color: #333333 !important;
    padding: 12px 20px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    padding-left: 30px !important; /* Space for bullet */
    white-space: normal !important;
    line-height: 1.4 !important;
}

/* Bullet styling */
.sf-menu ul li a::before {
    content: "•";
    color: #ed4a43; /* theme color */
    font-size: 18px;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.sf-menu ul li:last-child a {
    border-bottom: none !important;
}

.sf-menu ul li a:hover {
    color: #ed4a43 !important;
    background-color: #fafafa !important;
    padding-left: 35px !important; /* Move bullet slightly on hover */
}

.sf-menu ul li a:hover::before {
    left: 17px;
}

/* Fix dropdown width on mobile */
@media (max-width: 991px) {
    .sf-menu ul {
        min-width: auto !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-right: 15px !important; /* Margin from the right bezel */
    }
}

/* Make "Faculty Development Program" look like a sub-item of "Pre conference" */
.sf-menu ul li a[href="faculty-development-program.html"] {
    padding-left: 45px !important;
    color: #555555 !important;
    font-size: 13.5px !important;
}

.sf-menu ul li a[href="faculty-development-program.html"]::before {
    content: "↳";
    left: 25px;
    font-size: 16px;
    color: #888888;
}

.sf-menu ul li a[href="faculty-development-program.html"]:hover {
    padding-left: 50px !important;
    color: #ed4a43 !important;
}

.sf-menu ul li a[href="faculty-development-program.html"]:hover::before {
    left: 30px;
    color: #ed4a43;
}

/* Home Page Popup */
.home-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.home-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.home-popup-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-popup-overlay.active .home-popup-content {
    transform: translateY(0) scale(1);
}

.home-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.home-popup-close:hover {
    color: #ed4a43;
    background: rgba(237, 74, 67, 0.1);
}

.home-popup-header h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.home-popup-body p {
    font-size: 18px;
    color: #555;
    margin: 20px 0 30px;
    line-height: 1.5;
}

.home-popup-body .btn {
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: #ed4a43;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(237, 74, 67, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.home-popup-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 74, 67, 0.6);
    color: #fff;
}

.home-popup-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #888;
}

.popup-timer {
    display: inline-block;
    background: #f5f5f5;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* Mobile Responsiveness for Popup */
@media (max-width: 767px) {
    .home-popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    .home-popup-header h3 {
        font-size: 22px;
    }
    .home-popup-body p {
        font-size: 16px;
        margin: 15px 0 20px;
    }
    .home-popup-body .btn {
        padding: 10px 20px;
        font-size: 14px;
        white-space: normal;
    }
    .home-popup-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
}

/* ==========================================================================
   Speakers Page Grid, Pill Categories & Modal Lightbox
   ========================================================================== */
.speakers-section {
    padding: 50px 0 80px 0;
    background-color: #fdfdfd;
}

.speakers-intro {
    max-width: 800px;
    margin: 0 auto 35px auto;
}

.speakers-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Category Pill Filter Navigation */
.speaker-filter-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.speaker-filter-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #f0f3f6;
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pill-btn {
    border: none;
    background: transparent;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill-btn .badge-count {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.pill-btn:hover {
    color: #ed4a43;
    background: rgba(237, 74, 67, 0.08);
}

.pill-btn.active {
    background: #ed4a43;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(237, 74, 67, 0.35);
}

.pill-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Speakers Symmetric Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.speaker-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease, opacity 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

.speaker-card.is-hidden {
    display: none !important;
}

.speaker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(237, 74, 67, 0.15);
}

.speaker-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f9fa;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.speaker-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(35, 40, 45, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.speaker-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.speaker-card:hover .speaker-img-wrapper img {
    transform: scale(1.05);
}

.speaker-info {
    padding: 20px 18px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.speaker-info h3 {
    font-size: 17px;
    margin: 0 0 6px 0;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.speaker-info p {
    font-size: 13px;
    color: #ed4a43;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .speaker-filter-pills {
        border-radius: 20px;
        padding: 6px;
    }
    .pill-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .speakers-section {
        padding: 35px 0 50px 0;
    }
}

/* Speaker Lightbox Modal */
.speaker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.speaker-modal.active {
    opacity: 1;
    visibility: visible;
}

.speaker-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.speaker-modal.active .speaker-modal-content {
    transform: scale(1) translateY(0);
}

.speaker-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    color: #555;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
    border: none;
}

.speaker-modal-close:hover {
    background: #ed4a43;
    color: #ffffff;
}

.speaker-modal-body {
    padding: 35px;
    text-align: center;
}

.speaker-modal-img {
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 25px;
}

.speaker-modal-name {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 6px;
}

.speaker-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #ed4a43;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.speaker-modal-bio {
    font-size: 14.5px;
    color: #555;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
    padding: 0 5px;
}

