/* css/curriculum.css */

.curriculum-page {
    overflow-y: auto !important;
    min-height: 100vh;
    background: var(--bg-dark);
    background-attachment: fixed;
}

.page-content {
    padding-top: 120px; 
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.promo-hero {
    text-align: center;
    padding: 150px 20px 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-bg-text {
    position: absolute;
    /* ใช้ทริคจัดกึ่งกลางแบบ Full Width เพื่อลบอาการเอียง */
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%); /* เลื่อนขึ้นเฉพาะแนวตั้ง */
    
    /* บังคับให้ Browser จัดกลางแบบ Flex เพื่อความแม่นยำสูงสุด */
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 18vw; 
    font-family: var(--font-tech);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02); 
    -webkit-text-stroke: 1px rgba(0, 180, 216, 0.1);
    z-index: 0;
    pointer-events: none;
    
    /* 🔥 ลด Letter-spacing เหลือ 0 เพื่อเช็คว่าตรงไหม (ถ้าตรงแล้วค่อยขยับเป็น 2px) */
    letter-spacing: 0; 
    text-transform: uppercase;
    white-space: nowrap; 
    overflow: visible;
}
.highlight-text {
    background: linear-gradient(to bottom, #fff 30%, var(--electric-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-hero-title {
    position: relative; /* มั่นใจว่าอยู่หน้า FUTURE */
    z-index: 2;
    font-size: clamp(1.5rem, 8vw, 3.5rem); 
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 25px;
    word-break: keep-all;
}
/* --- Stats Bento Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 40px 20px;
    border-radius: 24px;
    text-align: center;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--electric-blue);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
}

.main-stat {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.2), rgba(0, 180, 216, 0.2));
}

.stat-number {
    font-family: var(--font-tech);
    font-size: 3.5rem;
    color: var(--electric-blue);
}

.cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.curriculum-page {
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100vh;
    background: var(--bg-dark);
    background-attachment: fixed;
}

.glass-cta {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 180, 216, 0.3);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
    font-family: var(--font-tech);
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--electric-blue);
    transition: 0.4s;
    z-index: -1;
}

.hero-badge:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.6);
    transform: scale(1.05);
}

.hero-badge:hover::before {
    left: 0;
}

/* --- Interactive Features Section (Purple Theme) --- */
.features-section {
    padding: 80px 40px;
    background: radial-gradient(circle at center, #4f2ec3 0%, transparent 100%);
    border-radius: 40px;
    margin: 60px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: var(--font-tech);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s ease;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.tab-btn.active {
    background: var(--electric-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.4);
    border-color: var(--electric-blue);
}

.tab-content {
    display: none;
    animation: tabFade 0.6s ease forwards;
}

.tab-content.active {
    display: block;
}

.feature-display {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.skill-tags li {
    padding: 6px 14px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--electric-blue);
}

.feature-visual {
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes tabFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Path Items --- */
.path-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.02);
    border-left: 4px solid var(--electric-blue);
    border-radius: 0 20px 20px 0;
}

.path-index {
    font-family: var(--font-tech);
    font-size: 2rem;
    opacity: 0.3;
}

/* --- Footer --- */
.curriculum-page .site-footer {
    position: relative;
    margin-top: 100px;
}

@media (max-width: 992px) {
    .feature-display {
        grid-template-columns: 1fr; /* เปลี่ยนเป็น 1 คอลัมน์ */
        padding: 25px;
        gap: 20px;
    }
    
    .feature-visual {
        height: 200px; /* ลดความสูงกล่องกราฟิกในมือถือ */
        order: -1;     /* ย้ายกราฟิกขึ้นไปไว้ด้านบนข้อความ */
    }

    .features-section {
        padding: 40px 20px;
        margin: 40px 10px;
    }
}

@media (max-width: 768px) {
    .promo-hero {
        padding: 100px 15px 60px;
    }
    
    .hero-bg-text {
        font-size: 25vw; /* ใหญ่ขึ้นในมือถือเพื่อให้เห็น Pattern */
        letter-spacing: 5px;
    }

    .promo-hero-title {
        font-size: 1.8rem; /* ล็อคขนาดให้พอดีจอเล็ก */
    }
    
    .glass-cta {
        padding: 40px 20px;
    }
}