@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- 1. GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body,
.box-wrapper,
.tutor-card {
    font-family: "Poppins", sans-serif;
}
body {
    -webkit-font-smoothing: antialiased;
    color: #111827;
    background-color: #FFFFFF;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. NAVBAR & HERO --- */
.navbar { height: 80px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid #eee; }
.nav-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.nav-links a { color: #0F4C3A; text-decoration: underline; font-weight: 500; margin-right: 20px; }
.btn-login { border: 1px solid #0F4C3A; color: #0F4C3A; padding: 10px 30px; border-radius: 25px; text-decoration: none; font-weight: 500; margin-right: 10px;}
.btn-signup { background: #FFC21E; color: #0F4C3A; padding: 10px 30px; border-radius: 25px; text-decoration: none; font-weight: 700; }

#hero { height: 300px; background-color: #0F4C3A; display: flex; align-items: center; justify-content: center; }
#hero h1 { color: #FFFFFF; font-size: 35px; font-weight: 600; }

/* --- 3. FILTERS --- */
.filters-bar { padding: 40px 0; display: flex; gap: 20px; flex-wrap: wrap; }
.filter-box { background: #F5F6F9; border-radius: 12px; padding: 10px 20px; display: flex; align-items: center; gap: 15px; height: 45px; }
.filter-box span { font-weight: 700; }
select { height: 45px; padding: 0 15px; border: 1px solid #A6A6A6; border-radius: 12px; color: #838383; min-width: 160px; }
.top-title { font-size: 26px; font-weight: 500; color: #0F4C3A; margin-bottom: 30px; }

/* --- 4. TUTOR CARD LAYOUT --- */
.tutor-card {
    background: #FFFFFF;
    width: 100%;
    min-height: 320px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0px 5px 14px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    
    display: flex;
    align-items: stretch;
    gap: 30px;
    
    position: relative;
    cursor: pointer;

    /* UPDATED: Only transitioning the box-shadow now (card stays still) */
    transition: box-shadow .25s ease;
}

/* UPDATED: Removed 'transform: translateY' so card doesn't move */
.tutor-card:hover { 
    box-shadow: 0px 12px 40px rgba(0, 0, 0, .14); 
}

.card-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* --- COLUMN 1: PHOTO --- */
.card-photo {
    position: relative;
    z-index: 2;
    width: 200px;
    flex-shrink: 0;
    align-self: flex-start;
}
.image-wrapper { 
    position: relative; 
    width: 100%; 
    height: 270px; 
    border-radius: 12px; 
    background: #eee;
    
    /* Essential for Zoom Effect */
    overflow: hidden; 
}

.profile-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 12px; 
    display: block; 
    
    /* Smooth Zoom Transition */
    transition: transform .5s ease;
}

/* Zoom Image when Card is Hovered */
.tutor-card:hover .profile-img {
    transform: scale(1.04);
}

/* Online status: grey when offline, green when online */
.card-photo::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #9ca3af;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tutor-card.teacher-online .card-photo::after {
    background: #22c55e;
}

/* --- COLUMN 2: INFO --- */
.card-info { flex: 1; position: relative; z-index: 2; }
.name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tutor-name { font-size: 22px; font-weight: 600; }
.rating { font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
/* Star icon (shows when Font Awesome isn't loaded) */
.rating i {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    font-style: normal;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FACC15'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") no-repeat center / contain;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
}

/* --- TOOLTIP (VERIFIED) --- */
.verified-wrap {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    /* Lifts above the card link */
    z-index: 5; 
}

.verified-tip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px); 
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: opacity .2s;
    pointer-events: none;
    z-index: 20;
}

.verified-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border: 4px solid transparent;
    border-top-color: #111827;
}

.verified-wrap:hover .verified-tip {
    visibility: visible;
    opacity: 1;
}

.badges-row { margin-bottom: 15px; display: flex; gap: 10px; }
.lang-badge { background: #F5F6F9; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #777E88; display: flex; align-items: center; text-transform: uppercase; }
.lang-level { background: #fff; border: 1px solid rgba(15, 76, 58, 0.2); color: #0F4C3A; padding: 2px 8px; border-radius: 6px; margin-left: 8px; font-size: 12px; }

.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.skill-tag { background: #F5F6F9; border-radius: 5px; padding: 5px 8px; font-size: 10px; font-weight: 500; color: #777E88; display: flex; align-items: center; justify-content: center; }

.process { color: #0F4C3A; font-size: 18px; font-weight: 600; margin-bottom: 5px; margin-top: 5px; }
.process-content { font-size: 16px; color: #707B88; line-height: 1.5; margin-bottom: 10px; }
.read-more { font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; position: relative; z-index: 5; }

/* --- COLUMN 3: ACTIONS --- */
.card-actions {
    position: relative;
    z-index: 2;
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}
.actions-top { width: 100%; }
.actions-bottom { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.price-card {
    width: max-content;
    min-height: 108px;
    background: #FFFFFF;
    box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}
.price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.price-row .label {
    font-size: 10px;
    color: #A5A8AF;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: normal;
}
.price-row .price-muted,
.price-row .price-main {
    align-self: flex-end;
    white-space: nowrap;
}
.label { font-size: 10px; color: #A5A8AF; text-transform: uppercase;    min-width: unset;height: unset;padding: 0px;}
.price-muted { font-size: 20px; color: #CED2D8; }
.price-main { font-size: 20px; font-weight: 700; color: #000; }
.divider { width: 100%; height: 1px; background: #F2F2F2; margin: 8px 0; flex-shrink: 0; }

.tefl-cert {
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    color: #777E88;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tefl-cert i {
    font-size: 16px;
    color: inherit;
}

/* BOOK TRIAL: gold fill, brand green text */
.btn-book {
    width: 100%;
    height: 51px;
    background: #FACC15;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Poppins', sans-serif;
    color: #234b3b;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.2s, color 0.2s;
}
.btn-book:hover {
    background: #234b3b;
    color: #ffffff;
}

/* MESSAGE: white fill, brand green border and text */
.btn-message {
    width: 100%;
    height: 51px;
    background: #ffffff;
    border: 1px solid #0F4C3A;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Poppins', sans-serif;
    color: #0F4C3A;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.2s, color 0.2s;
}
.btn-message:hover {
    background: #234b3b;
    border-color: #234b3b;
    color: #ffffff;
}

/* --- COLUMN 4: VIDEO --- */
.card-video {
    position: relative;
    z-index: 2;
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-box {
    width: 100%;
    height: 180px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 5;
    cursor: pointer;
}
/* Fill box, no letterboxing: crop to cover (crop top/bottom if needed) */
.video-box video {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 115%;
    transform: translateY(-50%);
    object-fit: cover;
    object-position: center;
}
/* YouTube wrapper: fill .video-box */
.video-box .video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
}
/* Thumbnail: zoom in slightly and crop top/bottom to remove black bars */
.video-box .video-thumbnail {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 115%;
    transform: translateY(-50%);
    background-size: cover;
    background-position: center;
}
.video-box .video-iframe-container {
    overflow: hidden;
}
/* Taller iframe, centered, to crop YouTube letterboxing */
.video-box .video-iframe-container iframe {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 130%;
    transform: translateY(-50%);
    border: none;
}

/* PLAY BUTTON */
.play-btn {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 56px; height: 56px;
    background: #0F4C3A;
    border-radius: 50%;
    border: 1px solid #000000;
    display: flex; align-items: center; justify-content: center;
    color: white; cursor: pointer; font-size: 20px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* CSS play icon (shows even when Font Awesome isn't loaded) */
.play-btn::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent currentColor;
}
.play-btn i {
    display: none; /* use CSS icon; remove if Font Awesome is loaded and you prefer FA icon */
}

/* Hover: light mint green fill, darker green border, dark green play icon */
.video-box:hover .play-btn,
.video-wrapper:hover .play-btn,
.play-btn:hover {
    background-color: #b8e3cd;
    color: #0F4C3A;
    border: 1px solid #0F4C3A;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(15, 76, 58, 0.25);
}

.view-schedule { font-weight: 700; color: #777E88; text-decoration: none; position: relative; z-index: 5; text-align: center; margin-top: 10px; }

/* --- FOOTER --- */
footer { background-color: #0F4C3A; color: #ffffff; padding: 60px 0; margin-top: 50px; width: 100%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
footer h6 { font-size: 18px; margin-bottom: 20px; color: white; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 12px; opacity: 0.8; }
footer a { color: white; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- RESPONSIVE: TUTOR CARD --- */
/* Tablet: wrap into 2 rows — (photo + info) then (actions + video) */
@media (max-width: 1200px) {
    .container { max-width: 100%; }
    .tutor-card {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }
    .card-photo {
        flex: 0 0 180px;
        width: 180px;
    }
    .card-info {
        flex: 1 1 280px;
        min-width: 0;
    }
    .card-actions {
        flex: 0 0 240px;
        width: auto;
    }
    .card-video {
        flex: 0 0 260px;
        width: auto;
    }
    .image-wrapper {
        height: 220px;
    }
    .video-box {
        height: 160px;
    }
}

/* Small tablet / large phone: single column, centered */
@media (max-width: 768px) {
    .tutor-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px 16px;
        gap: 20px;
        min-height: auto;
    }
    .card-photo {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        flex: none;
    }
    .image-wrapper {
        height: 260px;
        max-width: 220px;
        margin: 0 auto;
    }
    .card-info {
        width: 100%;
        flex: none;
        text-align: center;
    }
    .card-info .bio {
        text-align: left;
    }
    .name-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    .badges-row,
    .tags-row {
        justify-content: center;
    }
    .card-actions {
        width: 100%;
        flex: none;
        align-items: center;
        height: auto;
    }
    .actions-top,
    .actions-bottom {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .price-card {
        margin: 0 auto 16px;
        width: max-content;
        max-width: 100%;
        min-height: 0;
        padding: 12px 16px;
    }
    .price-row .label {
        font-size: 9px;
    }
    .price-muted {
        font-size: 16px;
    }
    .price-main {
        font-size: 18px;
    }
    .tefl-cert {
        justify-content: center;
        margin: 10px 0;
    }
    .btn-book,
    .btn-message {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .card-video {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        flex: none;
    }
    .video-box {
        height: 200px;
    }
    .view-schedule {
        display: inline-block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile: tighter spacing and smaller typography */
@media (max-width: 480px) {
    .tutor-card {
        padding: 16px 12px;
        gap: 16px;
    }
    .card-photo {
        max-width: 180px;
    }
    .image-wrapper {
        height: 220px;
        max-width: 180px;
    }
    .tutor-name {
        font-size: 18px;
    }
    .rating {
        font-size: 14px;
    }
    .process {
        font-size: 16px;
    }
    .process-content {
        font-size: 14px;
    }
    .lang-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    .skill-tag {
        font-size: 9px;
        padding: 4px 6px;
    }
    .price-card {
        max-width: 100%;
        padding: 10px 12px;
    }
    .price-row .label {
        font-size: 8px;
    }
    .price-muted {
        font-size: 14px;
    }
    .price-main {
        font-size: 16px;
    }
    .btn-book,
    .btn-message {
        width: 100%;
        max-width: none;
        height: 46px;
        font-size: 14px;
    }
    .video-box {
        height: 180px;
    }
}

.container--lg {
    width: 100% !important;
}
.bio{
    text-align: left;   
}