/* ======== Global Styles (Minimal) ======== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0;
}

/* ======== Team Page Styles ======== */

/* Color Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --faculty-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --postdoc-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --phd-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --msc-gradient: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    --staff-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --alumni-gradient: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

/* Hero Section */
.team-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

/* Disable loading indicator & background social dots */
.team-hero::before {
    display: none !important;
}

/* Stats */
.team-stats {
    background: rgba(255 255 255 / 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255 255 255 / 0.3);
    border-radius: 25px;
    padding: 30px 20px;
    margin: 40px 10px 0;
    transition: transform 0.3s ease, background 0.3s ease;
}
.team-stats:hover {
    transform: translateY(-8px);
    background: rgba(255 255 255 / 0.3);
}

/* Controls (Search & Filters) */
.team-controls {
    background: white;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0 0 0 / 0.1);
    padding: 40px;
    margin: -110px auto 90px;
    position: relative;
    z-index: 100;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#teamSearch {
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    padding: 18px 60px 18px 25px;
    font-size: 16px;
    width: 100%;
    max-width: 700px;
    background: url('image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23667eea"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5z"/></svg>') no-repeat calc(100% - 20px) center;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
#teamSearch:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102 126 234 / 0.15);
    outline: none;
}

/* Filter Buttons */
.role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.role-filter {
    background: #f8fafc;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0 0 0 / 0.1);
    padding: 14px 28px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}
.role-filter::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.8), transparent);
    transition: left 0.5s;
    z-index: 1;
}
.role-filter:hover::before {
    left: 100%;
}
.role-filter:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 12px 30px rgba(0 0 0 / 0.2);
    transform: translateY(-4px);
}
.role-filter.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 15px 35px rgba(102 126 234 / 0.4);
    transform: translateY(-6px);
}

/* Cards Layout */
.member-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0 0 0 / 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 540px; /* Fix card height for stability */
    display: flex;
    flex-direction: column;
}
.member-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0 0 0 / 0.2);
}
.member-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255 255 255 / 0.6), transparent);
    transition: left 0.6s;
    z-index: 1;
}
.member-card:hover::before {
    left: 100%;
}

/* Card Header Colors */
.card-header-colored {
    height: 6px;
    width: 100%;
    position: relative;
}
.role-faculty { background: var(--faculty-gradient); }
.role-postdoc { background: var(--postdoc-gradient); }
.role-phd { background: var(--phd-gradient); }
.role-msc { background: var(--msc-gradient); }
.role-staff { background: var(--staff-gradient); }
.role-alumni { background: var(--alumni-gradient); }

/* Image Container */
.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 4px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
.member-card:hover .member-photo {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102 126 234 / 0.3);
}

/* Member Info Text */
.member-info {
    padding: 0 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.member-name {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 5px;
}
.member-destination {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 8px;
}
.member-affiliation {
    font-size: 0.95rem;
    text-align: center;
    color: #64748b;
}

/* Bio & Research Text */
.member-bio, .scientific-work p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1rem;
    flex-grow: 0;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}
.scientific-work {
    background: var(--alumni-gradient);
    border-radius: 14px;
    padding: 10px 15px;
    margin-bottom: 12px;
}
.scientific-work h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
    text-transform: uppercase;
}

/* Quote Styling */
.member-quote {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin: 0 26px 18px;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    overflow: visible;
    white-space: normal;
}
.member-quote::before,
.member-quote::after {
    content: none; /* Remove decorative quotes to avoid layout issues */
}

/* Contact */
.member-contact {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}
.contact-email {
    font-weight: 600;
    font-size: 1rem;
    color: #667eea;
    transition: color 0.3s ease;
    text-decoration: none;
}
.contact-email:hover {
    color: #4f46e5;
}
.contact-email i {
    margin-right: 0.45rem;
    font-size: 1.2rem;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #6b7280;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(102 126 234 / 0.3);
    transform: translateY(-3px);
}

/* Admin Controls */
.admin-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none;
}
.member-card:hover .admin-controls {
    display: flex;
}
.admin-controls button {
    background:rgba(255 255 255 / 0.9);
    border:none;
    border-radius:50%;
    width: 36px; height: 36px;
    margin-left: 8px;
    cursor:pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.admin-controls button:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.9s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent Scroll Jumps */
html, body {
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
}

/* Responsive fixes */
@media (max-width: 992px) {
    .team-hero {
        padding-bottom: 140px;
    }
    .team-controls {
        margin: -80px 15px 50px;
    }
}

@media (max-width: 768px) {
    .team-controls {
        padding: 20px 10px;
    }
    .member-photo {
        width: 120px;
        height: 120px;
    }
}
/* ========= EMERGENCY LOADER FIX ========= */

/* Hide all possible loading overlays and spinners */
#loader, 
#loading, 
#page-loader,
.loading-overlay, 
.loading-spinner, 
.page-loader,
.preloader,
.spinner-overlay,
.loading-screen {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    z-index: -9999 !important;
}

/* Hide Bootstrap spinners if they're causing issues */
.spinner-border, 
.spinner-grow {
    animation: none !important;
    display: none !important;
}

/* Prevent any overlay from blocking content */
body::before,
body::after,
html::before,
html::after {
    display: none !important;
}

/* Ensure page content is always visible and on top */
body {
    overflow: visible !important;
    position: relative !important;
}

.container, main, .main-content {
    position: relative !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force scrollbar to prevent layout shifts */
html {
    overflow-y: scroll !important;
}
/* ========= TEAM CARD TEXT FIXES ========= */

/* Fix Quote Display - Make Text Visible and Readable */
.member-quote {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 20px !important;
    margin: 0 20px 20px 20px !important;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5 !important;
    border-radius: 12px;
    position: relative;
    
    /* CRITICAL: Allow text to flow naturally */
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    
    /* Remove webkit line clamp that's causing text to disappear */
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Remove decorative quotes that might interfere */
.member-quote::before,
.member-quote::after {
    display: none !important;
    content: none !important;
}

/* Fix Bio Text - Prevent Overflow */
.member-bio {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6 !important;
    margin-bottom: 20px;
    padding: 0 !important;
    
    /* CRITICAL: Let text expand naturally */
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    
    /* Remove webkit line clamp */
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Fix Research Focus Text - Prevent Overflow */
.scientific-work {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    padding: 15px !important;
    margin-bottom: 20px;
    
    /* Container should expand with content */
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
}

.scientific-work p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5 !important;
    margin: 0;
    
    /* CRITICAL: Remove fixed height and clamp */
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    
    /* Remove webkit line clamp */
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

/* Fix Card Height to Accommodate Variable Content */
.member-card {
    height: auto !important;  /* Remove fixed height */
    min-height: 580px;        /* Set minimum instead */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure Card Content Area Expands */
.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 30px 30px;
    
    /* Allow content to expand */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Push Contact Section to Bottom */
.member-contact {
    margin-top: auto;
    flex-shrink: 0;
}

/* Fix Any Remaining Clamp Issues */
.clamped-text,
.text-truncate {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .member-card {
        min-height: 650px;
    }
    
    .member-info {
        padding: 0 20px 30px;
    }
    
    .member-quote {
        margin: 0 15px 20px 15px !important;
        padding: 12px 15px !important;
        font-size: 0.9rem;
    }
}
/* Updated Research Carousel Styles */
.discovery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    height: 600px;
}

/* Individual Slide Container */
.experiment-slide {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Image Container with Animation */
.experiment-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.experiment-background {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: center;
    animation: slowPan 25s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Dynamic Movement Animation */
@keyframes slowPan {
    0% { 
        transform: scale(1.1) translate(0, 0); 
    }
    25% { 
        transform: scale(1.15) translate(-20px, -10px); 
    }
    50% { 
        transform: scale(1.1) translate(-10px, -20px); 
    }
    75% { 
        transform: scale(1.15) translate(10px, -15px); 
    }
    100% { 
        transform: scale(1.1) translate(0, 0); 
    }
}

/* Dark Overlay for Text Readability */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Student Info at Top */
.student-info-overlay {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    z-index: 3;
    color: white;
    text-align: left;
}

.student-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: white;
}

.student-role {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: none;
}

/* Discovery Text at Bottom */
.discovery-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    color: white;
    padding: 30px 40px;
    z-index: 3;
    border-radius: 0 0 50px 50px;
}

.discovery-description {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.student-quote {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    padding: 0 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.student-quote::before,
.student-quote::after {
    content: '"';
    font-size: 1.5rem;
    position: absolute;
    opacity: 0.6;
    font-family: serif;
    font-weight: bold;
}

.student-quote::before {
    top: -5px;
    left: 0;
}

.student-quote::after {
    bottom: -15px;
    right: 0;
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 100px;
    z-index: 4;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    margin: 0 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: white;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .discovery-carousel {
        height: 500px;
        border-radius: 0 0 30px 30px;
    }
    
    .experiment-slide {
        height: 500px;
    }
    
    .student-info-overlay {
        top: 30px;
        left: 30px;
        right: 30px;
    }
    
    .student-name {
        font-size: 2rem;
    }
    
    .student-role {
        font-size: 1.1rem;
    }
    
    .discovery-text-overlay {
        padding: 25px 30px;
    }
    
    .discovery-description {
        font-size: 1.1rem;
    }
    
    .student-quote {
        font-size: 1rem;
    }
    
    .research-tags {
        gap: 8px;
    }
    
    .research-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 20px;
    }
    
    .carousel-control-next {
        right: 20px;
    }
    
    .carousel-indicators {
        bottom: 80px;
    }
    
    /* Reduce animation on mobile for performance */
    .experiment-background {
        animation: none;
        transform: scale(1.05);
    }
}

/* Pause animation on hover */
.discovery-carousel:hover .experiment-background {
    animation-play-state: paused;
}
/* ========= CAROUSEL ARROW & INDICATOR FIXES ========= */

/* Fix Carousel Arrow Controls - Make them clickable and properly positioned */
.carousel-control-prev, 
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Ensure arrow icons are visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 100%;
}

/* Fix Carousel Indicators - Position them BELOW the text content */
.carousel-indicators {
    position: absolute !important;
    bottom: 20px !important;  /* Move to very bottom of carousel */
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px;
    z-index: 1060;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.carousel-indicators button {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    background: transparent !important;
    margin: 0 !important;
    opacity: 0.7;
    transition: all 0.3s ease !important;
}

.carousel-indicators button.active {
    background: white !important;
    opacity: 1;
    transform: scale(1.2);
}

/* Add padding to discovery text container to make space for indicators */
.discovery-text-overlay {
    position: absolute;
    bottom: 60px !important;  /* Move text UP to avoid indicator overlap */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    color: white;
    padding: 25px 40px;
    z-index: 3;
    border-radius: 0;
}

/* Ensure carousel container has enough height for indicators */
.discovery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    height: 600px;
    padding-bottom: 0; /* Remove any existing padding */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 20px;
    }
    
    .carousel-control-next {
        right: 20px;
    }
    
    .discovery-text-overlay {
        bottom: 50px !important;
        padding: 20px 30px;
    }
    
    .carousel-indicators {
        bottom: 15px !important;
    }
    
    .carousel-indicators button {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Ensure Bootstrap carousel JavaScript works properly */
.carousel {
    position: relative;
}

.carousel-inner {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-item.active {
    display: block;
}
/* Ultra-Light Overlay - Maximum Background Visibility */
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.08) 0%, 
        rgba(0, 0, 0, 0.02) 100%);
    z-index: 2;
}

/* Enhanced Text Shadow for Better Readability */
.lab-group,
.lab-title,
.lab-subtitle,
.lab-description,
.lab-techniques {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8),
                 0 4px 25px rgba(0, 0, 0, 0.6);
}

/* White Text Outline for Maximum Contrast */
.lab-title {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),
         1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px  1px 0 rgba(0, 0, 0, 0.8),
         1px  1px 0 rgba(0, 0, 0, 0.8),
         0 4px 15px rgba(0, 0, 0, 0.7);
}
/* Add this to your style.css temporarily */
.navbar .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
}

.navbar .nav-item.dropdown {
    z-index: 9998 !important;
    position: relative !important;
}
/* Add this to your style.css */
.navbar .dropdown-toggle {
    pointer-events: auto !important;
}

.navbar .dropdown-menu {
    pointer-events: auto !important;
}
/* Dropdown Fix CSS */
.navbar {
    z-index: 1050 !important;
}

.navbar .dropdown {
    position: relative;
    z-index: 1060;
}

.navbar .dropdown-menu {
    z-index: 1061 !important;
    position: absolute !important;
    pointer-events: auto !important;
}

.navbar .dropdown-toggle {
    pointer-events: auto !important;
}

/* Ensure no overlays block navbar */
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:hover {
    pointer-events: auto !important;
}
/* ===== NOMAD DROPDOWN FIX - Critical CSS ===== */

/* Force navbar and dropdown to appear above ALL dashboard elements */
.navbar {
    z-index: 999999 !important;
    position: relative !important;
}

.navbar .dropdown {
    position: static !important;
    z-index: 999998 !important;
}

.navbar .dropdown-menu {
    z-index: 999999 !important;
    position: absolute !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175) !important;
    pointer-events: auto !important;
}

.navbar .dropdown-toggle {
    pointer-events: auto !important;
    z-index: 999997 !important;
}

/* Fix for dashboard/inventory page containers that block dropdowns */
.container,
.container-fluid,
.card,
.card-body,
.row,
.col,
.main-content,
.content-wrapper {
    overflow: visible !important;
}

/* Override any Bootstrap dashboard themes */
.main-panel,
.content,
.page-content,
.wrapper {
    overflow: visible !important;
    z-index: auto !important;
}

/* Ensure dropdown menu items are clickable */
.navbar .dropdown-menu .dropdown-item {
    pointer-events: auto !important;
    z-index: inherit !important;
}

/* Fix for admin dashboard specific elements */
.dashboard-card,
.stats-card,
.admin-panel,
.sidebar,
.main-sidebar {
    z-index: 1000 !important;
}

/* Override any conflicting z-index from charts/widgets */
.chart-container,
.widget,
.panel,
.box {
    z-index: 1000 !important;
}

/* ===== END DROPDOWN FIX ===== */
.collab-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
}

.collab-logo {
    width: 100%;
    max-width: 95%;
    max-height: 140px;
    min-height: 80px;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
    object-position: center;
    background: none;
    /* Optional: Give logos a gentle lift for impact */
    transition: transform 0.22s;
}
.collab-logo:hover {
    transform: scale(1.04);
}

@media (min-width: 992px) {
    .collab-logo {
        max-height: 180px;
        min-height: 120px;
    }
}

/* ✅ WORKING Logo Styles */
.logos-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.logo-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.logo-image {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logo-card:hover .logo-image {
    transform: scale(1.1);
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-card {
        padding: 30px 20px;
    }
    
    .logo-image {
        max-width: 120px;
        max-height: 80px;
    }
}

/* ✅ SMOOTH SLIDING Hero Carousel */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ✅ PERFECT Sliding Speed */
.carousel-item {
    transition: transform 3.2s ease-in-out !important;
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    object-fit: cover;
    object-position: center;
}

/* ✅ Clean Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* ✅ Enhanced Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* ✅ Elegant Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 10;
    margin: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-indicators button.active {
    background: white;
    opacity: 1;
    transform: scale(1.3);
    border-color: white;
}

.carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ✅ SLOWER & SMOOTHER Carousel Transitions */
.carousel-item {
    transition: transform 2.5s ease-in-out !important;
    height: 100vh;
    min-height: 600px;
    opacity: 1;
}

/* ✅ Ensure consistent timing for ALL transition states */
.carousel-item.carousel-item-next,
.carousel-item.carousel-item-prev,
.carousel-item.carousel-item-start,
.carousel-item.carousel-item-end {
    transition: transform 2.5s ease-in-out !important;
    display: block;
}

/* ✅ Smooth image transitions */
.hero-image {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    object-fit: cover;
    object-position: center;
    transition: transform 2.5s ease-in-out !important;
}

/* ✅ Prevent any conflicting transitions */
.carousel-inner {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    width: 100%;
}

/* ✅ Clean Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* ✅ Enhanced Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* ✅ Elegant Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 10;
    margin: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-indicators button.active {
    background: white;
    opacity: 1;
    transform: scale(1.3);
    border-color: white;
}

.carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ✅ Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-item,
    .carousel-item.carousel-item-next,
    .carousel-item.carousel-item-prev,
    .carousel-item.carousel-item-start,
    .carousel-item.carousel-item-end {
        transition: transform 3s ease-in-out !important; /* Slightly faster on mobile */
    }
    
    .hero-image {
        height: 100vh;
        min-height: 500px;
        transition: transform 4s ease-in-out !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 20px;
    }
    
    .carousel-control-next {
        right: 20px;
    }
}


/* ✅ Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: min(90vw, 900px);
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-md);
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: clamp(8px, 2vw, 12px) clamp(20px, 4vw, 30px);
    border-radius: 50px;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: #c4b5fd;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-techniques {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: clamp(12px, 3vw, 18px) clamp(30px, 6vw, 45px);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 1s both;
}

.btn-hero:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: var(--primary);
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-image {
        height: 100vh;
        min-height: 500px;
    }
    
    .carousel-item {
        height: 100vh;
        min-height: 500px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 20px;
    }
    
    .carousel-control-next {
        right: 20px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
}

/* ✅ Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ✅ CENTERING FIX - Add to existing CSS */
.contact-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-stats {
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    max-width: 700px;
}
/* ✅ Mobile Centering */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 100vh;
        padding: 80px 20px 60px; /* Account for navbar */
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
/* ✅ PERFECT Hero Section */
.contact-hero {
    background: var(--gradient-primary);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px 60px; /* Top padding for navbar */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: min(90vw, 800px);
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(20px, 4vw, 30px);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    margin-bottom: clamp(40px, 8vw, 50px);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: clamp(20px, 5vw, 40px);
    margin: 0 auto;
    max-width: 700px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(25px, 5vw, 35px) clamp(20px, 4vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    opacity: 0.9;
    font-weight: 500;
}
/* ✅ Remove purple background from news section */
.news-section,
.news-carousel-container,
.carousel {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* If you want a clean white background instead */
.news-section {
    background: #ffffff !important;
}

/* Alternative: Light gray background */
.news-section {
    background: #f8f9fa !important;
}

/* Reduce bottom margin and padding after News Carousel */
.news-carousel-container {
    margin-bottom: 1rem !important;
    padding-bottom: 0 !important;
}

/* Reduce margin of the carousel indicators */
.carousel-indicators {
    margin-bottom: 0.5rem;
}

/* Reduce top margin and padding before Achievements section */
.achievements-section, /* class you use for achievements container */
.container.achievements-section {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
}
/* Preserve existing card layout */
.member-item {
    flex: 0 0 calc(33.333% - 1rem); /* 3 cards per row */
    max-width: calc(33.333% - 1rem);
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .member-item {
        flex: 0 0 calc(50% - 1rem); /* 2 cards per row on tablets */
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .member-item {
        flex: 0 0 100%; /* 1 card per row on mobile */
        max-width: 100%;
    }
}
/* About PI Section */
.about-pi-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.about-pi-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* About PI Section */
.about-pi-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* PI Photo Card */
.pi-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.pi-photo-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.pi-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f1f5f9;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.pi-photo:hover {
    transform: scale(1.05);
}

.pi-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.pi-quote {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #475569;
    line-height: 1.5;
}

.pi-quote i {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Modern Timeline */
.timeline-modern {
    position: relative;
    padding-left: 2rem;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.timeline-date {
    color: #667eea;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.timeline-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pi-photo {
        width: 150px;
        height: 150px;
    }
    
    .timeline-modern {
        padding-left: 1.5rem;
    }
    
    .timeline-modern::before {
        left: 8px;
    }
    
    .timeline-marker {
        left: -1.25rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
