/* Adviser Page Styles */
.adviser-container {
    padding-bottom: 2rem;
}

/* Profile Section */
.adviser-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .adviser-profile {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-img-box {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.profile-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text-box {
    flex: 1;
}

.adviser-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.adviser-name small {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

.adviser-cert {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.cert-badge {
    background-color: var(--bg-color);
    color: var(--primary-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-bio {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: justify;
}

/* Message Sections */
.message-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .message-block {
        flex-direction: row;
        gap: 4rem;
    }

    .message-block.reverse {
        flex-direction: row-reverse;
    }
}

.message-text {
    flex: 1;
}

.message-image {
    flex: 0 0 100%;
    max-width: 500px;
}

@media (min-width: 768px) {
    .message-image {
        flex: 0 0 45%;
    }
}

.message-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    height: auto;
}

.message-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.message-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.message-body {
    line-height: 2;
    color: var(--text-color);
}

.message-body p {
    margin-bottom: 1rem;
}

/* SP Adjustments */
@media (max-width: 767px) {
    .adviser-name {
        flex-direction: column;
        gap: 0.2rem;
        align-items: center;
        text-align: center;
    }

    .adviser-cert {
        justify-content: center;
    }

    .message-block {
        margin-bottom: 4rem;
    }

    .message-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .message-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}