* {
    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;
    }
    
    .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;
    }

    .schedule-table tbody tr.week-details:last-child td:first-child,
    .schedule-table tbody tr.week-details:last-child td:last-child {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    
    .week-details td {
        background-color: #2a2a2a !important;
    }
    
    .week-content {
        background-color: #2a2a2a !important;
    }

    .week-program-topic {
        color: #9eb7cf;
    }

    .week-program-table-wrapper {
        background-color: #2a2a2a;
        border-color: var(--border-color);
    }

    .week-program-table td {
        background-color: #2a2a2a;
        color: var(--text-dark);
        border-bottom-color: var(--border-color);
    }

    .week-program-table tbody tr:nth-child(even) td {
        background-color: #303030;
    }
    
    .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;
    }
    
    .registration {
        background-color: var(--light-bg);
    }
    
    .registration-form-container {
        background: #2a2a2a !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    .form-input {
        background-color: #1a1a1a !important;
        border-color: var(--border-color) !important;
        color: var(--text-dark) !important;
    }
    
    .form-input:focus {
        border-color: var(--primary-blue) !important;
        box-shadow: 0 0 0 3px rgba(122, 156, 189, 0.2) !important;
    }
    
    .form-input:hover {
        border-color: var(--primary-blue) !important;
    }
    
    .phone-prefix {
        color: var(--text-dark) !important;
    }
    
    .registration-description {
        color: var(--text-light);
    }

    .registration-yels-note {
        background: #2a2a2a !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    }

    .registration-form.registration-complete .form-input:disabled {
        background-color: #1a1a1a !important;
        color: var(--text-dark) !important;
    }

    .whatsapp-float-label {
        background: #2a2a2a !important;
        color: var(--text-dark) !important;
        border-color: var(--border-color) !important;
    }
    
    .instagram-section {
        background-color: var(--light-bg);
    }
    
    .instagram-description {
        color: var(--text-light);
    }
    
    .instagram-description strong {
        color: var(--primary-blue);
    }
    
    .instagram-follow-button {
        background: linear-gradient(135deg, var(--accent-red) 0%, #d32f2f 100%);
        box-shadow: 0 8px 20px rgba(255, 82, 82, 0.3);
    }
    
    .instagram-follow-button:hover {
        box-shadow: 0 12px 30px rgba(255, 82, 82, 0.4);
    }
}

::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;
    filter: grayscale(100%);
    transition: filter 1.4s ease-out;
}

.intro-image.in-view img {
    filter: grayscale(0%);
}

.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;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.member-card:hover .member-image img,
.member-card:focus-within .member-image img {
    filter: grayscale(0%);
}

.member-card:focus {
    outline: none;
}

.member-card:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
}

.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);
}

.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;
}

.course-video {
    margin-top: 30px;
}

.course-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.course-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.course-video-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.course-video-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4a5a6a 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.course-video-btn-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.course-video-progress {
    flex: 1;
    height: 6px;
    margin: 0;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.course-video-progress:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.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 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4a5a6a 100%);
    color: white;
}

.schedule-table thead {
    background: var(--primary-blue);
    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;
}

.schedule-table tbody tr.week-details:last-child td:first-child,
.schedule-table tbody tr.week-details:last-child td:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.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-schedule-image-wrapper {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.week-schedule-image {
    display: block;
    width: 100%;
    height: auto;
}

.week-program {
    margin-bottom: 10px;
}

.week-program-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.week-program-topic {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.week-program-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--light-bg);
}

.week-program-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.week-program-caption {
    caption-side: top;
    text-align: center;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--accent-red);
}

.week-program-table th,
.week-program-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    text-align: left;
}

.week-program-table th {
    background: var(--primary-blue);
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.week-program-table td {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.45;
}

.week-program-table tbody tr:nth-child(even) td {
    background-color: rgba(90, 108, 125, 0.04);
}

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

.speaker-group-row {
    text-align: center !important;
    vertical-align: middle !important;
}

.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);
}

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

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

.registration-yels-note {
    max-width: 800px;
    margin: 28px auto 0;
    padding: 28px 32px;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    color: var(--text-light);
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.registration-yels-note strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.registration-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    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;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.6s ease forwards;
}

@keyframes slideUpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.form-input {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--light-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(90, 108, 125, 0.1);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: var(--primary-blue);
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.phone-prefix {
    position: absolute;
    left: 18px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.phone-input {
    width: 100%;
    padding-left: 32px !important;
}

.form-submit {
    margin-top: 15px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4a5a6a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 108, 125, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-submit.proceed-attention {
    animation: proceed-outline-pulse 1.25s ease-in-out infinite;
}

@keyframes proceed-outline-pulse {
    0%, 100% {
        outline: 2px solid transparent;
        outline-offset: 6px;
    }
    50% {
        outline: 2px solid var(--primary-blue);
        outline-offset: 10px;
    }
}

.registration-form .form-message {
    margin-top: 0;
    margin-bottom: 24px;
}

.registration-form.registration-complete .form-input:disabled {
    background-color: #f0f2f4;
    color: var(--text-dark);
    cursor: not-allowed;
    opacity: 1;
    border-color: var(--border-color);
}

.registration-form.registration-complete .phone-prefix {
    opacity: 0.7;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

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

.instagram-description strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.instagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.instagram-follow-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #b71c1c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.instagram-follow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(211, 47, 47, 0.4);
}

.instagram-follow-button:active {
    transform: translateY(0);
}

.instagram-icon {
    width: 24px;
    height: 24px;
    fill: white;
    flex-shrink: 0;
}

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

.course-video-disclaimer {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.whatsapp-float-wrap {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 1000;
    overflow: visible;
    pointer-events: none;
}

.whatsapp-float-wrap .whatsapp-float {
    pointer-events: auto;
}

.whatsapp-float {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.whatsapp-float:focus,
.whatsapp-float:focus-visible {
    outline: none;
}

.whatsapp-float-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.whatsapp-float-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

@media (hover: hover) {
    .whatsapp-float:hover .whatsapp-float-btn,
    .whatsapp-float:focus-visible .whatsapp-float-btn {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #2ee06a 0%, #25d366 100%);
        box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .whatsapp-float:hover .whatsapp-float-label,
    .whatsapp-float:focus-visible .whatsapp-float-label {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        border-color: #25d366;
        color: #128c7e;
    }
}

.whatsapp-float-icon {
    width: 28px;
    height: 28px;
}

@media (hover: none), (max-width: 768px) {
    .whatsapp-float:not(.whatsapp-float--active) .whatsapp-float-label {
        opacity: 0;
        visibility: hidden;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .whatsapp-float:not(.whatsapp-float--active):hover .whatsapp-float-label,
    .whatsapp-float:not(.whatsapp-float--active):focus-visible .whatsapp-float-label,
    .whatsapp-float:not(.whatsapp-float--active):focus .whatsapp-float-label {
        opacity: 0;
        visibility: hidden;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .whatsapp-float:not(.whatsapp-float--active):hover .whatsapp-float-btn,
    .whatsapp-float:not(.whatsapp-float--active):focus-visible .whatsapp-float-btn,
    .whatsapp-float:not(.whatsapp-float--active):focus .whatsapp-float-btn {
        transform: none;
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
        outline: none;
    }

    .whatsapp-float:not(.whatsapp-float--active) .whatsapp-float-btn::after {
        display: none;
    }
}

.footer-powered {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.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,
    .registration,
    .instagram-section {
        padding: 60px 0;
    }

    .timeline-table th,
    .schedule-table th,
    .timeline-table td,
    .schedule-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .week-program-meta {
        font-size: 0.84rem;
    }

    .week-program-topic {
        font-size: 0.98rem;
    }

    .week-program-table {
        min-width: 680px;
    }

    .week-program-table th,
    .week-program-table td {
        padding: 10px 10px;
        font-size: 0.86rem;
    }
    
    .registration-form-container,
    .registration-yels-note {
        padding: 30px 25px;
    }

    .whatsapp-float-wrap {
        right: 16px;
        bottom: max(32px, calc(20px + env(safe-area-inset-bottom, 0px)));
    }

    .whatsapp-float {
        position: relative;
        flex-direction: row;
        align-items: center;
    }

    .whatsapp-float-label {
        position: absolute;
        right: calc(100% + 10px);
        top: 50%;
        bottom: auto;
        left: auto;
        transform: translateY(-50%) translateX(6px);
        max-width: min(200px, 55vw);
        white-space: nowrap;
        text-align: right;
        z-index: 2;
    }

    .whatsapp-float:not(.whatsapp-float--active):hover .whatsapp-float-btn,
    .whatsapp-float:not(.whatsapp-float--active):focus-visible .whatsapp-float-btn,
    .whatsapp-float:not(.whatsapp-float--active):focus .whatsapp-float-btn {
        transform: none;
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
        outline: none;
    }

    .whatsapp-float:not(.whatsapp-float--active):hover .whatsapp-float-label,
    .whatsapp-float:not(.whatsapp-float--active):focus-visible .whatsapp-float-label,
    .whatsapp-float:not(.whatsapp-float--active):focus .whatsapp-float-label {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) translateX(6px);
    }

    .whatsapp-float-btn {
        flex-shrink: 0;
    }

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

@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;
    }
    
    .registration-form-container {
        padding: 25px 20px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .form-submit {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .instagram-follow-button {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .instagram-icon {
        width: 20px;
        height: 20px;
    }

    .whatsapp-float-wrap {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(28px, calc(12px + env(safe-area-inset-bottom, 0px)));
    }

    .whatsapp-float-btn {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float-label {
        font-size: 0.8rem;
        padding: 6px 12px;
        max-width: min(180px, 50vw);
    }

    .whatsapp-float-icon {
        width: 26px;
        height: 26px;
    }
}

@media (hover: none), (max-width: 768px) {
    .whatsapp-float.whatsapp-float--active .whatsapp-float-label {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
        background: white;
        border-color: #25d366;
        color: #128c7e;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .whatsapp-float.whatsapp-float--active .whatsapp-float-btn,
    .whatsapp-float.whatsapp-float--active:hover .whatsapp-float-btn,
    .whatsapp-float.whatsapp-float--active:focus .whatsapp-float-btn,
    .whatsapp-float.whatsapp-float--active:focus-visible .whatsapp-float-btn {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        outline: none;
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.35), 0 12px 28px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-float.whatsapp-float--active .whatsapp-float-btn::after {
        content: '';
        position: absolute;
        inset: -7px;
        border-radius: 50%;
        border: 3px solid #25d366;
        pointer-events: none;
    }
}
