/* style.css - Unique styles for index.html */
.intro {
    font-size: 1.1rem;
    color: #1a2a44;
    text-align: center;
    margin-bottom: 20px;
    padding: 35px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.intro:hover {
    transform: translateY(-10px);
}

.blog-list {
    margin-bottom: 70px;
}

.blog-list .item {
    margin-bottom: 40px;
}

.blog-list .title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 20px;
}

.blog-list .item.featured,
.blog-list .item .featured {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.blog-list .item.featured:hover,
.blog-list .item .featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.videoWrapper, .imageWrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.videoWrapper:hover, .imageWrapper:hover {
    transform: translateY(-8px);
}

.videoWrapper iframe, .imageWrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.videoWrapper .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: auto;
    background: transparent;
}

.blog-list .summary {
    font-size: 1rem;
    color: #1a2a44;
    margin-top: 20px;
}

.blog-list .summary a {
    color: #d4a017;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-list .summary a:hover {
    color: #b58900;
}

/* Slideshow Styles */
.talks-slideshow {
    position: relative;
    margin-bottom: 20px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #ffffff, #f8f1e9);
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image.active {
    opacity: 1;
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Additional responsive rules */
@media (min-width: 1200px) {
    .main-wrapper { padding: 32px 48px; }
    .section-heading { font-size: 2.6rem; }
}

@media (max-width: 992px) {
    .content-wrapper, .main-wrapper { padding: 20px; }
    .section-heading { font-size: 2.2rem; }
    .intro { padding: 25px; }
}

@media (max-width: 768px) {
    .section-heading { 
        font-size: 1.9rem; 
        margin-bottom: 30px;
    }
    .intro { 
        padding: 20px; 
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .blog-list .title { 
        font-size: 1.35rem; 
        margin-bottom: 15px;
    }
    .blog-list .item {
        margin-bottom: 30px;
    }
    #particles { display: none; }
}

@media (max-width: 576px) {
    .section-heading { 
        font-size: 1.6rem; 
        padding-bottom: 10px;
    }
    .intro { 
        padding: 15px; 
        border-radius: 12px; 
        font-size: 0.95rem;
    }
    .blog-list .title { 
        font-size: 1.1rem; 
    }
    .videoWrapper, .imageWrapper { 
        padding-bottom: 66.66%; 
        margin-bottom: 15px;
    }
    .blog-list .summary {
        font-size: 0.95rem;
        margin-top: 15px;
    }
}

@media (max-width: 400px) {
    .section-heading { 
        font-size: 1.4rem; 
    }
    .intro { 
        padding: 12px; 
        font-size: 0.9rem;
    }
    .blog-list .title { 
        font-size: 1rem; 
    }
    .blog-list .summary {
        font-size: 0.9rem;
    }
}