/*
Theme Name:   CarematePro
Theme URI: http://workscout.in
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: WordPress Job Theme
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: workscout
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  workscout
*/

/* ================================================
   TABLE OF CONTENTS
   ================================================
   1. CSS VARIABLES & CUSTOM PROPERTIES
   2. TYPOGRAPHY
   3. LAYOUT & GRID SYSTEM
   4. HEADER & NAVIGATION
   5. LANGUAGE SWITCHER COMPONENT
   6. MAIN CONTENT AREAS
   7. BLOG COMPONENTS
   8. FOOTER
   9. UTILITY CLASSES
   10. MEDIA QUERIES
   ================================================ */

/* ================================================
   1. CSS VARIABLES & CUSTOM PROPERTIES
   ================================================ */
:root {
    --s-space: 2rem;
    --s-rounded-1: 6px;
    --s-rounded-2: 12px;
    --s-color-1: #007bff;
    --s-text-1: #333333;
    --s-text-2: #666666;
    --s-bg-2: #f8f9fa;
}

/* ================================================
   2. TYPOGRAPHY
   ================================================ */

/* Headings */
h1, h2, h3, h4, h5, h6,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 400;
}

/* Body Text */
body, p, input, input[type="text"], input[type="password"], input[type="email"], 
textarea, select, input[type="button"], input[type="submit"], button, 
body .pac-container, body .wp-subscribe-wrap input.submit, body input[type="email"],
.button, body .input-text, .intro-banner .intro-banner-search-form input {
    font-family: "Noto Serif Thai", serif;
}

/* Navigation Typography */
.new-header #navigation ul li a,
.language-switcher-trigger .current-lang,
.user-avatar-title,
.new-header #navigation ul ul.sub-menu li a,
ul.language-menu-nav li a,
.user-menu-small-nav a {
    font-family: "Noto Sans Thai", sans-serif;
}

.new-header #navigation ul li a,
.language-switcher-trigger .current-lang,
.user-avatar-title {
    font-weight: 500;
    font-size: 16px;
}

.new-header #navigation ul ul.sub-menu li a,
ul.language-menu-nav li a,
.user-menu-small-nav a {
    font-size: 15px;
}

.language-switcher-trigger .current-lang,
.user-avatar-title {
    font-size: 14px;
    color: #666;
}

.language-switcher-trigger {
    text-transform: lowercase;
}

/* Archive Title Fixes */
#titlebar h1,
#titlebar h2 {
    font-size: 32px !important;
    line-height: 42px !important;
    color: #333 !important;
}

#titlebar h1 span,
#titlebar h2 span {
    color: #333 !important;
    background: none !important;
    padding: 0 !important;
    position: static !important;
    font-size: inherit !important;
}

/* ================================================
   3. LAYOUT & GRID SYSTEM
   ================================================ */

/* Sticky Footer Layout */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#wrapper > .container,
#wrapper > .content-area,
#wrapper > main,
#wrapper > .site-content {
    flex-grow: 1;
}

/* Ensure footer sticks to bottom */
#footer-new {
    margin-top: auto;
}

/* Special cases for different page layouts */
.fullwidth #wrapper,
.wrapper-with-transparent-header #wrapper {
    min-height: 100vh;
}

/* For pages with minimal content */
.page-content,
.post-content,
.entry-content {
    min-height: 50vh; /* Ensure some minimum content height */
}

/* Dashboard and special pages */
.page-template-template-dashboard #wrapper,
.page-template-template-splitmap #wrapper,
.page-template-template-jobs-fullpage #wrapper {
    min-height: 100vh;
}

/* Grid Layout System */
.s-grid {
    display: grid;
    grid-gap: var(--s-space);
    margin-bottom: var(--s-space);
}

.s-grid.-m1 {
    grid-template-columns: minmax(0, 1fr);
}

.s-grid.-m2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s-grid.-m3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet Grid */
@media (min-width: 720px) and (max-width: 1023px) {
    .s-grid.-t2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .s-grid.-t3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .s-grid.-t4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Desktop Grid */
@media (min-width: 1024px) {
    .s-grid.-d1 {
        grid-template-columns: minmax(0, 1fr);
    }
    .s-grid.-d2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .s-grid.-d3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .s-grid.-d4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .s-grid.-d5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .s-grid.-d6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ================================================
   4. HEADER & NAVIGATION
   ================================================ */


/* Header Base Styles */
.new-header #logo_nh {
    border-right: 0;
}

.new-header .header-widget {
    border-left: 0;
}

.header-widget {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Menu Description Styling */
.new-header #navigation ul li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    position: relative;
}

.new-header #navigation ul li a .menu-title {
    font-weight: 500;
    display: flex;
    align-items: center;
    width: 100%;
}

.new-header #navigation ul li a .menu-description {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
    line-height: 1.3;
}

/* Override default arrow styling for our custom structure */
.new-header #navigation ul li a:after {
    display: none;
}

/* Add arrow only for menu items that have children */
.new-header #navigation ul li.menu-item-has-children > a .menu-title:after {
    font-family: "FontAwesome" !important;
    content: '\f107' !important;
    opacity: 1 !important;
    font-size: 13px !important;
    transition: 0.2s;
    line-height: 17px !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    color: #a8a8a8 !important;
    display: inline-block !important;
    border-radius: 0 !important;
    margin-left: 7px !important;
    text-indent: 0 !important;
    top: 1px !important;
    position: relative !important;
}

/* Invisible spacer to prevent dropdown from disappearing */
.new-header #navigation ul li ul.sub-menu:before,
.new-header #navigation ul ul:before,
#navigation ul li ul:before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: -10px !important;
    background: transparent !important;
    width: 100% !important;
    height: 10px !important;
    display: block !important;
}

/* Visible triangle arrow for dropdown */
.new-header #navigation ul li ul.sub-menu:after,
.new-header #navigation ul ul:after,
#navigation ul li ul:after {
    content: "" !important;
    position: absolute !important;
    left: 30px !important;
    top: -7px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 8px solid #303030 !important;
    z-index: 10000 !important;
    display: block !important;
    /* Safari fix */
    -webkit-transform: translateY(0) !important;
    transform: translateY(0) !important;
}

/* Main Navigation Dropdown - Consistent Spacing */
.new-header #navigation ul ul.sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.new-header #navigation ul ul.sub-menu li a {
    padding: 10px 20px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.5 !important;
}

/* Sub-menu descriptions */
.new-header #navigation ul ul.sub-menu li a .menu-description {
    font-size: 12px;
    margin-top: 2px;
    margin-left: 0;
    display: block;
    width: 100%;
}

/* Mobile menu descriptions */
.mobile-navigation-list ul li a,
.mobile-navigation-wrapper ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
    color: #333 !important;
    text-decoration: none !important;
}

.mobile-navigation-list ul li a:hover,
.mobile-navigation-wrapper ul li a:hover {
    background: rgba(0,0,0,0.05) !important;
    color: #000 !important;
}

.mobile-navigation-list ul li a .menu-title,
.mobile-navigation-wrapper ul li a .menu-title {
    font-weight: 500;
    width: 100%;
}

.mobile-navigation-list ul li a .menu-description,
.mobile-navigation-wrapper ul li a .menu-description {
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: 0.8 !important;
    margin-top: 3px !important;
    line-height: 1.3 !important;
    color: rgba(0,0,0,0.6) !important;
}

/* Mobile menu arrow fix */
.mobile-navigation-list ul li a:after,
.mobile-navigation-wrapper ul li a:after {
    display: none !important;
}

.mobile-navigation-list ul li.menu-item-has-children > a .menu-title:after,
.mobile-navigation-wrapper ul li.menu-item-has-children > a .menu-title:after {
    font-family: "FontAwesome";
    content: '\f107';
    float: right;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* Mobile Menu Trigger */
.mmenu-trigger {
    top: 50% !important;
    transform: translateY(-50%) !important;
    position: relative !important;
}



/* User Menu Hover Effects */
.language-switcher-trigger:hover .current-lang {
    color: #e44d32 !important;
}

.language-switcher-trigger:hover .current-lang:after {
    color: #e44d32 !important;
}

.header-notifications-trigger a:hover .user-avatar-title {
    color: #d3583e !important;
}

/* User Menu Hover Effect - Match Language Switcher */
.user-menu .header-notifications-trigger:hover .user-avatar-title {
    color: #e44d32 !important;
}

.user-menu .header-notifications-trigger:hover .user-avatar-title b {
    color: #e44d32 !important;
}

/* Fix WordPress Admin Bar - Override parent theme CSS */
@media (max-width: 1099px) {
    html body.admin-bar .new-header #header {
        top: 0 !important; /* Mobile/Tablet: header should stick to admin bar */
    }
    
    html body.admin-bar.page-template-template-dashboard .new-header #header {
        top: 0 !important; /* Mobile/Tablet: header should stick to admin bar */
    }
    
}

@media (min-width: 1100px) {
    html body.admin-bar .new-header #header {
        top: 32px !important; /* Desktop admin bar height */
    }
    
    html body.admin-bar.page-template-template-dashboard .new-header #header {
        top: 32px !important; /* Desktop admin bar height */
    }
    
}

/* User Menu Trigger - Match Language Switcher Style */
.user-menu .header-notifications-trigger {
    background-color: #f5f5f5 !important;
    border-radius: 4px !important;
    transition: all 0.4s ease !important;
    padding: 8px 12px !important;
}

.user-menu .header-notifications-trigger:hover {
    background-color: rgba(228, 77, 50, 0.1) !important;
}

/* Reduce avatar size */
.user-menu .user-avatar {
    width: 32px !important;
    height: 32px !important;
}

.user-menu .user-avatar img {
    width: 32px !important;
    height: 32px !important;
}

.header-notifications-trigger a:hover .user-avatar-title:after {
    color: #d3583e !important;
}

/* User Menu Arrow */
.user-avatar-title:after {
    content: "\f107";
    font-family: "FontAwesome";
    margin-left: 5px;
    transition: 0.2s;
    transform: rotate(0);
    display: inline-block;
    font-size: 12px;
    top: 0px;
    position: relative;
    color: #666 !important;
}

.user-menu.active .user-avatar-title:after {
    transform: rotate(180deg);
}

/* Safe Slide-in User Menu for Mobile/Tablet ≤ 1099px */
@media (max-width: 1099px) {
    .user-menu .header-notifications-dropdown {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 320px !important;
        height: 100vh !important;
        transform: translateX(100%) !important; /* Hidden to the right */
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2) !important;
        padding: 80px 20px 20px !important;
        overflow-y: auto !important;
    }
    
    /* Active state - slide in */
    .user-menu.active .header-notifications-dropdown {
        transform: translateX(0) !important;
    }
    
    /* Overlay background */
    .user-menu.active::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        transition: opacity 0.3s ease;
    }
    
    /* Close button */
    .user-menu.active .header-notifications-dropdown::after {
        content: "×";
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        color: #666;
        cursor: pointer;
        z-index: 10000;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(0,0,0,0.1);
        transition: background 0.2s;
        line-height: 1;
    }
    
    .user-menu.active .header-notifications-dropdown::after:hover {
        background: rgba(0,0,0,0.2);
    }
    
    /* Enhanced menu styling for mobile */
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a {
        padding: 16px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 48px !important; /* Touch-friendly */
        color: #333 !important;
        transition: background 0.2s ease !important;
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a:hover {
        background-color: #f8f9fa !important;
        margin: 0 -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-radius: 6px !important;
    }
    
    /* Icon styling */
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a i {
        font-size: 20px !important;
        color: #e44d32 !important;
        width: 24px !important;
        flex-shrink: 0 !important;
    }
    
    /* Badge styling */
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a .small-tag {
        background: #e44d32 !important;
          color: white !important;  
          margin-left: auto !important;
    }
}

/* Desktop ≥ 1100px - Keep original dropdown */
@media (min-width: 1100px) {
    .user-menu .header-notifications-dropdown {
        position: absolute !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        top: 100% !important;
        right: 0 !important;
        z-index: 99 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    /* Remove pseudo-elements on desktop */
    .user-menu.active::before,
    .user-menu.active .header-notifications-dropdown::after {
        display: none !important;
    }
}



/* Login/Register Buttons */
.login-register-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Login Button - Secondary Style */
.login-btn {
    background-color: #f2f2f2 !important;
    color: #888 !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.4s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.login-btn:hover {
    background-color: rgba(228, 77, 50, 0.1) !important;
    color: #e44d32 !important;
    text-decoration: none !important;
}

/* Register Button - Primary Style */
.register-btn {
    background-color: #e44d32 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.4s ease !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.register-btn:hover {
    background-color: #d63916 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Icon mapping for user-plus */
.login-register-buttons .fa-user-plus:before {
    font-family: "FontAwesome";
    content: "\f234";
}

/* Mobile User Menu */
.mobile-user-menu {
    display: none;
}

/* ================================================
   5. LANGUAGE SWITCHER COMPONENT
   ================================================ */

/* Base Styles */
.language-switcher-header {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    height: 100%;
    position: relative;
}

.language-switcher-menu {
    height: auto;
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.language-switcher-trigger {
    display: flex;
    align-items: center;
    height: auto;
    padding: 10px 16px;
    color: #888 !important;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    background-color: #f2f2f2 !important;
    border: none !important;
    border-radius: 4px !important;
    transition: all 0.4s ease !important;
    text-decoration: none !important;
}

.language-switcher-trigger:hover {
    background-color: rgba(228, 77, 50, 0.1) !important;
    color: #e44d32 !important;
}

.language-switcher-trigger .current-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Arrow Icon */
.language-switcher-trigger:after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.language-switcher-menu.active .language-switcher-trigger:after {
    transform: rotate(180deg);
}

/* Globe Icon */
.globe-icon {
    width: 18px;
    height: 18px;
    color: inherit;
    flex-shrink: 0;
}

/* Flag Icons */
.flag-icon {
    width: 20px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

.flag-icon.flag-en,
.flag-icon.flag-en_US {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA0MCI+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwaDYwdjQwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PGcgY2xpcC1wYXRoPSJ1cmwoI2EpIj48cGF0aCBmaWxsPSIjMDEyMTY5IiBkPSJNMCAwaDYwdjQwSDB6Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZD0ibTAgMCA2MCA0MG0wLTQwTDAgNDAiIHN0cm9rZT0iI0ZGRiIgc3Ryb2tlLXdpZHRoPSI2Ii8+PHBhdGggZmlsbD0iI0M4MTAyRSIgZD0ibTAgNDAgNjAtNDBtMCA0MEwwIDAiIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI0Ii8+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTMwIDB2NDRNMCAyMGg2MCIgc3Ryb2tlPSIjRkZGIiBzdHJva2Utd2lkdGg9IjEwIi8+PHBhdGggZmlsbD0iI0M4MTAyRSIgZD0iTTMwIDB2NDRNMCAyMGg2MCIgc3Ryb2tlPSIjQzgxMDJFIiBzdHJva2Utd2lkdGg9IjYiLz48L2c+PC9zdmc+');
}

.flag-icon.flag-th,
.flag-icon.flag-th_TH {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MDAgNjAwIj48cGF0aCBmaWxsPSIjRUQxQzI0IiBkPSJNMCAwaDkwMHY2MDBIMHoiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMCAxMDBoOTAwdjQwMEgweiIvPjxwYXRoIGZpbGw9IiMyQjI5N0EiIGQ9Ik0wIDIwMGg5MDB2MjAwSDB6Ii8+PC9zdmc+');
}

/* Language Dropdown */
.language-switcher-dropdown {
    width: 180px;
    border-radius: 4px;
    box-shadow: 0px 2px 12px 0px rgba(0,0,0,0.12);
    background-color: #303030;
    padding: 0;
    position: absolute;
    top: calc(100% + 8px);
    right: -10px;
    text-align: left;
    z-index: 10;
    transform: scale(0.95);
    transform-origin: top right;
    transition: 0.25s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.language-switcher-menu.active .language-switcher-dropdown {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.language-switcher-dropdown:before {
    content: "";
    position: absolute;
    right: 20px;
    top: -6px;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #303030;
}

/* Language Menu */
ul.language-menu-nav {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

ul.language-menu-nav li {
    margin: 0;
    padding: 0;
}

ul.language-menu-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    min-height: 40px;
    line-height: 24px;
    font-weight: 400;
    color: #aaa;
    transition: 0.3s;
    text-decoration: none;
}

ul.language-menu-nav li a:hover {
    color: #eee;
}

ul.language-menu-nav li a .flag-icon {
    width: 18px;
    height: 12px;
}

/* User Menu Dropdown - Match Language Menu Style */
.user-menu .header-notifications-dropdown {
    padding: 15px 20px !important;
}

.user-menu-small-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.user-menu-small-nav li {
    margin: 0 !important;
    padding: 0 !important;
}

.user-menu-small-nav li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #aaa !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    min-height: 40px !important;
}

.user-menu-small-nav li a:hover {
    color: #eee !important;
}

.user-menu-small-nav li a i {
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    top: -1px !important;
}

/* Transparent header adjustments */
.transparent-header .user-menu-small-nav li a {
    color: #666 !important;
}

.transparent-header .user-menu-small-nav li a:hover {
    color: #333 !important;
}

/* Hide original TranslatePress styles */
.trp-language-switcher {
    display: none;
}

/* Transparent Header Variations */
.transparent-header .language-switcher-trigger {
    color: #fff;
}

.transparent-header .language-switcher-trigger:hover {
    color: #26ae61;
}

.transparent-header .language-switcher-dropdown {
    background-color: #fff;
}

.transparent-header .language-switcher-dropdown:before {
    border-bottom-color: #fff;
}

.transparent-header ul.language-menu-nav li a {
    color: #666;
}

.transparent-header ul.language-menu-nav li a:hover {
    color: #333;
}

/* ================================================
   6. MAIN CONTENT AREAS
   ================================================ */

/* Content Layouts */
.s-content {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.s-content:hover h2 a {
    color: var(--s-color-1, #007bff);
}

.s-content:hover .entry-pic img {
    transform: scale(1.04);
}

/* Entry Information */
.entry-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.entry-info > div:last-child {
    margin-top: auto;
}

/* Entry Title */
.entry-title {
    font-size: 1.25em;
    margin-bottom: 0;
    line-height: 1.3;
}

.entry-title a {
    color: var(--s-text-1);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--s-color-1, #007bff);
}

/* Featured Image */
.entry-pic {
    position: relative;
    padding-top: 52.5%; /* OG SIZE 1200x630 */
    height: 0;
    border-radius: var(--s-rounded-2);
    background-color: var(--s-bg-2);
}

.entry-pic a {
    display: block;
    color: #fff;
}

.entry-pic img {
    position: absolute;
    border-radius: var(--s-rounded-2);
    object-fit: cover;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: 0.3s ease-in-out;
}

/* Category Tags */
.entry-pic .posted-cat {
    position: absolute;
    top: 5px;
    left: 5px;
    max-width: calc(100% - 10px);
    font-size: 0.875rem;
    z-index: 1;
}

.entry-pic .posted-cat a {
    color: #fff;
    background-color: var(--s-color-1, #007bff);
    border-radius: var(--s-rounded-1);
    padding: 0.3em 0.4em;
}

.posted-cat {
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.posted-cat.-button {
    font-size: 0.875rem;
}

.posted-cat.-button a {
    color: #fff;
    background-color: var(--s-color-1, #007bff);
    border-radius: var(--s-rounded-1);
    padding: 0.3em 0.4em;
    text-decoration: none;
}

.posted-cat.-pill a {
    color: #fff;
    background-color: var(--s-color-1, #007bff);
    border-radius: 100px;
    padding: 0.3em 0.9em;
}

/* Meta Information */
.posted-on {
    font-size: 0.8rem;
    color: var(--s-text-2);
}

.entry-author {
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: var(--s-text-2);
}

.entry-author a {
    color: var(--s-text-2);
}

.entry-author a:hover {
    color: var(--s-color-1, #007bff);
}

.entry-author img {
    border-radius: 100px;
    margin: 4px 0;
}

/* ================================================
   7. BLOG COMPONENTS
   ================================================ */

/* Blog Category Filter */
.blog-category-filter {
    margin: 30px 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--s-text-1, #333);
    margin: 0 0 15px 0;
    text-transform: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--s-color-1, #007bff);
    color: #ffffff;
    border-color: var(--s-color-1, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Single Post Styles */
.single-post-breadcrumbs::before,
.single-post-breadcrumbs::after,
.single-post-breadcrumbs *::before,
.single-post-breadcrumbs *::after {
    display: none !important;
    content: none !important;
}

.single-post-breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: var(--s-text-2, #666);
}

.single-post-breadcrumbs a {
    color: var(--s-color-1, #007bff);
    text-decoration: none;
}

.single-post-breadcrumbs .separator {
    margin: 0 8px;
    color: var(--s-text-2, #666);
}

.single-post-breadcrumbs .current {
    color: var(--s-text-1, #333);
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Post Meta */
.single-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author img {
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--s-text-1, #333);
}

.post-date {
    font-size: 14px;
    color: var(--s-text-2, #666);
}

.meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 14px;
    color: var(--s-text-2, #666);
}

.reading-time,
.updated-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Categories */
.post-taxonomy {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    background: var(--s-color-1, #007bff);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Featured Image */
.single-post-image {
    margin: 30px 0;
    text-align: center;
}

.single-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Content */
.single-post-content {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 30px 0 15px 0;
    color: var(--s-text-1, #333);
}

/* Tags */
.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--s-text-1, #333);
}

.tag-link {
    display: inline-block;
    background: #f8f9fa;
    color: var(--s-text-2, #666);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--s-color-1, #007bff);
    color: white;
    border-color: var(--s-color-1, #007bff);
}

/* Social Sharing */
.social-sharing {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.social-sharing h4 {
    margin-bottom: 15px;
    color: var(--s-text-1, #333);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.share-btn.facebook-btn {
    background: #1877F2;
    color: white;
}

.share-btn.twitter-btn {
    background: #000000;
    color: white;
}

.share-btn.line {
    background: #00C300;
    color: white;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.copy-link {
    background: #6c757d;
    color: white;
}

.share-btn.print {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Override parent theme share button styles */
.share-btn.facebook-btn::before,
.share-btn.twitter-btn::before,
.share-btn::before,
.share-btn::after {
    display: none !important;
    content: none !important;
}

/* Author Bio */
.author-bio-section {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-details h4 {
    margin-bottom: 10px;
    color: var(--s-text-1, #333);
}

.author-details p {
    margin-bottom: 10px;
    color: var(--s-text-2, #666);
    line-height: 1.6;
}

/* Related Posts */
.related-posts-section {
    margin: 50px 0;
}

.related-posts-section h3 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--s-text-1, #333);
}

/* Post Navigation */
.single-post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--s-color-1, #007bff);
    color: white;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 14px;
    color: var(--s-text-2, #666);
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--s-text-1, #333);
}

.nav-previous a:hover .nav-label,
.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-label,
.nav-next a:hover .nav-title {
    color: white;
}

/* Comments */
.single-post-comments {
    margin: 50px 0;
}

/* Blog Pagination */
.blog-pagination {
    margin: 50px 0 30px 0;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--s-color-1, #007bff);
    color: #ffffff;
    border-color: var(--s-color-1, #007bff);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    font-weight: bold;
}

/* ================================================
   8. FOOTER
   ================================================ */

/* Fix Elementor sections overlapping footer */
#footer-new {
    clear: both !important;
    position: relative !important;
    z-index: 10 !important;
}

.margin-top-45 {
    clear: both !important;
}

/* Footer Top Section */
.footer-new-top-section {
    display: none;
}

/* Footer Bottom Section */
.footer-new-bottom-section {
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* Footer Logo - Responsive Best Practice */
/* Container controls layout, image fills container */
.footer-new-middle-section .wp-block-image {
    max-width: 200px; /* Desktop default */
    width: 100%;
}

.footer-new-middle-section .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important; /* Remove fixed width, let container control */
    display: block; /* Remove inline spacing */
}

/* Tablet Landscape & Small Desktop (1024px - 1099px) */
@media (max-width: 1099px) and (min-width: 1024px) {
    .footer-new-middle-section .wp-block-image {
        max-width: 140px; /* Prevent collision with text */
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .footer-new-middle-section .wp-block-image {
        max-width: 130px; /* Smaller for iPad portrait */
    }
}

/* Mobile Portrait (most phones vertical) */
@media (max-width: 767px) {
    .footer-new-middle-section .wp-block-image {
        max-width: 160px; /* Bigger for mobile portrait */
    }
}

/* Mobile Landscape (phones horizontal) */
@media (max-width: 767px) and (orientation: landscape) {
    .footer-new-middle-section .wp-block-image {
        max-width: 120px; /* Smaller to prevent overlap */
    }
}

/* Small Mobile (very small screens) */
@media (max-width: 320px) {
    .footer-new-middle-section .wp-block-image {
        max-width: 130px;
    }
}

/* Footer 5 Column Layout Override - Best Practice 2025 */
.footer-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    align-items: start;
}

/* Force footer column sizes with high specificity */
#footer-new .footer-new-middle-section .footer-row .footer-col-4,
.footer-new-middle-section .footer-row .footer-col-4 { 
    width: 28% !important; 
    flex: 0 0 28% !important;
    max-width: 28% !important;
} /* Logo + Description */

#footer-new .footer-new-middle-section .footer-row .footer-col-2,
.footer-new-middle-section .footer-row .footer-col-2 { 
    width: 18% !important; 
    flex: 0 0 18% !important;
    max-width: 18% !important;
} /* เมนู 4 อัน */

/* Remove individual widget padding from parent theme */
.footer-row .widget_nav_menu,
.footer-row .footer-widget,
.footer-row > [class*="footer-col"] {
    padding: 0 !important;
    box-sizing: border-box;
}

/* Override any existing grid layout completely */
#footer-new .footer-new-middle-section .footer-row,
.footer-new-middle-section .footer-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    align-items: start !important;
    width: 100% !important;
    grid-template-columns: unset !important;
    grid-gap: unset !important;
}

/* Responsive for Tablet & iPad - 1×2×2 Layout */
@media (max-width: 1024px) {
    #footer-new .footer-new-middle-section .footer-row,
    .footer-new-middle-section .footer-row { 
        display: flex !important; 
        flex-wrap: wrap !important; 
        gap: 15px !important;
    }
    
    /* Logo - แถวที่ 1 เต็มความกว้าง */
    #footer-new .footer-new-middle-section .footer-row .footer-col-4,
    .footer-new-middle-section .footer-row .footer-col-4 { 
        width: 100% !important; 
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px; 
        order: 1;
    }
    
    /* เมนู 2×2 */
    #footer-new .footer-new-middle-section .footer-row .footer-col-2:nth-child(2),
    .footer-new-middle-section .footer-row .footer-col-2:nth-child(2) { 
        width: calc(50% - 7.5px) !important; 
        flex: 0 0 calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
        order: 2;
    }
    
    #footer-new .footer-new-middle-section .footer-row .footer-col-2:nth-child(3),
    .footer-new-middle-section .footer-row .footer-col-2:nth-child(3) { 
        width: calc(50% - 7.5px) !important; 
        flex: 0 0 calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
        order: 3;
    }
    
    #footer-new .footer-new-middle-section .footer-row .footer-col-2:nth-child(4),
    .footer-new-middle-section .footer-row .footer-col-2:nth-child(4) { 
        width: calc(50% - 7.5px) !important; 
        flex: 0 0 calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
        order: 4;
    }
    
    #footer-new .footer-new-middle-section .footer-row .footer-col-2:nth-child(5),
    .footer-new-middle-section .footer-row .footer-col-2:nth-child(5) { 
        width: calc(50% - 7.5px) !important; 
        flex: 0 0 calc(50% - 7.5px) !important;
        max-width: calc(50% - 7.5px) !important;
        order: 5;
    }
}

/* Responsive for Mobile - Stack ทั้งหมด */
@media (max-width: 480px) {
    #footer-new .footer-new-middle-section .footer-row .footer-col-2,
    .footer-new-middle-section .footer-row .footer-col-2 { 
        width: 100% !important; 
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .footer-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-row {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }
}

/* Override flexbox from parent theme */
.footer-row > [class*="footer-col"] {
    flex: unset !important;
    max-width: none !important;
    width: 100% !important;
}

/* Disable footer sliding underline effects from parent theme */
.footer-new-links ul li a span:before,
#footer-new .footer-widget.widget_nav_menu li a:before {
    display: none !important;
}

.footer-new-links ul li a:hover span:before,
#footer-new .footer-widget.widget_nav_menu li a:hover:before {
    display: none !important;
}

/* Fix text jumping on hover - target specific problematic styles */
.footer-widget.widget_categories li a:hover,
.footer-widget.widget-out-title_categories li a:hover,
.footer-widget.widget_archive li a:hover,
.footer-widget.widget-out-title_archive li a:hover,
.footer-widget.widget_recent_entries li a:hover,
.footer-widget.widget-out-title_recent_entries li a:hover,
.footer-widget.categories li a:hover,
.footer-widget.widget_pages li a:hover,
.footer-widget.widget_recent_comments li a:hover,
.footer-widget.widget_nav_menu li a:hover,
.footer-widget.widget_meta li a:hover {
    padding-left: 0px !important;
}

/* Footer Privacy Policy Widget */
.footer-privacy-policy-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.footer-privacy-widget {
    display: inline-block;
}

.footer-privacy-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    justify-content: flex-end;
}

.footer-privacy-widget ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
    position: relative;
    list-style: none;
}

/* Remove any arrows or bullets */
.footer-privacy-widget ul li::before,
.footer-privacy-widget ul li:before {
    display: none !important;
    content: "" !important;
}

.footer-privacy-widget ul li a::before,
.footer-privacy-widget ul li a:before {
    display: none !important;
    content: "" !important;
}

/* Remove separator - just use spacing */
.footer-privacy-widget ul li:not(:last-child) {
    margin-right: 20px;
}

.footer-privacy-widget ul li a {
    color: #b4b4b4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-privacy-widget ul li a:hover {
    color: #ffffff;
}



/* Hide widget title if exists */
.footer-privacy-widget .footer-privacy-title {
    display: none;
}

/* Ensure proper alignment with existing footer */
.footer-new-bottom-right .footer-privacy-policy-wrapper {
    display: inline-block;
    text-align: right;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* ================================================
   9. UTILITY CLASSES
   ================================================ */

.hide {
    display: none;
}

/* ================================================
   10. MOBILE NAVIGATION & HAMBURGER MENU
   ================================================ */

/* Modal Overlay System */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Updates */
.mobile-navigation-wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 0 0 24px rgba(0,0,0,0.15);
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex-direction: column;
}

.mobile-navigation-wrapper.active {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.menu-logo::after,
.menu-logo *::after,
.menu-logo *::before {
    content: none !important;
    display: none !important;
}

/* Fix + symbol after main header logo - Comprehensive */
#logo_nh::after,
#logo_nh::before,
#logo_nh *::after,
#logo_nh *::before,
#logo_nh a::after,
#logo_nh a::before,
#logo_nh img::after,
#logo_nh img::before,
.left-side::after,
.left-side::before,
.left-side *::after,
.left-side *::before,
#header .left-side::after,
#header .left-side::before,
#header .left-side *::after,
#header .left-side *::before {
    content: none !important;
    display: none !important;
}

/* Additional specific targeting */
#header-container #header #logo_nh::after,
#header-container #header #logo_nh::before,
#header-container #header .left-side::after,
#header-container #header .left-side::before {
    content: "" !important;
    display: none !important;
}

/* Mobile Navigation List - Scrollable */
.mobile-navigation-list {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    
    /* Scroll indicators */
    background:
        linear-gradient(#2c3e50 30%, transparent),
        linear-gradient(transparent, #2c3e50 70%) bottom,
        linear-gradient(to bottom, rgba(0,0,0,0.2), transparent 10px),
        linear-gradient(to top, rgba(0,0,0,0.2), transparent 10px) bottom;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 10px, 100% 10px;
    background-attachment: local, local, scroll, scroll;
}

.mobile-navigation-list::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Mobile Menu Items */
.mobile-navigation-list .menu-item {
    position: relative;
}

.mobile-navigation-list .menu-item a,
.mobile-navigation-wrapper ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 15px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.mobile-navigation-list .menu-item a:hover,
.mobile-navigation-wrapper ul li a:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,1);
}

/* Menu text with icons */
.mobile-navigation-list .menu-title {
    flex: 1;
    display: flex;
    align-items: center;
}

.mobile-navigation-list .menu-title i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Submenu Toggle Arrow */
.mobile-navigation-list .menu-item-has-children > a {
    position: relative;
    padding-right: 45px;
    cursor: pointer;
}

/* Ensure menu items have proper positioning context */
.mobile-navigation-list .menu-item-has-children {
    position: relative;
}

/* Add arrow icon for items with children using CSS - Force Specificity */
.mobile-navigation-wrapper .mobile-navigation-list #mobile-nav li.menu-item-has-children > a::after,
.mobile-navigation-list ul#mobile-nav li.menu-item-has-children > a::after,
.mobile-navigation-list .menu-item-has-children > a::after {
    content: "\f105" !important; /* FontAwesome chevron-right */
    font-family: "FontAwesome" !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    color: rgba(0,0,0,0.6) !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Rotate arrow when submenu is active - Force Specificity */
.mobile-navigation-wrapper .mobile-navigation-list #mobile-nav li.menu-item-has-children.active > a::after,
.mobile-navigation-list ul#mobile-nav li.menu-item-has-children.active > a::after,
.mobile-navigation-list .menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(90deg) !important;
}

.mobile-navigation-list .menu-item-has-children > a:hover {
    background: rgba(0,0,0,0.05);
}

/* Removed submenu-toggle styles - using CSS pseudo-element instead */

/* Submenu */
.mobile-navigation-list .sub-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,0.05);
    transition: max-height 0.3s ease;
}

.mobile-navigation-list .sub-menu.active {
    max-height: 500px;
}

.mobile-navigation-list .sub-menu li a {
    padding-left: 52px;
    font-size: 14px;
    color: rgba(0,0,0,0.7);
}

.mobile-navigation-list .sub-menu li a:hover {
    color: rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.05);
}

/* Level 2 submenu */
.mobile-navigation-list .sub-menu .sub-menu li a {
    padding-left: 72px;
    font-size: 13px;
    color: rgba(0,0,0,0.6);
}

/* Level 3 submenu */
.mobile-navigation-list .sub-menu .sub-menu .sub-menu li a {
    padding-left: 92px;
    font-size: 12px;
    color: rgba(0,0,0,0.5);
}

/* Visual separator for deeper levels */
.mobile-navigation-list .sub-menu .sub-menu {
    border-left: 2px solid rgba(0,0,0,0.1);
    margin-left: 20px;
}

.mobile-navigation-list .sub-menu .sub-menu .sub-menu {
    border-left: 2px solid rgba(0,0,0,0.08);
    margin-left: 15px;
}

/* Force override parent theme mobile menu behavior */
.mobile-navigation-list {
    height: auto !important;
}

/* Hide ALL parent theme submenus initially - OVERRIDE EVERYTHING */
.mobile-navigation-list .sub-menu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: 0 !important;
    overflow: hidden !important;
    background: rgba(0,0,0,0.05) !important;
    transition: max-height 0.3s ease !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force initial collapse regardless of parent theme classes */
.mobile-navigation-list .menu-item-has-children.open-submenu > .sub-menu:not(.active) {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Show only our active submenus - HIGHER SPECIFICITY */
.mobile-navigation-list .menu-item-has-children > ul.sub-menu.active,
.mobile-navigation-list .menu-item-has-children > .sub-menu.active {
    display: block !important;
    max-height: 500px !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Remove debug border - replaced with inline styles */
/* .mobile-navigation-list .sub-menu.active {
    border-left: 3px solid red !important;
} */

/* Hide parent theme submenu when it has open-submenu class */
.mobile-navigation-list .menu-item-has-children.open-submenu > .sub-menu {
    display: none !important;
    max-height: 0 !important;
}

/* But show our active submenu even if parent theme adds open-submenu */
.mobile-navigation-list .menu-item-has-children.open-submenu > .sub-menu.active {
    display: block !important;
    max-height: 500px !important;
}

/* Prevent parent theme from adding back button */
.mobile-navigation-list .sub-menu-back-btn {
    display: none !important;
}

/* Fix parent theme icon conflicts */
.mobile-navigation-list .menu-item-has-children > a:before,
.mobile-navigation-list .menu-item-has-children > a:after {
    display: none !important;
    content: none !important;
}

/* Remove parent theme arrow icons */
.mobile-navigation-list ul li.menu-item-has-children > a .menu-title:after {
    display: none !important;
    content: none !important;
}

/* Force parent theme submenu to collapse initially - ALL VARIATIONS */
.mobile-navigation-list .menu-item-has-children > .sub-menu:not(.active),
.mobile-navigation-list .menu-item-has-children > ul.sub-menu:not(.active),
.mobile-navigation-list li.menu-item-has-children > .sub-menu:not(.active),
.mobile-navigation-list li.menu-item-has-children > ul.sub-menu:not(.active) {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* Show active submenus with ALL possible selectors */
.mobile-navigation-list .menu-item-has-children > .sub-menu.active,
.mobile-navigation-list .menu-item-has-children > ul.sub-menu.active,
.mobile-navigation-list li.menu-item-has-children > .sub-menu.active,
.mobile-navigation-list li.menu-item-has-children > ul.sub-menu.active,
.mobile-navigation-list .sub-menu.active,
.mobile-navigation-list ul.sub-menu.active {
    display: block !important;
    max-height: 500px !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Ensure submenu toggle buttons are visible and functional */
.mobile-navigation-list .submenu-toggle {
    display: flex !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999 !important;
    position: relative !important;
}

/* Make menu items with children clickable */
.mobile-navigation-list .menu-item-has-children > a {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 998 !important;
}

/* Ensure mobile navigation list is interactive */
.mobile-navigation-list {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 997 !important;
}

/* Force all menu items to be clickable */
.mobile-navigation-list * {
    pointer-events: auto !important;
}

/* Ensure wrapper doesn't block clicks */
.mobile-navigation-wrapper {
    pointer-events: auto !important;
}

/* Mobile Bottom Actions */
.mobile-bottom-actions {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

/* New Close Menu Button */
.close-menu-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s;
}

.close-menu-btn:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

.close-menu-btn i {
    font-size: 18px;
    line-height: 1;
}

.mobile-navigation-list {
    flex: 1;
    padding: 0;
    background: #ffffff;
    overflow-y: auto;
}

#mobile-nav {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove all margins from mobile navigation */
.mobile-navigation-list,
.mobile-navigation-list ul,
.mobile-navigation-list #mobile-nav {
    margin: 0 !important;
    padding: 0 !important;
}

#mobile-nav li a {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: #333;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease;
}

#mobile-nav li a:hover {
    background: rgba(228, 77, 50, 0.05);
    color: #e44d32;
}

.mobile-nav-widgets {
    padding: 0 !important;
    background: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Mobile Bottom Actions for screens < 576px */
.mobile-bottom-actions {
    margin-top: 0 !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-login-section {
    margin-top: 15px;
}

.mobile-login-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #f2f2f2;
    color: #888;
    border: 1px solid transparent; /* Add transparent border to prevent shift */
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background-color: rgba(228, 77, 50, 0.05) !important;
    color: #e44d32 !important;
    border-color: #e44d32 !important; /* Only change border color, not add border */
    text-decoration: none !important;
}

.mobile-login-btn i {
    margin-right: 8px;
}

/* Line Awesome to FontAwesome mapping for mobile login button */
.mobile-login-btn .la.la-sign-in-alt:before {
    font-family: "FontAwesome";
    content: "\f13e";
    top: 1px;
    padding-right: 2px;
}

/* Hide mobile elements for screens >= 768px to prevent duplication */
@media (min-width: 768px) {
    .mobile-login-section,
    .mobile-bottom-actions {
        display: none;
    }
}

/* Hide header login button on very small screens < 576px */
@media (max-width: 575px) {
    .login-register-buttons .login-btn {
        display: none !important;
    }
}


/* ================================================
   11. MEDIA QUERIES
   ================================================ */

/* Tablet Breakpoint (768px - 1099px) */
@media (max-width: 1099px) {
    /* Header */
    .fullwidth .header-widget:last-of-type,
    .header-widget:last-of-type {
        padding-right: 0;
        float: left;
    }
    
    #header .right-side .header-widget {
        border-right: 0;
        margin-right: -1px;
    }
    
    /* Language Switcher */
    .language-switcher-header {
        margin-right: 10px;
    }
    
    /* Logo Fixes for Tablet */
    .new-header #logo_nh {
        max-width: 60% !important; /* Override parent theme's 50% */
        display: flex !important;
        align-items: center !important;
        height: 76px !important; /* Match header height */
        justify-content: flex-start !important;
    }
    
    .new-header #logo_nh a {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    .new-header #logo_nh img {
        transform: none !important; /* Remove the translate3d that causes issues */
        position: static !important;
        max-height: 50px !important;
        width: auto !important;
        margin: 0 !important;
        vertical-align: middle !important;
    }
}

/* Mobile Language Switcher in Hamburger Menu - Grid Layout */
.mobile-language-switcher {
    margin-bottom: 20px;
}

.language-switcher-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.language-switcher-title i {
    margin-right: 6px;
    color: #666;
}

.mobile-language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

/* For 3 languages, use 3 columns for first row */
.mobile-language-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr 1fr 1fr;
}

.mobile-lang-option {
    padding: 10px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Touch target requirement */
    font-weight: 400;
}

.mobile-lang-option.active {
    background: #e44d32;
    color: white;
    border-color: #e44d32;
    font-weight: 500;
}

.mobile-lang-option:hover:not(.active) {
    border-color: #e44d32;
    color: #e44d32;
    background: rgba(228, 77, 50, 0.05);
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Header */
    .login-register-buttons {
        display: flex !important;
        gap: 6px !important;
    }
    
    .login-register-buttons .login-btn,
    .login-register-buttons .register-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Hide login button on very small screens < 576px - override previous display rules */
    @media (max-width: 575px) {
        .login-register-buttons .login-btn {
            display: none !important;
        }
    }
    
    .mobile-user-menu {
        display: none !important;
    }
    
    .mobile-user-trigger i {
        font-size: 40px;
        color: #555;
    }
    
    .header-widget {
        padding-right: 0;
    }
    
    .mobile-user-menu .header-notifications-dropdown {
        width: 180px !important;
    }
    
    /* Language Switcher - Hide on mobile */
    .language-switcher-header {
        display: none !important;
    }
    
    .language-switcher-trigger {
        padding: 0 5px;
        font-size: 13px;
    }
    
    /* Logo Fixes for Mobile */
    .new-header #logo_nh {
        display: flex !important;
        align-items: center !important;
        height: 76px !important; /* Match header height */
        justify-content: flex-start !important;
    }
    
    .new-header #logo_nh a {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    .new-header #logo_nh img {
        transform: none !important;
        position: static !important;
        max-height: 45px !important;
        width: auto !important;
        margin: 0 !important;
        vertical-align: middle !important;
    }
    
    .language-switcher-dropdown {
        width: 150px;
        right: -5px;
    }
    
    ul.language-menu-nav {
        padding: 12px 15px;
    }
    
    ul.language-menu-nav li a {
        font-size: 13px;
        padding: 4px 0;
    }
    
    /* Footer - removed, using new responsive system */
    
    .footer-privacy-widget ul {
        justify-content: center;
        margin-top: 0;
    }
    
    .footer-privacy-widget ul li {
        margin: 5px 0;
    }
    
    .footer-privacy-widget ul li:not(:last-child) {
        margin-right: 15px;
    }
    .footer-new-bottom-right .footer-privacy-policy-wrapper {
    text-align: center;
    
}
    .footer-privacy-widget ul li a {
        font-size: 13px;
    }
    .footer-new-bottom-inner {
    display: flex;
    flex-direction: column;
}
        .footer-new-bottom-left {
        order: 2; /* อันนี้ไปอยู่ลำดับที่ 2 (ล่าง) */
    text-align: center;
    }
    
    .footer-new-bottom-right {
        order: 1; /* อันนี้ไปอยู่ลำดับที่ 1 (บน) */
     text-align: center;
    }
}

/* Fix copyright section alignment - match site container */
.footer-new-bottom-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Remove extra padding from bottom inner */
.footer-new-bottom-inner {
    padding: 0 !important;
}

/* Mobile copyright padding */
@media (max-width: 480px) {
    .footer-new-bottom-section .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* Blog Filter */
    .filter-buttons {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    /* Single Post */
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .meta-right {
        align-items: flex-start;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .author-bio-section {
        flex-direction: column;
        text-align: center;
    }
    
    .single-post-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .nav-next {
        text-align: left;
    }
}

/* Small Mobile Breakpoint (max-width: 480px) */
@media (max-width: 480px) {
    /* Footer logo now handled by new responsive system above */
}

/* ================================================
   FIX: User Menu & Mobile Menu Colors
   Date: 2025-08-16
   ================================================ */

/* 1. DESKTOP USER MENU - Match Language Switcher Style */
@media (min-width: 1100px) {
    .user-menu .header-notifications-dropdown {
        background-color: #303030 !important;  /* Dark gray like language switcher */
        color: #fff !important;
        box-shadow: 0px 2px 12px 0px rgba(0,0,0,0.12) !important;
        border-radius: 4px !important;
        padding: 0 !important;
    }
    
    /* User menu items on desktop */
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a {
        color: rgba(255,255,255,0.8) !important;  /* White text */
        /* border-bottom removed to match language switcher style */
        padding: 12px 20px !important;
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a:hover {
        background-color: rgba(255,255,255,0.05) !important;
        color: #fff !important;
    }
    
    /* Icon colors */
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a i {
        color: rgba(255,255,255,0.6) !important;
    }
    
    /* FIX: User menu width and single line display */
    .user-menu .header-notifications-dropdown {
        min-width: 220px !important;  /* Minimum width for comfortable reading */
        width: max-content !important;  /* Expand to fit content */
        max-width: 280px !important;  /* Maximum width limit */
        /* FIX: Position to stick to button like language switcher */
        top: calc(100% - 10px) !important;  /* Move up 10px closer to button */
        right: 0 !important;   /* Align to right edge of button */
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav {
        width: 100% !important;
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a {
        white-space: nowrap !important;  /* Force single line */
        overflow: hidden !important;
        text-overflow: ellipsis !important;  /* Add ... for very long text */
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    /* Ensure badges/tags stay on same line */
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a .small-tag {
        flex-shrink: 0 !important;  /* Don't shrink badge */
        margin-left: auto !important;  /* Push to right */
    }
}

/* 2. MOBILE MENU - Dark Theme like WorkScout */
@media (max-width: 1099px) {
    
    /* Main mobile navigation wrapper */
    .mobile-navigation-wrapper {
        background: #303030 !important;  /* Dark gray background */
    }
    
    /* Mobile nav header */
    .mobile-nav-header {
        background: #303030 !important;  /* Keep dark */
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    /* Mobile navigation list */
    .mobile-navigation-list {
        background: #303030 !important;  /* Dark background */
    }
    
    /* Mobile menu items - main level */
    .mobile-navigation-list .menu-item a,
    .mobile-navigation-wrapper ul li a,
    #mobile-nav li a {
        color: rgba(255,255,255,0.9) !important;  /* White text */
    }
    
    .mobile-navigation-list .menu-item a:hover,
    .mobile-navigation-wrapper ul li a:hover,
    #mobile-nav li a:hover {
        background: rgba(255,255,255,0.1) !important;  /* Light hover */
        color: #fff !important;
    }
    
    /* Submenu items */
    .mobile-navigation-list .sub-menu {
        background: rgba(0,0,0,0.2) !important;  /* Darker for submenu */
    }
    
    .mobile-navigation-list .sub-menu li a {
        color: rgba(255,255,255,0.8) !important;  /* White text for submenu */
    }
    
    .mobile-navigation-list .sub-menu li a:hover {
        background: rgba(255,255,255,0.1) !important;
        color: #fff !important;
    }
    
    /* Level 2 submenu */
    .mobile-navigation-list .sub-menu .sub-menu li a {
        color: rgba(255,255,255,0.7) !important;
    }
    
    /* Level 3 submenu */
    .mobile-navigation-list .sub-menu .sub-menu .sub-menu li a {
        color: rgba(255,255,255,0.6) !important;
    }
    
    /* Mobile nav widgets area */
    .mobile-nav-widgets {
        background: #2a2a2a !important;  /* Slightly darker */
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    /* Close button */
    .close-menu-btn {
        color: rgba(255,255,255,0.8) !important;
    }
    
    .close-menu-btn:hover {
        color: #fff !important;
    }
    
    /* Mobile User Menu - Same dark theme */
    .user-menu .header-notifications-dropdown {
        background-color: #303030 !important;
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a {
        color: rgba(255,255,255,0.9) !important;
        /* border-bottom removed to match other dropdowns */
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a:hover {
        background-color: rgba(255,255,255,0.1) !important;
        color: #fff !important;
    }
    
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a i {
        color: rgba(255,255,255,0.6) !important;
    }
}

/* 3. Fix menu descriptions visibility */
.mobile-navigation-list ul li a .menu-description,
.mobile-navigation-wrapper ul li a .menu-description {
    color: rgba(255,255,255,0.5) !important;  /* Lighter text for descriptions */
}

/* FIX: Dashboard Navigation Submenu */
.dashboard-nav ul li ul {
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s;
    overflow: hidden;
}

.dashboard-nav ul li.active-submenu ul {
    visibility: visible;
    opacity: 1;
    max-height: 250px;
    padding: 0 0 18px 0;
}

/* FIX: Dashboard Content Scroll */
.dashboard-content-container {
    height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
}

.dashboard-content-inner {
    min-height: calc(100vh - 80px) !important;
}

/* FIX: User Menu Dropdown to match Mobile Navigation Style */
.user-menu .header-notifications-dropdown {
    padding: 0 !important; /* ลบ padding */
}

.user-menu .header-notifications-dropdown .user-menu-small-nav li a {
    border-bottom: none !important; /* ลบเส้นใต้ */
    border-radius: 0 !important; /* ลบขอบมน */
    padding: 12px 20px !important;
    margin: 0 !important; /* ลบ margin */
}

.user-menu .header-notifications-dropdown .user-menu-small-nav li a:hover {
    border-radius: 0 !important; /* ลบขอบมนตอน hover */
    background: rgba(255,255,255,0.1) !important; /* hover effect เหมือน mobile nav */
    color: #fff !important;
    margin: 0 !important; /* ลบ margin ตอน hover */
    padding: 12px 20px !important; /* คงที่ */
}

.user-menu .header-notifications-dropdown .user-menu-small-nav li {
    border-bottom: none !important; /* ลบเส้นใต้ */
}

.user-menu .header-notifications-dropdown .user-menu-small-nav li:last-child a {
    border-bottom: none !important; /* ลบเส้นใต้รายการสุดท้าย */
}

/* ลบ border และ rounded corners ทั้งหมด */
.user-menu-small-nav li a {
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.user-menu-small-nav li a:hover {
    border-radius: 0 !important;
    background: rgba(255,255,255,0.1) !important; /* hover สีพื้นหลังเหมือน mobile nav */
    color: #fff !important;
    margin: 0 !important;
}

/* แก้ไข tag number ให้แสดงเต็มเหมือน nav-tag */
.user-menu-small-nav .small-tag {
    display: inline-block;
    font-weight: 500;
    height: 19px;
    width: 19px;
    line-height: 19px;
    text-align: center;
    color: #fff;
    font-size: 10px;
    background: #e44d32;
    border-radius: 50%;
    position: relative;
    margin: 0 0 0 2px;
    top: -1px;
}

/* Badge styling บนมือถือ */
@media (max-width: 1099px) {
    .user-menu .header-notifications-dropdown .user-menu-small-nav li a .small-tag {
        background: #e44d32 !important;
        color: white !important;  
        margin-left: auto !important;
    }
}

/* FIX: WordPress Admin Bar - copied from WorkScout */
html body.admin-bar .new-header #header { 
    top: 32px; 
}

@media (max-width: 1100px) {
    html body.admin-bar.page-template-template-dashboard .new-header #header {
        top: 0;
    }
}

/* FIX: Footer Legal Menu Styling - ใช้ CSS structure เดิม */
.footer-new-bottom-right .footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.footer-new-bottom-right .footer-legal-menu li {
    margin: 0;
    padding: 0;
}

.footer-new-bottom-right .footer-legal-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-new-bottom-right .footer-legal-menu li a:hover {
    color: #e44d32;
}

@media (max-width: 768px) {
    .footer-new-bottom-right .footer-legal-menu {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-new-bottom-right .footer-legal-menu li a {
        font-size: 13px;
    }
}

