/* Conferences Section Styles */
.conferences-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.conferences-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(193, 56, 50, 0.08) 0%, rgba(193, 56, 50, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.conferences-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.06) 0%, rgba(26, 54, 93, 0.02) 100%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.conferences-section .container {
    position: relative;
    z-index: 1;
}

/* Grid Layout */
.conferences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Conference Card - Matching theme's centre-card style */
.conference-card {
    background: #ffffff;
    border: 1px solid #e8f3fe;
    border-radius: 9px;
    padding: 2rem 1.5rem;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0px 6px #e4eaf0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.conference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 56, 50, 0.06), transparent);
    transition: left 0.6s ease;
}

.conference-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(193, 56, 50, 0.2);
    transform: translateY(-5px);
}

.conference-card:hover::before {
    left: 100%;
}

.conference-link {
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.conference-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.6;
    transition: all 0.3s ease;
    font-family: "Figtree", sans-serif;
}

.conference-card:hover .conference-title {
    color: #a02d28;
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .conferences-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .conference-card {
        min-height: 130px;
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 992px) {
    .conferences-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .conference-card {
        padding: 1.75rem 1.25rem;
        min-height: 120px;
    }
    
    .conference-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .conferences-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 600px;
    }
    
    .conference-card {
        padding: 1.5rem 1.25rem;
        min-height: 110px;
    }
    
    .conference-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .conference-card {
        padding: 1.25rem 1rem;
        min-height: 100px;
    }
    
    .conference-title {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Empty State */
.conferences-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.conferences-empty p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.conferences-empty p:last-child {
    margin-bottom: 0;
}

.conferences-empty strong {
    color: var(--primary-color);
    font-weight: 600;
}
