:root {
    --bg-dark: #090014; 
    --card-bg: rgba(20, 5, 40, 0.7);
    --text-light: #e0d5f0;
    --neon-purple: #b829ff;
    --neon-light: #df9aff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    background-image: radial-gradient(circle at 15% 50%, rgba(184, 41, 255, 0.08), transparent 30%),
                      radial-gradient(circle at 85% 30%, rgba(184, 41, 255, 0.12), transparent 30%);
    overflow-x: hidden;
    padding: 40px 20px;
}

/* Animations */
@keyframes neonPulse {
    0% { box-shadow: 0 0 5px var(--neon-purple), inset 0 0 5px var(--neon-purple); border-color: rgba(184, 41, 255, 0.5); }
    50% { box-shadow: 0 0 15px var(--neon-purple), inset 0 0 10px var(--neon-purple); border-color: var(--neon-light); }
    100% { box-shadow: 0 0 5px var(--neon-purple), inset 0 0 5px var(--neon-purple); border-color: rgba(184, 41, 255, 0.5); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px var(--neon-purple); }
    50% { text-shadow: 0 0 20px var(--neon-light), 0 0 30px var(--neon-purple); color: #fff; }
    100% { text-shadow: 0 0 5px var(--neon-purple); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    color: var(--neon-light);
    animation: textGlow 2s infinite alternate;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-section h2 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 20px;
}

.subtitle {
    color: #bbb;
}

.intro-text {
    background: var(--card-bg);
    border: 1px solid rgba(184, 41, 255, 0.3);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    text-align: justify;
}

/* Call to Action Container */
.cta-container {
    text-align: center;
    margin-bottom: 60px;
}

.btn-glow {
    display: inline-flex;           /* เปลี่ยนจาก flex เป็น inline-flex เพื่อไม่ให้ปุ่มยืด 100% */
    justify-content: center;        
    align-items: center;            
    text-align: center;             
    width: 100%;                    /* เพิ่ม: ให้ขยายตามพื้นที่ */
    max-width: 450px;               /* เพิ่ม: แต่กว้างสุดไม่เกิน 450px (เท่ากับปุ่มอื่น) */
    padding: 15px 40px;
    background-color: rgba(20, 5, 40, 0.8);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid var(--neon-purple);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--neon-light);
    box-shadow: 0 0 10px rgba(184, 41, 255, 0.4), inset 0 0 10px rgba(184, 41, 255, 0.4);
    animation: neonPulse 2s infinite alternate;
    line-height: 1.5;               
}

.btn-glow:hover {
    background-color: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 25px var(--neon-purple), inset 0 0 15px var(--neon-light);
    transform: translateY(-5px) scale(1.05);
    text-shadow: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s;
    animation: neonPulse 4s infinite alternate;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--neon-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(184, 41, 255, 0.3);
    padding-bottom: 10px;
}

/* Careers Section */
.careers-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    border-left: 5px solid var(--neon-purple);
}

.careers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.careers-header h3 {
    color: var(--neon-light);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.btn-analyze {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(20, 5, 40, 0.8);
    color: var(--neon-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--neon-purple);
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(184, 41, 255, 0.4);
}

.btn-analyze:hover {
    background-color: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-purple);
    transform: translateY(-2px);
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.career-tag {
    background: rgba(184, 41, 255, 0.1);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--neon-purple);
    transition: all 0.3s;
}

.career-tag:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

/* Timeline History Section */
.history-title {
    text-align: center;
    font-size: 2rem;
    color: var(--neon-light);
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--neon-purple);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
    box-shadow: 0 0 10px var(--neon-purple);
}

.timeline-item {
    padding: 10px 40px 30px 50px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: auto;
    left: 13px;
    background-color: var(--bg-dark);
    border: 3px solid var(--neon-light);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--neon-light);
}

.timeline-date {
    font-weight: 600;
    color: var(--neon-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(184, 41, 255, 0.2);
    font-size: 0.95rem;
}

/* ปุ่มย้อนกลับสไตล์เหลี่ยมขอบมน (เหมือนหน้า Subject) */
.btn-back-main {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(20, 5, 40, 0.8);
    color: var(--neon-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--neon-purple);
    border-radius: 30px;
    margin-bottom: 30px; /* เว้นระยะห่างจากด้านล่างก่อนถึงข้อความถัดไป */
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(184, 41, 255, 0.4);
}

.btn-back-main:hover {
    background-color: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-purple);
    transform: translateY(-2px);
}

.btn-back-main:hover {
    background-color: #b829ff;
    color: white;
    box-shadow: 0 0 15px #b829ff;
}

@media (max-width: 600px) {
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section h2 { font-size: 1.2rem; }
    .btn-glow { padding: 12px 25px; font-size: 1rem; }
    .careers-header { justify-content: center; }
}

/* สไตล์สำหรับปุ่มดูแผนการศึกษา */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--neon-purple);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--neon-purple);
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(184, 41, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d273ff;
    box-shadow: 0 0 20px rgba(184, 41, 255, 0.8);
    transform: translateY(-2px);
}

/* สไตล์สำหรับปุ่มเปิดไฟล์ PDF (ทำสีให้ดูแตกต่างเล็กน้อย) */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: rgba(20, 5, 40, 0.8);
    color: var(--neon-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid var(--neon-light);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background-color: var(--neon-light);
    color: #000;
    box-shadow: 0 0 15px var(--neon-light);
    transform: translateY(-2px);
}

/* สร้างช่องว่างระหว่างปุ่ม */
/* จัดการกล่องที่ครอบปุ่ม ให้อยู่กึ่งกลางหน้าจอ */
/* จัดการกล่องที่ครอบปุ่ม ให้อยู่กึ่งกลางหน้าจอ และเว้นระยะห่าง */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px; /* ใช้ gap ในการเว้นช่องว่างระหว่างปุ่ม */
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
}

/* ปรับแต่งปุ่มให้ยืดหยุ่นรองรับข้อความยาวๆ */
.btn-primary, .btn-pdf {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;       /* ปรับความกว้างสูงสุดให้พอดีกับข้อความ */
    min-height: 55px;       /* ใช้ min-height แทน height เพื่อให้ปุ่มขยายความสูงได้ */
    padding: 10px 20px;     /* เพิ่ม padding ให้ข้อความไม่ติดขอบ */
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;       /* ปรับระยะห่างบรรทัดให้สวยงามเวลาข้อความขึ้นบรรทัดใหม่ */
}

/* สไตล์เมื่อชี้เมาส์ที่ปุ่ม */
.btn-primary:hover, .btn-pdf:hover {
    box-shadow: 0px 5px 15px rgba(184, 41, 255, 0.5);
    transform: translateY(-2px);
}


