/* ==========================================================
   Common Layout & Title
========================================================== */
.content-060 { padding: 50px 0; }

.section-title { 
    text-align: center; 
    font-size: 30px !important; 
    font-weight: 800; 
    margin-bottom: 50px; 
    width: 100%; 
    display: block;
    line-height: 1.4;
    letter-spacing: -0.5px; 
}

.section-title b { 
    color: #27ae60; 
    font-weight: 800;
    background: linear-gradient(to top, rgba(39, 174, 96, 0.15) 30%, transparent 30%); 
}

/* ==========================================================
   PC Main Cards (3-column grid)
========================================================== */
.expert-grid { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.expert-card { 
    background: #fff; 
    border-radius: 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    border: 1px solid #eee; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.expert-img {
    width: 100%;
    text-align: center; 
    padding-top: 20px;
}

.expert-img img { 
    width: 80%; 
    height: auto; 
    display: inline-block;
}

.expert-info { padding: 25px; text-align: center; }
.expert-info h3 { font-size: 20px; margin: 10px 0 20px; color: #111; }

.btn-call { 
    display: block; 
    background: #27ae60; 
    color: #fff; 
    padding: 15px; 
    border-radius: 10px; 
    font-weight: bold; 
    text-align: center; 
    cursor: pointer; 
    text-decoration: none; 
    white-space: nowrap !important;
    letter-spacing: -1px !important;
    word-break: keep-all !important;
}

/* ==========================================================
   Mobile Hipass Tab Container (hidden by default)
========================================================== */
.hipass-tab-container { 
    display: none; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.main-display-card {
    display: block;
    width: 100%; 
    max-width: 1100px; 
    margin: 30px auto; 
    text-align: center; 
    padding: 0 15px; 
    box-sizing: border-box; 
}

.main-display-card img {
    width: 100%; 
    max-width: 800px; 
    height: auto; 
    display: inline-block;
    border-radius: 15px;
}

.mini-tab-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
}

.mini-tab { 
    background: #f9f9f9; 
    border: 2px solid #eee; 
    border-radius: 10px; 
    padding: 10px 5px; 
    cursor: pointer; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.mini-tab img { width: 35px; opacity: 0.5; filter: grayscale(100%); }
.mini-tab.active { border-color: #27ae60; background: #fff; }
.mini-tab.active img { opacity: 1; filter: grayscale(0%); }
.mini-tab.active span { color: #27ae60; font-weight: bold; }

/* ==========================================================
   Expert List & Cards (Filter Area)
========================================================== */
.expert-list-section { 
    display: block !important; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.list-title { 
    font-size: 24px; 
    font-weight: 700; 
    margin-bottom: 30px; 
    padding-left: 10px; 
    border-left: 5px solid #27ae60; 
}

.expert-filter-tabs {
    display: flex;
    justify-content: center; 
    gap: 8px;
    padding: 10px 0;
    overflow-x: auto; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
}
.expert-filter-tabs::-webkit-scrollbar { display: none; }

.filter-btn {
    flex-shrink: 0; 
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #f8f8f8;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
}
.filter-btn.active { background: #27ae60; color: #fff; border-color: #27ae60; }

.expert-row-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 20px !important; 
}

.expert-item { 
    background: #fff; 
    border: 1px solid #e1e1e1; 
    border-radius: 12px; 
    padding: 25px 15px; 
    text-align: center; 
    transition: 0.3s; 
    position: relative; 
    overflow: hidden; 
}

.expert-item:hover { border-color: #27ae60; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

.expert-item .status-dot {
    position: absolute;
    top: 10px; 
    left: 10px; 
    font-size: 11px;
    z-index: 5; 
    background: rgba(255,255,255,0.8); 
    padding: 2px 5px;
    border-radius: 4px;
}
.expert-item .status-dot.on::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #27ae60; border-radius: 50%; margin-right: 4px;}

.expert-item .thumb-box { 
    width: 90px; 
    height: 90px; 
    margin: 0 auto 15px; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center; 
    justify-content: center;
    background-color: #27ae60; 
    color: #fff; 
    font-weight: bold; 
    font-size: 24px;
}

.expert-item .office { color: #888; font-size: 12px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expert-item .name { font-size: 17px; font-weight: 700; color: #222; margin-bottom: 8px; }
.expert-item .name span { font-size: 14px; font-weight: 400; color: #555; margin-left: 4px; }

.expert-item .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 12px; min-height: 54px; align-content: flex-start; }
.expert-item .tags span { background: #f1f1f1; color: #666; font-size: 11px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }

/* Expert Card Bottom Buttons */
.card-btns {
    display: flex !important;
    gap: 6px !important;
    margin-top: 15px !important;
    justify-content: center !important; 
    align-items: center !important;
}

.btn-profile-final, .btn-hpass-final {
    flex: 1 !important;
    height: 38px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.btn-profile-final {
    background: #fff !important;
    color: #666 !important;
    border: 1px solid #ccc !important;
}

.btn-hpass-final {
    background: #27ae60 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
}

.btn-hpass-final span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    transform: translateX(-3px) !important;
}

/* ==========================================================
   Modal (Popup)
========================================================== */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
    z-index: 1001; 
}

.modal-header h3 { font-size: 22px; color: #27ae60; margin-bottom: 10px; }
.modal-header p { font-size: 14px; color: #666; margin-bottom: 25px; }

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px; 
    margin: 0 auto;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box; 
}

.input-group button {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.modal-info { margin-top: 20px; text-align: left; background: #f9f9f9; padding: 15px; border-radius: 10px; }
.modal-info p { font-size: 12px; color: #888; margin: 3px 0; }

/* Prevent image drag / selection (security) */
.expert-img img, .main-display-card img, .expert-item .thumb-box {
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================
   Responsive — PC layout: maintain 3-column grid until truly small
========================================================== */

/* PC (769px and above): show 3-column grid, hide mobile tabs */
@media screen and (min-width: 769px) {
    .expert-grid { 
        display: grid !important; 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 20px; 
        max-width: 1000px; 
        margin: 40px auto 60px !important; 
    }
    .hipass-tab-container { display: none !important; }
    .expert-list-section { display: block !important; visibility: visible !important; }
    .expert-row-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
}

/* Mobile (768px and below): hide grid, show single card + tabs */
@media screen and (max-width: 768px) {
    .expert-grid { display: none !important; }
    .hipass-tab-container { display: block !important; }
    .expert-row-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .expert-item .thumb-box { width: 70px !important; height: 70px !important; }
    .section-title { font-size: 22px !important; margin-bottom: 30px !important; }
    .expert-item .name { font-size: 14px !important; }
    .expert-item .office { font-size: 11px !important; }
    .expert-filter-tabs { justify-content: flex-start !important; padding: 10px 20px !important; }
}

/* Extra small screens (375px and below) */
@media screen and (max-width: 375px) {
    .btn-profile-final, .btn-hpass-final { font-size: 12px !important; letter-spacing: -1.2px !important; }
}
