:root {
    --primary-color: #0f83e2;
    --secondary-color: #7fd0ff;
    --white: #fff;
    --text-on-primary: #fff;
    --maxw: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
}

body {
    background: #FFFFFF;
    color: #243136;
    line-height: 1.6;
}

/* Loading Screen */
.curve-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.curve-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.spinner path {
    stroke-width: 8;
    stroke-dasharray: 126;
    animation: dash 2s ease-in-out infinite;
}

.spinner path:nth-child(1) {
    stroke: #29568f;
}

.spinner path:nth-child(2) {
    stroke: #FFC107;
    animation-delay: .3s;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 126;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -126;
    }
}

.loading-text {
    font-size: 1.5rem;
    color: #29568f;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    z-index: 1000;
}

.logo {
    width: auto;
    height: 40px;
    /* ให้สูงตามแถบ */
    background: none;
    /* ถ้าใช้ <img> ไม่ต้องมีพื้น */
    border-radius: 0;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 56px;
    margin-left: auto;
    /* ตัวสำคัญ: ดันไปขวา */
    margin-right: 56px;
    /* เว้นช่องก่อนโปรไฟล์นิดนึง */
}

.nav-links a {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    color: #243136;
    text-decoration: none;
    padding: 6px 0;
    /* เผื่อพื้นที่ให้เส้นใต้ */
    transition: color .2s ease;
}



.nav-links a:hover::after {
    transform: scaleX(.5);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* active โชว์เต็ม */

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #008DD0;
    border-radius: 50%;
}

.user-name {
    font-weight: 500;
    color: #4b5563;
}

.dropdown-arrow {
    width: 24px;
    height: 50px;
    background-color: #6B7280;
    /* สีลูกศร */
    -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    mask: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    transition: transform .2s ease, background-color .2s ease;
}



.user-profile.open .dropdown-arrow {
    transform: rotate(180deg);
    background-color: #008DD0;
    /* เปลี่ยนสีตอนเปิด (option) */
}

/* Main Content */
.main-content {
    margin: 64px auto 0;
    /* auto ซ้าย-ขวา = กึ่งกลาง */
    padding: 48px 24px;
    max-width: 1200px;
    /* กว้างสุด */
    width: 100%;
    /* ยืดเต็มบนจอเล็ก */
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* ซ่อนแท่งเป็นค่าเริ่มต้น (จริง ๆ คือไม่วาดเลย) */
.section-title::before {
    content: none;
}

/* แสดงแท่งเฉพาะหัวข้อที่มีคลาสนี้ */
.section-title--accent::before {
    content: "";
    width: 8px;
    height: 30px;
    background: #0f83e2;
    /* สีฟ้า */
    border-radius: 2px;
}

.title-accent {
    width: 8px;
    height: 30px;
    background: #0f83e2;
}

.section-title h1 {
    font-family: 'Sarabun';
    font-weight: 500;
    font-size: 32px;
    line-height: 40px;
}



/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 40px;
}

.category-filter {
    box-sizing: border-box;
    width: 400px;
    height: 40px;
    background: #FFFFFF;
    border: 0.8px solid #9F9FA9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.category-filter span {
    font-weight: 500;
    font-size: 16px;
    color: rgba(36, 49, 54, 0.8);
}

/* กล่องค้นหาให้หน้าตาเหมือนของเดิม */
.search-filter {
    box-sizing: border-box;
    width: 420px;
    height: 40px;
}

.search-filter form {
    position: relative;
    height: 100%;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 16px;
    /* เผื่อพื้นที่ปุ่มทางขวา */
    border: .8px solid #9F9FA9;
    border-radius: 16px;
    background: #fff;
    color: #243136;
    font: inherit;
    outline: none;
}

.search-input::placeholder {
    color: #9F9FA9;
}

/* ปุ่มไอคอนค้นหา (ใช้ mask SVG แบบเดียวกับที่เคยใช้) */
.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 9999px;
    background: rgba(36, 49, 54, .75);
    cursor: pointer;
    -webkit-mask: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16a6.471 6.471 0 0 0 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
    mask: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16a6.471 6.471 0 0 0 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
    background-color: rgba(36, 49, 54, .75);
}

.search-btn:hover {
    background-color: #0f83e2;
}

/* มือถือให้เต็มความกว้าง */
@media (max-width: 768px) {
    .search-filter {
        width: 100%;
    }
}

/* Course Stats */
.course-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.course-count {
    font-weight: 500;
    font-size: 16px;
}

.course-card {
    position: relative;
    cursor: pointer;
}

/* ลิงก์โปร่งใสคลุมทั้งใบการ์ด */
.stretched-link {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left = 0 */
    z-index: 10;
    border-radius: inherit;
    /* ให้โค้งตามการ์ด */
    text-indent: -9999px;
    /* ซ่อนข้อความลิงก์ จากสายตาแต่ยังอ่านได้ด้วย screen reader */
}

/* แสดงโฟกัสตอนกด Tab เพื่อการเข้าถึง */
.stretched-link:focus-visible {
    outline: 3px solid #0f83e2;
    outline-offset: 4px;
}


/* Tab Panels */
.tab-panels {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    transition: height 0.35s ease;
}

.tab-panel {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.tab-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.tab-panels,
.tab-panel,
.course-grid {
    overflow: visible;
    /* override ของเดิมที่เป็น hidden */
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
}

/* Course Card */
.course-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 16px;
    width: 300px;
    height: 405px;
    background: #FFFFFF;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    position: relative;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        filter .18s ease;
    will-change: transform, box-shadow;
    cursor: pointer;
    /* อยากให้รู้สึกคลิกได้ */
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
}

.course-thumbnail {
    width: 100%;
    /* ใช้เต็มความกว้างการ์ด */
    aspect-ratio: 16 / 9;
    /* หรือใช้ height: 176px ก็ได้ */
    background: #C8D5DE;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

/* บังคับรูปให้พอดีกรอบ */
.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ครอบให้เต็ม ตัดส่วนเกิน */
    display: block;
    /* ตัดช่องว่างบรรทัดล่างของ img */
    border-radius: inherit;
    /* โค้งตามกรอบ */
}

.course-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: #0f83e2;
    color: #fff;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.course-category-tag span {
    font-size: 14px;
    line-height: 16px;
    color: #FFFFFF;
}

.course-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    width: 273px;
    height: 208px;
}

.course-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #243136;
}

.course-instructor {
    font-size: 14px;
    line-height: 16px;
    color: rgba(36, 49, 54, 0.8);
}

.course-description {
    font-size: 14px;
    line-height: 16px;
    color: rgba(36, 49, 54, 0.8);
    height: 48px;
    overflow: hidden;
}



.progress-label,
.progress-percent {
    font-size: 12px;
    line-height: 16px;
    color: rgba(36, 49, 54, 0.8);
}



.progress-fill {
    position: absolute;
    height: 8px;
    background: #0f83e2;
    border-radius: 20px;
    width: 40%;
    /* Adjust based on actual progress */
}

.course-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 16px;
    width: 272px;
}

.continue-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 16px;
    gap: 10px;
    width: 272px;
    height: 32px;
    background: #0f83e2;
    border-radius: 20px;
    color: #FEFEFE;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 28px 0 8px;
    user-select: none;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: #3b4044;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease;
}

.page-btn:hover {
    background: #f4f7fb;
}

.page-btn:active {
    transform: translateY(1px);
}

.page-btn.is-current {
    background: #0f83e2;
    color: #fff;
    border-color: #0f83e2;
}

.page-btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

/* ไอคอนลูกศรด้วย mask svg */
.icon {
    width: 22px;
    height: 22px;
    background: currentColor;
    display: inline-block;
    -webkit-mask: no-repeat center/100% 100%;
    mask: no-repeat center/100% 100%;
}

.icon-first {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M17 6l-6 6 6 6M7 6v12'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M17 6l-6 6 6 6M7 6v12'/></svg>");
}

.icon-prev {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M15 18l-6-6 6-6'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M15 18l-6-6 6-6'/></svg>");
}

.icon-next {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/></svg>");
}

.icon-last {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M7 6l6 6-6 6M17 6v12'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' d='M7 6l6 6-6 6M17 6v12'/></svg>");
}

/* จุดไข่ปลา */
.page-ellipsis {
    padding: 0 6px;
    color: #6b7280;
    letter-spacing: 2px;
}


/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: auto;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color .3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: .9rem;
}

/* ปุ่มอีเมลทรงแคปซูล (ออกแบบให้ใช้ได้ทั้งพื้นเข้ม/พื้นอ่อน) */
.email-pill {
    --pill-fg: #fff;
    /* สีตัวอักษร/ไอคอนเริ่มต้น (พื้นหลังเข้ม) */
    --pill-fg-hover: #0f83e2;
    /* สีตัวอักษร/ไอคอนตอนโฮเวอร์ */
    --pill-bg: transparent;
    /* พื้นหลังเริ่มต้นโปร่ง */
    --pill-bg-hover: #fff;
    /* พื้นหลังตอนโฮเวอร์ */
    --pill-border: #fff;
    /* สีเส้นขอบ */

    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border: 2px solid var(--pill-border);
    border-radius: 9999px;
    color: var(--pill-fg);
    background: var(--pill-bg);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease;
}

.email-pill:hover {
    background: var(--pill-bg-hover);
    color: var(--pill-fg-hover);
    border-color: var(--pill-bg-hover);
}

.email-pill:active {
    transform: translateY(1px);
}

.email-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* ไอคอนซอง (ใช้ currentColor → สีตามตัวอักษร) */
.email-pill__icon {
    width: 22px;
    height: 16px;
    background: currentColor;
    -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm9 7 9-6H3l9 6zm0 2L3 8v9h18V8l-9 6z'/></svg>");
    mask: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm9 7 9-6H3l9 6zm0 2L3 8v9h18V8l-9 6z'/></svg>");
}

/* ถ้าใช้พื้นหลังอ่อนและอยากให้เส้น/ตัวหนังสือเข้ม ให้สลับตัวแปรแค่นี้ */
/*
.email-pill{ --pill-fg:#0f83e2; --pill-border:#0f83e2; --pill-fg-hover:#fff; --pill-bg-hover:#0f83e2; }
*/

/* ปุ่มอีเมลทรงแคปซูล (ออกแบบให้ใช้ได้ทั้งพื้นเข้ม/พื้นอ่อน) */
.number-pill {
    --pill-fg: #fff;
    /* สีตัวอักษร/ไอคอนเริ่มต้น (พื้นหลังเข้ม) */
    --pill-fg-hover: #0f83e2;
    /* สีตัวอักษร/ไอคอนตอนโฮเวอร์ */
    --pill-bg: transparent;
    /* พื้นหลังเริ่มต้นโปร่ง */
    --pill-bg-hover: #fff;
    /* พื้นหลังตอนโฮเวอร์ */
    --pill-border: #fff;
    /* สีเส้นขอบ */

    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border: 2px solid var(--pill-border);
    border-radius: 9999px;
    color: var(--pill-fg);
    background: var(--pill-bg);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .05s ease;
}

.number-pill:hover {
    background: var(--pill-bg-hover);
    color: var(--pill-fg-hover);
    border-color: var(--pill-bg-hover);
}

.number-pill:active {
    transform: translateY(1px);
}

.number-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* ไอคอนซอง (ใช้ currentColor → สีตามตัวอักษร) */
.number-pill__icon {
    width: 22px;
    height: 16px;
    background: currentColor;
    -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm9 7 9-6H3l9 6zm0 2L3 8v9h18V8l-9 6z'/></svg>");
    mask: no-repeat center / 100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M3 5h18a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm9 7 9-6H3l9 6zm0 2L3 8v9h18V8l-9 6z'/></svg>");
}

/* ถ้าใช้พื้นหลังอ่อนและอยากให้เส้น/ตัวหนังสือเข้ม ให้สลับตัวแปรแค่นี้ */
/*
.email-pill{ --pill-fg:#0f83e2; --pill-border:#0f83e2; --pill-fg-hover:#fff; --pill-bg-hover:#0f83e2; }
*/


.contact-info {
    width: 327px;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.contact-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    width: 229px;
    height: 40px;
    border: 1px solid #FFF9F5;
    border-radius: 24px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    background: #FEF6F6;
}

.contact-text {
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    width: 1272px;
    height: 64px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 1224px;
}

.footer-bottom-links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 357px;
}

.footer-bottom-text {
    font-size: 12px;
    line-height: 16px;
    color: #FEF6F6;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    width: 240px;
    height: 198px;
    right: 32px;
    top: 56px;
    background: #FFFFFF;
    border: 0.5px solid #A4B8C7;
    border-radius: 16px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
}

.user-dropdown.active {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 15px;
    border-bottom: 0.5px solid #C6D3DC;
}

.dropdown-avatar {
    height: 32px;
    border-radius: 50%;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-name {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.dropdown-email {
    font-size: 14px;
    line-height: 16px;
    color: rgba(36, 49, 54, 0.8);
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 15px;
}

.dropdown-item {
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #243136;
}

.dropdown-menu .dropdown-item:hover {
    color: #008DD0;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        width: 100%;
        padding: 48px 32px;
    }

    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container,
    .footer-bottom {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 32px 16px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .tabs-container {
        flex-direction: column;
        height: auto;
        gap: 16px;
        padding: 16px;
    }

    .tab {
        width: 100%;
    }

    .filters {
        flex-direction: column;
        gap: 16px;
        height: auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        width: 100%;
    }
}

/* ปิด animation สำหรับผู้ใช้ที่ต้องการลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {

    .tab-indicator,
    .tab-panel,
    .tab-panels,
    .tab {
        transition: none !important;
    }
}