@import "../components/navbar.css";
@import "../components/footer.css";
@import "../components/backtop.css";

.header-video-3 {
    position: relative;
    min-height: 115vh;
    z-index: 1;
    overflow: hidden;
    display: block;
    transform: translateZ(0);
}
.header-video-3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #0e2147 87%);
}
.header-video__content-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    filter: brightness(0.9) saturate(1) hue-rotate(15deg);
    object-fit: cover;
    z-index: -1;
}
.teachers-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(500px, 2fr)) !important;
    gap: 25px;
    margin: 0 auto;
}


/* ===== BASE ===== */
.hero-Academy-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content-3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto; 
    gap: 2rem;
}

.hero-info {
    display: flex;
    flex-direction: column;
}

.hero-Academy-3 p {
    color: white;
    font-size: clamp(18px, 3.5vw, 55px);
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
}

.hero-Academy-3 h1 {
    color: white;
    font-size: clamp(36px, 6vw, 90px);
    font-weight: bold;
    line-height: 1;
    margin: 0;
}

.hero-Academy-3 span {
    color: white;
    line-height: 1.8;
    font-size: clamp(13px, 1.5vw, 17px);
    margin-top: 0.5rem;
    display: block;
}

/* ===== BUTTON ===== */
.butoon {
    flex-shrink: 0;
}

.hero-Academy-3 button {
    background-color: #01c2be;
    color: white;
    border: none;
    padding: clamp(5px, 1vw, 8px) clamp(16px, 2vw, 0px);
    border-radius: 15px;
    font-size: clamp(14px, 1.5vw, 20px);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.5s ease, color 0.5s ease;
    white-space: nowrap;
}

.hero-Academy-3 button:hover {
        border: none;
    padding: clamp(5px, 1vw, 8px) clamp(16px, 2vw, 0px);
    border-radius: 15px;
    font-size: clamp(14px, 1.5vw, 20px);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.5s ease, color 0.5s ease;
    white-space: nowrap;
    background: white;
    color: #01c2be;
}

.hero-Academy-3 button i {
    background: white;
    color: #01c2be;
    border-radius: 5%;
    padding: 0.1px 3px;
    font-size: 17px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content-3 {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1.5rem;
    }

    .butoon {
        align-self: flex-start;
    }
}



.teachers-section{
    padding: 60px 20px;
}

.teachers-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(600px, 2fr));
    gap: 25px;
    margin: 0 auto;
}


/* card */
.teacher-card {
    background: #f7f7f7;
    border-radius: 20px;
    padding: 18px;
    transition: 0.3s;
}

.teacher-card:hover {
    background: #a5dbec;
}
.teacher-card .book-btn a {
    color: #0e2147 !important;
    text-decoration: none;
}
.teacher-card:hover button a {
    color: #0e2147 !important;
    transition: 0.7s;
}
.teacher-card:hover .follow-btn {
    background: transparent !important;
    color: #0e2147 !important;
    border: 1px solid #0e2147 !important;
}
.teacher-card .book-btn {
    color: #0e2147;
}
/* top */
.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* avatar */
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.avatar.dark {
    background: #0f172a;
    color: #fff;
}

/* info */
.info h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.subject {
    font-size: 12.5px;
    color: black;
    font-weight: 700;
}

.rating {
    margin-top: 4px;
    font-size: 13px;
    color: #444;
}

.rating i {
    color: #fbbf24;
}

/* actions */
.actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.actions i {
    cursor: pointer;
    font-size: 18px;
}

/* desc */
.desc {
    margin: 10px 0 14px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}
.desc::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.9em;
    background: linear-gradient(to bottom, rgba(247, 247, 247, 0), #fff);
}
.teacher-card:hover .desc::after {
    transition: all;
    background: linear-gradient(to bottom, rgba(233, 243, 246, 0), #a5dbec);
}

/* button */
.btn-click {
    display: flex;
    gap: 12px;
}

.btn-click > * {
    all: unset;
    box-sizing: border-box;
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

/* Book */
.book-btn {
    background: darksalmon !important;
    color: #0f172a;
}

/* Follow */
.follow-btn {
    background: #0f172a !important;
    color: darksalmon;
}

.book-btn,
.follow-btn {
    transition:
        background 0.3s ease,
        color 0.3s ease;
}
/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    font-weight: 600;
    color: white;
}

.pagination button {
    background: #fff;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 17px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    color: #0e2147;
    align-items: center;
}
.pagination button:hover{
       background: #01c2be;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 17px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    color: #0e2147;
    align-items: center;
}

.page {
    cursor: pointer;
    padding: 0.9px 10px;
    border-radius: 8px;
    text-align: center;
}

.page.active {
    background: #ffffff71;
    color: #fff;
}
.heart-btn {
    cursor: pointer;
    transition:
        color 0.3s ease,
        transform 0.2s ease;
}

.heart-btn.active {
    color: #e11d48;
    font-weight: 900;
}

.heart-btn.active:hover {
    transform: scale(1.1);
}
.info small {
    font-size: 12px;
}

/* mobile */
@media (max-width: 600px) {
    .hero-content-3 {
   
    width: 90%;
 
}
.butoon {
        align-self: flex-start;
        
    }

    .teachers-grid {
        width: 95%;
         display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        margin: 0 auto !important;


    }

    .card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}
