@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@800;900&family=Baloo+2:wght@700;800&display=swap');

: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 (home-style) */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: none;
    overscroll-behavior: contain;
    z-index: 9999;
    transition: opacity 0.35s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    display: grid;
    gap: 10px;
    place-items: center;
    transform: translateZ(0);
}

.word {
    position: relative;
    display: inline-block;
    animation: pop 1.2s ease-in-out infinite;
}

@keyframes pop {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-2px) scale(1.01); }
}

.text {
    font-family: "Nunito", "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 7vw, 86px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: #157BFF;
    text-shadow:
      0 10px 24px rgba(21,123,255,.25),
      0 2px 0 rgba(0,0,0,.06);
}

.shine {
    position: absolute;
    inset: -8px -18px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.0) 35%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.0) 62%, transparent 100%);
    transform: translateX(-40%);
    filter: blur(1px);
    mix-blend-mode: screen;
    animation: shineMove 1.6s ease-in-out infinite;
}

@keyframes shineMove {
    0%   { transform: translateX(-45%); opacity: .0; }
    25%  { opacity: .9; }
    55%  { opacity: .9; }
    100% { transform: translateX(45%); opacity: .0; }
}

.under {
    position: relative;
    width: 160px;
    height: 30px;
    margin-top: 6px;
    margin-left: auto;
}

.buddy {
    position: absolute;
    left: 0;
    top: 6px;
    width: 34px;
    height: 20px;
    transform-origin: center;
    animation: fishSwim 1.25s ease-in-out infinite;
    opacity: .95;
}

.buddy::before {
    content:"";
    position:absolute;
    left: 8px;
    top: 2px;
    width: 20px;
    height: 16px;
    background: linear-gradient(180deg, #5BC2FF 0%, #157BFF 100%);
    border-radius: 999px;
    box-shadow: 0 8px 14px rgba(21,123,255,.18);
}

.buddy::after {
    content:"";
    position:absolute;
    inset:0;
    background:
      radial-gradient(circle at 24px 10px, #FFD24A 0 2.2px, transparent 2.4px),
      radial-gradient(12px 10px at 8px 10px, #3BB4FF 0 55%, transparent 56%),
      radial-gradient(12px 10px at 8px 10px, #157BFF 0 45%, transparent 46%);
}

@keyframes fishSwim {
    0%   { transform: translateX(0) rotate(-6deg); opacity: 0; }
    20%  { opacity: 1; }
    50%  { transform: translateX(70px) rotate(4deg); }
    100% { transform: translateX(140px) rotate(-2deg); opacity: 1; }
}

html.lock-scroll,
body.lock-scroll {
    overflow: hidden;
    height: 100%;
}

/* 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;
    }
}

/* AI Chatbot */
.ai-chat-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: inherit;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: none;
    z-index: 2000;
    transition: transform .18s ease, filter .18s ease;
    animation: ai-float 2.4s ease-in-out infinite;
}


.ai-chat-fab img {
    width: 56px;
    height: 56px;
    display: block;
    transition: transform .18s ease, filter .18s ease;
}


.ai-chat-fab:hover {
    animation: ai-wiggle .6s ease-in-out infinite;
}

.ai-chat-fab:active {
    transform: translateY(0) scale(0.98);
    animation: none;
}

.ai-chat-fab:hover img {
    filter: drop-shadow(0 10px 18px rgba(15, 131, 226, .28));
}


.ai-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: min(360px, calc(100vw - 40px));
    max-height: 520px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    border: 1px solid #e6eef7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2000;
}

.ai-chat-panel.ai-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    border-bottom: 1px solid #e6eef7;
}

.ai-chat-title {
    font-weight: 700;
    color: #0f83e2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-title img {
    width: 20px;
    height: 20px;
    display: block;
}

.ai-chat-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #5c6b7a;
}

.ai-chat-messages {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
}

.ai-msg {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    max-width: 88%;
    white-space: pre-wrap;
}

.ai-msg--bot {
    background: #f1f5fb;
    color: #243136;
    align-self: flex-start;
}

.ai-msg--user {
    background: #0f83e2;
    color: #fff;
    align-self: flex-end;
}

.ai-msg--typing {
    background: #f1f5fb;
    color: #243136;
    align-self: flex-start;
    padding: 8px 12px;
}

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 12px;
}

.ai-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8aa2bb;
    opacity: 0.4;
    animation: ai-dot 1.2s ease-in-out infinite;
}

.ai-typing i:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ai-dot {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-3px); opacity: 1; }
}

.ai-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e6eef7;
    background: #fff;
}

.ai-chat-form input {
    border: 1px solid #d9e4f2;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.ai-chat-form input:focus {
    border-color: #0f83e2;
    box-shadow: 0 0 0 3px rgba(15, 131, 226, .15);
}

.ai-chat-form button {
    border: none;
    background: #0f83e2;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

@keyframes ai-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes ai-wiggle {
    0% { transform: translateY(-2px) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-3deg); }
    50% { transform: translateY(-2px) rotate(3deg); }
    75% { transform: translateY(-4px) rotate(-2deg); }
    100% { transform: translateY(-2px) rotate(0deg); }
}
