/* Enhanced Speaker Page Layout */
.team3-section-area {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team3-section-area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Speaker Grid Layout */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
    margin-top: 30px;
}

/* Individual Speaker Card */
.our-team-boxarea.speaker-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.our-team-boxarea.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #080fed 0%, #FFF000 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.our-team-boxarea.speaker-card:hover::before {
    transform: scaleX(1);
}

.our-team-boxarea.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(8, 15, 237, 0.15);
    border-color: rgba(8, 15, 237, 0.1);
}

/* Speaker Image Container */
.team-widget-area {
    position: relative;
    margin-bottom: 25px;
}

.team-widget-area .img1 {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(8, 15, 237, 0.05) 0%, rgba(255, 240, 0, 0.05) 100%);
}

.team-widget-area .img1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 16px;
}

.speaker-card:hover .team-widget-area .img1 img {
    transform: scale(1.05);
}

/* Info Icon */
.share {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #080fed;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(8, 15, 237, 0.1);
    z-index: 2;
}

.speaker-card:hover .share {
    background: #080fed;
    color: white;
    transform: scale(1.1) rotate(360deg);
    border-color: #080fed;
}

/* Hover Overlay */
.hover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 15, 237, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.speaker-card:hover .hover-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Speaker Content Area */
.content-area {
    text-align: center;
    padding: 0 10px;
}

.content-area h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1A1719;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.speaker-card:hover .content-area h4 {
    color: #080fed;
}

.content-area p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 72px; /* Ensures consistent height */
}

/* Section Header Improvements */
.team2-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team2-header h5 {
    color: #080fed;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.team2-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1A1719;
    margin: 0;
    position: relative;
}

.team2-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #080fed 0%, #FFF000 100%);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .team3-section-area .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .team3-section-area {
        padding: 60px 0;
    }
    
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 0;
    }
    
    .our-team-boxarea.speaker-card {
        padding: 20px;
    }
    
    .team-widget-area .img1 {
        height: 200px;
    }
    
    .content-area h4 {
        font-size: 18px;
    }
    
    .content-area p {
        font-size: 13px;
    }
    
    .team2-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 0;
    }
    
    .our-team-boxarea.speaker-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .team-widget-area .img1 {
        height: 220px;
    }
    
    .content-area h4 {
        font-size: 18px;
    }
    
    .team2-header h2 {
        font-size: 28px;
    }
    
    .team2-header {
        margin-bottom: 30px;
    }
}

/* Animation for cards loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speaker-card {
    animation: fadeInUp 0.6s ease forwards;
}

.speaker-card:nth-child(1) { animation-delay: 0.1s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.3s; }
.speaker-card:nth-child(4) { animation-delay: 0.4s; }
.speaker-card:nth-child(5) { animation-delay: 0.5s; }
.speaker-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading state for cards */
.speaker-card {
    opacity: 0;
}

/* Additional spacing improvements */
.space28 {
    display: none; /* Remove extra spacing divs since we're using CSS margins */
}

.space16 {
    display: none; /* Remove extra spacing divs since we're using CSS margins */
}

.speaker-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.speaker-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.speaker-modal-container {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s ease;
}

.speaker-modal-overlay.active .speaker-modal-container {
    transform: scale(1) translateY(0);
}

.speaker-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
    color: #333;
}

.speaker-modal-close:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.speaker-modal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 500px;
}

.speaker-modal-left {
    background: linear-gradient(135deg, #080fed 0%, #3d47ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.speaker-modal-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 240, 0, 0.1) 0%, transparent 70%);
    animation: modalFloat 8s ease-in-out infinite;
}

@keyframes modalFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.speaker-image-wrapper {
    position: relative;
    z-index: 1;
}

.speaker-modal-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.speaker-modal-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 240, 0, 0.8);
}

.speaker-modal-right {
    padding: 40px;
    overflow-y: auto;
    max-height: 600px;
}

.speaker-modal-info h2 {
    font-size: 32px;
    color: #1A1719;
    margin-bottom: 8px;
    font-weight: 700;
}

.speaker-modal-info h4 {
    color: #080fed;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.speaker-modal-section {
    margin-bottom: 30px;
}

.speaker-modal-section h5 {
    color: #1A1719;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.speaker-modal-section h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #080fed 0%, #FFF000 100%);
}

.speaker-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.speaker-tag {
    background: linear-gradient(135deg, #080fed 0%, #3d47ff 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.speaker-modal-section p {
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.speaker-session-details {
    background: linear-gradient(135deg, rgba(8, 15, 237, 0.05) 0%, rgba(255, 240, 0, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #080fed;
}

.session-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-item i {
    width: 20px;
    color: #080fed;
    margin-right: 12px;
}

.session-item span {
    font-weight: 500;
    color: #333;
}

.speaker-credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.speaker-credentials-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #555;
    line-height: 1.6;
}

.speaker-credentials-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #080fed;
    font-weight: bold;
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .speaker-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .speaker-modal-content {
        grid-template-columns: 1fr;
    }
    
    .speaker-modal-left {
        min-height: 300px;
        padding: 20px;
    }
    
    .speaker-modal-image {
        width: 200px;
        height: 200px;
    }
    
    .speaker-modal-right {
        padding: 20px;
        max-height: none;
    }
    
    .speaker-modal-info h2 {
        font-size: 24px;
    }
    
    .speaker-modal-info h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .speaker-modal-container {
        width: 98%;
        border-radius: 15px;
    }
    
    .speaker-modal-right {
        padding: 15px;
    }
    
    .speaker-modal-left {
        padding: 15px;
    }
    
    .speaker-modal-image {
        width: 150px;
        height: 150px;
    }
}