/* 공통 스타일 */
:root {
    --primary-color: #18498d;
    --secondary-color: #1dbee3;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #fff;   
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius-sm: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 기본 컨테이너와 카드 스타일 */
.container {
    max-width: 1400px;
}

.card-body {
    padding: 25px;
}

.section-card {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* 섹션 타이틀 스타일 개선 */
.section-title {
    position: relative;
    margin-bottom: 10px;
    text-align: center;
    padding: 0 15px;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding: 12px 30px;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    margin: 0 auto;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section 스타일 */
.visual-section {
    background: url('../storage/images/caos_main_01.jpg') center center/cover no-repeat;
    position: relative;
    color: white;
    text-align: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 126, 0.1);
}

.visual-content {
    position: relative;
    z-index: 1;
}

.visual-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.visual-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 배너 박스 스타일 */
.banner-container {
    margin-top: -90px;
    position: relative;
    z-index: 10;
    max-width: 1400px;
}

.conference-date-box {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-radius: var(--border-radius-md);
    padding: 10px;
    color: white;
    height: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.conference-date-box:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.1)" width="50" height="50" x="0" y="0" /><rect fill="rgba(255,255,255,0.1)" width="50" height="50" x="50" y="50" /></svg>');
    opacity: 0.3;
}

.date-content {
    padding: 25px;
}

.date-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.date-info p {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.date-info i {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

/* D-Day 박스 스타일 */
.dday-box {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    border-radius: var(--border-radius-md);
    padding: 30px;
    color: white;
    height: 100%;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dday-box:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.1) 100%);
}

.dday-box h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.countdown-timer {
    text-align: center;
}

.countdown-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.minus-sign {
    margin-right: 5px;
    font-weight: 700;
    display: inline-block;
}

.countdown-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Important Dates 섹션 스타일 */
.important-dates {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.important-dates .container {
    max-width: 1400px;
}

/* Modern Timeline 스타일 */
.modern-timeline {
    position: relative;
    padding-top: 5px;
    padding-left: 27px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.modern-timeline .timeline-row {
    position: relative;
    margin-bottom: 30px;
}

.modern-timeline .timeline-dot {
    position: absolute;
    left: -31px;
    top: 33px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
    transition: var(--transition);
}

.modern-timeline .timeline-row:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--secondary-color);
}

.modern-timeline .timeline-content {
    padding: 15px;
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: none;
}

.modern-timeline .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fc;
}

.modern-timeline .timeline-content h3 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: var(--primary-color);
}

.modern-timeline .timeline-content .date {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Quick Links 스타일 */
.large-quick-grid {
    height: 100%;
    padding: 10px;
}

.large-quick-grid .row {
    height: 45%;
}

.large-quick-grid .col-6 {
    height: 100%;
}

.large-quick-grid .qlink {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.large-quick-grid .qlink:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="25" height="25" x="0" y="0" /><rect fill="rgba(255,255,255,0.05)" width="25" height="25" x="50" y="50" /></svg>');
    opacity: 0.5;
}

.large-quick-grid .qlink-program {
    background: linear-gradient(135deg, #f8b659 0%, #f4973a 100%);
}

.large-quick-grid .qlink-registration {
    background: linear-gradient(135deg, #c1cd62 0%, #a2c032 100%);
}

.large-quick-grid .qlink-abstract {
    background: linear-gradient(135deg, #d15383 0%, #b73a69 100%);
}

.large-quick-grid .qlink-venue {
    background: linear-gradient(135deg, #6d86a3 0%, #556f8c 100%);
}

.large-quick-grid .qlink:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.large-quick-grid .qlink i {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.large-quick-grid .qlink span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* 스피커 섹션 스타일 */
.speakers-section {
    padding: 50px 0;
    background-color: var(--bg-light);
    position: relative;
}

.speakers-section-box {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px 20px 10px;
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.speakers-section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.speakers-container {
    position: relative;
    padding: 0 50px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.swiper-container {
    padding: 20px 10px 10px;
    overflow: visible;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
    height: auto;
}

.swiper-slide {
    height: auto;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    visibility: visible;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.speaker-card {
    margin-bottom: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    height: 100%;
    min-height: 280px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(58, 123, 213, 0.2);
}

.speaker-avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.speaker-image {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ddd;
    transition: var(--transition);
}

.speaker-image:hover {
    border-color: var(--primary-color);
}

.speaker-fallback {
    font-size: 150px !important;
    color: #ddd;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.speaker-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0;
}

.speaker-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* 스와이퍼 컨트롤 스타일 */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #bdc3c7;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    width: 20px;
    border-radius: 5px;
}

.speakers-swiper .swiper-button-next,
.speakers-swiper .swiper-button-prev {
    color: #007bff;
    top: 50%;
}

.speakers-swiper .swiper-button-next {
    right: 0;
}

.speakers-swiper .swiper-button-prev {
    left: 0;
}

.speakers-swiper .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

/* 스폰서 섹션 스타일 */
.sponsors-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.sponsors-section-box {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px 20px;
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.sponsors-section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.sponsors-container {
    position: relative;
    padding: 0 20px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.sponsors-swiper {
    padding: 0;
    overflow: hidden;
}

.sponsor-logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-placeholder {
    background-color: #f5f7fa;
    border-radius: var(--border-radius-sm);
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #e6e9f0;
    transition: var(--transition);
    margin: 0 auto;
}

.sponsor-placeholder:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(58, 123, 213, 0.2);
    background-color: white;
}

.sponsors-swiper .swiper-button-next,
.sponsors-swiper .swiper-button-prev {
    color: #007bff;
    top: 50%;
}

.sponsors-swiper .swiper-button-next {
    right: 0;
}

.sponsors-swiper .swiper-button-prev {
    left: 0;
}

.sponsors-swiper .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

/* 미디어 쿼리 */
@media (max-width: 991.98px) {
    .visual-section {
        height: 60vh;
    }
    
    .banner-container {
        margin-top: 30px;
    }
    
    .visual-content h1 {
        font-size: 2.5rem;
    }
    
    .visual-content p {
        font-size: 1.2rem;
    }
    
    .date-content h2 {
        font-size: 1.5rem;
    }
    
    .date-info p {
        font-size: 1rem;
    }
    
    .large-quick-grid .qlink i {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .large-quick-grid .qlink span {
        font-size: 0.9rem;
    }
    
    .modern-timeline .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .modern-timeline .timeline-content .date {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .visual-section {
        height: 50vh;
        padding: 100px 0;
    }
    
    .banner-container {
        margin-top: -40px;
    }
    
    .visual-content h1 {
        font-size: 2rem;
    }
    
    .visual-content p {
        font-size: 1rem;
    }
    
    .modern-timeline {
        height: auto;
        padding-bottom: 20px;
    }
    
    .large-quick-grid {
        height: auto;
        margin-top: 20px;
    }
    
    .large-quick-grid .col-6 {
        height: 120px;
    }
    
    .speaker-card {
        margin-bottom: 15px;
        min-height: 250px;
    }
    
    .speaker-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .speaker-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .speaker-fallback {
        font-size: 120px !important;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .banner-container {
        margin-top: 0;
    }
    
    .speaker-card {
        min-height: 220px;
    }
    
    .speaker-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    
    .speaker-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .speaker-fallback {
        font-size: 100px !important;
        width: 100px;
        height: 100px;
    }
    
    .speaker-card h4 {
        font-size: 0.9rem;
    }
    
    .speaker-card p {
        font-size: 0.8rem;
    }
    
    .large-quick-grid .qlink i {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    
    .large-quick-grid .qlink span {
        font-size: 0.85rem;
    }
}

.message-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.message-content p {
    margin-bottom: 1rem;
}

.message-content .text-end {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

/* 환영사 페이지 스타일 */
.greeting-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.greeting-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
}

.greeting-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767.98px) {
    .greeting-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}