body {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #000000;
    margin: 0px;
    padding: 0px;
    text-decoration: none;
    overflow-x: hidden;
}

.navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    /* เอาเงาออกด้วย */
}

.thumbnail {
    width: 250px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.overlay img {
    max-width: 80%;
    border-radius: 10px;
}

.floating-apply {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    /* เพิ่มตัวนี้ */
    width: auto;
    max-width: calc(100% - 40px);
    /* กันล้น */
}

.floating-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

a {
    text-decoration: none;
    color: aliceblue;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #d8e8d9;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 9px 10px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #1b5e20;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f0f8f1;
}

.icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 18px 20px;
}


/* HERO */

.hero {
    height: 100vh;
    /* เต็มหน้าจอ */
    background: url('https://images.unsplash.com/photo-1492724441997-5dc865305da7') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}


/* overlay ทำให้ตัวหนังสืออ่านง่าย */

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero button {
    padding: 12px 25px;
    border: none;
    background: #00bcd4;
    color: white;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    background: #0097a7;
}


/* Responsive */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}


/* Hero ไว้ทดสอบ */

.hero {
    height: 100vh;
    background: url('https://sme.extension-school.com/img/slide02.png') no-repeat center/cover;
}

.content {
    height: 1500px;
    padding: 100px 20px;
}

navbar {
    padding: 15px 30px;
}

.register-btn {
    background-color: #0d6efd;
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
}

.register-btn:hover {
    background-color: #0b5ed7;
    color: white;
}

@media (max-width: 768px) {
    .apply-btn {
        padding: 8px 15px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}