/* Mentor Page Styling */

.instruktor-page-section {
    padding: 60px 0;
    background-color: #fff;
    font-family: "Inter", sans-serif;
}

.instruktor-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title Section */
.instruktor-title {
    text-align: center;
    margin-bottom: 50px;
}

.instruktor-title h1 {
    font-size: 36px;
    font-weight: 700;
    color: #154ea1; /* Main Blue */
    margin-bottom: 15px;
}

.instruktor-title p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Search Section */
.search-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
}

.search-name,
.search-bahasa {
    flex: 1;
}

.search-name-title h4,
.search-bahasa-title h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.search-bar-name,
.search-bar-bahasa {
    position: relative;
    width: 100%;
}

.search-bar-name input,
.search-bar-bahasa select {
    width: 100%;
    height: 50px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    color: #555;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar-name input {
    padding-left: 45px; /* Space for icon */
}

.search-bar-name ion-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #154ea1;
}

.search-bar-name input:focus,
.search-bar-bahasa select:focus {
    border-color: #154ea1;
}

.search-bar-bahasa select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

/* Grid Layout */
.instruktor-all-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Mentor Card */
.instruktor-bhs-item {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.instruktor-bhs-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.bhs-item-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f4f4f4;
}

.bhs-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays */
.tutor-overlay-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.tutor-overlay-flag img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.tutor-overlay-banner {
    position: absolute;
    bottom: 30px;
    left: 0;
    background: #103b7a; /* Darker blue for banner */
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 2;
    letter-spacing: 1px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.bhs-item-info {
    padding: 24px 20px;
    text-align: center;
}

.bhs-item-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.bhs-item-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #154ea1;
    margin-bottom: 12px;
}

.bhs-item-info p {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.bhs-item-info p img {
    width: 16px;
    height: auto;
}

/* Pagination */
.instruktor-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.instruktor-data h4 {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num,
.page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-nav {
    color: #999;
    font-size: 16px;
}

.page-nav:hover {
    color: #154ea1;
    background-color: #f0f7ff;
}

.page-num:hover {
    background-color: #f0f7ff;
    color: #154ea1;
}

.page-num.active {
    background-color: #154ea1;
    color: #fff;
    box-shadow: 0 4px 10px rgba(21, 78, 161, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.empty-state img {
    max-width: 200px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Tutor Card New (Reusable from Index) */
.tutor-card-new {
    background: #fff;
    border: 1px solid #cce0f5;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.tutor-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #154ea1;
}

.tutor-card-header {
    height: 240px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f4f8fc;
}

.tutor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tutor-overlay-flag {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tutor-overlay-flag img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

.tutor-overlay-banner {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #103b7a;
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 2;
    letter-spacing: 1px;
}

.tutor-card-body {
    padding: 24px;
}

.tutor-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.4;
}

.tutor-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.info-icon img {
    width: 18px;
    height: auto;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    font-weight: 500;
}

.info-value {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.level-row {
    margin-top: 20px;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.display-block {
    display: block;
    width: 100%;
}

.level-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-level {
    background-color: #e6f6ec;
    color: #00a651;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* =========================================
   DETAIL MENTOR PAGE STYLING (New Design)
   ========================================= */

/* Detail Page Layout */
.detail-instructor-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove old single card style if present or repurpose */
/* Separate Cards Structure */

.detail-image-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 600px;
    position: relative;
    background-color: #fff;
}

.detail-info-card {
    background: transparent;
    border: 1px solid #b6c8e2;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    height: 100%;
    min-height: 600px; /* Match height of image card */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Left Column: Image */
.detail-image-container {
    height: 100%;
    width: 100%;
    position: relative;
    background-color: #fff;
    display: flex;
    align-items: flex-start; /* Align top */
    justify-content: flex-start; /* Align left */
    overflow: hidden;
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% top; /* Shift slightly right from hard left */
    transform: scale(1.1); /* Slight zoom to emphasize the person */
    transform-origin: top center; /* Zoom from top center for better balance */
}

.detail-flag-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.detail-flag-overlay img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.detail-banner-overlay {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: #103b7a;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
    letter-spacing: 1.5px;
}

/* Right Column: Content */
.detail-content {
    padding: 50px 60px;
    position: relative;
    height: 100%;
}

.detail-group {
    margin-bottom: 28px;
}

.detail-group label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-value-lg {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1.5;
}

.detail-value-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.detail-value-flex span {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.detail-value-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value-link ion-icon {
    color: #0077b5;
    font-size: 20px;
}

.detail-value-link a {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

/* Floating Chat Button (Bottom Right of Card) */
.chat-float-btn {
    position: absolute;
    bottom: 40px;
    right: -30px; /* Pull it slightly out of the card to match Figma */
    background: #0056b3;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.chat-float-btn:hover {
    background: #004494;
    transform: translateY(-3px);
    color: #fff;
}

@media (max-width: 991px) {
    .detail-image-container {
        min-height: 400px;
    }
    .detail-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .detail-image-container {
        min-height: 350px;
    }
    .detail-content {
        padding: 30px;
    }
    .detail-value-lg {
        font-size: 24px;
    }
    .chat-float-btn {
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
