/* ========================================
   MODERN CONNECTIA CSS
   Modern UI enhancements for ConnectIA 2024
======================================== */

/* ========================================
   MODERN VARIABLES & BASE STYLES
======================================== */
:root {
    --primary-gradient: radial-gradient(circle at 30% 50%, #1664ff, #102baf, #2563eb);
    --primary-color: #1664ff;
    --secondary-color: #102baf;
    --accent-color: #ffc107;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Typography */
.modern-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

.modern-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.highlight {
    color: var(--accent-color) !important;
}

/* ========================================
   MODERN HEADER & HERO
======================================== */
.modern-header {
    position: relative;
}

.modern-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 43, 175, 0.9) 0%, rgba(22, 100, 255, 0.9) 50%, rgba(16, 43, 175, 0.9) 100%), url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 43, 175, 0.8) 0%, rgba(22, 100, 255, 0.8) 50%, rgba(16, 43, 175, 0.8) 100%);
    z-index: 1;
}

.modern-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.badge-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-title {
    font-size: 4rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
}

.modern-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

.modern-subsubtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Modern Buttons */
.modern-btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: none;
    background: var(--primary-gradient);
    color: white;
}

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

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.modern-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.modern-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ========================================
   MODERN SECTIONS
======================================== */
.modern-section {
    position: relative;
    padding: 80px 0;
}

.modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    padding-top: 60px;
    padding-bottom: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(22, 100, 255, 0.1);
    height: 100%; /* Ensure all cards have same height */
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card .features-icon {
    margin-bottom: 25px; /* Increased spacing between icon and text */
}

.modern-card .features-icon i {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-card .features-title,
.modern-card .features-title a {
    color: var(--dark-color) !important; /* Force black text */
}

.modern-card .text {
    color: var(--text-color) !important; /* Force black text */
}

/* Remove hover color changes for feature cards */
.modern-card:hover .features-title,
.modern-card:hover .features-title a,
.modern-card:hover .text {
    color: var(--dark-color) !important; /* Keep text black on hover */
}

/* ========================================
   ABOUT SECTION ENHANCEMENTS
======================================== */
.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.floating-element {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.tech-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.info-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.info-icon i {
    color: white;
    font-size: 1.5rem;
}

.info-content h4 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-weight: 600;
}

.info-content p {
    margin: 0;
    color: var(--text-muted);
}

/* ========================================
   2024 GALLERY SECTION - FIXED FOR HORIZONTAL PHOTOS
======================================== */
.gallery-2024-area {
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    aspect-ratio: 4/3; /* Fixed aspect ratio for horizontal photos */
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 43, 175, 0.9) 0%, rgba(22, 100, 255, 0.9) 50%, rgba(16, 43, 175, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay a {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay a {
    transform: scale(1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

/* ========================================
   SPEAKERS & SPONSORS SECTIONS
======================================== */
.speaker-benefits,
.sponsor-benefits {
    margin-top: 40px;
}

.benefit-item,
.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid rgba(22, 100, 255, 0.1);
    height: 100%; /* Ensure all benefit cards have same height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.benefit-card {
    align-items: center;
    text-align: center;
    padding: 25px;
    flex-direction: column;
}

.benefit-item:hover,
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.benefit-icon i {
    color: white;
    font-size: 1.5rem;
}

.benefit-content h5 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
    font-weight: 600;
}

.benefit-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Call for Speakers detail cards */
.call-details {
    margin-top: 40px;
}

.detail-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    padding-bottom: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid rgba(22, 100, 255, 0.1);
    height: 100%;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.detail-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-card ul li {
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.detail-card ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.detail-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-card strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* ========================================
   MODERN FOOTER
======================================== */
.modern-footer {
    background: var(--dark-color);
    color: white;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 43, 175, 0.05) 0%, rgba(22, 100, 255, 0.05) 50%, rgba(16, 43, 175, 0.05) 100%);
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* Add overlay to reduce background image visibility */
.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.85); /* Dark overlay to improve readability */
    z-index: 1;
}

.footer-about,
.footer-info,
.footer-contact {
    position: relative;
    z-index: 2;
}

.footer-logo img {
    max-width: 150px;
}

.footer-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.footer-stats .stat-item {
    text-align: left;
}

.footer-stats .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-stats .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    font-size: 1.1rem;
}

.info-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 2px;
}

.modern-contact-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 15px;
}

.modern-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.modern-contact-btn i {
    margin-right: 10px;
}

.social li a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social li a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ========================================
   MODERN BACK TO TOP
======================================== */
.modern-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
}

.modern-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .modern-title {
        font-size: 2.5rem;
    }
    
    .modern-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .benefit-card {
        flex-direction: column;
        text-align: center;
        height: auto; /* Allow height to adjust on mobile */
    }
    
    .benefit-icon {
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 576px) {
    .modern-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .modern-card {
        padding: 30px 20px;
        height: auto; /* Allow height to adjust on mobile */
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto 15px auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Ensure equal heights for sponsor benefit cards on desktop */
@media (min-width: 769px) {
    .sponsor-benefits .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .sponsor-benefits .col-md-6 {
        display: flex;
        margin-bottom: 30px;
    }
    
    .sponsor-benefits .benefit-card {
        width: 100%;
        text-align: center;
        align-items: center;
        flex-direction: column;
    }
    
    .sponsor-benefits .benefit-icon {
        margin-bottom: 20px;
    }
}

/* Ensure equal heights for speaker benefit items */
.speaker-benefits .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.speaker-benefits .col-md-4 {
    display: flex;
    margin-bottom: 30px;
}

.speaker-benefits .benefit-item {
    width: 100%;
}

/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.modern-card:hover .features-icon {
    animation: pulse 2s infinite;
}

/* Smooth scrolling - disabled for faster navigation */
html {
    scroll-behavior: auto;
}

/* Remove smooth scrolling from navigation links */
.page-scroll {
    scroll-behavior: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Focus states for accessibility */
.modern-btn:focus,
.modern-contact-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   2024 SPEAKERS SECTION
======================================== */
.speakers-2024-area {
    background: var(--light-color);
}

.speakers-grid .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.speakers-grid .col-lg-4,
.speakers-grid .col-md-6 {
    display: flex;
    margin-bottom: 30px;
}

.speaker-card {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.speaker-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    transition: all 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 100, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.speaker-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.speaker-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.speaker-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.3;
}

.speaker-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speaker-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.speaker-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-top: auto;
}

.speaker-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.speaker-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.speaker-link:hover i {
    transform: translateX(3px);
}

/* YouTube button */
.modern-btn i {
    margin-right: 8px;
}

/* ========================================
   SPEAKERS SECTION RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .speaker-image {
        height: 180px;
    }
    
    .speaker-content {
        padding: 20px;
    }
    
    .speaker-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .speakers-grid .col-lg-4,
    .speakers-grid .col-md-6 {
        margin-bottom: 20px;
    }
    
    .speaker-image {
        height: 160px;
    }
    
    .speaker-content {
        padding: 15px;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
} 

/* ========================================
   SPONSORS 2024 SECTION STYLES
======================================== */
.sponsors-2024-area {
    background: var(--light-color);
}

.sponsors-grid .row {
    margin-left: -15px;
    margin-right: -15px;
}

.sponsors-grid .col-lg-3,
.sponsors-grid .col-md-4,
.sponsors-grid .col-sm-6 {
    padding-left: 15px;
    padding-right: 15px;
}

.sponsor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(102, 102, 102, 0.1);
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.sponsor-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sponsor-logo svg {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-name {
    text-align: center;
    margin-top: auto;
}

.sponsor-name h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
}

.sponsor-card:hover .sponsor-name h5 {
    color: var(--primary-color);
}

/* ========================================
   BLACK SPONSOR SPECIAL STYLING
======================================== */
/* Simple larger logo for Black Sponsor */
.sponsor-black .sponsor-logo {
    height: 200px !important;
}

.sponsor-black .sponsor-logo img {
    max-height: 180px !important;
}

/* Responsive adjustments for sponsors */
@media (max-width: 768px) {
    .sponsor-card {
        padding: 25px 15px;
    }
    
    .sponsor-logo {
        height: 70px;
        margin-bottom: 15px;
    }
    
    .sponsor-logo svg,
    .sponsor-logo img {
        max-height: 50px;
    }
    
    .sponsor-name h5 {
        font-size: 14px;
    }
    
    /* Black sponsor mobile adjustments */
    .sponsor-black .sponsor-logo {
        height: 140px !important;
    }
    
    .sponsor-black .sponsor-logo img {
        max-height: 120px !important;
    }
}

@media (max-width: 576px) {
    .sponsors-grid .col-lg-3,
    .sponsors-grid .col-md-4,
    .sponsors-grid .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .sponsor-card {
        padding: 20px 10px;
    }
    
    .sponsor-logo {
        height: 60px;
        margin-bottom: 10px;
    }
    
    .sponsor-logo svg,
    .sponsor-logo img {
        max-height: 40px;
    }
    
    .sponsor-name h5 {
        font-size: 13px;
    }
    
    /* Black sponsor small mobile adjustments */
    .sponsor-black .sponsor-logo {
        height: 120px !important;
    }
    
    .sponsor-black .sponsor-logo img {
        max-height: 100px !important;
    }
} 

/* ========================================
   LOCATION SECTION STYLES
======================================== */
.location-area {
    background: var(--light-color);
}

.location-info {
    padding-right: 30px;
}

.location-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 20px;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon i {
    font-size: 24px;
    color: var(--white);
}

.location-content h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.location-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.location-map {
    position: relative;
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-actions {
    text-align: center;
}

.map-actions .main-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.map-actions .main-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: var(--white);
}

.map-actions .main-btn i {
    font-size: 16px;
}

/* Responsive Design for Location Section */
@media (max-width: 992px) {
    .location-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .location-card {
        padding: 20px;
    }
    
    .location-icon {
        width: 50px;
        height: 50px;
    }
    
    .location-icon i {
        font-size: 20px;
    }
    
    .location-content h4 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .location-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .location-icon {
        margin-bottom: 10px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .location-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .location-icon {
        width: 45px;
        height: 45px;
    }
    
    .location-icon i {
        font-size: 18px;
    }
    
    .location-content h4 {
        font-size: 15px;
    }
    
    .location-content p {
        font-size: 14px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .map-actions .main-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ========================================
   MULTI-SPEAKER GRID LAYOUT
======================================== */

/* Consistent border-radius for all speaker images */
.speaker-image img,
.speaker-photo img {
    border-radius: 12px;
}

.multi-speaker-grid {
    display: grid;
    gap: 8px;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
}

/* Two speakers layout */
.multi-speaker-grid:not(.three-speakers) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

/* Three speakers layout - equal sized photos in a row */
.multi-speaker-grid.three-speakers {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}

.multi-speaker-grid.three-speakers .speaker-photo:first-child {
    grid-column: 1;
    grid-row: 1;
}

.multi-speaker-grid.three-speakers .speaker-photo:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.multi-speaker-grid.three-speakers .speaker-photo:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.speaker-photo {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-photo img {
    transform: scale(1.05);
}

/* Responsive adjustments for multi-speaker cards */
@media (max-width: 768px) {
    .multi-speaker-grid {
        height: 180px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .multi-speaker-grid {
        height: 160px;
        gap: 4px;
    }
}

/* Featured three-speaker cards */
.featured-speaker-card {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.featured-speaker-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.featured-speaker-card .speaker-content {
    background: rgba(255, 255, 255, 0.95);
}

/* Center text in all speaker cards */
.speaker-content {
    text-align: center;
}

.speaker-name {
    text-align: center;
}

.speaker-title {
    text-align: center;
}

.speaker-description {
    text-align: center;
}

@media (max-width: 768px) {
    .featured-speaker-card {
        transform: scale(1.01);
    }
    
    .featured-speaker-card:hover {
        transform: scale(1.03);
    }
}
