/* Teacher Section Widget Styles - Based on Provided Design */
.tse-teacher-section {
    border-radius: 60px 8px 60px 8px !important;
    padding: 72px !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 40px 0 !important;
    min-height: 800px !important;
    background-color: #ff461c !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 60px !important;
    text-align: left !important;
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Header section styling */
.tse-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 0 !important;
    padding: 0 !important;
}

.tse-logo {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 149px !important;
    position: relative !important;
    height: 42px !important;
}

.tse-logo:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.tse-logo-icon {
    position: absolute !important;
    top: -8.7px !important;
    left: -9.2px !important;
    border-radius: 14px !important;
    width: 59.4px !important;
    height: 59.4px !important;
    object-fit: contain !important;
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
}

.tse-logo-icon:hover {
    transform: none !important;
    box-shadow: none !important;
}

.tse-logo-icon img {
    border-radius: 14px !important;
    object-fit: contain !important;
    filter: none !important;
}

.tse-logo-icon i {
    display: none !important;
}

.tse-logo-text {
    position: absolute !important;
    top: calc(50% - 20px) !important;
    left: 29px !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 0px 100px 100px 0px !important;
    background-color: rgba(0, 0, 0, 0.07) !important;
    height: 40px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 14px 8px 20px !important;
    box-sizing: border-box !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 100% !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
}

/* Navigation buttons - Updated for proper styling */
.tse-navigation {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.tse-nav-btn {
    width: 42px !important;
    height: 42px !important;
    border: none !important;
    background: none !important;
    color: transparent !important;
    border-radius: 100px !important;
    font-size: 0 !important;
    cursor: pointer !important;
    transition: none !important;
    display: block !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.tse-nav-btn::before {
    display: none !important;
}

.tse-nav-btn:hover {
    background: none !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.tse-nav-btn:active {
    transform: none !important;
}

/* Content area - Updated for proper layout */
.tse-content {
    position: relative !important;
    z-index: 1 !important;
    width: 618px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
}

.tse-title {
    align-self: stretch !important;
    position: relative !important;
    font-size: 56px !important;
    letter-spacing: -0.02em !important;
    line-height: 110% !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-align: left !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.tse-subtitle {
    display: none !important;
}

.tse-description {
    position: relative !important;
    font-size: 20px !important;
    letter-spacing: -0.01em !important;
    line-height: 160% !important;
    font-weight: 600 !important;
    font-family: 'Nunito Sans', sans-serif !important;
    opacity: 0.9 !important;
    color: #fff !important;
    margin: 0 !important;
    text-align: left !important;
    text-shadow: none !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Teachers Slider - Updated for proper layout */
.tse-teachers-slider {
    position: relative !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
}

.tse-teachers-track {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    transition: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.tse-teacher-card {
    width: 320px !important;
    position: relative !important;
    background-color: #fff !important;
    height: 465px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: none !important;
    transition: none !important;
    min-width: auto !important;
}

.tse-teacher-card::before {
    display: none !important;
}

.tse-teacher-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.tse-teacher-card.orange {
    border-left: none !important;
}

.tse-teacher-card.blue {
    border-left: none !important;
}

.tse-teacher-card.green {
    border-left: none !important;
}

.tse-teacher-card.purple {
    border-left: none !important;
}

.tse-teacher-image {
    position: absolute !important;
    top: -70px !important;
    left: -33px !important;
    width: 362px !important;
    height: 542px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
    position: absolute !important;
    background: none !important;
}

.tse-teacher-card:nth-child(2) .tse-teacher-image {
    top: -66px !important;
    left: -97px !important;
    width: 450px !important;
    height: 674px !important;
}

.tse-teacher-card:nth-child(3) .tse-teacher-image,
.tse-teacher-card:nth-child(4) .tse-teacher-image {
    top: -96px !important;
    left: -175px !important;
    width: 605px !important;
    height: 907px !important;
}

.tse-teacher-card:hover .tse-teacher-image {
    transform: none !important;
    box-shadow: none !important;
}

.tse-teacher-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: none !important;
}

.tse-teacher-info {
    position: absolute !important;
    bottom: 0px !important;
    left: 0px !important;
    width: 357px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.tse-teacher-name {
    background-color: #ff8f2f !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
    color: #1b235b !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 36px !important;
    letter-spacing: -0.01em !important;
    font-family: 'Nunito', sans-serif !important;
}

.tse-teacher-card:nth-child(2) .tse-teacher-name {
    background-color: #00a9ee !important;
}

.tse-teacher-card:nth-child(3) .tse-teacher-name {
    background-color: #17784d !important;
    color: #fff !important;
}

.tse-teacher-card:nth-child(4) .tse-teacher-name {
    background-color: #ab1cfe !important;
    color: #fff !important;
}

.tse-teacher-subject {
    align-self: stretch !important;
    background-color: #ffbb81 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 6px 12px !important;
    font-size: 18px !important;
    color: #1b235b !important;
    font-weight: 500 !important;
    line-height: 150% !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    opacity: 0.9 !important;
}

.tse-teacher-card:nth-child(2) .tse-teacher-subject {
    background-color: #afe8ff !important;
}

.tse-teacher-card:nth-child(3) .tse-teacher-subject {
    background-color: #3fc187 !important;
}

.tse-teacher-card:nth-child(4) .tse-teacher-subject {
    background-color: #cb8eef !important;
}

/* Decorative elements */
.tse-teacher-section::after {
    content: '' !important;
    position: absolute !important;
    top: 226px !important;
    right: 10px !important;
    width: 190px !important;
    height: 256px !important;
    background-image: url('Vector.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 2 !important;
    animation: none !important;
}

.tse-teacher-section::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: calc(50% - 1352px) !important;
    width: 2604.7px !important;
    height: 17.7px !important;
    background-image: url('Rectangle 83.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 3 !important;
    animation: none !important;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .tse-teacher-section {
        padding: 60px 50px !important;
        gap: 50px !important;
    }
    
    .tse-content {
        width: 100% !important;
        max-width: 600px !important;
    }
    
    .tse-title {
        font-size: 48px !important;
    }
    
    .tse-teachers-track {
        gap: 12px !important;
    }
    
    .tse-teacher-card {
        width: 280px !important;
        height: 400px !important;
    }
}

@media (max-width: 1200px) {
    .tse-teacher-section {
        padding: 50px 40px !important;
        gap: 40px !important;
    }
    
    .tse-title {
        font-size: 42px !important;
    }
    
    .tse-description {
        font-size: 18px !important;
    }
    
    .tse-teachers-track {
        gap: 10px !important;
    }
    
    .tse-teacher-card {
        width: 260px !important;
        height: 380px !important;
    }
    
    .tse-teacher-image {
        width: 110px !important;
        height: 110px !important;
        margin-bottom: 28px !important;
    }
}

@media (max-width: 1024px) {
    .tse-teacher-section {
        padding: 45px 35px !important;
        gap: 35px !important;
    }
    
    .tse-title {
        font-size: 36px !important;
    }
    
    .tse-description {
        font-size: 16px !important;
    }
    
    .tse-teacher-card {
        width: 240px !important;
        height: 350px !important;
    }
    
    .tse-teacher-name {
        font-size: 24px !important;
        padding: 8px 10px !important;
    }
    
    .tse-teacher-subject {
        font-size: 16px !important;
        padding: 5px 10px !important;
    }
}

@media (max-width: 768px) {
    .tse-teacher-section {
        padding: 40px 30px !important;
        gap: 30px !important;
        border-radius: 40px 8px 40px 8px !important;
    }
    
    .tse-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    
    .tse-content {
        width: 100% !important;
        max-width: none !important;
    }
    
    .tse-title {
        font-size: 32px !important;
    }
    
    .tse-description {
        font-size: 16px !important;
    }
    
    .tse-teachers-track {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .tse-teacher-card {
        width: 100% !important;
        height: 300px !important;
    }
    
    .tse-teacher-image {
        top: -50px !important;
        left: -20px !important;
        width: 280px !important;
        height: 420px !important;
    }
    
    .tse-teacher-info {
        width: 100% !important;
    }
    
    .tse-logo-text {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .tse-teacher-section {
        padding: 30px 25px !important;
        gap: 25px !important;
        border-radius: 30px 8px 30px 8px !important;
    }
    
    .tse-title {
        font-size: 28px !important;
    }
    
    .tse-description {
        font-size: 14px !important;
    }
    
    .tse-teacher-card {
        height: 250px !important;
    }
    
    .tse-teacher-image {
        top: -40px !important;
        left: -15px !important;
        width: 240px !important;
        height: 360px !important;
    }
    
    .tse-teacher-name {
        font-size: 20px !important;
        padding: 6px 8px !important;
    }
    
    .tse-teacher-subject {
        font-size: 14px !important;
        padding: 4px 8px !important;
    }
}