/*
Theme Name: Chuyên Làm Bằng Đại Học Gốc - Ngọc Bích Edition
Theme URI: https://bangdaihocuytin.com/
Description: Giao diện WordPress hoàn chỉnh, tối ưu chuyển đổi, chuẩn SEO phối màu Xanh Ngọc Bích chủ đạo, hệ thống bài viết & Archive cao cấp.
Version: 1.5.0
Author: WP Developer
Text Domain: clb-theme
*/

/* --- RESET & CHUNG --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; background: #f9f9f9; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

/* --- HEADER --- */
.top-bar { background: #45b6d6; color: #760F13; padding: 8px 0; text-align: center; font-size: 14px; font-weight: bold; }
.top-bar a { color: #760F13; text-decoration: underline; }
.main-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
.header-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo a { color: #0f766e; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu ul li a { color: #444; font-weight: 600; font-size: 15px; }
.nav-menu ul li a:hover { color: #0d9488; }
.header-cta .btn-header { background: #25d366; color: #fff; padding: 10px 20px; border-radius: 5px; font-weight: bold; font-size: 14px; }
.header-cta .btn-header:hover { background: #128c7e; }

/* --- TRANG CHỦ / HERO --- */
.hero-section { background: linear-gradient(rgba(15, 118, 110, 0.75), rgba(11, 63, 59, 0.85)), url('https://picsum.photos/1920/600') no-repeat center center/cover; padding: 100px 0; color: #fff; text-align: center; }
.hero-section h1 { font-size: 38px; font-weight: 800; margin-bottom: 15px; color: #2dd4bf; text-transform: uppercase; }
.hero-section p { font-size: 18px; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-main { background: #0d9488; color: #fff; padding: 12px 30px; font-weight: bold; border-radius: 5px; font-size: 16px; }
.btn-main:hover { background: #0f766e; }
.btn-sub { background: #14b8a6; color: #fff; padding: 12px 30px; font-weight: bold; border-radius: 5px; font-size: 16px; }
.btn-sub:hover { background: #0d9488; }

/* --- BẢNG GIÁ --- */
.section-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 40px; text-transform: uppercase; color: #111827; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: #0d9488; margin: 10px auto 0; }
.pricing-section { padding: 70px 0; background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.price-card { border: 1px solid #eee; padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.02); transition: transform 0.3s; background: #fff; position: relative; overflow: hidden; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(13, 148, 136, 0.15); border-color: #0d9488; }
.price-card.featured { border: 2px solid #0d9488; }
.price-card .badge { position: absolute; top: 15px; right: -30px; background: #0d9488; color: #fff; padding: 5px 30px; transform: rotate(45deg); font-size: 11px; font-weight: bold; text-transform: uppercase; }
.price-card h3 { font-size: 20px; color: #333; margin-bottom: 15px; }
.price-card .amount { font-size: 32px; color: #0f766e; font-weight: bold; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 25px; text-align: left; padding-left: 10px; }
.price-card ul li { margin-bottom: 10px; font-size: 14px; color: #555; }
.price-card ul li::before { content: '✔'; color: #0d9488; margin-right: 8px; font-weight: bold; }

/* --- QUY TRÌNH & CAM KẾT --- */
.process-section { padding: 70px 0; background: #f0fdfa; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.process-step { background: #fff; padding: 25px; border-radius: 6px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.process-step .step-number { width: 50px; height: 50px; background: #0d9488; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 20px; font-weight: bold; }
.process-step h4 { margin-bottom: 10px; color: #0f766e; }

/* --- FORM ĐĂNG KÝ --- */
.contact-section { padding: 70px 0; background: #fff; }
.form-container { max-width: 700px; margin: 0 auto; background: #f8f9fa; padding: 40px; border-radius: 8px; border-top: 4px solid #0d9488; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #0d9488; outline: none; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
.form-submit { text-align: center; margin-top: 20px; }
.form-submit button { background: #0d9488; color: #fff; border: none; padding: 12px 40px; font-size: 16px; font-weight: bold; border-radius: 4px; cursor: pointer; width: 100%; transition: background 0.3s; }
.form-submit button:hover { background: #0f766e; }

/* --- FOOTER --- */
footer { background: #0b2e2b; color: #9ca3af; padding: 50px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; text-transform: uppercase; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: #0d9488; }
.footer-col p { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #115e59; color: #6b7280; }

/* --- NÚT ĐIỆN THOẠI & ZALO CHẠY NỔI --- */
.quick-contact { position: fixed; bottom: 20px; left: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.qc-btn { display: flex; align-items: center; color: #fff; font-weight: bold; padding: 10px 15px; border-radius: 50px; font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); animation: pulse 2s infinite; }
.qc-phone { background: #0d9488; }
.qc-zalo { background: #0068ff; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- RESPONSIVE CHUNG & MENU MOBILE --- */
@media (max-width: 768px) {
    .nav-menu, .header-cta { display: none; }
    .hero-section h1 { font-size: 26px; }
    .hero-section p { font-size: 15px; }
    .form-container { padding: 20px; }
    
    .menu-toggle { display: block !important; order: 3; }
    #mobile-menu-container {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: #fff; border-top: 1px solid #eee; z-index: 1000;
        padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    #mobile-menu-container.active { display: block; }
    #mobile-menu-container ul { flex-direction: column; gap: 15px; }
}

/* ==========================================================================
   PHÂN PHÒNG NỘI DUNG NÂNG CAO (SEO CONTENT / ENTRY CONTENT / SINGLE POST)
   ========================================================================== */
.seo-section { padding: 60px 0; background: #f9f9f9; }
.seo-content { background: #fff; padding: 35px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); border: 1px solid #edf2f7; }

.seo-content, .entry-content { color: #334155; font-size: 16px; line-height: 1.85; }
.seo-content p, .entry-content p { margin-bottom: 22px; text-align: justify; text-justify: inter-word; }

/* --- ĐỊNH DẠNG HỆ THỐNG TIÊU ĐỀ (HEADING) SANG TRỌNG --- */
.seo-content h2, .entry-content h2 {
    color: #0f766e; font-size: 26px; font-weight: 700; margin: 45px 0 22px; padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9; position: relative; letter-spacing: -0.01em;
}
.seo-content h2::after, .entry-content h2::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 3px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf); border-radius: 4px;
}
.seo-content h3, .entry-content h3 {
    color: #115e59; font-size: 21px; font-weight: 700; margin: 36px 0 18px;
    padding-left: 14px; border-left: 4px solid #0d9488; letter-spacing: -0.01em;
}
.seo-content h4, .entry-content h4 {
    color: #134e4a; font-size: 18px; font-weight: 600; margin: 28px 0 14px;
    display: flex; align-items: center; gap: 12px;
}
.seo-content h4::before, .entry-content h4::before {
    content: ''; display: block; width: 6px; height: 6px; background: #14b8a6;
    transform: rotate(45deg); border-radius: 1px; flex-shrink: 0;
}
.seo-content h2 + p, .entry-content h2 + p,
.seo-content h3 + p, .entry-content h3 + p,
.seo-content h4 + p, .entry-content h4 + p { margin-top: 8px; }

/* --- HỆ THỐNG DANH SÁCH PHÂN CẤP (UL / LI) CHUYÊN NGHIỆP --- */
.seo-content ul, .entry-content ul { list-style: none !important; padding: 0; margin: 18px 0 24px 5px; }

/* Danh sách Cấp 1 - Dấu tích xanh ngọc */
.seo-content ul > li, .entry-content ul > li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 15.5px; }
.seo-content ul > li::before, .entry-content ul > li::before {
    content: "✓"; position: absolute; left: 4px; top: 1px; color: #0d9488; font-weight: 900; font-size: 14px;
}
/* Danh sách Cầm 2 - Dấu gạch thanh mảnh */
.seo-content ul ul, .entry-content ul ul { margin: 10px 0 12px 0; padding-left: 24px; }
.seo-content ul ul li, .entry-content ul ul li { font-size: 15px; color: #475569; padding-left: 20px; margin-bottom: 8px; position: relative; }
.seo-content ul ul li::before, .entry-content ul ul li::before {
    content: "—"; position: absolute; left: 0; color: #99f6e4;
}
/* Danh sách Cấp 3 - Dấu chấm tròn Pastel */
.seo-content ul ul ul, .entry-content ul ul ul { padding-left: 20px; }
.seo-content ul ul ul li, .entry-content ul ul ul li { font-size: 14.5px; padding-left: 16px; position: relative; }
.seo-content ul ul ul li::before, .entry-content ul ul ul li::before {
    content: "•"; position: absolute; left: 0; color: #2dd4bf; font-size: 18px; line-height: 1; top: 2px;
}

/* --- ĐỊNH DẠNG HÌNH ẢNH (IMG) ĐỔ BÓNG ĐA TẦNG MƯỢT MÀ --- */
.seo-content img, .entry-content img {
    max-width: 100%; height: auto; display: block; margin: 35px auto;
    border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform;
}
.seo-content img:hover, .entry-content img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(13, 148, 136, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   CẤU TRÚC DANH SÁCH BÀI VIẾT TRONG CHUYÊN MỤC (ARCHIVE LỚP MỚI)
   ========================================================================== */
.archive-container { padding: 50px 20px; }
.archive-header { margin-bottom: 40px; text-align: center; }
.archive-title { font-size: 28px; color: #0f766e; font-weight: 700; position: relative; display: inline-block; padding-bottom: 12px; }
.archive-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #0d9488; border-radius: 2px; }

.archive-list { display: flex; flex-direction: column; gap: 30px; }
.post-item { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); border: 1px solid #edf2f7; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.post-item:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(13, 148, 136, 0.08); }

.post-thumbnail { flex: 0 0 35%; max-width: 35%; overflow: hidden; position: relative; background: #f1f5f9; }
.post-thumbnail a { display: block; width: 100%; height: 100%; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-item:hover .post-thumbnail img { transform: scale(1.05); }

.post-content { flex: 1; padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.post-meta { font-size: 13px; color: #94a3b8; margin-bottom: 8px; }
.post-item-title { font-size: 19px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.post-item-title a { color: #1e293b; }
.post-item-title a:hover { color: #0d9488; }
.post-excerpt { font-size: 14.5px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }
.read-more-btn { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: #0d9488; }
.read-more-btn:hover { color: #0f766e; text-decoration: underline; }

.archive-pagination { margin-top: 40px; text-align: center; }
.archive-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.archive-pagination .page-numbers { padding: 8px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; color: #475569; font-weight: 600; }
.archive-pagination .page-numbers.current { background: #0d9488; color: #fff; border-color: #0d9488; }
.archive-pagination .page-numbers:hover:not(.current) { background: #f8fafc; border-color: #cbd5e1; color: #0d9488; }

/* --- RESPONSIVE TOÀN BỘ PHẦN BÀI VIẾT TRÊN MOBILE --- */
@media (max-width: 768px) {
    .seo-content { padding: 22px; border-radius: 8px; }
    .seo-content, .entry-content { font-size: 15px; line-height: 1.75; }
    
    .seo-content h2, .entry-content h2 { font-size: 21px; margin: 35px 0 16px; padding-bottom: 10px; }
    .seo-content h2::after, .entry-content h2::after { width: 45px; }
    .seo-content h3, .entry-content h3 { font-size: 19px; margin: 30px 0 14px; padding-left: 10px; border-left-width: 3px; }
    .seo-content h4, .entry-content h4 { font-size: 16.5px; margin: 24px 0 12px; gap: 10px; }
    .seo-content p, .entry-content p { text-align: left; margin-bottom: 18px; }
    .seo-content img, .entry-content img { margin: 22px auto; border-radius: 8px; }
    
    .post-item { flex-direction: column; }
    .post-thumbnail { flex: 0 0 100%; max-width: 100%; height: 200px; }
    .post-content { padding: 20px; }
    .post-item-title { font-size: 17px; margin-bottom: 8px; }
    .post-excerpt { font-size: 14px; margin-bottom: 12px; }
}