/* Course Detail Desktop CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai Looped', 'Noto Sans Thai', sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    line-height: 1.6;
    top: 0px;
}

/* Headers use Noto Sans Thai (sharp, clean) */
h1, h2, h3, h4, h5, h6,
.course-title,
.section-title,
.instructor-card h3,
.footer-logo h4,
.footer-section h3 {
    font-family: 'Noto Sans Thai', sans-serif;
}

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


.lang-inactive:hover {
    color: #e36129;
}

.notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.notification:hover {
    opacity: 0.8;
}

.notification img {
    width: 32px;
    height: 32px;
    display: block;
}

.notification .badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ff2727;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 12px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(255, 39, 39, 0.3);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.user-menu:hover {
    opacity: 0.8;
}

.user-menu img:first-child {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s;
}

.user-menu:hover img:first-child {
    border-color: #e36129;
}

.user-menu .dropdown-icon {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.3s;
}

.user-menu:hover .dropdown-icon {
    transform: translateY(2px);
}

/* Course Banner */
.course-banner {
    background: #d7d7d7;
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    height: 420px;
}

.banner-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Course Details */
.course-details-content {
    padding: 56px 0 80px;
}

.course-badge {
    display: inline-block;
    background: #e46129;
    color: white;
    padding: 9.4px 22.9px;
    border-radius: 7px;
    font-size: 18.85px;
    font-weight: 600;
    margin-bottom: 24px;
}

.course-badge.badge-orange {
    background: #E46129;
}

.course-badge.badge-green {
    background: #134F45;
}

.course-badge.badge-yellow {
    background: #EAAB00;
}

.course-title {
    font-size: 32px;
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    gap: 60px;
    margin-bottom: 32px;
}

.course-detail-header {
    margin-bottom: 24px;
}

.course-detail-main {
    margin-bottom: 20px;
}

.course-detail-register {
    display: none;
}

@media (min-width: 1000px) {
    .course-detail-register {
        display: block;
        float: right;
        margin-left: 40px;
        margin-bottom: 32px;
        position: relative;
        z-index: 10;
    }
}

.course-detail-register-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 32px;
    margin-bottom: 32px;
}

.course-detail-register-mobile .register-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
}

.course-detail-register-mobile .register-date {
    display: none;
}

@media (min-width: 1000px) {
    .course-detail-register-mobile {
        display: none;
    }
}

@media (max-width: 999px) {
    .course-detail-header {
        margin-bottom: 32px;
    }

    .course-detail-main {
        width: 100%;
    }
}

.register-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 360px;
    position: relative;
    z-index: 5;
    width: 100%;
    margin-bottom: 20px;
}

.register-title {
    font-size: 24px;
    font-weight: 600;
    color: #e46129;
    margin: 0 0 8px 0;
    line-height: 1.45;
}

.register-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b3b3b;
    font-size: 16px;
    margin-bottom: 16px;
}

.register-date img {
    width: 18px;
    height: 18px;
}

.register-divider {
    border-top: 1px solid #d3d3d3;
    margin: 12px 0;
}

.register-fee {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 8px;
}

.register-fee-label {
    color: #3b3b3b;
    font-size: 13.5px;
    font-weight: 500;
}

.register-fee-value {
    font-size: 42px;
    font-weight: 600;
    color: #3b3b3b;
    line-height: 1.2;
}

.register-open {
    color: #f00000;
    font-size: 16.5px;
    margin: 8px 0 16px;
}

.register-progress {
    margin-bottom: 16px;
}

.register-progress-meta {
    display: flex;
    justify-content: space-between;
    color: #525252;
    font-size: 13.5px;
    margin-bottom: 10px;
}

.register-progress-bar {
    background: #ffeae1;
    height: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.register-progress-bar span {
    display: block;
    height: 100%;
    background: #e46129;
    border-radius: 12px;
}

.register-option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 16px;
}

.register-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    color: #3b3b3b;
    font-size: 18px;
    line-height: 1.6;
}

.register-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-radio {
    width: 18.5px;
    height: 18.5px;
    border-radius: 10px;
    border: 1.85px solid #0a7aff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.register-radio::after {
    content: "";
    width: 9.25px;
    height: 9.25px;
    background: #0a7aff;
    border-radius: 5px;
    opacity: 0;
}

.register-option input:checked + .register-radio::after {
    opacity: 1;
}

.register-option-text {
    flex: 1;
}

.register-option-price {
    color: #296fc1;
    font-weight: 600;
    font-size: 18px;
}

.register-option-price.is-free {
    color: #04971d;
}

.register-option.is-muted {
    opacity: 0.25;
    pointer-events: none;
}

.register-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.register-action {
    flex: 1;
    width: 100%;
    height: 42px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #f98d13;
    background: #ffffff;
    color: #f98d13;
    cursor: pointer;
}

.register-action.primary {
    background: #f98d13;
    color: #ffffff;
    border-color: #f98d13;
}

.register-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-note {
    font-size: 13.5px;
    color: #525252;
    margin: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #616060;
}

.meta-item img {
    width: 24px;
    height: 24px;
}

.course-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #e36129;
    margin-bottom: 32px;
}

.section-content {
    font-size: 14px;
    color: #616060;
    line-height: 180%; /* 25.2px */
}

.section-content p {
    margin-bottom: 16px;
}

.section-content ul {
    margin-left: 21px;
    margin-bottom: 16px;
}

.section-content li {
    margin-bottom: 8px;
}

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

/* Lesson Plan */
.lesson-plan-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.lesson-plan-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
    padding: 16px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    min-height: 0;
}

.lesson-plan-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e8;
}

.lesson-plan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lesson-plan-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lesson-plan-title {
    font-size: 15px;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0;
    line-height: 1.5;
}

.lesson-plan-desc {
    font-size: 14px;
    color: #616060;
    margin: 0;
    line-height: 1.7;
}

.lesson-plan-detail {
    font-size: 13px;
    color: #999;
    margin: 0;
    line-height: 1.7;
}

/* Instructors */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.instructor-card {
    text-align: left;
}

.instructor-photo {
    width: 188px;
    height: 228px;
    background: #cecece;
    border-radius: 16px;
    overflow: hidden;
	margin: 0 0 16px 0;
}

.instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #616060;
    margin-bottom: 8px;
	line-height: 1.4;
}

.instructor-card p {
    font-size: 14px;
    color: #616060;
	line-height: 1.3;
}

/* Footer (match index.html styles) */
.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 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

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

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

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

.footer-section p {
    font-size: 12px;
    color: #616060;
    line-height: 1.72;
    margin: 0 0 8px 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; }

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .notification img {
        width: 28px;
        height: 28px;
    }
    
    .notification .badge {
        font-size: 9px;
        font-weight: 700;
        padding: 1px 4px;
        min-width: 16px;
        height: 16px;
        top: -3px;
        right: -5px;
        box-shadow: 0 1px 3px rgba(255, 39, 39, 0.3);
    }
    
    .user-menu img:first-child {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }
    
    .user-menu .dropdown-icon {
        width: 14px;
        height: 14px;
    }
    
    /* Course Banner Mobile */
    .course-banner {
        margin-top: 64px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .banner-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Course Details Mobile */
    .course-details-content {
        padding: 32px 0;
    }
    
    .course-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .course-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 12px;
    }

    .course-detail-header {
        margin-bottom: 32px;
    }

    .register-card {
        max-width: none;
    }

    .register-actions {
        flex-direction: column;
    }
    
    .meta-item {
        font-size: 14px;
    }
    
    .meta-item img {
        width: 18px;
        height: 18px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .section-content {
        font-size: 16px;
    }
    
    .section-content p,
    .section-content ul {
        font-size: 16px;
    }

    /* Lesson Plan Mobile */
    .lesson-plan-item {
        grid-template-columns: 140px 1fr;
        gap: 14px;
        padding: 12px;
    }
    
    /* Instructors Grid Mobile - Horizontal Scroll */
    .instructors-grid {
        display: flex;
        grid-template-columns: none;
        gap: 32px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding-bottom: 20px;
    }
    
    /* Hide scrollbar for Chrome/Safari */
    .instructors-grid::-webkit-scrollbar {
        display: none;
    }
    
    .instructor-card {
        flex: 0 0 auto;
        min-width: 188px;
    }
    
    .instructor-photo {
        width: 188px;
        height: 228px;
        margin: 0 0 16px 0;
    }
    
    .instructor-card h3 {
        font-size: 16px;
    }
    
    .instructor-card p {
        font-size: 14px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 24px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: left;
        grid-template-columns: 1fr;
        display: flex;
    }
    
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-logo img {
        width: 115.333px;
        height: 73.346px;
        margin: 0 0 0px -20px;
    }
    
    .footer-logo h4 {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.37;
        color: #2a2a2a;
        text-align: left;
        margin: 0;
        letter-spacing: -0.1px;
    }
    
    .footer-section-contact {
        order: 1;
    }
    
    .footer-section h3 {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.31;
        color: #2a2a2a;
        margin-bottom: 14px;
        letter-spacing: -0.09px;
    }
    
    .footer-section p {
        font-size: 12px;
        line-height: 1.72;
        color: #616060;
        letter-spacing: -0.06px;
    }
    
    .footer-section-social {
        order: 2;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .copyright {
        font-size: 10px;
        line-height: 1.37;
        letter-spacing: -0.05px;
    }
}
