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

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

:root {
    --primary-blue: #5a6c7d;
    --light-grey: #8a8a8a;
    --accent-red: #d32f2f;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-blue: #7a9cbd;
        --light-grey: #b0b0b0;
        --accent-red: #ff5252;
        --dark-bg: #1a1a1a;
        --light-bg: #1a1a1a;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --border-color: #333333;
    }
    
    body {
        background-color: var(--light-bg);
        color: var(--text-dark);
    }
    
    .hero {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05) !important;
    }
    
    .introduction,
    .timeline,
    .course-info,
    .schedule,
    .ilsg-members {
        background-color: var(--light-bg);
    }
    
    .info-card {
        background: #2a2a2a !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    .info-card:hover {
        background: #2a2a2a !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    }
    
    .card-title {
        color: var(--text-dark) !important;
    }
    
    .timeline-table,
    .schedule-table {
        background: #2a2a2a !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .timeline-table thead,
    .schedule-table thead {
        background: var(--primary-blue) !important;
        color: white;
    }
    
    .timeline-table th,
    .schedule-table th {
        background: var(--primary-blue) !important;
        color: white !important;
    }
    
    .timeline-table td,
    .schedule-table td {
        color: var(--text-dark) !important;
        border-bottom-color: var(--border-color) !important;
        background-color: #2a2a2a !important;
    }
    
    .timeline-table tbody tr,
    .schedule-table tbody tr {
        background-color: #2a2a2a !important;
    }
    
    .timeline-table tbody tr:hover,
    .schedule-table tbody tr.week-row:hover {
        background-color: #333333 !important;
    }
    
    .timeline-table tbody tr:last-child td,
    .schedule-table tbody tr:last-child td {
        background-color: #2a2a2a !important;
    }
    
    .timeline-table tbody tr:last-child td:first-child,
    .schedule-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 12px !important;
    }
    
    .timeline-table tbody tr:last-child td:last-child,
    .schedule-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 12px !important;
    }
    
    .week-details td {
        background-color: #2a2a2a !important;
    }
    
    .week-content {
        background-color: #2a2a2a !important;
    }
    
    .intro-paragraph,
    .card-description,
    .timeline-description,
    .ilsg-intro {
        color: var(--text-light);
    }
    
    .ilsg-members {
        background-color: var(--light-bg);
    }
    
    .member-card {
        background: #2a2a2a !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }
    
    .member-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    }
    
    .member-card.featured {
        background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%) !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
    }
    
    .member-name {
        color: var(--text-dark) !important;
    }
}

::selection {
    background-color: var(--primary-blue);
    color: white;
}

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

.hero {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf0 0%, #d4dae0 50%, #ffffff 100%);
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 100%;
}

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

.hero-logo {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--light-grey);
    margin-bottom: 20px;
    text-align: center;
}

.introduction {
    padding: 100px 0;
    background-color: var(--light-bg);
    overflow: visible;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.intro-image {
    align-self: center;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

.intro-text {
    padding-top: 20px;
    text-align: center;
}

.intro-paragraph {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.ilsg-members {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.ilsg-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.members-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.members-grid .member-card {
    max-width: 280px;
    width: 100%;
}

.member-card {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 280px;
    min-width: 200px;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.member-card.featured {
    max-width: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.member-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.course-info {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.info-grid {
    display: grid;
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.card-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.timeline {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.timeline-description {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 40px;
}

.timeline-table,
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.timeline-table thead,
.schedule-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4a5a6a 100%);
    color: white;
}

.timeline-table th,
.schedule-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-table td,
.schedule-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-dark);
}

.timeline-table tbody tr:last-child td,
.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.timeline-table tbody tr:last-child td:first-child,
.schedule-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.timeline-table tbody tr:last-child td:last-child,
.schedule-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.timeline-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.schedule {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.schedule-table tbody tr.week-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.schedule-table tbody tr.week-row:hover {
    background-color: #f8f9fa;
}

.week-details {
    display: table-row;
}

.week-details td {
    padding: 0;
    background-color: #f8f9fa;
}

.week-content {
    padding: 0 40px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease 0.1s,
                transform 0.4s ease 0.1s;
}

.week-details.active .week-content {
    max-height: 3000px;
    padding: 40px;
    opacity: 1;
    transform: translateY(0);
}

.week-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-blue);
}

.week-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.week-type {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.week-section {
    margin-bottom: 30px;
}

.week-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.week-section ul {
    list-style: none;
    padding-left: 0;
}

.week-section ul li {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.week-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.details-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.details-btn:hover {
    background-color: #4a5a6a;
    transform: translateY(-2px);
}

.details-btn:active {
    transform: translateY(0);
}

.footer {
    padding: 40px 0;
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 969px) {
    .members-grid .member-card:nth-last-child(2) {
        grid-column: 1 / 2;
        justify-self: end;
        transform: translateX(calc(50% + 15px));
    }
    
    .members-grid .member-card:last-child {
        grid-column: 3 / 4;
        justify-self: start;
        transform: translateX(calc(-50% - 15px));
    }
    
    .members-grid .member-card:nth-last-child(2):hover {
        transform: translateX(calc(50% + 15px)) translateY(-5px);
    }
    
    .members-grid .member-card:last-child:hover {
        transform: translateX(calc(-50% - 15px)) translateY(-5px);
    }
}

@media (max-width: 968px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image {
        margin-top: 0;
    }
    
    .intro-image img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 700px;
    }
    
    .member-card {
        max-width: 250px;
        min-width: 180px;
    }
    
    .member-card.featured {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .introduction {
        padding: 120px 0 60px;
        margin-top: 0;
    }
    
    .intro-image {
        margin-top: 40px;
    }
    
    .ilsg-members {
        padding: 60px 0;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
    }
    
    .member-card {
        max-width: 250px;
        min-width: 150px;
    }
    
    .member-card.featured {
        max-width: 280px;
    }
    
    .member-card {
        min-width: 200px;
    }
    
    .course-info,
    .timeline,
    .schedule {
        padding: 60px 0;
    }
    
    .timeline-table th,
    .schedule-table th,
    .timeline-table td,
    .schedule-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
    }
    
    .introduction {
        padding: 140px 0 60px;
    }
    
    .intro-paragraph {
        font-size: 1rem;
    }
    
    .intro-image {
        margin-top: 60px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
    }
    
    .member-card {
        max-width: 200px;
        min-width: 140px;
        padding: 20px;
    }
    
    .member-card.featured {
        max-width: 250px;
    }
}
