/* Custom styles for the tutors page */

.tutors-intro .lead {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
}

.tutors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.tutor-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    padding: 18px;
}

.tutor-role {
    color: var(--color-accent-blue);
    font-weight: 600;
    margin-top: 6px;
}

.tutor-description {
    margin-top: 8px;
    color: var(--color-text-light);
}

.tutor-icon {
    margin-top: 12px;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .tutors-container {
        grid-template-columns: 1fr;
    }
}

/* Slideshow styles */
:root {
    --tutors-dark-blue: #002E5D; /* deep blue */
    --tutors-yellow: #FFCF33; /* brand yellow */
    --tutors-text: #ffffff;
}

.tutors-slideshow {
    position: relative;
    max-width: none; /* allow near full-width */
    width: calc(100% - 32px);
    margin: 22px 16px;
    /* make the whole slideshow container a dark-blue band */
    background: linear-gradient(180deg, rgba(0,46,93,1) 0%, rgba(0,38,76,1) 100%);
    border-radius: 12px;
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    padding: 0;
}

.tutors-slideshow .slides {
    display: flex;
    min-height: 300px;
    overflow: hidden;
    transition: transform 500ms ease;
}

.tutors-slideshow .slide {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center;     /* horizontal centering */
    text-align: center;
    padding: 20px 24px; /* compact inner spacing */
    box-sizing: border-box;
    color: var(--tutors-text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), 
                transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(0,46,93,1) 0%, rgba(0,38,76,1) 100%);
}

.tutors-slideshow .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateY(0) scale(1);
}

/* Title styling: new font, larger, with yellow underline bar */
.tutors-slideshow h2 {
    margin: 0 0 12px 0;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-weight: 700;
    font-size: 1.8rem; /* larger title */
    line-height: 1.05;
    color: var(--tutors-text);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.tutors-slideshow h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 8px;
    background: var(--tutors-yellow);
    border-radius: 4px;
}

.tutors-slideshow p {
    color: var(--tutors-text);
    margin: 0;
    font-size: 1rem;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-prev:hover, .slide-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.slide-prev:active, .slide-next:active {
    transform: translateY(-50%) scale(0.95);
}

.slide-prev { left: 12px }
.slide-next { right: 12px }
.slide-dots {
    /* full-width blue strip for the dots */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display:flex;
    gap:12px;
    justify-content:center;
    align-items:center;
    margin: 0 auto;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(0,46,93,1) 0%, rgba(0,38,76,1) 100%);
    z-index: 25; /* keep dots above slides */
}
.slide-dots .dot {
    width:12px;
    height:12px;
    border-radius:50%;
    background: rgba(255, 255, 255, 0.5); /* default white with transparency */
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slide-dots .dot.active {
    background: var(--tutors-yellow); /* active yellow */
    border-color: var(--tutors-yellow);
    box-shadow: 0 4px 12px rgba(255, 207, 51, 0.4);
    transform: scale(1.3);
}

/* Keep dots fully visible */
.slide-dots { opacity: 1; }

@media (max-width: 1024px) {
    .tutors-slideshow { width: calc(100% - 24px); margin: 16px 12px }
    .tutors-slideshow .slides { min-height: 160px }
    .tutors-slideshow h2 { font-size: 1.45rem }
}

@media (max-width: 768px) {
    .tutors-slideshow { 
        width: calc(100% - 20px); 
        margin: 15px 10px;
        border-radius: 16px;
    }
    .slide-prev, .slide-next { 
        width: 44px; 
        height: 44px;
        font-size: 22px;
    }
    .tutors-slideshow h2 { 
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    .tutors-slideshow h2::after {
        width: 70px;
        height: 7px;
    }
    .tutors-slideshow .slide { 
        padding: 30px 24px;
    }
    .tutors-slideshow .slides { 
        min-height: 220px;
    }
    .tutors-slideshow p { 
        font-size: 1.1rem;
        line-height: 1.6;
    }
    .slide-dots { 
        bottom: 12px; 
        padding: 12px 0;
    }
    .slide-dots .dot { 
        width: 14px; 
        height: 14px;
    }
}

@media (max-width: 480px) {
    .tutors-slideshow { 
        width: 100%; 
        margin: 15px 0; 
        border-radius: 12px;
    }
    .tutors-slideshow .slides { 
        min-height: 280px;
    }
    .tutors-slideshow h2 { 
        font-size: 1.4rem; 
        padding-bottom: 12px;
        margin-bottom: 18px;
    }
    .tutors-slideshow h2::after { 
        width: 70px; 
        height: 7px; 
        bottom: -12px;
    }
    .tutors-slideshow p { 
        font-size: 1.05rem;
        line-height: 1.7;
        padding: 0 8px;
    }
    .tutors-slideshow .slide { 
        padding: 35px 20px;
    }
    .slide-prev, .slide-next { 
        width: 48px; 
        height: 48px; 
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .slide-prev { left: 8px; }
    .slide-next { right: 8px; }
    .slide-dots { 
        bottom: 10px; 
        padding: 10px 0;
        gap: 14px;
    }
    .slide-dots .dot { 
        width: 16px; 
        height: 16px;
    }
}
