@font-face {
    font-family: 'MyCustomFont';
    src: url('../font/noto.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    height: 100%;
    width: 100%;
    font-family: MyCustomFont, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, 
       Helvetica Neue, sans-serif;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.experts-section .school-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.experts-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: auto;

    position: relative;
}

.school-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: auto;

    position: relative;
}

.experts-wrapper {
    width: 79%;
    overflow: hidden;
}

.school-wrapper {
    width: 81%;
    padding: 0 1vw;
    overflow: hidden;
}

.experts-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.school-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.expert-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    flex: 0 0 auto;
}

.expert-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.expert-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.expert-card p {
    font-size: 14px;
    color: #666;
}

/* Styled Prev & Next Buttons */
.prev-btn,
.next-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #555;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn-school,
.next-btn-school {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.prev-btn-school {
    left: -10px;
}

.next-btn-school {
    right: -10px;
}

.prev-btn-school:hover,
.next-btn-school:hover {
    background-color: #555;
    transform: translateY(-50%) scale(1.1);
}





@media (max-width: 768px) {
    .experts-section .school-section {
        max-height: 500px;
        /* Adjust as needed */
        overflow: hidden;
        /* Prevent whole section from scrolling */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container1 {
        width: 100%;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 10px 0;
    }

    .experts-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 400px;
        /* Adjust height */
        overflow: hidden;
    }

    .experts-wrapper {
        height: 100%;
        overflow-y: auto;
        padding: 10px;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .experts-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .school-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 400px;
        /* Adjust height */
        overflow: hidden;
    }

    .school-wrapper {
        height: 100%;
        overflow-y: auto;
        padding: 10px;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .school-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .expert-card {
        width: 90%;
        /* Make it responsive */
        max-width: 500px;
        margin: auto;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Hide navigation buttons on small screens */
    .prev-btn,
    .next-btn {
        display: none;
    }

    .prev-btn-school,
    .next-btn-school {
        display: none;
    }

    .select {
        width: 60% !important;
    }
}

.select {
    width: 30%;
}