.index-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    font-family: var(--font-family-base);
}

/* Logo */
.index-logo {
    position: fixed;
    top: 2.5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.index-logo img {
    height: 10vh;
    width: auto;
}

/* Nav buttons */
.index-top-buttons {
    position: fixed;
    top: 2.5vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 4vw;
    z-index: 999;
}

.index-top-btn {
    background: white;
    color: #333;
    padding: 1.5vh 2vw;
    text-decoration: none;
    font-weight: 500;
    font-size: 2vh;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /*box-shadow: 0 0.2vh 0.8vh rgba(0, 0, 0, 0.1);*/
}

.index-top-btn:hover {
    background: #f5f5f5;
    transform: translateY(-0.3vh);
    /*box-shadow: 0 0.4vh 1.2vh rgba(0, 0, 0, 0.15);*/
}

/* Partners */
.index-partners {
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

.index-partners-label {
    background: white;
    color: #333;
    padding: 0.75vh 2vw;
    font-weight: 600;
    font-size: 2vh;
    /*box-shadow: 0 0.2vh 0.8vh rgba(0, 0, 0, 0.1);*/
    margin-bottom: 1vh;
    display: inline-block;
    pointer-events: none;
}

.index-partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
}

.index-partners-logos img {
    height: 5vh;
    width: auto;
    object-fit: contain;
}

/* Split container */
.index-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.index-section {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Overlay: dark by default, solid brand color on hover */
.index-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.4s ease;
    z-index: 1;
}

.index-student:hover .index-overlay { background: var(--color-primary); }
.index-tutor:hover  .index-overlay  { background: var(--color-secondary); }

/* Title block – visible by default, fades out on hover */
.index-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.index-subtitle {
    font-size: 5vh;
    font-weight: 300;
    margin: 0 0 0.75vh 0;
    letter-spacing: 0.3vw;
    text-transform: uppercase;
}

.index-title {
    font-size: 5vh;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.4vw;
    text-transform: uppercase;
}

.highlight-primary   { color: white; background: var(--color-primary);   padding: 0.2vh 0.8vw; }
.highlight-secondary { color: white; background: var(--color-secondary);  padding: 0.2vh 0.8vw; }

/* Hover content – hidden by default, shown on hover */
.index-hover-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5vh;
    padding: 3vh 4vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 3;
}

.index-section:hover .index-hover-content { opacity: 1; visibility: visible; }
.index-section:hover .index-content       { opacity: 0; visibility: hidden;  }

/* Course / Join buttons */
.index-course-btn,
.index-join-btn {
    background: white;
    color: #333;
    padding: 1vw 5vw;
    text-decoration: none;
    font-weight: 600;
    font-size: 2.4vh;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /*box-shadow: 0 0.4vh 1.2vh rgba(0, 0, 0, 0.2);*/
    min-width: 18vw;
    text-align: center;
}

.index-student .index-course-btn:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-0.3vh);
    /*box-shadow: 0 0.6vh 1.6vh rgba(0, 0, 0, 0.3);*/
}

.index-tutor .index-join-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-0.3vh);
    /*box-shadow: 0 0.6vh 1.6vh rgba(0, 0, 0, 0.3);*/
}

.index-no-courses {
    color: white;
    font-size: 1.8vh;
    font-weight: 400;
    text-align: center;
}

@media (max-aspect-ratio: 1) {

    /* Scrollable body */
    .index-body {
        overflow-y: auto;
        height: 100vh;
    }

    /* Stacked sections */
    .index-container {
        flex-direction: column;
        height: auto;
    }

    .index-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0vh 5vw 0vh;
        box-sizing: border-box;
        min-height: 50vh;
        transition: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Overlay stays dark – no color change on tap */
    .index-overlay,
    .index-student:hover .index-overlay,
    .index-tutor:hover  .index-overlay {
        background: rgba(0, 0, 0, 0.5);
        transition: none;
    }

    /* Title always visible, not interactive */
    .index-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: none;
        pointer-events: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .index-subtitle {
        font-size: 4vw;
        letter-spacing: 0.3vw;
    }

    .index-title {
        font-size: 5.5vw;
        letter-spacing: 0.4vw;
    }

    /* Buttons always visible */
    .index-hover-content {
        position: relative;
        inset: auto;
        opacity: 1;
        visibility: visible;
        transition: none;
        padding-top: 1.5vh;
        width: 100%;
        gap: 1.5vh;
    }

    /* Keep visible on touch-hover (no change) */
    .index-section:hover .index-hover-content,
    .index-section:hover .index-content {
        opacity: 1;
        visibility: visible;
    }

    /* Smaller course / join buttons */
    .index-course-btn,
    .index-join-btn {
        width: 70vw;
        min-width: unset;
        padding: 1.2vh 3vw;
        font-size: 2.5vh;
    }

    /* Nav buttons smaller */
    .index-top-buttons {
        top: 1.5vh;
        padding: 0 2vw;
    }

    .index-top-btn {
        padding: 0.7vh 2vw;
        font-size: 2.8vw;
    }

    /* Logo smaller */
    .index-logo {
        top: 1.5vh;
    }

    .index-logo img {
        height: 4.5vh;
    }

    /* Partners */
    .index-partners {
        bottom: 1.5vh;
    }

    .index-partners-label {
        display: none;
    }

    .index-partners-logos {
        gap: 3vw;
    }

    .index-partners-logos img {
        height: 3.5vh;
    }
}
