.about-instructor-section {
    width: 100%;
    padding: 60px 0px;
    text-align: center;
}

.about-instructor-header {
    margin-bottom: 32px;
}

.about-instructor-header h2 {
    margin-top: 0;
    font-size: 36px;
}

.about-instructor-profile {
    max-width: 340px;
    margin: 0 auto 48px;
    padding: 15px;
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.about-instructor-profile img {
    width: 100%;
    display: block;
    margin-bottom: 18px;
}

.about-instructor-profile h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.about-instructor-profile p {
    margin: 0;
}

.instructor-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.instructor-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--soft-bg);
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.instructor-socials a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.about-instructor-story {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.about-instructor-story p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 20px;
}

.about-instructor-story .instructor-story-highlight {
    position: relative;

    margin: 36px 0;
    padding: 4px 0 4px 26px;

    color: var(--text-main);

    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
}

.about-instructor-story .instructor-story-highlight::before {
    content: "";
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: var(--accent);
}


/* Shared Django notifications */

.site-messages {
    width: min(100% - 32px, 900px);
    margin: 20px auto;
    display: grid;
    gap: 10px;
}

.site-message {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.site-message--success {
    color: #c9f7dc;
    background: #23402f;
    border-color: #35764b;
}

.site-message--error {
    color: #ffd6d6;
    background: #482626;
    border-color: #9b4040;
}

.site-message--warning,
.site-message--info {
    color: #f5d7b5;
    background: #493729;
    border-color: #8c613b;
}


@media (max-width: 640px) {
    .about-instructor-header h2 {
        font-size: 30px;
    }

    .about-instructor-profile {
        max-width: 100%;
        padding: 20px;
    }
}