/* CLARITY.css - Unique styles for CLARITYlab.html */

/* Section Nav Buttons - Improved styling */
.section-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    margin-bottom: 50px;
    border: none;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.2);
    min-width: max-content;
}

.section-nav-buttons .section-btn {
    background: linear-gradient(145deg, #2e3b5e, #1a2a44);
    border: 2px solid rgba(212, 160, 23, 0.3);
    color: #f8f1e9;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto Slab', serif;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(26, 42, 68, 0.2);
    outline: none;
    cursor: pointer;
    text-decoration: none !important;
    flex: 1;
    min-width: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.section-nav-buttons .section-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 ease;
}

.section-nav-buttons .section-btn:hover::before {
    left: 100%;
}

.section-nav-buttons .section-btn.active,
.section-nav-buttons .section-btn:focus {
    background: linear-gradient(145deg, #d4a017, #b58900);
    color: #1a2a44;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
    border-color: #d4a017;
    transform: translateY(-2px);
}

.section-nav-buttons .section-btn:hover {
    background: linear-gradient(145deg, #d4a017, #b58900);
    color: #1a2a44;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.5);
    border-color: #d4a017;
}

.section-nav-buttons .section-btn,
.section-nav-buttons .section-btn:link,
.section-nav-buttons .section-btn:visited,
.section-nav-buttons .section-btn:active,
.section-nav-buttons .section-btn:focus,
.section-nav-buttons .section-btn:hover {
    text-decoration: none !important;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 992px) {
    .section-nav-buttons {
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
        margin-bottom: 40px;
        flex-wrap: nowrap;
    }

    .section-nav-buttons .section-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 10px;
        flex: 1;
        min-width: 100px;
    }

    .section-nav-buttons .section-btn.active,
    .section-nav-buttons .section-btn:focus {
        transform: translateY(-1px);
    }

    .section-nav-buttons .section-btn:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .section-nav-buttons {
        gap: 4px;
        padding: 4px;
        border-radius: 12px;
        margin-bottom: 30px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .section-nav-buttons::-webkit-scrollbar {
        height: 4px;
    }
    
    .section-nav-buttons::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .section-nav-buttons::-webkit-scrollbar-thumb {
        background: rgba(212, 160, 23, 0.5);
        border-radius: 2px;
    }

    .section-nav-buttons .section-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        border-radius: 8px;
        min-width: 90px;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .section-nav-buttons {
        gap: 3px;
        padding: 3px;
        border-radius: 10px;
        margin-bottom: 25px;
    }

    .section-nav-buttons .section-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
        min-width: 80px;
    }
}

@media (max-width: 400px) {
    .section-nav-buttons {
        gap: 2px;
        padding: 2px;
    }

    .section-nav-buttons .section-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-width: 70px;
    }
}

/* Rest of the existing CLARITY.css styles */
.lab-overview {
    margin-bottom: 80px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 50h25v25h25V50h25V25H50V0H25v25H0v25z" fill="rgba(212,160,23,0.1)"/></svg>');
    background-size: 50px;
    background-repeat: repeat;
}

.lab-overview.hidden {
    display: none;
}

.lab-description {
    background: linear-gradient(145deg, #f8f1e9, #ffffff);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    text-align: center;
}

.lab-description h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.lab-description h3::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #d4a017;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.lab-description p {
    font-size: 1rem;
    color: #1a2a44;
    max-width: 800px;
    margin: 0 auto;
}

.workflow-image {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border: 2px solid #d4a017;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
    display: block;
    margin: 0 auto;
}

.workflow-image:hover {
    transform: scale(1.05);
}

.workflow-description {
    background: linear-gradient(145deg, #f8f1e9, #ffffff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    text-align: center;
}

.workflow-description p {
    font-size: 1rem;
    color: #1a2a44;
    max-width: 800px;
    margin: 0 auto;
}

/* NEW CATEGORY-BASED MEMBERS SECTION */
.category-card {
    background: linear-gradient(145deg, #ffffff, #f8f1e9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(212, 160, 23, 0.2);
    margin-bottom: 40px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.category-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4a017;
}

.category-title {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #d4a017;
    margin: 0;
}

.category-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

/* Member Card Styles */
.member-card {
    background: linear-gradient(145deg, #ffffff, #f8f1e9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 160, 23, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 160, 23, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.member-card:hover::before {
    opacity: 1;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #d4a017;
    object-fit: cover;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
}

.member-card:hover .member-image {
    transform: scale(1.1);
}

.member-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2a44;
    margin-bottom: 8px;
}

.member-role {
    font-size: 1rem;
    color: #d4a017;
    margin-bottom: 15px;
    font-weight: 600;
    font-style: italic;
}

.member-description {
    font-size: 0.95rem;
    color: #1a2a44;
    line-height: 1.6;
    margin-bottom: 15px;
}

.member-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.member-links a {
    color: #d4a017;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.member-links a:hover {
    color: #b58900;
    transform: scale(1.1);
}

.middledot {
    color: #d4a017;
    font-weight: bold;
}

/* REMOVED OLD MEMBERS GRID STYLES */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.grid-card{
    background: linear-gradient(145deg, #ffffff, #f8f1e9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 160, 23, 0.2);
    text-align: center;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 160, 23, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.grid-card:hover::before {
    opacity: 1;
}

.grid-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #ffffff, #f0e6d9);
}

.opportunities-list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
}

.opportunities-list li {
    background: linear-gradient(145deg, #ffffff, #f8f1e9);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunities-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(212, 160, 23, 0.3);
}

.opportunities-list h4 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    color: #d4a017;
    margin-bottom: 10px;
}

.opportunities-list p {
    font-size: 0.95rem;
    color: #1a2a44;
    margin: 0;
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(145deg, #d4a017, #b58900);
    color: #1a2a44;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto Slab', serif;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    cursor: pointer;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 160, 23, 0.4);
}

/* Invited Talks Section Styles */
.talks-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.talk-card {
    background: linear-gradient(145deg, #ffffff, #f8f1e9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.talk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.talk-header {
    text-align: center;
    margin-bottom: 25px;
}

.talk-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4a017;
    margin-bottom: 8px;
}

.talk-venue {
    font-size: 1.1rem;
    color: #1a2a44;
    font-style: italic;
}

/* Clean Slideshow Styles (no buttons, no dots) */
.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: #ebeeef;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Smooth transition */
    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;
}

.talk-description {
    text-align: center;
    padding: 0 20px;
}

.talk-description p {
    font-size: 1rem;
    color: #1a2a44;
    line-height: 1.7;
    margin: 0;
}

/* CLARITY page specific responsive */
@media (max-width: 992px) {
    .lab-description, .workflow-description {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .lab-description, .workflow-description {
        padding: 15px;
    }
    
    .category-card {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .category-members-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
    }
    
    .member-card {
        padding: 20px;
    }
    
    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .talks-container {
        gap: 40px;
    }
    
    .talk-card {
        padding: 20px;
    }
    
    .talk-title {
        font-size: 1.5rem;
    }
    
    .slideshow-container {
        height: 300px;
    }
    
    .talk-description {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .lab-description, .workflow-description {
        padding: 10px;
    }
    
    .lab-description h3, .section-heading {
        font-size: 1.8rem;
    }
    
    .category-card {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .category-members-grid {
        gap: 20px;
    }
    
    .member-card {
        padding: 15px;
    }
    
    .member-image {
        width: 90px;
        height: 90px;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    .member-description {
        font-size: 0.9rem;
    }
    
    .talks-container {
        gap: 30px;
    }
    
    .talk-card {
        padding: 15px;
    }
    
    .talk-title {
        font-size: 1.3rem;
    }
    
    .slideshow-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .workflow-image { max-width: 100%; height: auto; display: block; margin: 16px auto; }
    .main-wrapper { padding: 18px; }
}

@media (max-width: 420px) {
    .section-heading { font-size: 1.25rem; }
    .lab-description h3 { font-size: 1.4rem; }
    .member-image { width: 70px; height: 70px; }
}