/*
Theme Name: Hệ Thống Tư Vấn Văn Bằng Chính Quy
Author: WordPress AI Developer
Version: 1.5.0
Description: Theme siêu nhẹ tối ưu SEO cấu trúc, Liquid Glassmorphism, Dynamic Island vật lý, Haptic Feedback.
*/

:root {
    --deep-teal: #005f73;
    --electric-cyan: #00f5ff;
    --bg-light: #f0f7f9;
    --glass-bg: rgba(240, 247, 249, 0.85);
    --glass-border: rgba(0, 245, 255, 0.25);
    --text-color: #1e293b;
    --text-muted: #64748b;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-light); 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* UI/UX Định dạng Typography hiện đại */
h1, h2, h3, h4, h5, h6 { color: var(--deep-teal); margin-bottom: 1rem; font-weight: 700; line-height: 1.3; }
p { margin-bottom: 1.25rem; font-size: 1rem; color: var(--text-color); }
ol, ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
blockquote { 
    border-left: 4px solid var(--electric-cyan); 
    background: rgba(0, 95, 115, 0.05); 
    padding: 1rem 1.5rem; 
    margin: 1.5rem 0; 
    font-style: italic; 
    border-radius: 0 8px 8px 0;
}
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

/* Liquid Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 95, 115, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 245, 255, 0.15);
}

/* Header & Menu Navigation */
header { position: fixed; top: 0; width: 100%; z-index: 99999; padding: 10px 0; background: var(--glass-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); }
.nav-container { 
    max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; 
}
.logo img { height: 45px; width: auto; object-fit: contain; }

.main-menu { display: flex; gap: 20px; list-style: none; }
.main-menu a { text-decoration: none; color: var(--deep-teal); font-weight: 600; font-size: 15px; transition: color 0.3s; }
.main-menu a:hover { color: var(--electric-cyan); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; z-index: 100000; }

/* 🛠️ Định vị Dynamic Island chuẩn xác nằm hoàn toàn dưới Menu Mobile */
.dynamic-island {
    position: fixed;
    top: 85px; 
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9998; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.island-status {
    width: 8px;
    height: 8px;
    background: #34c759;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #34c759;
}

/* Parallax Banner */
.parallax-section {
    position: relative; padding: 140px 0 80px; overflow: hidden;
    background-size: cover; background-position: center; background-attachment: fixed;
}
.parallax-section::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(240,247,249,0.9) 0%, rgba(0,95,115,0.2) 100%);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* Hệ thống chia cột Layout Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Kêu gọi hành động CTA Button */
.btn-cta {
    display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--deep-teal), #008ba3);
    color: #fff; padding: 14px 30px; border-radius: 50px; font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 95, 115, 0.3); transition: all 0.3s;
}
.btn-cta:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0, 245, 255, 0.4); }

/* Bảng phân cấp so sánh học thuật */
table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background-color: var(--deep-teal); color: #fff; font-weight: 600; }
tr:last-child td { border: none; }

/* Accordion FAQ */
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 15px 0; }
.faq-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; text-align: left; font-size: 18px; font-weight: 600; color: var(--deep-teal); cursor: pointer; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: var(--text-muted); font-size: 15px; }

/* Sidebar & Layouts tổng thể */
.main-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 160px 0 60px; }
aside { display: flex; flex-direction: column; gap: 30px; }
.widget { background: #fff; padding: 25px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }

/* Quy tắc co giãn Responsive mượt mà chống tràn khung */
@media (max-width: 991px) {
    .grid-2, .grid-3, .grid-4, .main-wrapper { grid-template-columns: 1fr; }
    .main-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--glass-bg); backdrop-filter: blur(20px); flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .main-menu.active { display: flex; }
    .menu-toggle { display: block; }
}

@media (max-width: 767px) {
    .dynamic-island {
        top: 75px !important; 
        z-index: 9990 !important; 
        font-size: 11px;
        padding: 6px 14px;
        width: auto;
        max-width: 85%;
    }
}