/* Modern Redesign Styles for Conference Website */

:root {
    --primary-gradient: linear-gradient(90deg, #ff006e 0%, #3a0ca3 100%);
    --secondary-bg: #10111e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --accent-pink: #ff006e;
    --accent-purple: #3a0ca3;
    --section-bg: #10111e;
}

/* Section Backgrounds - Exhibz Style */
.section-bg-dark {
    background-color: var(--secondary-bg) !important;
    color: #fff !important;
    position: relative;
    z-index: 1;
}

.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark p,
.section-bg-dark li {
    color: #fff !important;
}

/* Ensure list icons and title bars are visible */
.section-bg-dark .experience-list li::before {
    -webkit-text-fill-color: #ff006e !important;
}

/* Fix for Why Join section invisible text (white on white) */
.section-bg-dark .single-intro-text h3,
.section-bg-dark .single-intro-text p,
.section-bg-dark .single-intro-text .count-number {
    color: #1c1c24 !important;
}

.single-intro-text {
    background: #fff;
    padding: 30px;
    border-radius: 0px;
    box-shadow: var(--card-shadow);
}

.square-btn {
    border-radius: 0px !important;
}

/* Testimonials Section */
.ts-testimonials {
    padding: 100px 0;
    position: relative;
    overflow: visible;
    /* Changed from hidden to see if items are clipped */
    background: #fdfdfd;
    z-index: 1;
}

/* Global Square Utility */
.form-control,
.input-group-text,
.card,
.modal-content,
.dropdown-menu,
.nav-tabs .nav-link,
.counter-item,
.single-intro-text,
.ts-speaker,
.ts-schedule-nav ul li a,
.pricing-item {
    border-radius: 0px !important;
}

.testimonial-slider .owl-item.active {
    opacity: 1;
}

.testimonial-card {
    background: #fff;
    border-radius: 0px;
    /* Square */
    padding: 40px;
    margin: 20px 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #5F00FF;
}

.testimonial-quote-icon {
    font-size: 40px;
    color: #F94C6B;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-text {
    font-style: italic;
    font-size: 17px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img img {
    width: 60px !important;
    height: 60px;
    border-radius: 0%;
    /* Square author images as part of theme */
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    margin-bottom: 0px;
    font-weight: 700;
    font-size: 18px;
    color: #1c1c24;
}

.author-info span {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Title Enhancements */
.section-title.modern {
    margin-bottom: 60px;
}

.section-title.modern h2 {
    font-size: 42px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.section-title.modern .title-bar {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto;
    border-radius: 0px;
    /* Square bar */
}

/* Registration Deadlines Section */
.ts-booking-dates {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.ts-booking-dates:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 36, 0.4);
    /* Reduced opacity for lighter feel */
    z-index: -1;
}

.section-title.modern.white h2 {
    color: #fff;
}

.date-card {
    background: #ffffff;
    /* Solid light white background */
    border: none;
    border-radius: 15px !important;
    /* Rounded corners */
    padding: 45px 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

.date-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

.date-card.active {
    border: 2px solid #5F00FF;
    box-shadow: 0 20px 50px rgba(95, 0, 255, 0.15);
}

.date-icon {
    font-size: 50px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.date-header h3 {
    color: #1a1a2e;
    /* Dark readable text */
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Text visibility inside cards */
.date-card .date-info {
    color: #555 !important;
    font-size: 15px;
    margin-bottom: 10px;
    opacity: 1;
}

.date-card .date-range {
    color: #1a1a2e !important;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 15px;
}

.date-card .description {
    color: #777 !important;
    font-size: 14px;
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 50px !important;
    /* Pill style for modern feel */
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.status-badge.closed {
    background: #f1f1f1;
    color: #888;
}

.status-badge.active {
    background: #5F00FF;
    color: #fff;
}

.status-badge.upcoming {
    background: #F94C6B;
    color: #fff;
}

.date-range {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.date-info {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* CTA Premium Section */
.ts-cta-premium-section {
    padding: 80px 0;
    background: #f8f9fa;
    /* Light gray background */
    position: relative;
    overflow: hidden;
}

.cta-card-modern {
    background: #ffffff;
    /* White background for cards */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Soft dark border */
    border-radius: 0px;
    /* Square */
    padding: 50px 35px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.cta-card-modern:hover {
    transform: translateY(-15px);
    background: #ffffff;
    border-color: rgba(95, 0, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.cta-card-modern.active {
    background: #ffffff;
    border-color: rgba(95, 0, 255, 0.3);
    box-shadow: 0 15px 35px rgba(95, 0, 255, 0.1);
}

.cta-icon {
    font-size: 55px;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-card-modern h3 {
    color: #1a1a2e;
    /* Darker text for light background */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-card-modern p {
    color: #666;
    /* Gray text for readability */
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 0px;
    /* Square */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-btn-modern i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-btn-modern:hover {
    color: #fff;
    box-shadow: 0 10px 20px rgba(95, 0, 255, 0.3);
}

.cta-btn-modern:hover i {
    transform: translateX(5px);
}

/* Experience Modern Section */
.ts-experience-modern {
    padding: 100px 0;
    background: #ffffff;
    /* Pure white background */
}

.experience-img-wrap {
    position: relative;
    padding-right: 30px;
}

.experience-img {
    height: 550px;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    /* Square image */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.img-decoration {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    filter: blur(80px);
    opacity: 0.15;
    /* Subtler glow for light background */
    z-index: 1;
}

.experience-content-wrap {
    padding-left: 40px;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.experience-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 18px;
    color: #444;
    /* Darker text for light background */
    font-size: 16px;
    line-height: 1.5;
}

.experience-list li::before {
    content: '\f058';
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-bar.left {
    margin: 15px 0 25px;
}

/* Responsiveness */
@media (max-width: 991px) {
    .cta-card-modern {
        margin-bottom: 30px;
    }

    .ts-footer-social ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-radius: 0px;
        /* Square */
        transition: all 0.3s ease;
    }

    .ts-footer-social ul li a:hover {
        background: var(--primary-gradient);
        transform: translateY(-3px);
    }

    .experience-content-wrap {
        padding-left: 0;
        margin-top: 50px;
    }

    .experience-img {
        height: 400px;
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px 20px;
    }
}

/* Speaker Popup Social Icons */
/* Modern Speaker Modal Enhancements - Matching Reference UI */
.ts-speaker-popup {
    border-radius: 0px;
}

.ts-speaker-popup .ts-speaker-popup-content {
    padding: 50px 40px;
}

.ts-speaker-popup .ts-speaker-popup-content .ts-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.ts-speaker-popup .speaker-session-info span {
    color: #888;
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
}

/* Plain Social Icons */
.ts-speaker-popup-social ul {
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.ts-speaker-popup-social ul li a {
    background: transparent !important;
    border: none !important;
    color: #ababab !important;
    font-size: 18px !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    transition: color 0.3s ease;
}

.ts-speaker-popup-social ul li a:hover {
    color: #ff006e !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Sessions Grid Layout */
.speaker-sessions-wrap {
    margin-top: 35px;
}

.speaker-sessions-wrap h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 25px;
}

.sessions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.session-item {
    flex: 1;
    min-width: 150px;
}

.session-day {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a2e;
    display: block;
    margin-bottom: 10px;
}

.session-time {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.session-title {
    color: #ff006e !important;
    font-weight: 600;
    font-size: 15px;
    display: block;
}

/* Scientific Sessions Grid */
.scientific-sessions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px 0;
    list-style: none !important;
}

.session-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 50px;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 0, 110, 0.3);
}

.session-card i {
    color: #555;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.session-card:hover i {
    color: #ff006e;
}

.session-card span {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .scientific-sessions-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section Modern Redesign */
.about-modern-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.about-image-wrap {
    position: relative;
    padding-left: 30px;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.about-image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 20px;
    opacity: 0.1;
    z-index: 1;
}

.section-tagline {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 10px;
}

.modern-title {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 25px;
    line-height: 1.2;
}

.modern-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Feature Cards */
.features-grid {
    margin-top: 40px;
}

.feature-card-modern {
    background: #fff;
    padding: 35px 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(95, 0, 255, 0.2);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(95, 0, 255, 0.2);
}

.feature-card-modern h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.feature-card-modern p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Highlight Tags */
.highlights-wrap {
    margin-top: 50px;
}

.highlights-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.highlight-tag {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    transition: all 0.3s ease;
    cursor: default;
}

.highlight-tag:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 0, 255, 0.2);
}

/* Speakers Modern Redesign - Square Style */
.ts-speaker {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ts-speaker:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 0, 110, 0.2);
}

.ts-speaker .speaker-img {
    width: 100% !important;
    height: 250px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    position: relative;
    overflow: hidden;
}

.ts-speaker .speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.ts-speaker:hover .speaker-img img {
    transform: scale(1.1);
}

.ts-speaker .speaker-img:before {
    background: linear-gradient(to top, rgba(16, 17, 30, 0.8), transparent) !important;
}

.ts-speaker .view-speaker {
    background: var(--primary-gradient) !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.ts-speaker .ts-speaker-info {
    padding: 0 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-speaker .ts-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    font-family: 'Outfit', sans-serif;
}

.ts-speaker .ts-title a {
    color: #1a1a2e !important;
    transition: color 0.3s ease;
}

.ts-speaker:hover .ts-title a {
    color: #ff006e !important;
}

.ts-speaker p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin-bottom: 0 !important;
}

/* Modern Speaker Modal Redesign */
.ts-speaker-modal {
    display: flex;
    background: #fff;
    max-width: 950px;
    margin: 40px auto;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: visible;
    /* To allow close button overlap if needed */
}

.speaker-modal-image {
    flex: 0 0 38%;
    background: #f8f9fa;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.speaker-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speaker-modal-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.modal-name {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
    color: #1a1a2e;
}

.modal-designation {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-country {
    font-size: 16px;
    color: #ff006e;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-sessions {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-sessions h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ff006e;
}

.modal-sessions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-sessions ul li {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.modal-sessions ul li::before {
    content: "\f017";
    /* clock icon */
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: #ff006e;
    font-weight: 400;
}

.modal-bio {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-bio h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff006e;
}

.modal-bio p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 0;
}

.modal-social ul {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.modal-social ul li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
}

.modal-social ul li a:hover {
    background: var(--primary-gradient, #ff006e);
    color: #fff;
    transform: translateY(-5px);
}

/* Close button positioning for Magnific Popup */
.mfp-wrap .mfp-close {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    background: var(--primary-gradient, #ff006e) !important;
    color: #fff !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    top: -20px !important;
    right: -20px !important;
    padding: 0 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3) !important;
}

@media (max-width: 991px) {
    .ts-speaker-modal {
        flex-direction: column;
        max-width: 90%;
    }

    .speaker-modal-image {
        flex: 0 0 auto;
        border-radius: 20px 20px 0 0;
    }

    .speaker-modal-image img {
        max-height: 400px;
    }

    .speaker-modal-content {
        padding: 30px;
    }

    .modal-name {
        font-size: 28px;
    }

    .mfp-wrap .mfp-close {
        top: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 768px) {
    .ts-speaker .speaker-img {
        height: 280px !important;
    }
}

@media (max-width: 991px) {
    .about-image-wrap {
        padding-left: 0;
        margin-top: 50px;
        order: -1;
    }

    .modern-title {
        font-size: 32px;
    }
}