/* Page container spacing */
.instructors-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Each instructor block */
.instructor-block {
    margin-bottom: 40px;
}

/* Horizontal layout */
.instructor-content {
    display: flex;
    gap: 30px;
    align-items: center;      /* Center image + text vertically */
    justify-content: center;  /* Center the whole block horizontally */
}

/* Image panel */
.instructor-image img {
    width: 260px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto;           /* Ensures perfect centering */
}

/* Text panel */
.instructor-text {
    flex: 1;
    text-align: left;       /* Centers the text */
}

/* Mobile layout */
@media (max-width: 700px) {
    .instructor-content {
        flex-direction: column;
        text-align: center;
    }

    .instructor-image img {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 20px auto;
    }

    .instructor-text {
        text-align: center;
    }
}