

/* นำเข้าฟอนต์ภาษาไทยจาก Google Fonts */
@import url(
    'https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap'
);

/* ตั้งค่าพื้นฐาน */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}


:root{
    /* Theme Color */
    --theme-primary:#1976d2;
    --theme-dark:#0b4f94;
    --theme-light:#eaf4ff;
    --theme-text:#1f2937;

    /* Background */
    --background:#f8fbff;
    --card:#ffffff;

    /* Border */
    --border:#d9e5f3;
}





.course-pdf-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.course-pdf-link:hover {
    color: var(--theme-primary);
    text-decoration: underline;
}

.clickable-card{
    cursor:pointer;
    transition:all .25s ease;
}

.clickable-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.15);
}

.clickable-card:active{
    transform:translateY(-3px);
}

.clickable-card:hover{
    border-color:var(--theme-primary);
}



body {
    font-family: "Prompt", sans-serif;
    color: #172033;
    background-color: #ffffff;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

/* เมนู */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e7eaf0;
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #175ec7;
    font-size: 1.35rem;
    font-weight: 700;
}

.course-page .logo {
    color: var(--theme-primary);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    color: #3f485a;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navigation a:hover {
    color: #175ec7;
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(
        135deg,
        #5CA9D1 0%,
        #7DBBDD 55%,
        #A4D0E7 100%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
}

.hero-label,
.section-heading > p,
.contact-label {
    margin-bottom: 12px;
    color: #2e80ec;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-label {
    color: #82c9ff;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.2;
}

.hero-text h1 {
    color: #ffffff;
}

/* คำโปรยใต้หัวข้อใหญ่ */
.hero-text p {
    color: #0B2D4D;
    font-weight: 600;
    line-height: 1.8;
}

.hero-card {
    background: #F7FAFC;
    border: 1px solid #C8D8E4;
    box-shadow: 0 12px 30px rgba(28, 65, 90, 0.14);
}

/* กล่องหลักสูตรยอดนิยม */
.hero-card h3 {
    color: #081F36;
    font-weight: 700;
}

.hero-card li {
    color: #0B2D4D;
    font-weight: 600;
}


.hero-text > p:not(.hero-label) {
    max-width: 800px;
    margin-bottom: 30px;
    color: #d7e7ff;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.2s,
        background-color 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.course-page .primary-button {
    color: #ffffff;
    background-color: var(--theme-secondary);
}

.course-page .primary-button:hover {
    background-color: var(--theme-primary);
}

.course-page .course-secondary-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    background-color: transparent;
}

.course-page .course-secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.course-page .section-heading > p,
.course-page .section-small-label {
    color: var(--theme-primary);
}

.course-page .course-overview-content h3,
.course-page .learning-box h3,
.course-page .level-footer strong,
.course-page .audience-card > span {
    color: var(--theme-text);
}



.primary-button {
    color: #ffffff;
    background-color: #1674df;
}

.primary-button:hover {
    background-color: #0d5ebe;
}

.secondary-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background-color: transparent;
}

.hero-card {
    padding: 35px;
     border: 1px solid #d7e0e8;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.10);
    backdrop-filter: blur(12px);
}

.hero-card h2 {
    margin-bottom: 22px;
}

.hero-card ul {
    list-style: none;
}

.hero-card li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* เครื่องหมายถูก */
.hero-card li::before {
    margin-right: 10px;
    color: #1683C4;
    font-weight: 700;
    content: "✓";
}

/* ส่วนเนื้อหาทั่วไป */
.section {
    padding: 90px 0;
}

.grey-section {
    background-color: #f5f7fb;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-heading span {
    color: #687286;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.about-grid h3 {
    margin-bottom: 18px;
    font-size: 1.8rem;
}

.about-grid p {
    margin-bottom: 16px;
    color: #606a7d;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.stat-card {
    min-height: 150px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e1e6ef;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(24, 45, 80, 0.07);
}

.stat-card strong {
    color: #175ec7;
    font-size: 1.8rem;
}

.stat-card span {
    color: #677184;
}

/* หลักสูตร */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    padding: 30px;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(24, 45, 80, 0.06);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(24, 45, 80, 0.12);
}

.course-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.course-icon img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
}

/* พื้นหลังตามสีโปรแกรม */
.excel-icon {
    background-color: #e4f4eb;
}

.powerbi-icon {
    background-color: #fff5c2;
}

.powerautomate-icon {
    background-color: #e6f0ff;
}

.powerapps-icon {
    background-color: #f4e7f5;
}


.course-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background-color: #175ec7;
    font-weight: 700;
}

.course-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.course-card p {
    min-height: 104px;
    margin-bottom: 18px;
    color: #687286;
}

.course-level {
    display: inline-block;
    margin-bottom: 20px;
    padding: 5px 10px;
    color: #145bb9;
    border-radius: 20px;
    background-color: #e9f2ff;
    font-size: 0.8rem;
}

.course-card a {
    display: block;
    color: #175ec7;
    font-weight: 500;
}

/* จุดเด่น */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-left: 3px solid #175ec7;
    background-color: #f7f9fc;
}

.feature-card > span {
    color: #175ec7;
    font-size: 0.85rem;
    font-weight: 600;
}

.feature-card h3 {
    margin: 14px 0 10px;
}

.feature-card p {
    color: #687286;
}

/* ตาราง */
.blue-section {
    color: #ffffff;
    background-color: #0e326d;
}

.light-heading > p,
.light-heading h2,
.light-heading span {
    color: #ffffff;
}

.light-heading span {
    opacity: 0.75;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    background-color: #ffffff;
}

table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    color: #243047;
}

th,
td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid #e8ebf0;
}

th {
    color: #ffffff;
    background-color: #175ec7;
    font-weight: 500;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.available {
    color: #12613f;
    background-color: #dff7eb;
}

.contact-status {
    color: #785309;
    background-color: #fff0c8;
}

/* ติดต่อ */
.contact-box {
    padding: 55px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    border-radius: 22px;
    background-color: #f4f7fb;
}

.contact-box h2 {
    margin-bottom: 18px;
    font-size: 2.2rem;
}

.contact-box p {
    color: #657084;
}

.contact-information {
    margin-top: 30px;
}

.contact-information p {
    margin-bottom: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    outline: none;
    background-color: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #175ec7;
    box-shadow: 0 0 0 3px rgba(23, 94, 199, 0.1);
}

/* Footer */
.footer {
    padding: 25px 0;
    color: #bbc5d6;
    background-color: #071d42;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.85rem;
}

/* =========================
   Course Dropdown Menu
   ========================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;

    width: 220px;
    padding: 8px;

    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, 0.15);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(-8px);

    transition: all 0.2s ease;

    z-index: 1000;
}

.nav-dropdown-menu a {
    display: block;

    padding: 11px 14px;

    color: #26354a;
    text-decoration: none;

    border-radius: 8px;

    font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
    background: #f2f6fb;
    color: #175ec7;
}

/* เปิด Dropdown */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}


/* ========================================
   สีประจำหน้าหลักสูตรแต่ละโปรแกรม
======================================== */

.course-page {
    --theme-dark: #073b1d;
    --theme-primary: #107c41;
    --theme-secondary: #21a366;
    --theme-light: #e8f5ee;
    --theme-soft: #f3faf6;
    --theme-border: #b8dfca;
    --theme-text: #0d6838;
}

/* Excel */
.excel-theme {
    --theme-dark: #063b1d;
    --theme-primary: #107c41;
    --theme-secondary: #21a366;
    --theme-light: #e4f4eb;
    --theme-soft: #f2faf5;
    --theme-border: #b6ddc7;
    --theme-text: #0b6b37;
}

/* Power BI */
.powerbi-theme {
    --theme-dark: #4a3900;
    --theme-primary: #d9ad00;
    --theme-secondary: #f2c811;
    --theme-light: #fff7cf;
    --theme-soft: #fffbed;
    --theme-border: #ead56e;
    --theme-text: #6b5400;
}

/* Power Automate */
.powerautomate-theme {
    --theme-dark: #082d70;
    --theme-primary: #0066ff;
    --theme-secondary: #2488ff;
    --theme-light: #e5f0ff;
    --theme-soft: #f2f7ff;
    --theme-border: #b9d4ff;
    --theme-text: #0756c9;
}

/* Power Apps */
.powerapps-theme {
    --theme-dark: #451061;
    --theme-primary: #742774;
    --theme-secondary: #a437a0;
    --theme-light: #f4e7f5;
    --theme-soft: #fbf4fb;
    --theme-border: #ddb9df;
    --theme-text: #742774;
}

/* SQL / Database */
.sql-theme {
    --theme-dark: #102a43;
    --theme-primary: #336791;
    --theme-secondary: #4f86b5;
    --theme-light: #eaf2f8;
    --theme-soft: #f5f9fc;
    --theme-border: #cbdce9;
    --theme-text: #244f73;
}



.sql-course-title {
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sql-course-title h3 {
    margin: 0;

    color: var(--theme-primary);
    font-size: 1.65rem;
    font-weight: 600;
}

.course-download-link {
    display: inline-flex;
    align-items: center;

    color: var(--theme-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.2s ease;
}

.course-download-link:hover {
    color: var(--theme-dark);
    transform: translateY(-2px);
    text-decoration: underline;
}

@media (max-width: 650px) {

    .sql-course-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .sql-course-title h3 {
        font-size: 1.35rem;
    }

    .course-download-link {
        font-size: 0.9rem;
    }
}






/* ==============================
   หน้ารายละเอียดหลักสูตร
================================ */

/* ส่วนหัวหลักสูตร */
.course-hero {
    padding: 20px 0;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(255, 255, 255, 0.13),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            var(--theme-dark),
            var(--theme-primary)
        );
}

.course-hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    align-items: center;
    gap: 200px;
}

.course-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1;
}

.course-introduction {
    max-width: 680px;
    margin-bottom: 24px;
    color: #dbeaff;
    font-size: 1.1rem;
}

.course-tags {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-tags span {
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.course-secondary-button {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
}

.course-secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* กล่องสรุปข้อมูล */
.course-summary-card {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 20, 55, 0.25);
    backdrop-filter: blur(10px);
}

.course-summary-card h2 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.summary-item {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    color: #c8daf5;
}

.summary-item strong {
    text-align: right;
    font-weight: 500;
}

/* ภาพรวมหลักสูตร */
.course-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 60px;
}

.course-overview-content h3 {
    margin-bottom: 18px;
    font-size: 1.8rem;
}

.course-overview-content p {
    margin-bottom: 16px;
    color: #626d80;
}

.learning-box {
    padding: 32px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background-color: var(--theme-soft);
}



.learning-box h3 {
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    margin-bottom: 13px;
    padding-left: 30px;
    color: #566175;
}

.check-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--theme-primary);
    content: "✓";
    font-weight: 700;
}

/* การ์ดระดับหลักสูตร Excel */
.excel-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 24px;
}

.excel-level-card {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe5ed;
    border-radius: 17px;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(25, 45, 80, 0.06);
}

.featured-card {
    border: 2px solid var(--theme-primary);
    transform: translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 22px;
    padding: 5px 15px;
    color: #ffffff;
    border-radius: 20px;
    background-color: var(--theme-primary);
    font-size: 0.78rem;
}

.level-card-header {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-number {
    color: #c8d1de;
    font-size: 1.5rem;
    font-weight: 700;
}

.level-label {
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.basic-label {
    color: #17603e;
    background-color: #e0f7ec;
}

.intermediate-label {
    color: #195ca7;
    background-color: #e3f0ff;
}

.advanced-label {
    color: #7c4714;
    background-color: #fff0dc;
}

.excel-level-card h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.level-description {
    min-height: 115px;
    margin-bottom: 22px;
    color: #697487;
}

.excel-level-card h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.excel-level-card ul {
    margin-bottom: 26px;
    padding-left: 20px;
    color: #5f6a7c;
}

.excel-level-card li {
    margin-bottom: 9px;
}

.level-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e4e8ee;
}

.level-footer span {
    color: #778194;
}

.level-footer strong {
    color: var(--theme-primary);
}

/* กลุ่มเป้าหมาย */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.audience-card {
    padding: 27px;
    border-top: 4px solid var(--theme-primary);
    border-radius: 8px;
    background-color: var(--theme-soft);
}

.audience-card > span {
    color: #175ec7;
    font-weight: 600;
}

.audience-card h3 {
    margin: 14px 0 10px;
    font-size: 1.15rem;
}

.audience-card p {
    color: #687286;
}

/* รูปแบบการเรียน */
.training-method {
    max-width: 850px;
    margin: 0 auto;
}

.method-item {
    margin-bottom: 18px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    border: 1px solid #e1e6ee;
    border-radius: 14px;
    background-color: #ffffff;
}

.method-number {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    background-color: var(--theme-primary);
    font-weight: 600;
}

.method-item h3 {
    margin-bottom: 5px;
}

.method-item p {
    color: #687286;
}

/* ส่วนติดต่อท้ายหน้าหลักสูตร */
.course-cta {
    padding: 70px 0;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            var(--theme-dark),
            var(--theme-primary)
        );
}

.course-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.course-cta-content p {
    margin-bottom: 6px;
    color: #cce2ff;
}

.course-cta-content h2 {
    max-width: 700px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.cta-button {
    flex-shrink: 0;
    color: var(--theme-text);
    background-color: #ffffff;
}

.cta-button:hover {
    background-color: var(--theme-light);
}




/* ==============================
   หน้าสมัครอบรม
================================ */

.register-hero {
    padding: 85px 0;
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            #071f49,
            #175ec7
        );
}

.register-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.register-hero p:not(.hero-label) {
    max-width: 720px;
    color: #dbeaff;
    font-size: 1.05rem;
}

.register-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    gap: 55px;
}

.register-information {
    position: sticky;
    top: 110px;
}

.section-small-label {
    margin-bottom: 10px;
    color: #2879df;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.register-information > h2 {
    margin-bottom: 16px;
    font-size: 2rem;
}

.register-information > p {
    margin-bottom: 32px;
    color: #687286;
}

.register-step {
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background-color: #f7f9fc;
}

.register-step > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    background-color: #175ec7;
    font-weight: 600;
}

.register-step h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.register-step p {
    color: #687286;
    font-size: 0.9rem;
}

/* แบบฟอร์ม */
.registration-form {
    padding: 38px;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 18px 45px rgba(24, 45, 80, 0.08);
}

.form-section {
    margin-bottom: 38px;
    padding-bottom: 38px;
    border-bottom: 1px solid #e5e9f0;
}

.form-section:last-of-type {
    margin-bottom: 25px;
}

.form-section-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-section-heading > span {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #175ec7;
    border-radius: 10px;
    background-color: #e8f2ff;
    font-weight: 700;
}

.form-section-heading h2 {
    font-size: 1.35rem;
}

.form-section-heading p {
    color: #7a8495;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 7px;
    font-size: 0.92rem;
    font-weight: 500;
}

.required {
    color: #d33434;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    outline: none;
    background-color: #ffffff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #175ec7;
    box-shadow: 0 0 0 3px rgba(23, 94, 199, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #d33434;
    background-color: #fff8f8;
}

.error-message {
    min-height: 20px;
    margin-top: 5px;
    color: #c93030;
    font-size: 0.78rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 18px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.reset-button {
    color: #435067;
    border-color: #cdd4df;
    background-color: #ffffff;
}

.reset-button:hover {
    background-color: #f1f4f8;
}

/* Modal ส่งข้อมูลสำเร็จ */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(4, 18, 42, 0.65);
}

.success-modal.show {
    display: flex;
}

.success-modal-content {
    width: min(440px, 100%);
    padding: 42px 35px;
    text-align: center;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 20, 50, 0.3);
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    background-color: #1b9a64;
    font-size: 2rem;
    font-weight: 700;
}

.success-modal-content h2 {
    margin-bottom: 10px;
}

.success-modal-content p {
    margin-bottom: 25px;
    color: #687286;
}




/* หน้าจอ Tablet */
@media (max-width: 900px) {

.register-layout {
    grid-template-columns: 1fr;
}

.register-information {
    position: static;
}


.course-hero-grid,
.course-overview-grid {
    grid-template-columns: 1fr;
}

.excel-course-grid {
    grid-template-columns: 1fr;
}

.featured-card {
    transform: none;
}

.audience-grid {
    grid-template-columns: repeat(2, 1fr);
}

.course-cta-content {
    flex-direction: column;
    align-items: flex-start;
}

    .hero-content,
    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        gap: 40px;
    }
}

/* หน้าจอมือถือ */
@media (max-width: 650px) {

.register-hero {
    padding: 65px 0;
}

.registration-form {
    padding: 27px 20px;
}

.form-grid {
    grid-template-columns: 1fr;
}

.full-width {
    grid-column: auto;
}

.form-actions {
    flex-direction: column-reverse;
}

.form-actions .button {
    width: 100%;
}


.course-hero {
    padding: 70px 0;
}

.course-summary-card {
    padding: 25px;
}

.summary-item {
    flex-direction: column;
    gap: 3px;
}

.summary-item strong {
    text-align: left;
}

.audience-grid {
    grid-template-columns: 1fr;
}

.method-item {
    flex-direction: column;
}

.course-cta {
    padding: 55px 0;
}

    .section {
        padding: 65px 0;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        padding: 20px 5%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        border-bottom: 1px solid #e5e8ee;
        background-color: #ffffff;
    }

    .navigation.show {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 70px 0;
    }

    .course-grid,
    .feature-grid,
    .statistics {
        grid-template-columns: 1fr;
    }

    .course-card p {
        min-height: auto;
    }

    .contact-box {
        padding: 30px 22px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================================================
   Professional Course Icons (Override)
   ================================================== */

.course-icon{
    width:68px;
    height:68px;
    margin-bottom:24px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#ffffff;
    border:1px solid #e9edf3;
    border-radius:18px;

    box-shadow:
        0 8px 24px rgba(15,23,42,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.course-card:hover .course-icon{
    transform:translateY(-2px) scale(1.08);
    box-shadow:
        0 14px 32px rgba(15,23,42,.16);
}

.course-icon img{
    width:44px;
    height:44px;
    object-fit:contain;
}

/* Override old colored backgrounds */
.excel-icon,
.powerbi-icon,
.powerautomate-icon,
.powerapps-icon,
.sql-icon,
.corporate-icon{
    background:#ffffff;
}


/*=========================
Contact Page
=========================*/

.contact-info,
.why-us,
.contact-form{
    padding:10px 0;
}

.contact-grid,
.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:28px;
    margin-top:15px;
}

.contact-card,
.why-card{
    background:#fff;
    border-radius:18px;
    padding:5px;
    text-align:center;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.3s;
}

.contact-card:hover,
.why-card:hover{
    transform:translateY(-8px);
}

.contact-card i,
.why-card i{
    font-size:42px;
    color:#1976d2;
    margin-bottom:5px;

}

.contact-card h3,
.why-card h3{
    margin-bottom:5px;
    font-size:1.2rem;

}

.contact-card p,
.why-card p{

    color:#64748b;
    line-height:1;

}

.form-card{

    margin-top:40px;

    border-radius:20px;

    overflow:hidden;

    background:#fff;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.form-card iframe{

    width:100%;

    height:1750px;

    border:none;

}