/*
Theme Name: ParallelClass
Theme URI: https://parallelclass.com
Author: Your Name
Description: Theme สำหรับแพลตฟอร์มการศึกษา ParallelClass (Plain CSS 100% สมบูรณ์ แก้ไข Cache)
Version: 1.4
Text Domain: parallelclass
*/

/* ========================================================
   1. CSS Variables (ตั้งค่าสีและระยะห่าง)
======================================================== */
:root {
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --secondary: #ea580c;
    --secondary-hover: #c2410c;
    --accent: #3b82f6;
    --bg-main: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #f1f5f9;
}

/* ========================================================
   2. Reset & Typography
======================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
main { flex-grow: 1; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================
   3. Header & Navigation
======================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.site-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.site-logo svg { width: 28px; height: 28px; color: var(--secondary); margin-right: 8px; transform: skewX(-12deg); }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover, .main-nav a.active { color: var(--secondary); }
.btn-login {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
}
.btn-login:hover { background-color: var(--secondary-hover); color: var(--white); }

/* ========================================================
   4. Hero Section
======================================================== */
.hero-section {
    background: linear-gradient(135deg, #1e40af, #0f172a); /* แก้ไขหลบ Cache Minifier */
    color: #ffffff;
    padding: 80px 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-content { flex: 1; }
.hero-image { flex: 1; position: relative; }
.hero-badge {
    background-color: rgba(255,255,255,0.2);
    color: #e0e7ff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}
.hero-content h1 { font-size: 48px; line-height: 1.2; margin-bottom: 24px; font-weight: 700; }
.hero-content h1 span { color: var(--secondary); }
.hero-content p { font-size: 18px; color: #e0e7ff; margin-bottom: 32px; max-width: 600px; }
.btn-primary {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-primary:hover { background-color: var(--secondary-hover); transform: translateY(-2px); color: var(--white); }
.hero-image img { border-radius: 16px; border: 4px solid rgba(255,255,255,0.2); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); }
.floating-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: var(--white);
    color: var(--text-main);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.floating-badge .icon-box { background-color: #dcfce7; color: #16a34a; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

/* ========================================================
   5. General Layouts & Footer
======================================================== */
.section-padding { padding: 60px 0; }
.page-wrapper { background-color: var(--bg-main); padding: 50px 0; }
.content-box {
    background-color: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.title-main { font-size: 32px; color: var(--primary); margin-bottom: 16px; font-weight: 700; }

.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { color: var(--white); font-size: 24px; font-weight: 700; display: flex; align-items: center; margin-bottom: 16px; }
.footer-logo svg { width: 28px; height: 28px; color: var(--secondary); margin-right: 8px; transform: skewX(-12deg); }
.footer-col h4 { color: var(--white); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; font-size: 15px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 30px; text-align: center; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 36px; }
    .floating-badge { top: 10px; left: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   6. WooCommerce Fixes
======================================================== */
.woocommerce-custom-wrapper { margin-top: 30px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    padding: 12px; border-radius: 8px; border: 1px solid #cbd5e1; width: 100%; font-family: 'Prompt';
}
.woocommerce button.button.alt { background-color: var(--primary); color: #fff; padding: 12px 24px; border-radius: 8px; border: none; font-family: 'Prompt'; font-weight: bold; cursor: pointer; }
.woocommerce button.button.alt:hover { background-color: var(--primary-hover); }

/* ========================================================
   7. Infographic Section (The Problem & Solution)
======================================================== */
.bg-light { background-color: #f8fafc; border-bottom: 1px solid var(--border-color); }
.badge-red { background-color: #fee2e2; color: #ef4444; padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 700; text-transform: uppercase; display: inline-block; }
.text-dark { color: #0f172a; margin-top: 12px; font-weight: 700; }

.infographic-box { display: flex; flex-direction: column; background: var(--white); border-radius: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border: 1px solid var(--border-color); padding: 30px; position: relative; gap: 20px; }
@media (min-width: 992px) { .infographic-box { flex-direction: row; align-items: stretch; padding: 40px; gap: 30px; } }

.info-problems { flex: 5; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.problem-item { padding: 24px; border-radius: 0 16px 16px 0; border-left: 4px solid; }
.problem-item h4 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.problem-item p { font-size: 14px; color: var(--text-muted); }
.box-red { background-color: rgba(254, 226, 226, 0.4); border-left-color: #ef4444; }
.box-red h4 { color: #b91c1c; }
.box-orange { background-color: rgba(255, 237, 213, 0.4); border-left-color: #f97316; }
.box-orange h4 { color: #c2410c; }

.info-arrow { flex: 2; display: flex; justify-content: center; align-items: center; padding: 20px 0; }
.arrow-circle { background: var(--white); width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; font-size: 24px; color: var(--primary); border: 1px solid var(--border-color); z-index: 10; }
@media (max-width: 991px) { .arrow-circle { transform: rotate(90deg); } }

.info-solution { flex: 5; background: linear-gradient(135deg, #1e40af, #1e3a8a); padding: 40px; border-radius: 16px; color: #ffffff; box-shadow: inset 0 0 20px rgba(0,0,0,0.2); }
.badge-solution { background-color: var(--secondary); color: #ffffff; padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 20px; }
.info-solution h3 { font-size: 26px; margin-bottom: 24px; line-height: 1.3; }
.info-solution ul { display: flex; flex-direction: column; gap: 16px; }
.info-solution li { background: rgba(255,255,255,0.1); padding: 16px; border-radius: 12px; display: flex; align-items: flex-start; gap: 16px; border: 1px solid rgba(255,255,255,0.1); }
.icon-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-size: 16px; color: #ffffff;}
.bg-accent { background-color: var(--accent); }
.bg-secondary { background-color: var(--secondary); }
.info-solution span { font-size: 15px; line-height: 1.6; }

/* ========================================================
   8. Features Section (เรียนแบบใหม่ ให้ผลลัพธ์ต่างจากเดิม)
======================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
    background-color: var(--bg-main);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    background-color: var(--white);
}
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin-bottom: 24px;
}
.bg-blue-50 { background-color: #eff6ff; color: var(--primary); }
.bg-orange-50 { background-color: #fff7ed; color: var(--secondary); }
.bg-purple-50 { background-color: #faf5ff; color: #9333ea; }

.feature-card h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 700;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}
.feature-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-link:hover { color: var(--primary); }