/* ================================================================ */
/* MULTIMEDIA TRU WEBSITE - ORGANIZED CSS STYLES                   */
/* ================================================================ */

/* ================================================================ */
/* 1. BASE STYLES & RESET                                          */
/* ================================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5vh;
}

body {
    font-family: 'Kanit', Arial, sans-serif;
    background-color: #000000;
    min-height: 100vh;
}

/* ================================================================ */
/* 2. GENERAL ELEMENTS                                              */
/* ================================================================ */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

button {
    font-family: 'Kanit', Arial, sans-serif;
}

/* ================================================================ */
/* 3. LAYOUT COMPONENTS                                             */
/* ================================================================ */

/* Banner and Content Wrapper */
.banner {
    margin-top: 0.5vh;
    width: 100%;
    height: 700px;
    background-color: #0f0f0f;
    padding: 4vw 0; 
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px; 
    overflow: hidden;
}

.content-wrapper {
    width: 90%;
    max-width: 1600px;
    min-width: 300px; 
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    position: relative;
    align-items: flex-start;
}

/* Spacers */
.spacer {
    height: 50px;
    background-color: #0f0f0f;
}

.spacer-large {
    height: 200px;
    background-color: #0f0f0f;
}

.spacer-top {
    height: clamp(60px, 10vw, 100px);
    background-color: #0f0f0f;
}

.line_head {
    height: 10px;
    background-color: #ff0404;
}

/* ================================================================ */
/* 4. HEADER & NAVIGATION                                           */  
/* ================================================================ */

/* Header Section */
.head_section {
    height: 22dvh;
    background-color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.head_section div {
    color: #ffffff;
    font-size: 3vw;
}

/* Top Fixed Navigation */
.top-fixed-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 9999;
    pointer-events: none;
}

.top-fixed-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.top-fixed-image .menu_bar {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-1.64deg);
    text-align: center;
    z-index: 10000;
    width: 90%;
    pointer-events: auto;
    padding: 20px;
    border-radius: 10px;
}

.top-fixed-image .menu_bar div {
    position: absolute;
    font-size: 1.6vw;
    color: #000000;
}

.top-fixed-image .menu_bar div:first-child { left: 5%; }
.top-fixed-image .menu_bar div:nth-child(2) { right: 39%; }
.top-fixed-image .menu_bar div:nth-child(3) { right: 28%; }
.top-fixed-image .menu_bar div:nth-child(4) { right: 18%; }
.top-fixed-image .menu_bar div:nth-child(5) { right: 7%; }
.top-fixed-image .menu_bar div:nth-child(6) { left: 10%; }

.top-fixed-image .menu_bar img:first-child {
    width: clamp(10vw, 10vw, 100vw);
    height: auto;
    max-width: 28%;
    min-width: 15%;
}

/* Menu bar links animation */
.top-fixed-image .menu_bar div a {
    color: #000000;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
    position: relative;
}

.top-fixed-image .menu_bar div a:hover {
    /* transform: translateY(8px); */
    transform: translate(7px, 2px);
    color: #ffffff76;
} */

/* Mobile Tab - Hidden by default, shown on mobile via @media */
.tab_mobile {
    display: none;
}

/* Hamburger - Hidden by default, shown on mobile via @media */
.hamburger {
    display: none;
}


.objective-text {
    text-align: center;
    margin: 2vw auto;
    max-width: 100%;
    display: block;
    position: relative;
}

.objective-text div{
    text-align: center;
    color: white;
    font-size: clamp(18px, 2vw, 32px);
    margin: 50px;
}

/* Desktop: Force hide mobile elements */
@media (min-width: 769px) {
    .tab_mobile,
    .tab_mobile .tab,
    .tab_mobile .tab img,
    .tab_mobile .icon,
    .tab_mobile .icon img {
        display: none !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* ================================================================ */
/* 5. MOBILE NAVIGATION                                             */
/* ================================================================ */

/* Mobile Menu */
.menu_mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    transition: left 0.3s ease;
    z-index: 9999;
    padding-top: 80px;
}

.menu_mobile.active {
    left: 0;
}

.mobile_nav_items {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.nav_item {
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav_item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.nav_item a {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    display: block;
}

/* Hamburger Button */
.hamburger {
    position: fixed;
    top: 80px;
    right: 5%;
    cursor: pointer;
    z-index: 99999;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: white;
    transform: scale(1.05);
}

.hamburger .material-symbols-outlined {
    font-size: 28px;
    color: #333;
    transition: all 0.3s ease;
}

.hamburger.active .material-symbols-outlined {
    transform: rotate(90deg);
}

/* ================================================================ */
/* 6. BANNER SECTIONS                                               */
/* ================================================================ */

/* Main Banner Head */
.banner_head {
    margin-top: 6%;
    width: 100%;
    background-color: #333;
    padding: 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner_head img {
    width: 100%;
    min-height: 55vh;
    min-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}

/* Banner Text Overlay */
.text_top_head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    pointer-events: none;
}

.banner_head .text_top_head {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: white;
    z-index: 10;
    width: 90%;
    pointer-events: none;
}

.banner_head .text_top_head div:first-child {
    font-size: clamp(18px, 2.5vw, 32px);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner_head .text_top_head div:nth-child(2) {
    font-size: clamp(30px, 3.5vw, 60px);
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner_head .text_top_head div:nth-child(3) {
    font-size: clamp(16px, 2vw, 28px);
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Banner Button */
.banner_head .text_top_head .btn {
    margin: 14px auto 0 auto;
    pointer-events: auto;
}

.banner_head .text_top_head .btn a {
    text-decoration: none;
    pointer-events: auto;
}

.banner_head .text_top_head .btn button {
    width: 160px;
    height: 50px;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 13pt;
    border: none;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    min-width: 80px;
    cursor: pointer;
    pointer-events: auto;
}

.banner_head .text_top_head .btn button:hover {
    background-color: #cc0000;
}

/* Image & Text Sections */
.image-section {
    flex: 1 1 50%; 
    position: relative;
    align-self: flex-start;
}

.image-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    z-index: 2;
}

.text-section {
    flex: 1 1 45%; 
    padding-left: 20px;
    text-align: right;
    min-width: 300px; 
    display: flex;
    flex-direction: column;
}

/* Image Section Text Overlay */
.image-section .text_top_head {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    pointer-events: none;
    background-color: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 10px;
}

.image-section .text_top_head div:first-child {
    font-size: clamp(16px, 2.5vw, 32px);
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.image-section .text_top_head div:nth-child(2) {
    font-size: clamp(14px, 2vw, 28px);
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.image-section .text_top_head div:last-child {
    font-size: clamp(12px, 1.5vw, 24px);
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Banner Layout Variations */
.banner_left .text-section {
    order: 1;
    text-align: left;
    padding-right: 20px;
    padding-left: 0;
    align-items: center;
    justify-content: flex-start;
    display: block;
}

.banner_left .content-wrapper {
    align-items: center;
}

.banner_left .image-section {
    order: 2;
    padding-left: 20px;
}

.banner_right .content-wrapper {
    align-items: center;
}

.banner_right .image-section {
    order: 1;
    padding-right: 20px;
    padding-left: 0;
    margin-left: -5%;
    position: relative;
    z-index: 10;
}

.banner_right .text-section {
    order: 2;
    text-align: right;
    padding-left: 20px;
    align-items: flex-end;
    position: relative;
    z-index: 10;
}

/* ================================================================ */
/* 7. TYPOGRAPHY                                                    */
/* ================================================================ */
.title-th {
    font-size: clamp(28px, 2.8vw, 72px);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5vw;
    color: #ff0000;
}

.title-en {
    font-size: clamp(20px, 3.5vw, 60px);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1.5vw;
    color: #ff0000;
}

.detail-text {
    font-size: clamp(18px, 1.4vw, 42px);
    color: #ffffff; 
    line-height: 1.6;
    font-weight: 300;
    margin-top: 0;
}

/* ================================================================ */
/* 8. ABOUT SECTION                                                 */
/* ================================================================ */
.about-content {
    background-color: #0f0f0f;
    width: 100%;
    margin: 0;
    padding: 2vw 0;
}

.about-paragraph {
    /* width: 70%; */
    background-color: none;
    max-width: 1200px;
    color: #ffffff;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(16px, 2vw, 26px);
    line-height: 1.6;
    margin: 0 auto 1.5vw auto;
    padding: 1vw 2vw;
    text-align: center;
}

.about-paragraph:last-child {
    padding-bottom: 2vw;
}

/* ================================================================ */
/* 9. COURSE SECTION                                                */
/* ================================================================ */

.course-subtitle-before {
    margin-bottom: 50px;
    color: white;
    text-align: center;
    font-size: clamp(16px, 2vw, 26px);
    font-family: 'Athiti';
    justify-content: center;
    align-items: center;
    position: relative;
}



.course-subtitle-before div {
    width: 70%;
    margin: 0 auto;
    min-width: 300px; 
    display: flex;
    flex-direction: column;
}

.course-content {
    background-color: #000000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2vw 8vw;
}

.course-section {
    margin-bottom: 4vw;
}

.course-title {
    color: #ff0000;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: bold;
    margin-bottom: 2vw;
    text-align: center;
}

.credit-info {
    color: #ffffff;
    font-weight: normal;
    font-size: clamp(18px, 2vw, 26px);
}

.width-obj {
    width: 70%;
}

.obj-head {
    align-items: center;
    /* width: 0%; */
    margin: 0 auto;
    margin-top: 52px;
    font-size: 3pc;
    /* border: 2px solid #ff0000; */
    /* border-radius: 10px; */
    overflow: hidden;
    /* background-color: #ff0000; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); */
    position: relative;
    display: block;
    color: red;
}
.obj-paragraph {
    font-size: clamp(17px, 1.8vw, 26px);
    /* margin-top: 5%; */
    /* margin-bottom: 5%; */
}


/* Course Tables */
.course-table {
    border: 2px solid #ff0000;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.table-header {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr 1.8fr;
    background-color: #ff0000;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Athiti', sans-serif;
}

.table-header > div {
    padding: 16px 12px;
    text-align: center;
    font-size: clamp(15.4px, 1.65vw, 19.8px);
    border-right: 2px solid #ffffff;
}

.table-header > div:last-child {
    border-right: none;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr 1.8fr;
    border-bottom: 1px solid #444;
    color: #ffffff;
    font-family: 'Athiti', sans-serif;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row > div {
    padding: 14px 12px;
    font-size: clamp(15.4px, 1.54vw, 17.6px);
    border-right: 1px solid #444;
}

.table-row > div:last-child {
    border-right: none;
}

/* Table Column Styles */
.col-code {
    text-align: center;
    font-weight: bold;
    color: #ff0000;
}

.col-name {
    text-align: left;
    padding-left: 16px !important;
    padding-right: 8px !important;
}

.col-credit {
    text-align: center;
    font-weight: bold;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.credit-detail {
    font-size: clamp(13.2px, 1.32vw, 15.4px);
    font-weight: normal;
}

/* Major Section */
.major-section {
    margin-bottom: 4vw;
}

.major-title {
    color: #ff0000;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: bold;
    margin-bottom: 3vw;
    text-align: center;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 1vw;
}

.major-credit {
    color: #ffffff;
    font-weight: normal;
    font-size: clamp(22px, 2.2vw, 32px);
}

.course-note {
    color: #cccccc;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.6;
    margin-bottom: 2vw;
    padding: 1vw;
    background-color: #2a2a2a;
    border-left: 4px solid #ff0000;
    border-radius: 4px;
}

.before-cw {
    margin-top: 8dvh;
}

.plan-section {
    margin-bottom: 2vw;
}

.plan-title {
    color: #ff0000;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: bold;
    margin-bottom: 1vw;
    text-align: left;
}

.icon-red {
    width: 240px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ================================================================ */
/* 10. CONTACT SECTION                                              */
/* ================================================================ */
.contact-content {
    background-color: #000000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4vw 2vw;
}

.contact-section {
    margin-bottom: 2vw;
}

.contact-intro {
    text-align: center;
    margin-bottom: 4vw;
}

.contact-intro h3 {
    color: #ff0000;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: bold;
    margin-bottom: 1vw;
}

.contact-intro p {
    color: #cccccc;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 1.6;
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    margin-bottom: 5vw;
}

.contact-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 2.5vw;
    display: flex;
    align-items: center;
    gap: 1.5vw;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.facebook-card:hover {
    border-color: #1877F2;
}

.email-card:hover {
    border-color: #EA4335;
}

.contact-icon {
    color: white;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-info h4 {
    color: #ffffff;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: bold;
    margin-bottom: 0.5vw;
}

.contact-info p {
    color: #cccccc;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    margin-bottom: 1vw;
}

/* Contact Buttons */
.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: bold;
    transition: all 0.3s ease;
    color: #ffffff;
}

.facebook-btn {
    background: linear-gradient(45deg, #1877F2, #42A5F5);
}

.facebook-btn:hover {
    background: linear-gradient(45deg, #166FE5, #1976D2);
    transform: scale(1.05);
}

.email-btn {
    background: linear-gradient(45deg, #EA4335, #FF7043);
}

.email-btn:hover {
    background: linear-gradient(45deg, #D73502, #F4511E);
    transform: scale(1.05);
}

/* Contact Form */
.contact-form-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 3vw;
    margin-bottom: 4vw;
    border: 1px solid #333;
}

.contact-form-section h3 {
    color: #ff0000;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: bold;
    margin-bottom: 2vw;
    text-align: center;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    margin-bottom: 2vw;
}

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

.form-group label {
    color: #ffffff;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: bold;
    margin-bottom: 0.5vw;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: #333;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(14px, 1.4vw, 16px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #ff0000, #ff4444);
    border: none;
    border-radius: 10px;
    padding: 16px 40px;
    color: #ffffff;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2vw auto 0;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #e60000, #ff3333);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

/* Additional Info Cards */
.additional-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
}

.info-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 2vw;
    text-align: center;
    border: 1px solid #333;
}

.info-card h4 {
    color: #ff0000;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: bold;
    margin-bottom: 1vw;
}

.info-card p {
    color: #cccccc;
    font-family: 'Athiti', sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.6;
}

/* ================================================================ */
/* 11. MOBILE RESPONSIVE STYLES                                    */
/* ================================================================ */
@media (max-width: 768px) {
    /* Hide Desktop Elements */
    .top-fixed-image {
        display: none;
    }
    
    /* Show Mobile Elements */
    .tab_mobile {
        display: block !important;
        position: fixed;
        text-align: center;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
    }
    
    .hamburger {
        display: flex !important;
    }

    /* Mobile Tab Styling */
    .tab_mobile .tab {
        display: block !important;
        z-index: 1;
        position: relative;
        top: 0;
    }

    .tab_mobile .tab img {
        display: block !important;
        height: 80px;
        z-index: 1;
        position: relative;
    }

    .tab_mobile .icon {
        display: flex !important;
        z-index: 10001;
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        pointer-events: auto;
    }

    .tab_mobile .icon img {
        display: block !important;
        width: 42px;
        height: 42px;
        object-fit: contain;
        z-index: 10002;
        position: relative;
    }

    /* Mobile Layout Adjustments */
    .content-wrapper {
        flex-direction: column; 
        align-items: center;
    }

    .image-section, .text-section {
        flex: 1 1 100%; 
        width: 100%;
    }

    .image-section {
        order: 1 !important;
        margin-bottom: 5vw;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    .text-section {
        order: 2 !important;
        padding: 0 5vw; 
        text-align: center !important; 
        align-items: center !important; 
        margin-top: 0 !important;
    }
    
    /* Mobile Typography */
    .title-th, .title-en {
        font-size: 5vw;
    }

    /* Mobile Banner Head */
    .banner_head {
        padding: 0px 0;
        top: 38px;
    }

    .banner_head img {
        width: 100;
        height: 75vh;
    }

    .banner_head .text_top_head {
        top: 82%;
    }

    .banner_head .text_top_head div {
        color: #ff0000;
        font-size: 20px;
    }

    .banner_head .text_top_head div:first-child {
        font-size: 22px;
        font-weight: 500px;
        margin-bottom: 10px;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0);
    }

    .banner_head .text_top_head div:nth-child(2) {
        font-size: clamp(30px, 3.5vw, 60px);
        margin-bottom: 10px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0);
    }

    .banner_head .text_top_head div:nth-child(3) {
        font-size: 18px;
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0);
    }

    /* Mobile Header */
    .head_section {
        height: 100px;
        background-color: rgb(0, 0, 0);
        box-shadow: #0f0f0f;
    }

    .head_section div {
        color: #ffffff;
        font-size: 22px;
        display: block;
        text-align: center;
        width: 100%;
    }

    .line_head {
        height: 45px;
        background-color: #ff0000;
    }

    .spacer-top {
        height: clamp(30px, 5vw, 60px);
    }

    /* Mobile About Section */
    .about-content {
        padding: 15px;
        background-color: #0f0f0f;
        margin: 0;
        max-width: 100%;
    }

    .about-paragraph {
        color: #ffffff;
        font-family: 'Athiti', sans-serif;
        font-size: clamp(16px, 4vw, 20px);
        line-height: 1.5;
        margin-bottom: 15px;
        padding: 5px 0;
        text-align: center;
        max-width: 100%;
    }

    .about-paragraph:last-child {
        padding-bottom: 15px;
    }

    /* Mobile Course Section */
    .course-content {
        padding: 15px;
        background-color: #000000;
        margin: 0;
        max-width: 100%;
    }

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

    .course-title {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    .credit-info {
        font-size: 16px;
        display: block;
        margin-top: 5px;
    }

    /* Mobile Tables */
    .table-header {
        grid-template-columns: 1.2fr 2.3fr 1.2fr;
        font-size: 14px;
    }

    .table-header > div {
        padding: 12px 6px;
        font-size: 13.2px;
        border-right: 1px solid #ffffff;
    }

    .table-row {
        grid-template-columns: 1.2fr 2.3fr 1.2fr;
    }

    .table-row > div {
        padding: 10px 6px;
        font-size: 13.2px;
        border-right: 1px solid #444;
    }

    .col-name {
        padding-left: 10px !important;
        padding-right: 4px !important;
    }

    .col-credit {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .credit-detail {
        font-size: 11px;
    }

    /* Mobile Major Section */
    .major-title {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
        padding-bottom: 10px;
    }

    .major-credit {
        font-size: 18px;
        display: block;
        margin-top: 5px;
    }

    .course-note {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 10px;
    }

    .plan-title {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }

    /* Mobile Contact Section */
    .contact-content {
        padding: 20px 15px;
        background-color: #000000;
        margin: 0;
        max-width: 100%;
    }

    .contact-intro h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .contact-intro p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-info h4 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .contact-info p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-form-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .contact-form-section h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
    }

    .additional-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .info-card p {
        font-size: 14px;
    }

    .col-code-head {
        color: #ffffff
    }

    .icon-red {
        width: 160px;
        margin-top: 10px;
        margin-bottom: 20px;
    }
}

/* ================================================================ */
/* 12. VIDEO GALLERY SECTION                                       */
/* ================================================================ */

.video-gallery-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding-top: 30px;
    padding-bottom: clamp(30px, 5vw, 80px);
    min-height: 100vh;
}

.video-gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
}

/* Section Header */
.video-gallery-section .section-header {
    text-align: center;
    margin-top: 20px;;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.video-gallery-section .container .section-header h4 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #ffffff;
    margin-top: 0px;
    font-weight: 400;
    background: red;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-gallery-section .section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Filters */
.video-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 15px);
    margin-bottom: clamp(30px, 5vw, 50px);
}

.filter-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    color: #ffffff;
    border: 2px solid transparent;
    padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 25px);
    border-radius: 25px;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn .icon {
    font-family: 'Material Symbols Outlined';
    font-size: 1.2rem;
    display: none;
    color: #ffffff;
}

.filter-btn .text {
    display: inline;
}

.filter-btn:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-color: red;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.3);
}

.filter-btn.active {
    background: red;
    /* border-color: #ff6b6b; */
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-bottom: clamp(40px, 6vw, 60px);
}

.video-item {
    background: linear-gradient(145deg, #1e1e1e, #0e0e0e);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border-color: red;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Smooth transition for iframe replacement */
.video-container iframe.replacing {
    opacity: 0;
}

.video-item:hover .video-container iframe {
    transform: scale(1.05);
}

/* Video Thumbnail (สำหรับภาพปก) */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Video Thumbnail Iframe (สำหรับภาพปกจาก Google Drive) */
.video-thumbnail-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* ป้องกันการคลิกที่ iframe */
}

.video-item:hover .video-thumbnail-iframe iframe {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-item:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 4, 4, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 32px;
    padding-left: 6px; /* ปรับให้สัญลักษณ์ ▶ อยู่ตรงกลาง */
    box-shadow: 0 4px 20px rgba(255, 4, 4, 0.5);
    transition: all 0.3s ease;
    animation: pulse-play 2s infinite;
}

.video-item:hover .play-icon {
    transform: scale(1.2);
    background: rgba(255, 4, 4, 1);
    box-shadow: 0 8px 30px rgba(255, 4, 4, 0.8);
}

@keyframes pulse-play {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 4, 4, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 4, 4, 0.8);
    }
}

/* Video Info */
.video-info {
    padding: clamp(15px, 3vw, 25px);
}

.video-info h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.video-info p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #cccccc;
    margin-bottom: 10px;
    line-height: 1.5;
}

.video-info .student-name {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: red;
    font-weight: 500;
    display: block;
}

/* Load More Button */
.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(30px, 5vw, 50px);
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ee0000, #fb2121);
    color: #ffffff;
    border: none;
    padding: clamp(12px, 2.5vw, 16px) clamp(25px, 4vw, 40px);
    border-radius: 10px;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(205, 110, 78, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(145deg, #ed0404, #fa2525);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(205, 105, 78, 0.5);
}

.refresh-gallery-btn {
    background: linear-gradient(145deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    border: none;
    padding: clamp(12px, 2.5vw, 16px) clamp(20px, 3.5vw, 30px);
    border-radius: 30px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.refresh-gallery-btn:hover {
    background: linear-gradient(145deg, #ee5a24, #e55039);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

/* Hidden Video Items (for filter functionality) */
.video-item.hidden {
    display: none;
}

/* Animation for filter transitions */
.video-item {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .video-gallery-section {
        padding: 40px 0;
    }
    
    .video-info {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-gallery-section .section-header {
        margin-bottom: 30px;
    }
    
    .video-filters {
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .video-filters .filter-btn {
        min-width: 50px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
        position: relative;
    }
    
    /* Hide text and show icons on mobile */
    .video-filters .filter-btn span.text,
    .video-filters .filter-btn .text {
        display: none !important;
    }
    
    .video-filters .filter-btn .icon,
    .video-filters .filter-btn span.icon {
        display: block !important;
        font-family: 'Material Symbols Outlined' !important;
        font-size: 1.4rem !important;
        font-weight: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        -webkit-font-smoothing: antialiased;
        color: #ffffff !important;
        position: relative;
        z-index: 10;
    }
    
    .video-filters .filter-btn.active .icon,
    .video-filters .filter-btn.active span.icon {
        display: block !important;
        color: #ffffff !important;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .head_section{
        height: 80px;   
    }
    .head_section div{
        top: 10px;
        position: relative;
    }

    .icon-red{
        /* margin-bottom: 5px;    */
        width: 100px; 
    }

    .con-icon-red{
        padding-top: 200px;   
        position: relative;
        display: block;
    }   
}

.con-icon-red{
    text-align: center; 
    background-color: #0f0f0f; 
    padding-top: 80px;
}

/* ================================================================ */
/* 13. FOOTER SECTION                                               */
/* ================================================================ */

.website-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-top: 3px solid #ff0000;
    color: white;
    padding: clamp(40px, 6vw, 60px) 0 clamp(20px, 3vw, 30px);
    margin-top: clamp(40px, 6vw, 80px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: clamp(30px, 4vw, 40px);
    margin-bottom: clamp(30px, 4vw, 40px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h5 {
    color: #ff0000;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: clamp(15px, 2vw, 20px);
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.footer-logo {
    text-align: center;
}

.footer-logo h4 {
    color: #ffffff;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    margin: 10px 0 5px 0;
    font-weight: 500;
}

.footer-logo p {
    color: #cccccc;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ff0000;
    transform: translateX(5px);
}

.footer-contact p {
    color: #cccccc;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact p .material-symbols-outlined {
    font-size: 20px;
    color: #ff0404;
}

/* Admin Access Section */
.admin-access {
    text-align: center;
}

.admin-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-decoration: none;
    padding: clamp(20px, 3vw, 25px);
    border-radius: 15px;
    border: 2px solid #34495e;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 100px;
    width: 100%;
    max-width: 200px;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #ff0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.2);
}

.admin-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 8px;
    display: block;
}

.admin-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.admin-desc {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    opacity: 0.8;
    display: block;
    text-align: center;
    line-height: 1.3;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: clamp(20px, 3vw, 25px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-copyright p {
    color: #999;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    background: #1877F2;
    transform: translateY(-2px);
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .admin-btn {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .footer-links a {
        justify-content: center;
    }
}

/* ================================================================ */
/* 14. VIDEO PLAYER PAGE STYLES                                    */
/* ================================================================ */

/* Video Player Page Styles */
.video-player-wrapper {
    background-color: #0f0f0f;
    padding: 120px 20px 40px; /* Add top padding to clear fixed header */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player-container {
    width: 100%;
    max-width: 1100px;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.player-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ซ่อนปุ่ม "เปิดในหน้าต่างใหม่" ของ Google Drive ด้วยโลโก้ - Backup Solution */
.player-frame::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: #ff0404 url('../images/logo_multimedia.png') center center no-repeat;
    background-size: 50px 50px;
    z-index: 10;
    pointer-events: all;
    border-bottom-left-radius: 8px;
    cursor: default;
}

.video-details {
    padding: 25px 30px;
    color: #fff;
    font-family: 'Athiti', sans-serif;
}

.video-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #e0e0e0;
}

.video-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #b0b0b0;
}

.no-videos-message {
    color: #888;
    width: 100%;
    text-align: center;
    padding: 50px 20px;
    font-size: 1.2rem;
    font-family: 'Athiti', sans-serif;
}

@media (max-width: 768px) {
    .video-player-wrapper {
        padding-top: 80px; /* Adjust for mobile header */
    }
    .video-title {
        font-size: 1.8rem;
    }
    .video-description {
        font-size: 1rem;
    }
    .video-details {
        padding: 20px;
    }
}





/* ================================================================ */
/* END OF ORGANIZED CSS                                             */
/* ================================================================ */