/* ========================================
   MASAIC Project - Main Stylesheet
   TODO: Có thể thay đổi màu sắc chính ở phần CSS Variables
   ======================================== */

/* CSS Variables - Thay đổi màu sắc chủ đạo ở đây */
:root {
    --primary-color: #6366f1;      /* Indigo - AI/Tech */
    --secondary-color: #8b5cf6;    /* Purple - Innovation */
    --accent-color: #ec4899;       /* Pink - Dynamic */
    --tertiary-color: #06b6d4;     /* Cyan - Future */
    --text-dark: #0f172a;          /* Màu chữ đen */
    --text-light: #64748b;         /* Màu chữ xám */
    --bg-light: #f8fafc;           /* Nền sáng */
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.nav-brand {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-left: -80px;
}

.brand-with-sponsors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.brand-logo-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand h1 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cross-x {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.8rem;
}

.masaic-name {
    font-size: 1.8rem;
}

.mas {
    color: #000000;
    font-weight: 700;
}

.ai-red {
    color: #dc2626;
    font-weight: 700;
}

.c-black {
    color: #000000;
    font-weight: 700;
}

.nav-brand .subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu li a {
    white-space: nowrap;
    font-size: 0.9rem;
    display: block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Sponsor Logos */
.sponsor-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.sponsor-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.crest-logo {
    height: 150px;
}

/* Mobile Menu Toggle (hidden by default) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--text-dark);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Tech Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* Decorative lines and circles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(99, 102, 241, 0.03) 50px, rgba(99, 102, 241, 0.03) 51px),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(99, 102, 241, 0.03) 50px, rgba(99, 102, 241, 0.03) 51px);
    z-index: 0;
}

/* Gears - Different sizes with fixed centers */
.gear {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.5;
    z-index: 1;
}

/* Gear 1 - Extra Large - Top Left */
.gear-1 {
    top: 5%;
    left: 3%;
    width: 200px;
    height: 200px;
    background-image: url('images/gears/gear-01.png');
    animation: gearRotate 25s linear infinite;
}

/* Gear 2 - Large - Top Right */
.gear-2 {
    top: 8%;
    right: 5%;
    width: 150px;
    height: 150px;
    background-image: url('images/gears/gear-02.png');
    animation: gearRotateReverse 20s linear infinite;
}

/* Gear 3 - Medium - Bottom Left */
.gear-3 {
    bottom: 15%;
    left: 8%;
    width: 120px;
    height: 120px;
    background-image: url('images/gears/gear-03.png');
    animation: gearRotate 18s linear infinite;
}

/* Gear 4 - Small - Bottom Right */
.gear-4 {
    bottom: 10%;
    right: 10%;
    width: 90px;
    height: 90px;
    background-image: url('images/gears/gear-04.png');
    animation: gearRotateReverse 15s linear infinite;
}

/* Gear 5 - Medium - Center Right */
.gear-5 {
    top: 45%;
    right: 2%;
    width: 110px;
    height: 110px;
    background-image: url('images/gears/gear-05.png');
    animation: gearRotate 22s linear infinite;
}

/* Gear 6 - Medium - Top Center */
.gear-6 {
    top: 3%;
    left: 40%;
    width: 100px;
    height: 100px;
    background-image: url('images/gears/gear-06.png');
    animation: gearRotateReverse 17s linear infinite;
}

/* Gear 7 - Large - Bottom Center */
.gear-7 {
    bottom: 8%;
    left: 35%;
    width: 130px;
    height: 130px;
    background-image: url('images/gears/gear-07.png');
    animation: gearRotate 28s linear infinite;
}

/* Gear 8 - Medium - Center Left */
.gear-8 {
    top: 50%;
    left: 15%;
    width: 95px;
    height: 95px;
    background-image: url('images/gears/gear-08.png');
    animation: gearRotateReverse 19s linear infinite;
}

/* Gear 9 - Small - Top Right Corner */
.gear-9 {
    top: 20%;
    right: 15%;
    width: 70px;
    height: 70px;
    background-image: url('images/gears/gear-09.png');
    animation: gearRotate 13s linear infinite;
}

/* Gear 10 - Medium Large - Bottom Right Area */
.gear-10 {
    bottom: 5%;
    right: 25%;
    width: 140px;
    height: 140px;
    background-image: url('images/gears/gear-10.png');
    animation: gearRotateReverse 30s linear infinite;
}

/* Gear 11 - Small - Near Gear 1 (linked) */
.gear-11 {
    top: 12%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-image: url('images/gears/gear-11.png');
    animation: gearRotateReverse 16s linear infinite;
}

/* Gear 12 - Medium - Near Gear 2 (linked) */
.gear-12 {
    top: 15%;
    right: 9%;
    width: 100px;
    height: 100px;
    background-image: url('images/gears/gear-12.png');
    animation: gearRotate 19s linear infinite;
}

/* Gear 13 - Small - Near Gear 3 (linked) */
.gear-13 {
    bottom: 20%;
    left: 12%;
    width: 70px;
    height: 70px;
    background-image: url('images/gears/gear-01.png');
    animation: gearRotateReverse 14s linear infinite;
}

/* Gear 14 - Small - Near Gear 4 (linked) */
.gear-14 {
    bottom: 16%;
    right: 14%;
    width: 65px;
    height: 65px;
    background-image: url('images/gears/gear-02.png');
    animation: gearRotate 12s linear infinite;
}

/* Gear 15 - Medium - Left Side Cluster */
.gear-15 {
    top: 32%;
    left: 5%;
    width: 110px;
    height: 110px;
    background-image: url('images/gears/gear-03.png');
    animation: gearRotateReverse 21s linear infinite;
}

/* Gear 16 - Small - Right Side Cluster */
.gear-16 {
    top: 38%;
    right: 6%;
    width: 75px;
    height: 75px;
    background-image: url('images/gears/gear-04.png');
    animation: gearRotate 15s linear infinite;
}

/* Gear 17 - Medium - Left Side Near 15 */
.gear-17 {
    top: 24%;
    left: 8%;
    width: 85px;
    height: 85px;
    background-image: url('images/gears/gear-05.png');
    animation: gearRotateReverse 17s linear infinite;
}

/* Gear 18 - Small - Top Left Cluster */
.gear-18 {
    top: 18%;
    left: 4%;
    width: 60px;
    height: 60px;
    background-image: url('images/gears/gear-06.png');
    animation: gearRotate 11s linear infinite;
}

/* Gear 19 - Medium - Bottom Left Cluster */
.gear-19 {
    bottom: 28%;
    left: 6%;
    width: 95px;
    height: 95px;
    background-image: url('images/gears/gear-07.png');
    animation: gearRotateReverse 20s linear infinite;
}

/* Gear 20 - Small - Top Right Cluster */
.gear-20 {
    top: 28%;
    right: 10%;
    width: 68px;
    height: 68px;
    background-image: url('images/gears/gear-08.png');
    animation: gearRotate 14s linear infinite;
}

/* Additional 20 gears - Positioned at edges only, avoiding center */
.gear-21 {
    top: 2%;
    left: 10%;
    width: 55px;
    height: 55px;
    background-image: url('images/gears/gear-09.png');
    animation: gearRotateReverse 10s linear infinite;
}

.gear-22 {
    top: 6%;
    right: 12%;
    width: 72px;
    height: 72px;
    background-image: url('images/gears/gear-10.png');
    animation: gearRotate 16s linear infinite;
}

.gear-23 {
    top: 18%;
    left: 2%;
    width: 88px;
    height: 88px;
    background-image: url('images/gears/gear-11.png');
    animation: gearRotateReverse 18s linear infinite;
}

.gear-24 {
    top: 28%;
    left: 8%;
    width: 62px;
    height: 62px;
    background-image: url('images/gears/gear-12.png');
    animation: gearRotate 13s linear infinite;
}

.gear-25 {
    top: 38%;
    left: 2%;
    width: 78px;
    height: 78px;
    background-image: url('images/gears/gear-01.png');
    animation: gearRotateReverse 15s linear infinite;
}

.gear-26 {
    top: 12%;
    left: 18%;
    width: 58px;
    height: 58px;
    background-image: url('images/gears/gear-02.png');
    animation: gearRotate 12s linear infinite;
}

.gear-27 {
    top: 5%;
    right: 25%;
    width: 65px;
    height: 65px;
    background-image: url('images/gears/gear-03.png');
    animation: gearRotateReverse 14s linear infinite;
}

.gear-28 {
    top: 15%;
    right: 8%;
    width: 68px;
    height: 68px;
    background-image: url('images/gears/gear-04.png');
    animation: gearRotate 15s linear infinite;
}

.gear-29 {
    top: 32%;
    right: 4%;
    width: 82px;
    height: 82px;
    background-image: url('images/gears/gear-05.png');
    animation: gearRotateReverse 17s linear infinite;
}

.gear-30 {
    bottom: 22%;
    left: 3%;
    width: 70px;
    height: 70px;
    background-image: url('images/gears/gear-06.png');
    animation: gearRotate 14s linear infinite;
}

.gear-31 {
    bottom: 2%;
    left: 12%;
    width: 90px;
    height: 90px;
    background-image: url('images/gears/gear-07.png');
    animation: gearRotateReverse 18s linear infinite;
}

.gear-32 {
    bottom: 25%;
    left: 10%;
    width: 64px;
    height: 64px;
    background-image: url('images/gears/gear-08.png');
    animation: gearRotate 13s linear infinite;
}

.gear-33 {
    bottom: 2%;
    right: 8%;
    width: 86px;
    height: 86px;
    background-image: url('images/gears/gear-09.png');
    animation: gearRotateReverse 17s linear infinite;
}

.gear-34 {
    bottom: 20%;
    right: 5%;
    width: 74px;
    height: 74px;
    background-image: url('images/gears/gear-10.png');
    animation: gearRotate 15s linear infinite;
}

.gear-35 {
    top: 52%;
    right: 8%;
    width: 66px;
    height: 66px;
    background-image: url('images/gears/gear-11.png');
    animation: gearRotateReverse 13s linear infinite;
}

.gear-36 {
    top: 42%;
    right: 15%;
    width: 76px;
    height: 76px;
    background-image: url('images/gears/gear-12.png');
    animation: gearRotate 15s linear infinite;
}

.gear-37 {
    bottom: 5%;
    left: 22%;
    width: 58px;
    height: 58px;
    background-image: url('images/gears/gear-01.png');
    animation: gearRotateReverse 11s linear infinite;
}

.gear-38 {
    top: 8%;
    right: 22%;
    width: 70px;
    height: 70px;
    background-image: url('images/gears/gear-02.png');
    animation: gearRotate 14s linear infinite;
}

.gear-39 {
    bottom: 28%;
    right: 12%;
    width: 62px;
    height: 62px;
    background-image: url('images/gears/gear-03.png');
    animation: gearRotateReverse 12s linear infinite;
}

.gear-40 {
    bottom: 8%;
    right: 18%;
    width: 80px;
    height: 80px;
    background-image: url('images/gears/gear-04.png');
    animation: gearRotate 16s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--gradient-subtle);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 1s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 1.5s;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   Teams Section
   ======================================== */
.teams {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Single team layout - centered */
.teams-grid-single {
    grid-template-columns: 1fr;
    max-width: calc(33.333% - 1.33rem);
    margin-left: auto;
    margin-right: auto;
}

/* Three teams layout */
.teams-grid-three {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2rem;
}

/* Responsive adjustments for logo and brand */
@media (max-width: 1600px) {
    .nav-brand {
        margin-left: -60px;
    }

    .navbar .container {
        gap: 1.5rem;
    }
}

@media (max-width: 1400px) {
    .nav-brand {
        margin-left: -50px;
    }

    .navbar .container {
        gap: 1.2rem;
    }

    .nav-right {
        gap: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .nav-brand {
        margin-left: -30px;
    }

    .navbar .container {
        gap: 1rem;
    }

    .nav-right {
        gap: 1rem;
    }
}

@media (max-width: 1100px) {
    .nav-brand {
        margin-left: -20px;
    }

    .navbar .container {
        gap: 0.8rem;
    }

    .nav-right {
        gap: 0.8rem;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Convert menu to mobile dropdown */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        padding: 1rem 0;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .nav-brand {
        margin-left: 0;
    }

    .navbar .container {
        gap: 0.6rem;
    }

    .nav-right {
        gap: 0.6rem;
    }

    .sponsor-logos {
        gap: 0.6rem;
        margin-right: 0.5rem;
    }

    .teams-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-brand {
        margin-left: 0;
    }

    .navbar .container {
        gap: 0.5rem;
        padding: 0.75rem 15px;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .sponsor-logos {
        gap: 0.4rem;
        margin-right: 0.3rem;
    }

    .teams-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-brand {
        margin-left: 0;
    }

    .navbar .container {
        gap: 0.4rem;
        padding: 0.6rem 10px;
    }

    .nav-right {
        gap: 0.4rem;
    }

    .sponsor-logos {
        gap: 0.3rem;
        margin-right: 0.2rem;
    }
}

.team-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: block;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.team-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card:nth-child(1) .team-image {
    background: var(--gradient-primary);
}

.team-card:nth-child(2) .team-image {
    background: var(--gradient-secondary);
}

.team-card:nth-child(3) .team-image {
    background: var(--gradient-accent);
}

.team-card:nth-child(4) .team-image {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.team-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 2rem auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   Team Detail Pages
   ======================================== */
.team-detail {
    padding: 3rem 0;
}

.team-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.team-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.team-content {
    max-width: 900px;
    margin: 0 auto;
}

.team-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.team-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.member-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.member-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.member-card .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.member-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.back-link {
    display: inline-block;
    margin: 2rem 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* ========================================
   Members Page Styles
   ======================================== */
.member-photo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.member-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.member-links a {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}

.member-links a:hover {
    text-decoration: underline;
}

.alumni-list {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* ========================================
   Publications Page Styles
   ======================================== */
.publication-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.publication-item h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.publication-item .authors {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.publication-item .venue {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.publication-item .abstract {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-link {
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.pub-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.publication-stats {
    margin-top: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========================================
   News Page Styles
   ======================================== */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    display: flex;
    gap: 2rem;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.news-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    height: fit-content;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.news-content {
    flex: 1;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.news-archive {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.news-archive h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.news-archive p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ========================================
   Sponsors Page Styles
   ======================================== */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sponsors-grid.principal {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.sponsor-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.sponsor-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.sponsor-card.large {
    padding: 3rem;
}

.sponsor-logo {
    margin-bottom: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-placeholder {
    width: 150px;
    height: 80px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 600;
}

.sponsor-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.sponsor-description,
.grant-info,
.partner-type,
.support-type {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.sponsor-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.sponsor-link:hover {
    text-decoration: underline;
}

/* ========================================
   Schedule Page Styles
   ======================================== */
.view-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.toggle-btn:hover,
.toggle-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.schedule-timeline {
    position: relative;
    padding-left: 2rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--border-color);
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item.past .timeline-marker {
    background-color: var(--text-light);
    box-shadow: 0 0 0 2px var(--text-light);
}

.timeline-content {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.event-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.event-type {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.event-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.event-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.event-link:hover {
    text-decoration: underline;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.milestone-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.milestone-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.milestone-card.completed .milestone-status {
    background-color: #10b981;
    color: var(--white);
}

.milestone-card.in-progress .milestone-status {
    background-color: var(--accent-color);
    color: var(--white);
}

.milestone-card.upcoming .milestone-status {
    background-color: var(--text-light);
    color: var(--white);
}

.milestone-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.milestone-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.milestone-tasks {
    list-style: none;
    padding: 0;
}

.milestone-tasks li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.project-timeline-overview {
    margin-top: 2rem;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}

.timeline-bar {
    display: flex;
    width: 100%;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.timeline-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border-color);
    color: var(--text-light);
    font-weight: 600;
    border-right: 2px solid var(--white);
}

.timeline-phase.completed {
    background-color: #10b981;
    color: var(--white);
}

.timeline-phase.current {
    background-color: var(--primary-color);
    color: var(--white);
}

.timeline-dates {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .language-switcher {
        margin-left: 0;
        justify-content: center;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .teams-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        gap: 1rem;
    }

    .news-date {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0.75rem;
    }

    .date-day,
    .date-month {
        display: inline;
    }

    .sponsors-grid,
    .sponsors-grid.principal {
        grid-template-columns: 1fr;
    }

    .timeline-dates {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ========================================
   Seminar Page Styles
   ======================================== */
.seminar-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.seminar-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.seminar-card:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.speaker-photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-info {
    flex: 1;
}

.speaker-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.affiliation {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.speaker-title {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.talk-info {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.talk-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.talk-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.talk-abstract {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.seminar-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .seminar-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-photo {
        margin-bottom: 1rem;
    }
}

/* Past Seminars Table */
.seminar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seminar-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.seminar-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.seminar-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.seminar-table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

.seminar-table tbody tr:last-child td {
    border-bottom: none;
}

.speaker-cell {
    min-width: 200px;
}

.speaker-cell .speaker-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.speaker-cell .speaker-affiliation {
    color: var(--text-light);
    font-size: 0.9rem;
}

.talk-cell {
    min-width: 300px;
}

.date-cell {
    min-width: 150px;
    white-space: nowrap;
}

.youtube-cell {
    min-width: 150px;
    text-align: center;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.youtube-link:hover {
    background-color: #cc0000;
}

@media (max-width: 768px) {
    .seminar-table {
        font-size: 0.85rem;
    }

    .seminar-table th,
    .seminar-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   Collaboration Page Styles
   ======================================== */
.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collaborator-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.collaborator-card:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    transform: translateY(-3px);
}

.collaborator-photo {
    margin-bottom: 1.5rem;
}

.collaborator-info {
    width: 100%;
}

.collaborator-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.collaborator-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.institution {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.institution-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.collaboration-areas {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.collaborator-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.collaborator-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .collaboration-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Mobile polish overrides
   ======================================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.team-content,
.speaker-info,
.news-content,
.collaborator-info {
    min-width: 0;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem 16px;
    }

    .nav-brand {
        min-width: 0;
        gap: 0.35rem;
    }

    .brand-logo-text {
        min-width: 0;
        gap: 0.55rem;
    }

    .brand-logo {
        height: 48px;
        flex-shrink: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .cross-x,
    .masaic-name {
        font-size: 1.12rem;
        line-height: 1.05;
    }

    .nav-brand .subtitle {
        max-width: 160px;
        font-size: 0.62rem;
        line-height: 1.25;
    }

    .language-switcher {
        justify-content: flex-start;
    }

    .lang-btn {
        padding: 0.25rem 0.45rem;
        font-size: 0.68rem;
    }

    .nav-right {
        margin-left: auto;
        gap: 0.5rem;
    }

    .sponsor-logos {
        display: none;
    }

    .mobile-menu-toggle {
        padding: 0.45rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background-color: var(--white);
    }

    .nav-menu {
        width: min(82vw, 320px);
        padding-top: 76px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
        overflow-wrap: anywhere;
    }

    .section-title,
    .team-header h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .team-header {
        padding: 2.25rem 0;
        margin-bottom: 2rem;
    }

    .team-header p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .team-detail,
    .about,
    .teams,
    .contact {
        padding: 3rem 0;
    }

    .features-grid,
    .members-grid,
    .stats-grid,
    .milestones-grid,
    .sponsors-grid,
    .sponsors-grid.principal,
    .collaboration-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .teams-grid,
    .teams-grid-three,
    .teams-grid-single {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
        gap: 1.25rem;
    }

    .feature-card,
    .member-card,
    .publication-item,
    .stat-card,
    .milestone-card,
    .sponsor-card,
    .collaborator-card,
    .seminar-card,
    .timeline-content,
    .news-item {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .member-card h3 {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .team-content [style*="display: flex"][style*="align-items: flex-start"],
    .team-content [style*="display:flex"][style*="align-items:flex-start"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 1rem !important;
        padding: 1.25rem !important;
    }

    .team-content [style*="width: 180px"],
    .team-content [style*="width: 150px"],
    .collaborator-photo img {
        width: 128px !important;
        height: 128px !important;
    }

    .team-content h2 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .team-content p,
    .publication-item .abstract,
    .talk-abstract,
    .event-description {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .publication-filters,
    .view-toggle,
    .publication-links,
    .seminar-links,
    .member-links,
    .hero-buttons {
        gap: 0.65rem;
    }

    .filter-btn,
    .toggle-btn,
    .pub-link,
    .btn {
        width: 100%;
        text-align: center;
    }

    .speaker-photo {
        width: 120px;
        height: 120px;
    }

    .talk-info {
        padding: 1rem;
        text-align: left;
        width: 100%;
    }

    .schedule-timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
    }

    .timeline-marker {
        left: -1.45rem;
    }

    .project-timeline-overview {
        padding: 1rem;
    }

    .timeline-bar {
        height: auto;
        flex-direction: column;
    }

    .timeline-phase {
        min-height: 44px;
        border-right: 0;
        border-bottom: 2px solid var(--white);
    }

    .seminar-table,
    .seminar-table thead,
    .seminar-table tbody,
    .seminar-table th,
    .seminar-table td,
    .seminar-table tr {
        display: block;
        width: 100%;
    }

    .seminar-table {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .seminar-table thead {
        display: none;
    }

    .seminar-table tr {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-bottom: 1rem;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .seminar-table td {
        border-bottom: 1px solid var(--border-color);
        padding: 0.85rem 1rem;
    }

    .seminar-table td:last-child {
        border-bottom: 0;
    }

    .speaker-cell,
    .talk-cell,
    .date-cell,
    .youtube-cell {
        min-width: 0;
        white-space: normal;
        text-align: left;
    }

    .youtube-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-logo {
        height: 42px;
    }

    .cross-x,
    .masaic-name {
        font-size: 1rem;
    }

    .nav-brand .subtitle {
        display: none;
    }

    .lang-btn {
        font-size: 0.64rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title,
    .team-header h1 {
        font-size: 1.65rem;
    }

    .feature-card,
    .member-card,
    .publication-item,
    .stat-card,
    .milestone-card,
    .sponsor-card,
    .collaborator-card,
    .seminar-card,
    .timeline-content,
    .news-item {
        padding: 1rem;
    }
}
