/* Font Import: Looped for body, Sans for headings */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai+Looped:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* Angular ng-cloak directive to hide uncompiled expressions */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai Looped', 'Noto Sans Thai', sans-serif;
    background-color: #f4f4f4;
    color: #2d2d2d;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px;
}

/* Mobile-specific body adjustments */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

/* Hero Banner */
.hero-banner {
    background: #f1f1f1;
    height: 715px;
    position: relative;
    overflow: hidden;
    margin-top: -120px;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    gap: 80px;
}

.hero-arc {
    position: absolute;
    left: max(100px, calc(50% - 1000px));
    top: 165px;
    width: 450px;
    height: 808px;
    z-index: 1;
}

.hero-arc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-circle {
    position: absolute;
    right: max(40px, calc(50% - 1000px));
    top: 265px;
    width: 338px;
    height: 668.364px;
    z-index: 1;
}

.hero-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.08;
    max-width: 488px;
    margin-bottom: 30px;
}

.hero-title .highlight {
    color: #e36129;
    font-weight: 700;
    display: block;
    font-family: 'Noto Sans Thai', sans-serif; /* explicit per request */
}

/* Headings use non-looped Sans Thai for sharper display */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.section-subtitle,
.latest-courses-header h3,
.type-card h3,
.banner-content h2,
.course-title,
.intro-text h2 {
    font-family: 'Noto Sans Thai', sans-serif;
}

.hero-subtitle {
    color: #313131;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: 131%; /* 41.92px */
    letter-spacing: -0.16px;
    margin-bottom: 40px;
}

.search-box {
    background: white;
    border: 1px solid #f99c35;
    border-radius: 80px;
    width: 400px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 16px;
    gap: 12px;
}

.search-icon-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-icon-indicator svg {
    width: 15px;
    height: 15px;
}

.search-icon {
    background: #e36129;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.search-icon img {
    width: 20px;
    height: 20px;
}

.search-btn {
    background: #f98d13;
    border: none;
    border-radius: 19.554px;
    padding: 4px 16px;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #e87d0b;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 18px;
    color: #999999;
    font-weight: 300;
}

.search-box input::placeholder {
    color: #999999;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 18px */
}

/* Vendor-specific placeholder support */
.search-box input::-webkit-input-placeholder {
    color: #999999;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
}

.search-box input::-moz-placeholder {
    color: #999999;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
}

.search-box input:-ms-input-placeholder {
    color: #999999;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
}

.hero-image {
    position: relative;
    left: 40px;
    width: 527px;
    height: 790px;
    z-index: 2;
    flex-shrink: 0;
    margin-top: 190px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #E36129;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    z-index: 3;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px; /* 170% */
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.stat-item img {
    width: 32px;
    height: 32px;
}

/* Intro Section */
.intro-section {
    background: white;
    padding: 74px 0;
}

.intro-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.intro-cards-image {
    flex-shrink: 0;
    width: 545px;
}

.intro-cards-image img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.31;
    margin-bottom: 20px;
}

.intro-text .text-primary {
    color: var(--Primary-Orange, #E36129) !important;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 131%; /* 52.4px */
    letter-spacing: -0.2px;
}

.intro-text p {
    color: var(--Dark-gray, #323232);
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.11px;
}

/* Course Types Section */
.course-types {
    background: #f2f2f2;
    padding: 95px 0;
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.type-card {
    border-radius: 32px;
    padding: 32px;
    color: white;
    min-height: 440px;
    text-decoration: none;
    display: block;
    transition: none;
}

.type-card:hover {
    color: white;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.card-orange {
    background: #e46129;
}

.card-green {
    background: #134f45;
}

.card-yellow {
    background: #eaab00;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    --stroke-0: #ffffff;
}

.card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.type-card h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.31;
    margin-bottom: 20px;
    color: #ffffff;
}

.type-card p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Registration Banner */
.registration-banner {
    background: #fa8d21;
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 68px;
}

.registration-banner-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1600px;
    width: 100%;
    padding: 0 120px;
}

.banner-arc {
    position: absolute;
    z-index: 1;
}

.banner-arc-1 {
    left: -100px;
    top: 24px;
    width: 447.589px;
    height: 621px;
}

.banner-arc-1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-arc-2 {
    right: 0px;
    top: -117px;
    width: 378px;
    height: 519.589px;
    transform: rotate(180deg);
}

.banner-arc-2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-image {
    position: absolute;
    left: 0px;
    top: 9px;
    width: 478px;
    height: 454px;
    z-index: 2;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    margin-left: auto;
    color: #FFF;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.banner-badge {
    background: #d91d04;
    padding: 16px 32px;
    border-radius: 0 0 24px 24px;
    font-size: 32px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 48px;
}

.banner-content h2 {
    color: #FFF;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.banner-content p {
    color: #FFF;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 28px;
    line-height: 1.43;
}

/* Courses Section */
.courses-section {
    background: #ededed;
    padding: 83px 0 120px;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: #e36129;
    margin-bottom: 16px;
}

.section-description {
    font-size: 22px;
    color: #323232;
    margin-bottom: 60px;
    max-width: 705px;
}

.latest-courses-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.latest-courses-header img {
    width: 63px;
    height: 28px;
    object-fit: contain;
}

.latest-courses-header h3 {
    font-size: 26px;
    font-weight: 600;
    color: #3b3b3b;
    margin: 0;
}

.course-tabs {
    display: flex;
    gap: 29px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    max-width: 100%;
    padding-bottom: 2px;
}

.course-tabs::-webkit-scrollbar {
    height: 4px;
}

.course-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.course-tabs::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 24px;
    color: #979797;
    cursor: pointer;
    padding: 10px 20px 20px 20px;
    transition: color 0.3s;
    font-weight: 400;
    position: relative;
    border-bottom: 6px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn.active {
    color: #2a2a2a;
    font-weight: 600;
    border-bottom: 6px solid #e36129;
}

.tab-btn:hover {
    color: #2a2a2a;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.course-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    height: 100%;
}

.courses-grid-compact .course-card-link {
    min-height: 370px;
}

.course-image {
    height: 153px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    display: inline-block;
    margin: 13px 0 0 13px;
    padding: 7px 17px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.badge-yellow {
    background: #eaab00;
}

.badge-green {
    background: #134f45;
}

.badge-orange {
    background: #e46129;
}

.course-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    padding: 12px 13px;
    color: #2b2b2b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    margin: 0;
    min-height: 48px;
    max-height: 72px;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33; /* 24px / 18px */
  color: #2b2b2b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 0;
  padding: 12px 13px;
  height: calc(30px * 2); /* exactly 2 lines */
}


.course-description {
    font-size: 14px;
    line-height: 1.46;
    color: #616060;
    padding: 0 13px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
    height: calc(14px * 1.46 * 2); /* exactly 2 lines */
}

.course-spacer {
    padding: 0 13px;
    margin: 0;
    height: 24px;
}

.course-price {
    color: #3B3B3B;
    font-family: 'Noto Sans Thai Looped', 'Noto Sans Thai', sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.18px;
    margin: 0 0 16px;
    padding: 0 13px;
    text-decoration: none;
}

.course-footer {
    position: absolute;
    left: 13px;
    right: 16px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-deadline {
    font-size: 10px;
    color: #616060;
    margin: 0;
}

.course-link {
    color: #e36129;
    font-size: 24px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    top: -3px;
}

.btn-load-more {
    background: #f98d13;
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 32px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: background 0.3s;
}

.btn-load-more:hover {
    background: #e36129;
}

/* Banner Ad */
.banner-ad {
    width: 100%;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent !important;
    background-color: transparent !important;
}

.banner-ad picture {
    width: 100%;
    max-width: 1300px;
    height: 100%;
    display: block; /* ensure picture fills container */
    margin: 0 auto;
}

.banner-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-ad-slider {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.banner-ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner-ad-slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Footer */
.footer {
    background: #f4f4f4;
    padding: 58px 0 25px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 16px;
}

.footer-logo {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo img {
    width: 140.174px;
    height: 89.143px;
    margin-left: -20px;
    flex-shrink: 0;
}

.footer-logo h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2a2a2a;
    line-height: 1.37;
    margin: 0;
}

.footer-section-contact {
    order: 2;
}

.footer-section-social {
    order: 3;
}

.footer-bottom {
    text-align: right;
}

.copyright {
    font-size: 10px;
    color: #616060;
    line-height: 1.37;
    margin: 0;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 12px;
    color: #616060;
    line-height: 1.72;
    margin: 0 0 8px 0;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-section strong {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.3s;
    position: relative;
    padding: 8px;
}

.social-link:hover {
    opacity: 0.8;
}

.social-facebook {
    background-color: #3b5998;
}

.social-twitter {
    background-color: #000000;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-wrapper {
        gap: 40px;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .search-box {
        width: 380px;
    }
}

@media (max-width: 1100px) {
    .hero-wrapper {
        gap: 20px;
        padding: 0 40px;
    }
    
    .hero-content {
        margin-left: 20px;
    }
    
    .hero-title {
        font-size: 42px;
        max-width: 400px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .search-box {
        width: 360px;
    }
    
    .hero-image {
        width: 400px;
        height: 600px;
    }
}

@media (max-width: 1000px) {
    body {
        padding-top: 64px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Hero Banner Mobile */
    .hero-banner {
        height: 850px;
        margin-top: 0;
        align-items: flex-start;
    }
    
    .hero-wrapper {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 24px 26px 120px;
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .hero-arc {
        left: -100px;
        top: -60px;
        width: 400px;
        height: 718px;
    }
    
    .hero-circle {
        right: 0;
        top: 140px;
        width: 250px;
        height: 494px;
    }
    
    .hero-content {
        position: static;
        max-width: 100%;
        margin-top: -100px;
        margin-right: 0;
        z-index: 3;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 1.125;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 24px;
        line-height: 1.31;
        max-width: 100%;
    }
    
    .search-box {
        position: absolute;
        left: 50%;
        bottom: 80px;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 400px;
        margin: 0;
        z-index: 4;
    }
    
    .hero-image {
        position: absolute;
        left: auto;
        right: 0;
        top: 80px;
        width: 501px;
        height: 751px;
        margin-top: 0;
    }
    
    .hero-stats {
        height: 124px;
        flex-wrap: wrap;
        padding: 20px;
        gap: 20px;
    }
    
    .stat-item {
        width: calc(50% - 10px);
        justify-content: flex-start;
    }
    
    /* Intro Section Mobile */
    .intro-section {
        padding: 45px 0;
    }
    
    .intro-section .container {
        padding: 0 16px;
    }
    
    .intro-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .intro-cards-image {
        width: 100%;
        max-width: 400px;
    }
    
    .intro-cards {
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(2, auto);
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .intro-card {
        border-radius: 10px;
    }
    
    .intro-card span {
        font-size: 11px;
        top: 10px;
        right: 10px;
    }
    
    .card-students {
        height: 138px;
        width: 107px;
        grid-column: 2;
        grid-row: 1;
    }
    
    .card-workers {
        height: 138px;
        width: 108px;
        grid-column: 1;
        grid-row: 1;
    }
    
    .card-pupils {
        height: 243px;
        width: 108px;
        grid-column: 3;
        grid-row: 1 / 3;
    }
    
    .card-elderly {
        height: 93px;
        width: 226px;
        grid-column: 1 / 3;
        grid-row: 2;
    }
    
    .intro-text h2 {
        font-size: 32px;
    }
    
    .intro-text p {
        font-size: 22px;
    }
    
    /* Course Types Mobile */
    .course-types {
        padding: 78px 0;
    }
    
    .type-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    /* Registration Banner Mobile */
    .registration-banner {
        height: 550px;
        padding: 0 34px;
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .banner-image {
        position: absolute;
        right: 0;
        left: auto;
        top: 318px;
        width: 329px;
        height: 305px;
    }


    .banner-arc-1 {
        position: absolute;
        right: 0;
        top: 250px;
        width: 347.589px;
        height: 521px;
    }
    
    .banner-content {
        margin-left: -90px;
        margin-top: 0;
        width: 200%;
    }
    
    .banner-badge {
        font-size: 24px;
        padding: 12px 24px;
        margin-bottom: 20px;
    }
    
    .banner-content h2 {
        font-family: 'Noto Sans Thai', sans-serif;
        font-size: 32px;
        line-height: 1.45;
    }
    
    .banner-content p {
        font-family: 'Noto Sans Thai', sans-serif;
        font-size: 24px;
        max-width: 100%;
    }
    
    /* Courses Section Mobile */
    .courses-section {
        padding: 72px 0 80px;
    }
    
    .section-title {
        font-size: 32px;
        padding: 0 14px;
    }
    
    .section-subtitle {
        font-size: 28px;
        padding: 0 14px;
    }
    
    .section-description {
        font-size: 22px;
        padding: 0 14px;
        max-width: 100%;
    }
    
    .course-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0;
        padding: 0 16px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid #ddd;
        align-items: stretch;
        max-width: 100%;
    }
    
    .course-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
		font-family: 'Noto Sans Thai', sans-serif;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        padding: 12px 16px 16px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 4px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: 4px solid #e36129;
    }
    
    .courses-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding: 0 21px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .courses-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .course-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    
    .btn-load-more {
        font-size: 14px;
        padding: 12px 24px;
        height: 40px;
    }
    
    /* Banner Ad Mobile */
    .banner-ad {
        height: 362px !important; /* +100px per request */
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        line-height: 0;
    }
    
    .banner-ad picture {
        width: 100%;
        max-width: 1300px;
        height: 100%;
        display: block; /* ensure picture fills container */
        margin: 0 auto;
    }

    .banner-ad img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0;
        padding: 0;
    }

    .banner-ad-slider {
        width: 100%;
        max-width: 1300px;
        height: 100%;
        margin: 0 auto;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 24px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 21px;
    }
    
    .footer-logo h4 {
        font-size: 20px;
    }
    
    .footer-section {
        text-align: left;
    }
}

