/* ========================================================
    SUBPAGES STYLESHEET - HUIT WEBSITE
    Contains all inline CSS from subpages in gioithieu/ folder
    Extracted for better maintainability
    Last updated: 19/03/2026
======================================================== */

/* --- LAYOUT FIXES FOR SUBPAGES --- */
.page-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 70px);
}

/* --- HUIT HERO SECTION --- */
.huit-hero-section {
    position: relative;
    padding: 40px;
    background-color: #0054a5;
    background-image: linear-gradient(rgba(0, 84, 165, 0.92), rgba(0, 41, 82, 0.92)),
                      url('https://huit.edu.vn/images/slide/hufi-2020-6.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

.bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.huit-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BREADCRUMB & HEADER --- */
.huit-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}
.huit-breadcrumb a { color: white; text-decoration: none; }
.huit-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

/* --- STATS ROW --- */
.huit-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-card i { font-size: 2rem; color: #ffd700; }
.stat-count { font-size: 1.8rem; font-weight: 800; color: #ffd700; display: block; }
.stat-card p { font-size: 0.85rem; margin: 0; opacity: 0.9; }

/* --- MAIN GRID --- */
.huit-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 50px;
}

/* --- LECTURER CARDS --- */
.huit-card {
    background: white;
    border-radius: 18px;
    display: flex;
    padding: 25px;
    gap: 25px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: #333;
    transition: 0.3s;
}
.huit-card:hover { transform: translateY(-5px); }

.huit-card-img { position: relative; flex-shrink: 0; }
.huit-card-img img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #f1f5f9;
}
.img-badge {
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    background: #0054a5;
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.huit-card-body { flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.huit-rank-tag {
    background: #ed1c24;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.social-quick-links { color: #0054a5; display: flex; gap: 12px; font-size: 1.1rem; }

.huit-name { font-size: 1.6rem; color: #0054a5; margin: 12px 0; }
.huit-info-list { list-style: none; padding: 0; margin-bottom: 15px; }
.huit-info-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; }
.huit-info-list li i { color: #0054a5; width: 20px; text-align: center; }

.huit-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.huit-skill-tags span {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* --- SIDEBAR INFO --- */
.huit-side-info .info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #ed1c24;
}
.info-box h3 { font-size: 1.1rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.info-box ul { list-style: none; padding-left: 5px; }
.info-box ul li { margin-bottom: 10px; font-size: 0.9rem; position: relative; padding-left: 20px; }
.info-box ul li::before { content: '→'; position: absolute; left: 0; color: #ffd700; }

/* --- HORIZONTAL SCROLL SECTION --- */
.huit-horizontal-scroll {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
}
.scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.scroll-title { font-size: 1.4rem; font-weight: 700; }
.scroll-hint { font-size: 0.8rem; opacity: 0.7; font-style: italic; }

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.scroll-container::-webkit-scrollbar { height: 6px; }
.scroll-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px; }

.mini-lecturer-card {
    min-width: 280px;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    scroll-snap-align: start;
    transition: 0.3s;
}
.mini-lecturer-card:hover { background: #f8fafc; cursor: grab; }
.mini-img img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid #0054a5; }
.mini-info h4 { margin: 0; font-size: 1.05rem; color: #0054a5; }
.mini-info p { margin: 4px 0; font-size: 0.8rem; color: #64748b; }
.view-profile { font-size: 0.75rem; color: #ed1c24; text-decoration: none; font-weight: 700; text-transform: uppercase; }

/* --- CONTENT CARDS --- */
.content-card {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.card-text {
    flex: 1;
}

.card-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    background: #f1f5f9;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.text-content {
    line-height: 1.7;
    color: var(--text-dark);
}

.text-content p {
    margin-bottom: 15px;
}

.text-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.text-content li {
    margin-bottom: 8px;
}

/* --- VALUE ITEMS --- */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-item i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.value-item h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.value-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* --- NEWS ITEMS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-thumb {
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info h4 {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 4px;
    display: block;
}

/* --- RESPONSIVE DESIGN FOR SUBPAGES --- */
@media (max-width: 768px) {
    /* Layout */
    .page-wrapper {
        display: block !important; /* Force block layout on mobile */
        grid-template-columns: none !important;
    }

    /* Hero Section */
    .huit-hero-section {
        padding: 20px !important;
        background-attachment: scroll !important; /* Disable fixed background on mobile */
    }

    .huit-main-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    .huit-container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    /* Stats Row */
    .huit-stats-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    .stat-card {
        padding: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .stat-card i {
        font-size: 1.5rem !important;
    }

    .stat-count {
        font-size: 1.4rem !important;
    }

    /* Main Grid */
    .huit-main-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 30px !important;
    }

    /* Lecturer Cards */
    .huit-card {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .huit-card-img img {
        width: 120px !important;
        height: 160px !important;
    }

    .huit-name {
        font-size: 1.4rem !important;
    }

    .card-top {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    /* Content Cards */
    .content-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }

    .card-flex {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .card-image {
        width: 100% !important;
        height: 200px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    /* Horizontal Scroll */
    .huit-horizontal-scroll {
        padding: 20px !important;
    }

    .scroll-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .scroll-title {
        font-size: 1.2rem !important;
    }

    .mini-lecturer-card {
        min-width: 250px !important;
        padding: 15px !important;
        gap: 12px !important;
    }

    .mini-img img {
        width: 60px !important;
        height: 60px !important;
    }

    .mini-info h4 {
        font-size: 1rem !important;
    }

    /* Core Values */
    .core-values-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .value-item {
        padding: 15px !important;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Student Highlights */
    .student-highlights {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .highlight-box {
        padding: 20px !important;
    }

    .highlight-box i {
        font-size: 2rem !important;
    }

    .highlight-box h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .huit-hero-section {
        padding: 15px !important;
    }

    .huit-main-title {
        font-size: 1.5rem !important;
        letter-spacing: 0.5px !important;
    }

    .huit-card {
        padding: 15px !important;
    }

    .huit-card-img img {
        width: 100px !important;
        height: 140px !important;
    }

    .huit-name {
        font-size: 1.2rem !important;
    }

    .content-card {
        padding: 15px !important;
    }

    .mini-lecturer-card {
        min-width: 220px !important;
        padding: 12px !important;
    }

    .highlight-box {
        padding: 15px !important;
    }

    /* Main Grid */
    .huit-main-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 30px !important;
    }

    /* Lecturer Cards */
    .huit-card {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .huit-card-img img {
        width: 120px !important;
        height: 160px !important;
    }

    .huit-name {
        font-size: 1.4rem !important;
    }

    .card-top {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    /* Content Cards */
    .content-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }

    .card-flex {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .card-image {
        width: 100% !important;
        height: 200px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    /* Horizontal Scroll */
    .huit-horizontal-scroll {
        padding: 20px !important;
    }

    .scroll-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .scroll-title {
        font-size: 1.2rem !important;
    }

    .mini-lecturer-card {
        min-width: 250px !important;
        padding: 15px !important;
        gap: 12px !important;
    }

    .mini-img img {
        width: 60px !important;
        height: 60px !important;
    }

    .mini-info h4 {
        font-size: 1rem !important;
    }

    /* Core Values */
    .core-values-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .value-item {
        padding: 15px !important;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Student Highlights */
    .student-highlights {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .highlight-box {
        padding: 20px !important;
    }

    .highlight-box i {
        font-size: 2rem !important;
    }

    .highlight-box h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .huit-hero-section {
        padding: 15px !important;
    }

    .huit-main-title {
        font-size: 1.5rem !important;
        letter-spacing: 0.5px !important;
    }

    .huit-card {
        padding: 15px !important;
    }

    .huit-card-img img {
        width: 100px !important;
        height: 140px !important;
    }

    .huit-name {
        font-size: 1.2rem !important;
    }

    .content-card {
        padding: 15px !important;
    }

    .mini-lecturer-card {
        min-width: 220px !important;
        padding: 12px !important;
    }

    .highlight-box {
        padding: 15px !important;
    }
}
/* Banner dành riêng cho các trang con */
.subpage-banner {
    width: 100%;
    height: 250px; /* Chiều cao vừa phải */
    background: linear-gradient(rgba(0, 51, 153, 0.8), rgba(0, 51, 153, 0.8)), 
                url('../assets/img/huit-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 30px;
}
