/* Main MVC Lab Section */
.mvc-section {
    min-height: 55vh;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* First diagonal element at bottom of MVC section */
.mvc-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    transform: skewY(-3deg);
    transform-origin: bottom left;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.lab-logo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}


/* Slide Gallery Section */
.slide-section {
    height: 65vh;
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    /* margin-top: -50px; */
    /* padding-top: 100px; */
}

/* Background Slider */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-size: cover; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background-image: url('./images/groupgathering/group_2025_Feb.jpg');
}

.slide:nth-child(2) {
    background-image: url('./images/groupgathering/group_2025_teachersday.jpg');
}

.slide:nth-child(3) {
    background-image: url('./images/groupgathering/group_2024_teachersday.jpg');
}

.slide:nth-child(4) {
    background-image: url('./images/groupgathering/group_2024_Apr.jpg');
}

.slide:nth-child(5) {
    background-image: url('./images/groupgathering/group_2023_Apr.jpg');
}

.slide:nth-child(6) {
    background-image: url('./images/groupgathering/group_2022_teachersday.jpg');
}


/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 1s ease;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 30px;
}

.nav-arrow.next {
    right: 30px;
}

.nav-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-bottom: none;
    border-right: none;
    transform: rotate(-45deg);
}

.nav-arrow.next::before {
    transform: rotate(135deg);
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 1s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Slide overlay text */
.slide-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-overlay h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

/* Professor Section */
.professor-section {
    min-height: 60vh;
    position: relative;
    /* background: #edecec; */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.professor-content {
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.professor-photo {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.professor-photo:hover {
    transform: translateY(-10px);
}

.professor-info {
    flex: 1;
    text-align: left;
}

.professor-info h2 {
    font-size: 36px;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: 700;
}

.professor-info p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Research Section */
.research-section {
    background: #2c3e50;
    background: linear-gradient(to bottom, #464c52 10%, #2c3e50 90%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.research-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.research-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    /* color: #2c5aa0; */
}

.research-content>p {
    font-size: 18px;
    color: #bdc3c7;
    /* color: #FFFFFF; */
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.research-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.research-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(116, 75, 162, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.research-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #74A3F7;
    /* color: #2c5aa0; */
}

.research-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #ecf0f1;
}


.learn-more-btn {
    display: inline-block;
    margin-top: 50px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #74A3F7;
    color: #74A3F7;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background: #74A3F7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 163, 247, 0.3);
}

/* News Section */
.news-section {
    background: #2c3e50;
    padding: 30px 10px 50px;
    text-align: left;
}

.news-content {
    max-width: max(800px, 50%);
    margin: 0 auto;
}

.news-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffff;
    margin-bottom: 15px;
}

.news-section ul {
    /* list-style-type: disc; */
    padding-left: 50px;
}

.news-section li {
    font-size: 20px;
    color: #ffff;
    max-width: 800px;
    line-height: 1.6;
}

/* Industry Cooperation Section */
.industry-coop-section {
    background: #f8f9fa;
    /* background: #edecec; */
    padding: 80px 0;
    text-align: center;
}

.industry-content {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 0 40px; */
    padding: 0;
}

.industry-header {
    margin-bottom: 60px;
}

.industry-stats {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.industry-stats a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.partners-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-template-rows: repeat(auto-fit, 1fr); */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* align-content: center; */
    /* justify-self: center; */
    /* align-items: center; */
    justify-content: center;

    gap: auto;
    align-items: center;
    /* justify-items: center; */
    /* justify-content: center; */
    /* place-content: center; */
    opacity: 0.7;
    max-width: 100%;
    margin: auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.partner-logo::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    /* margin: 60px; */
    margin-top: 100px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.partner-logo:hover::after {
    opacity: 1;
}

.partner-logo img {
    max-height: 60px;
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}



/* Internship Section */
.intern-section {
    background: #f8f9fa;
    padding: 50px 0px 0px 0px;
    text-align: center;
}

.intern-content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 40px; */
}

.intern-header {
    margin-bottom: 20px;
}

.intern-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.intern-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.testimonials-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 30px;
    margin: 0 auto;
    /* gap: 30px;
    margin-top: 40px; */
}

.testimonial-card {
    background: white;
    /* border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid #e5e7eb; */

    border-radius: 16px;
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* border: 1px solid #f1f3f4; */

    width: 100%;
    max-width: 350px;
    min-height: 300px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.testimonial-content {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0.7;
}

.company-logo img {
    height: 24px;
    max-width: 100px;
    /* filter: grayscale(100%); */
    transition: all 0.3s ease;
}

.testimonial-card:hover .company-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.intern-cta {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
}

.intern-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.intern-cta p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}


/* Responsive Design */
@media (max-width: 768px) {
    .lab-name {
        font-size: 48px;
    }

    .lab-chinese {
        font-size: 24px;
    }

    .ntust-text {
        font-size: 20px;
    }

    .lab-subtitle {
        font-size: 18px;
    }

    .mvc-section::after {
        height: 150px;
        transform: skewY(-2deg);
    }

    .slide-section {
        margin-top: -75px;
        padding-top: 75px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-arrow.prev {
        left: 15px;
    }

    .nav-arrow.next {
        right: 15px;
    }

    .slide-overlay h2 {
        font-size: 28px;
    }

    .slide-overlay p {
        font-size: 16px;
    }

    .professor-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .professor-info {
        text-align: center;
    }

    .professor-photo {
        width: 250px;
        height: 320px;
    }

    .professor-info h2 {
        font-size: 28px;
    }

    .professor-info p {
        font-size: 16px;
    }

    .research-section {
        padding: 60px 0;
    }

    .research-content {
        padding: 0 20px;
    }

    .research-content h2 {
        font-size: 36px;
    }

    .research-content>p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .research-item {
        padding: 30px 20px;
    }

    .research-item h3 {
        font-size: 20px;
    }

    .research-item p {
        font-size: 14px;
    }

    .intern-content {
        padding: 0 20px;
    }

    .intern-header h2 {
        font-size: 36px;
    }

    .intern-header p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        /* padding: 25px;
        width: 100%;
        max-width: 350px; */
        height: auto;
    }

    .intern-cta {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .intern-cta h3 {
        font-size: 24px;
    }

    .intern-cta p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .lab-name {
        font-size: 36px;
    }

    .lab-chinese {
        font-size: 20px;
    }

    .mvc-section::after {
        height: 100px;
        transform: skewY(-1.5deg);
    }

    .slide-section {
        margin-top: -50px;
        padding-top: 50px;
    }

    .professor-content {
        padding: 20px 10px;
        gap: 20px;
    }

    .professor-photo {
        width: 200px;
        height: 260px;
    }

    .professor-info h2 {
        font-size: 24px;
    }

    .professor-info p {
        font-size: 15px;
    }
    .partner-logo img {
        max-height: 40px;
        max-width: 80px;
        filter: grayscale(0%);
    }

    .partners-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .partners-grid::-webkit-scrollbar {
        display: none;
    }

    .partner-logo {
        flex-shrink: 0;
        padding: 10px;
    }
    .industry-header {
        padding: 0 15px 0px 15px
    }
    .industry-stats {
        font-size: 14px;
    }
}

