/* ====================================== */
/* --- Global Font Scale Control (START) --- */
/* ====================================== */
html {
    /* 1rem = 16px on Desktop (Base Scale) */
    font-size: 16px;
}
@media (max-width: 768px) {
    html {
        /* Reduce scale for tablet/mobile: 1rem = 14px */
        font-size: 14px;
    }
}
@media (max-width: 400px) {
    html {
        /* Further reduce scale for small mobile: 1rem = 12px */
        font-size: 12px;
    }
}

p, li, td, label, span, div { /* Apply base size to common text elements */
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.6;
}

/* --- C. Heading Sizes (Using rem for scalability) --- */
h1 { font-size: 5.8rem; line-height: 1.1; font-weight: bold; } /* Scales based on html font-size */
h2 { font-size: 2.2rem; line-height: 1.2; font-weight: bold; } /* Scales based on html font-size */
h3 { font-size: 1.8rem; line-height: 1.3; font-weight: bold; } /* Scales based on html font-size */
h4 { font-size: 1.5rem; line-height: 1.4; font-weight: bold; } /* Scales based on html font-size */
h5 { font-size: 1.25rem; line-height: 1.4; font-weight: bold; } /* Scales based on html font-size */
h6 { font-size: 1.1rem; line-height: 1.5; font-weight: bold; } /* Scales based on html font-size */

/* --- D. Link Size --- */
a {
    font-size: 1rem; /* Default link size same as body text (1rem) */
    font-weight: 500;
}
/* ====================================== */
/* --- Global Font Scale Control (END) --- */
/* ====================================== */


/* ====================================== */
/* --- Font Definitions (START) --- */
/* ====================================== */
@font-face {
    font-family: 'DB Heavent Cond';
    src: url('../fonts/DB Heavent Cond v3.2.1.ttf') format('truetype');
    font-weight: normal; /* 400 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DB Heavent Cond';
    src: url('../fonts/DB Heavent Cond It v3.2.1.ttf') format('truetype');
    font-weight: normal; /* 400 */
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'DB Heavent Cond';
    src: url('../fonts/DB Heavent Bd Cond v3.2.1.ttf') format('truetype');
    font-weight: bold; /* 700 */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DB Heavent Cond';
    src: url('../fonts/DB Heavent Bd Cond It v3.2.1.ttf') format('truetype');
    font-weight: bold; /* 700 */
    font-style: italic;
    font-display: swap;
}
/* ====================================== */
/* --- Font Definitions (END) --- */
/* ====================================== */


/* ====================================== */
/* --- CSS Variables (START) --- */
/* ====================================== */
:root {
    --primary-color: #2563eb; /* Dark Blue (สีน้ำเงินเข้ม เหมือนคูปองเดิม) */
    --secondary-color: #3b82f6; /* Main Blue (สีน้ำเงินสว่างขึ้น) */
    --border-color: #dee2e6; /* Light Gray Border */
    --text-color: #212529; /* Default Text */
    --text-muted: #6c757d; /* Muted Text Color */
    --bg-light: #f8f9fa; /* Light Background */
    --bg-white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --orange-color: #f97316;
    --orange-hover-color: #ea580c;
    --danger-color: #dc3545;
    --danger-hover-color: #c82333;
}
/* ====================================== */
/* --- CSS Variables (END) --- */
/* ====================================== */


/* ====================================== */
/* --- Basic Reset & Utility (START) --- */
/* ====================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DB Heavent Cond', sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}
a { text-decoration: none; color: #101113; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; transition: color 0.3s ease; }
a:hover { color: #0056b3; }
button { cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; color: inherit; }
body.no-scroll { overflow: hidden; }
.small { font-size: 0.85em; }

/* --- General Button Styles (Extracted/Consolidated) --- */
.btn-primary { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-secondary { background-color: var(--bg-white); color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: #1d4ed8; border-color: #1d4ed8; }
.btn-secondary:hover { background-color: var(--bg-light); }
.btn-sm { padding: 8px 15px; font-size: 0.875rem; border-radius: 6px; }
.btn-sm i { margin-right: 6px; }
.btn-block { display: block; width: 100%; text-align: center; }
/* ====================================== */
/* --- Basic Reset & Utility (END) --- */
/* ====================================== */


/* ======================================= */
/* --- Navbar Styles (START) --- */
/* ======================================= */
.navbar-header { width: 100%; border-bottom: 1px solid var(--border-color); background-color: var(--bg-white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.06); }
.navbar-container { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-group { display: flex; align-items: center; flex-shrink: 0; }
.logo-link { display: flex; align-items: center; color: #2a2a2a; font-weight: 700; font-size: 1.375rem; gap: 8px; }
.logo-link svg.skilllane-logo { fill: var(--secondary-color); width: 30px; height: 30px; }
form.search-box { display: flex; flex-grow: 1; max-width: 450px; border: 1px solid var(--border-color); border-radius: 25px; height: 42px; background-color: var(--bg-light); transition: box-shadow 0.3s, border-color 0.3s; overflow: hidden; }
form.search-box:focus-within { border-color: var(--secondary-color); background-color: var(--bg-white); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
form.search-box input[type="text"] { border: none; padding: 0 20px; font-size: 0.9375rem; flex-grow: 1; outline: none; background-color: transparent; width: 100%; }
form.search-box button.search-icon { padding: 0 15px; display: flex; align-items: center; color: var(--text-muted); flex-shrink: 0; }
.right-menu-group { display: flex; align-items: center; gap: 15px; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { padding: 8px 12px; border-radius: 6px; transition: background-color 0.3s, color 0.5s; letter-spacing: 0.3px; font-size: 1.375rem; font-weight: 600; }
.nav-links a:hover { background-color: #f1f3f5; color: #000; }
.user-actions { display: flex; align-items: center; gap: 5px; border-left: 1px solid #e9ecef; padding-left: 15px; }
.user-actions button { color: #495057; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.user-actions button:hover { background-color: #f1f3f5; }
.profile-icon { display: flex; align-items: center; gap: 4px; }
.desktop-only-menu { display: flex; }
.hamburger-menu { display: none; order: 3; font-size: 24px; color: #343a40; }
@media (max-width: 1200px) { .desktop-only-menu { display: none; } .hamburger-menu { display: block; } form.search-box { flex-grow: 1; max-width: none; } }
@media (max-width: 600px) {
    .navbar-container { padding: 8px 15px; justify-content: space-between; } .logo-group { order: 1; } .logo-link .logo-text { display: none; }
    form.search-box { order: 2; flex-grow: 1; max-width: 100%; height: 38px; background-color: #f1f3f5; border: 1px solid #f1f3f5; border-radius: 20px; margin: 0 10px; }
    form.search-box input { font-size: 0.875rem; padding: 0 15px; }
    form.search-box:focus-within { box-shadow: none; border: 1px solid var(--secondary-color); background-color: var(--bg-white); }
    form.search-box button.search-icon { padding: 0 12px; } .hamburger-menu { order: 3; font-size: 20px; }
}
/* ======================================= */
/* --- Navbar Styles (END) --- */
/* ======================================= */


/* ======================================= */
/* --- Mobile Side Menu (START) --- */
/* ======================================= */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1500; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu-content { position: absolute; right: 0; top: 0; width: 300px; max-width: 80%; height: 100%; background: var(--bg-white); box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); transform: translateX(100%); transition: transform 0.3s ease-out; padding: 20px; display: flex; flex-direction: column; }
.mobile-menu-overlay.open .mobile-menu-content { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; flex-shrink: 0; }
.mobile-login-btn { color: var(--primary-color); font-weight: bold; font-size: 1.8rem; }
.close-menu-btn { font-size: 24px; color: #555; }
.mobile-nav-links { flex-grow: 1; overflow-y: auto; }
.mobile-nav-links a { display: block; padding: 12px 0; font-size: 1.6rem; color: #202020; border-bottom: 1.6px solid #f0f0f0; transition: background-color 0.2s; }
.mobile-nav-links a:hover { background-color: var(--bg-light); }
/* ======================================= */
/* --- Mobile Side Menu (END) --- */
/* ======================================= */


/* ======================================= */
/* --- Owl Carousel Styles (START) --- */
/* ======================================= */
.owl-carousel-wrapper { width: 100%; overflow: hidden; }
.owl-carousel { position: relative; width: 100%; }
.item { line-height: 0; height: 250px; background-color: #eee; }
.item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.owl-theme .owl-nav { margin-top: 0; position: static; }
.owl-theme .owl-nav [class*='owl-'] { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(99, 82, 252, 0.9) !important; color: #333 !important; border-radius: 50% !important; width: 55px; height: 55px; font-size: 20px; display: flex !important; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: all 0.3s ease; margin: 0 !important; padding: 0 !important; z-index: 10; cursor: pointer; }
.owl-theme .owl-nav [class*='owl-']:hover { background: var(--bg-white) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.2); color: #000 !important; }
.owl-theme .owl-nav .owl-prev { left: 25px; } .owl-theme .owl-nav .owl-next { right: 25px; }
.owl-theme .owl-dots { text-align: center; -webkit-tap-highlight-color: transparent; position: absolute; bottom: 15px; left: 0; right: 0; }
.owl-theme .owl-dots .owl-dot { display: inline-block; zoom: 1; }
.owl-theme .owl-dots .owl-dot span { width: 10px; height: 10px; margin: 5px 7px; background: #D6D6D6; display: block; -webkit-backface-visibility: visible; transition: opacity 200ms ease; border-radius: 30px; }
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { background: var(--secondary-color); }
.owl-theme .owl-nav.disabled { display: none; }
/* ======================================= */
/* --- Owl Carousel Styles (END) --- */
/* ======================================= */


/* ======================================= */
/* --- (ถูกลบออก) Hero Section Styles (START) --- */
/* ======================================= */
/* ======================================= */
/* --- (ถูกลบออก) Hero Section Styles (END) --- */
/* ======================================= */


/* ====================================== */
/* --- Course Card Section Styles (START) --- */
/* ====================================== */
.course-section { padding: 60px 0; }
.course-container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.section-header h2 { font-size: 35px; font-weight: 700; margin: 0; }
.view-all-link { color: var(--secondary-color); font-weight: 600; font-size: 1.5rem; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; transition: background-color 0.2s, color 0.2s; white-space: nowrap; flex-shrink: 0; }
.view-all-link:hover { background-color: #f1f3f5; color: var(--primary-color); }
.view-all-link i { font-size: 12px; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.course-card-wrapper { position: relative; }

/* (*** V-GEMINI-FIX: จุดที่ 1 - ลบ 'transform' ออกจาก transition ***) */
.course-card { background-color: var(--bg-white); border: 1px solid #e9ecef; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.3s ease; height: 100%; }

/* (*** V-GEMINI-FIX: จุดที่ 2 - Comment out 'transform' ***) */
.course-card-wrapper:hover .course-card { /* transform: translateY(-8px); */ box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.card-thumbnail { position: relative; line-height: 0; }
.card-thumbnail img { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; display: block; background-color: #eee; }
.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.card-actions .action-btn { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); color: var(--text-color); width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background-color 0.2s, color 0.2s; }
.card-actions .action-btn:hover { background-color: rgba(255, 255, 255, 1); color: #000; }

.card-content { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; min-height: 0; }
.card-content h3 { 
    /* CONVERTED from 30px to 1.875rem. This will now scale automatically. */
    font-size: 1.875rem;
    font-weight: 700; line-height: 1.0; letter-spacing: 0.3px; color: #1c12a3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: calc(1.2em * 2); margin-bottom: -20px; word-break: break-word; white-space: normal; 
}
.card-description.small {
    /* CONVERTED from 20px to 1.25rem. This will now scale automatically. */
    font-size: 1.5rem;
   color: #313131;
    line-height: 1.3;
    margin-bottom: -5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.5em * 2);
    word-break: break-word;
    white-space: normal;
}
.instructor-info { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; flex-shrink: 0; } /* --- (*** แก้ไข: ลบ margin-top: auto; ***) --- */
.instructor-details { display: flex; flex-direction: column; min-width: 0; }
.instructor-name.small { 
    /* CONVERTED from 17px to 1.0625rem. This will now scale automatically. */
    font-size: 1.3rem;
    font-weight: 600; color: #2685e4; white-space: normal; word-break: break-word; 
}
.instructor-specialty.small { 
    /* CONVERTED from 16px to 1rem. This will now scale automatically. */
    font-size: 1rem;
    color: #636363; white-space: normal; word-break: break-word; 
}
.card-footer { padding-top: 0px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f3f5; margin-top: auto; flex-shrink: 0; } /* --- (*** แก้ไข: เปลี่ยน margin-top เป็น auto ***) --- */
.tag { 
    /* CONVERTED from 35px to 2.1875rem. This will now scale automatically. */
    font-size: 2.1875rem;
    font-weight: 600; white-space: nowrap; 
}
.tag.free { color: #009c41; }
.tag.certificate { color: #e20f0f; }
.action-text { font-size: 1.1rem; font-weight: 500; color: #0056b3;}

/* ====================================== */
/* --- (*** START: โค้ดที่เพิ่มใหม่ ***) --- */
/* ====================================== */
.btn-card-buy {
    background-color: var(--primary-color); /* สีน้ำเงินหลักของเว็บ */
    color: #ffffff; /* สีขาว */
    border: none;
    border-radius: 6px;
    padding: 10px 30px; /* ปรับขนาดปุ่มให้พอดี */
    font-size: 1.5rem; /* (ปรับขนาด Font ให้สอดคล้องกับ DB Heavent Cond) */
    font-weight: 600;
    font-family: 'DB Heavent Cond', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1.2; /* (ปรับ line-height) */
    transition: background-color 0.3s ease;
}
.btn-card-buy .fas {
    margin-right: 6px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
    font-size: 0.85em; /* (ปรับขนาดไอคอนเล็กน้อย) */
}
.btn-card-buy:hover {
    background-color: #1d4ed8; /* สี Hover ที่ดึงมาจาก .btn-primary:hover */
}
/* ====================================== */
/* --- (*** END: โค้ดที่เพิ่มใหม่ ***) --- */
/* ====================================== */


/* --- General Responsive Styles --- */
@media (max-width: 768px) {
    .course-section { padding: 40px 0; } .course-container { padding: 0 15px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; } .section-header h2 { font-size: 40px; }
    .course-grid { grid-template-columns: 1fr; gap: 24px; max-width: 400px; margin: 0 auto; }
    .card-content { padding: 12px; } 
    /* The next 4 font sizes are now auto-scaled via the 'html' change, so we only need to define them once here IF the scale is different */
    /* REMOVED hardcoded font-size: 15px for h3 - it scales via 1.875rem */
    .card-content h3 { min-height: calc(0.6em * 2); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: break-word; white-space: normal; }
    /* REMOVED hardcoded font-size: 13px for p - it scales via 1.25rem */
    .card-description.small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: calc(1.5em * 2); margin-bottom: 12px; word-break: break-word; white-space: normal; }
    /* REMOVED hardcoded font-size: 12px for instructor name - it scales via 1.0625rem */
    .instructor-name.small { white-space: normal; word-break: break-word; } 
    /* REMOVED hardcoded font-size: 11px for instructor specialty - it scales via 1rem */
    .instructor-specialty.small { white-space: normal; word-break: break-word; }
    .card-footer { padding-top: 12px; margin-top: auto; } .tag { font-size: 2.5rem; padding: 3px 8px; }
}
/* ====================================== */
/* --- Course Card Section Styles (END) --- */
/* ====================================== */


/* ====================================== */
/* --- Form Styles (Login, Register, etc.) (START) --- */
/* ====================================== */
.form-container-public a { color: var(--primary-color); }
.form-options a { color: var(--primary-color); }
.btn-submit-public { background-color: var(--primary-color); }
.btn-submit-public:hover { background-color: #1d4ed8; }
.resend-otp-form button { color: var(--primary-color); }
.form-group-public label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--text-color);
}
/* ====================================== */
/* --- Form Styles (Login, Register, etc.) (END) --- */
/* ====================================== */


/* ====================================== */
/* --- Image Widget Styles (START) --- */
/* ====================================== */
.image-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    line-height: 0;
    transition: transform 0.3s ease;
}
.image-widget-inner {
    position: relative;
    display: inline-block;
}
.recommendation-image-widget {
    display: block;
    max-width: 370px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.image-widget-container a:hover .recommendation-image-widget {
    opacity: 0.9;
}
.close-image-widget-btn {
    position: absolute;
    top: -60px;
    left: 70%;
    transform: translateX(-50%);
    background-color: var(--danger-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.1s ease;
    z-index: 1101;
    white-space: nowrap;
}
.close-image-widget-btn:hover {
    background-color: var(--danger-hover-color);
    color: #fff;
}
.close-image-widget-btn:active {
    transform: translateX(-50%) scale(0.98);
}
@media (max-width: 768px) {
    .image-widget-container { right: 15px; bottom: 15px; }
    .recommendation-image-widget { max-width: 300px; }
    .close-image-widget-btn { padding: 10px 25px; font-size: 0.875rem; top: -35px; border-radius: 5px; }
}
/* ====================================== */
/* --- Image Widget Styles (END) --- */
/* ====================================== */


/* ====================================== */
/* --- BREADCRUMBS (START) --- */
/* ====================================== */
.breadcrumbs-container { background-color: var(--bg-light); padding: 22px 0; border-bottom: 1px solid var(--border-color); }
.breadcrumbs { max-width: 1400px; margin: 0 auto; padding: 0 24px; font-size: 1.375rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--primary-color); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .separator { font-size: 0.625rem; }
.breadcrumbs span { font-weight: 500; color: var(--text-color); }
a {
    text-decoration: none;
    color: #101113;
    font-size: 1.375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s 
ease;
}
@media (max-width: 768px) { .breadcrumbs-container { padding: 10px 0; } .breadcrumbs { padding: 0 15px; font-size: 0.8125rem; } }
/* ====================================== */
/* --- BREADCRUMBS (END) --- */
/* ====================================== */


/* ====================================== */
/* --- (*** (ถูกย้ายไป page-search.css) ***) --- */
/* ====================================== */


/* ======================================= */
/* --- (*** (ถูกย้ายไป page-course-details.css) ***) --- */
/* ======================================= */


/* ====================================== */
/* --- (*** (ถูกย้ายไป page-profile.css) ***) --- */
/* ====================================== */


/* ====================================== */
/* --- (*** (ถูกย้ายไป page-course-details.css) ***) --- */
/* ====================================== */


/* ====================================== */
/* --- (*** (ถูกย้ายไป page-course-details.css) ***) --- */
/* ====================================== */


/* ====================================== */
/* --- (*** (ถูกลบออก - ซ้ำซ้อนกับ learn-page.css) ***) --- */
/* ====================================== */


/* ====================================== */
/* --- (*** (ถูกลบออก - ซ้ำซ้อนกับ about.css) ***) --- */
/* ====================================== */


/* ===================================================== */
/* --- (*** (ถูกย้ายไป page-search.css) ***) --- */
/* ===================================================== */


/* ======================================= */
/* (*** START: V2 - Site Footer Styles (แก้ไขสี) ***) */
/* ======================================= */
.site-footer {
    background-color: #1a2c3f; /* (สีน้ำเงินเข้ม) */
    color: #aeb9c4; 
    padding: 60px 0 0 0;
    border-top: 4px solid #7E22CE; /* (V2: เปลี่ยนจากสีส้มเป็นสีม่วง) */
    font-size: 1.25rem; 
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* 4 คอลัมน์ */
    gap: 30px;
}
.footer-col h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}
.footer-col-brand .footer-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}
.footer-col-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}
.footer-tagline {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.footer-contact-list li i {
    color: #2563eb; /* (V2: เปลี่ยนจากสีส้มเป็นสีน้ำเงิน) */
    margin-top: 4px;
}
.footer-contact-list li a {
    color: #aeb9c4;
    transition: color 0.2s;
}
.footer-contact-list li a:hover {
    color: #ffffff;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col-links li {
    margin-bottom: 10px;
}
.footer-col-links li a {
    color: #aeb9c4;
    transition: color 0.2s, padding-left 0.2s;
    font-size: 1.25rem;
}
.footer-col-links li a:hover {
    color: #f37021; /* (V2: เปลี่ยน Hover เป็นสีส้ม) */
    padding-left: 5px;
}

.footer-col-social p {
    margin-bottom: 15px;
}
.footer-social-links {
    display: flex;
    gap: 12px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.social-icon.social-fb { background-color: #1877F2; }
.social-icon.social-line { background-color: #06C755; }
.social-icon.social-yt { background-color: #FF0000; }
.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-bottom-bar {
    border-top: 1px solid #3a4b5c;
    margin-top: 40px;
    padding: 20px 24px;
    text-align: center;
}
.footer-bottom-bar p {
    font-size: 1.1rem;
    color: #aeb9c4;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 คอลัมน์บน Tablet */
    }
    .footer-col-brand { grid-column: 1 / 3; } /* คอลัมน์แรกเต็มแถว */
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 คอลัมน์บน Mobile */
    }
}
/* ======================================= */
/* (*** END: V2 - Site Footer Styles ***) */
/* ======================================= */
/* ======================================= */
/* --- (V-Login) ซ่อน Hero เมื่อล็อกอิน --- */
/* ======================================= */

body.user-logged-in .hero-section {
    display: none;
}