/*
Theme Name:     Betheme Child
Theme URI:      https://muffingroup.com
Description:    Betheme Child Theme
Author:         Muffin group
Author URI:     https://muffingroup.com
Template:       betheme
Version:        1.0.0
Text Domain:    betheme-child
*/

/* ============================================
   ALL YOUR CUSTOM CSS STARTS HERE
   ============================================ */

/*
 * Hide Arrow previous and next post on Post 
*/
.post-nav {
  display: none !important;
}

/* Dropdown menu background (desktop) */
#Top_bar .menu > li ul {
    background-color: #2b2b2b !important;
}

/* Chinese menu */
#Top_bar.cn-menu .menu > li ul {
    background-color: #2b2b2b !important;
}

/* Mobile slide-out menu background */
#Side_slide,
#Side_slide .menu_wrapper,
#Side_slide .menu > li > a,
#Side_slide .menu li ul {
    background-color: #2b2b2b !important;
}

/* BeBuilder header menu wrapper */
.header-menu-wrapper,
.header-menu-wrapper ul.sub-menu {
    background-color: #2b2b2b !important;
}

/* Optional: Live Search background color */
.mfn-live-search-box,
.mfn-live-search-list,
.mfn-live-search-list-blog,
.mfn-live-search-heading {
  background-color: #2b2b2b !important;
  color: #eee !important;
  border-color: #444 !important;
}

#Side_slide .menu li ul li a,
.header-menu-wrapper ul.sub-menu li a {
    color: #f8ed3d !important;
}

/* Optional: On hover, change to a lighter yellow or underline for clarity */
#Side_slide .menu li ul li a:hover,
.header-menu-wrapper ul.sub-menu li a:hover {
    color: #fff700 !important;
    text-decoration: underline;
}

/* Color of Submenu */

#Side_slide .menu li ul li a,
.header-menu-wrapper ul.sub-menu li a {
    color: #F8ED3D !important;
}

/* Optional: On hover, change to a lighter yellow or underline for clarity */
#Side_slide .menu li ul li a:hover,
.header-menu-wrapper ul.sub-menu li a:hover {
    color: #fff700 !important;
    text-decoration: underline;
}

/* Optional: change H4 size */

@media (max-width: 767px) {
  h4 {
    font-size: 24px !important; /* Change 18px to your desired size */
  }
}

/* Style the Load More link */
.mfn-query-pagination-loadmore .next.page-numbers {
    color: #F8ED3D !important;
}

/* Hover effect */
.mfn-query-pagination-loadmore .next.page-numbers:hover {
  color: #ffffff !important; /* text color */
}

/* Container: Align center */
.mfn-query-pagination-dots {
  text-align: center;
  margin: 40px 0;
}

/* Common page number buttons */
.mfn-query-pagination-dots .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  background-color: #2b2b2b; /* light background */
  color: #F8ED3D;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover effect */
.mfn-query-pagination-dots .page-numbers:hover {
  background-color: #2b2b2b;
  color: #ffffff !important;
}

/* Current (active) page */
.mfn-query-pagination-dots .page-numbers.current {
  background-color: #2b2b2b;
  color: #ffffff;
  font-weight: bold;
}

/* Prev/Next buttons (optional icons spacing) */
.mfn-query-pagination-dots .prev.page-numbers i,
.mfn-query-pagination-dots .next.page-numbers i {
	margin: 0 4px;}
	
/* Remove background from blog slider arrows */
.blog_slider.flat .blog_slider_header a.button.slider_prev,
.blog_slider.flat .blog_slider_header a.button.slider_next {
    background: none !important;
    background-color: transparent !important;
}

/* Make arrows always visible (optional) */
.blog_slider.flat .blog_slider_header {
    opacity: 1 !important;
}

/* To make short the post except event post - START */
/* ========== Apply padding only to the single-post content area ========== */
/* ===== Desktop: 100px padding for normal posts ===== */
.single-post .mfn-post-content,
.single-post .entry-content,
.single-post .the_content_wrapper {
    padding-left: 200px;
    padding-right: 200px;
    box-sizing: border-box;
}

/* ===== Event categories: no padding (desktop) ===== */
/* ===== Tablet: 50px padding ===== */
@media screen and (max-width: 1524px) and (min-width: 769px) {
    .single-post .mfn-post-content,
    .single-post .entry-content,
    .single-post .the_content_wrapper {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

/* ===== Phone: 0 padding ===== */
@media screen and (max-width: 768px) {
    .single-post .mfn-post-content,
    .single-post .entry-content,
    .single-post .the_content_wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Sticky header template */
.sticky-header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 99999;
    transition: top 0.3s ease;
}
body.sticky-header-active {
    padding-top: var(--header-height);
}

/* =====Post Content - Selection one below each other ===== */
/* ============================================
   CSS for Rebuild Version of category_content_loop2
   Add this to your theme's stylesheet or custom CSS
============================================= */

/* Container for all posts */
.category-posts-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Individual post card */
.custom-post-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    background: white !important;
    border-radius: 3px !important;
    padding: 20px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* HEADER: User icon on left, title centered on right */
.custom-post-card > div:first-child {
    display: flex !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* Left: User icon container */
.custom-post-card > div:first-child > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-right: 20px !important;
    min-width: 80px !important;
}

/* User icon image */
.custom-post-card > div:first-child > div:first-child img {
    border-radius: 50% !important;
    margin-bottom: 5px !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
}

/* User name below icon */
.custom-post-card > div:first-child > div:first-child p {
    color: black !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* Right: Title container */
.custom-post-card > div:first-child > div:nth-child(2) {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Title */
.custom-post-card h2 {
    color: black !important;
    margin: 0 !important;
    text-align: center !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
}

/* Image container */
.custom-post-card > div:nth-child(2) {
    margin: 15px 0 !important;
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
}

/* Main image */
.custom-post-card > div:nth-child(2) img:first-child {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: block !important;
    transition: opacity 0.3s ease !important;
}

/* Double tap icon */
.custom-post-card > div:nth-child(2) img:nth-child(2) {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    width: 40px !important;
    height: auto !important;
    opacity: 0.9 !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Tags */
.custom-post-card p[style*="text-align: center"][style*="font-weight: bold"] {
    color: black !important;
    text-align: center !important;
    font-weight: bold !important;
    margin: 10px 0 !important;
    font-size: 14px !important;
}

/* Description */
.custom-post-card > div:nth-child(4) {
    color: black !important;
    margin: 15px 0 !important;
    line-height: 1.6 !important;
}

/* Price */
.custom-post-card p[style*="text-align: center"]:not([style*="font-weight: bold"]) {
    color: black !important;
    text-align: center !important;
    margin: 15px 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Address */
.custom-post-card p[style*="font-style: italic"] {
    color: black !important;
    font-style: italic !important;
    margin: 10px 0 !important;
    font-size: 14px !important;
}

/* Google Maps */
.custom-post-card > div:nth-child(7) {
    margin-top: 15px !important;
    width: 100% !important;
}

.custom-post-card iframe {
    width: 100% !important;
    height: 300px !important;
    border: 0 !important;
    border-radius: 3px !important;
    display: block !important;
}

/* Download button */
.custom-post-card > div:last-child {
    text-align: center !important;
    margin-top: 20px !important;
    width: 100% !important;
}

.custom-post-card a[href*="download-fr"] {
    background: #2b2b2b !important;
    color: #F8ED3D !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    border: 2px solid #F8ED3D !important;
    border-radius: 3px !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.custom-post-card a[href*="download-fr"]:hover {
    background: #F8ED3D !important;
    color: #2b2b2b !important;
}

/* Responsive - SINGLE MEDIA QUERY (NO DUPLICATES) */
@media (max-width: 768px) {
    .category-posts-container {
        padding: 10px !important;
    }
    
    .custom-post-card {
        padding: 15px !important;
        margin-bottom: 30px !important;
    }
    
    /* KEEP USER ICON ON LEFT, TITLE ON RIGHT */
    .custom-post-card > div:first-child {
        flex-direction: row !important; /* Changed from column to row */
        align-items: flex-start !important; /* Changed from center to flex-start */
    }
    
    .custom-post-card > div:first-child > div:first-child {
        margin-right: 15px !important; /* Keep right margin */
        margin-bottom: 0 !important; /* Remove bottom margin */
        min-width: 60px !important; /* Smaller on mobile */
    }
    
    /* Smaller user icon on mobile */
    .custom-post-card > div:first-child > div:first-child img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Smaller user name text */
    .custom-post-card > div:first-child > div:first-child p {
        font-size: 12px !important;
    }
    
    /* Title on mobile */
    .custom-post-card h2 {
        text-align: center !important; /* Changed from center to left */
    }
    
    /* Adjust title container */
    .custom-post-card > div:first-child > div:nth-child(2) {
        justify-content: flex-start !important; /* Changed from center to flex-start */
    }
    
    /* Smaller double tap icon on mobile */
    .custom-post-card > div:nth-child(2) img:nth-child(2) {
        width: 30px !important;
        bottom: 5px !important;
        left: 5px !important;
    }
    
    .custom-post-card iframe {
        height: 250px !important;
    }
}

/* Visual feedback for clickable images */
img[id^="toggleImage_"] {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

img[id^="toggleImage_"]:hover {
    opacity: 0.95 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    transform: translateY(-2px) !important;
}

img[id^="toggleImage_"]:active {
    transform: translateY(0) !important;
    transition: transform 0.1s ease !important;
}

/* ============================================
   ADD THESE CLICKABLE STYLES TO YOUR EXISTING CSS
============================================= */

/* Minimal clickable styles */
.custom-post-card h2 {
    cursor: pointer !important;
}

.custom-post-card > div:nth-child(4) {
    cursor: pointer !important;
    padding: 12px 15px !important;
    background-color: transparent !important;
    border-radius: 3px !important;
    transition: background-color 0.3s ease !important;
}

.custom-post-card > div:nth-child(4):hover {
    background-color: transparent !important;
}

/* ============================================
   ADD THESE UNDERLINE STYLES TO YOUR EXISTING CSS
============================================= */

/* Title underline on hover */
.custom-post-card h2 a:hover h2,
.custom-post-card h2:hover {
    text-decoration: underline !important;
    text-decoration-color: #2b2b2b !important;
    text-decoration-thickness: 2px !important;
}

/* Description text underline on hover */
.custom-post-card > div:nth-child(4):hover {
    text-decoration: underline !important;
    text-decoration-color: #2b2b2b !important;
    text-decoration-thickness: 1px !important;
}

/* Make sure only text gets underlined, not the whole block */
.custom-post-card > div:nth-child(4) {
    text-decoration: none !important; /* Remove underline by default */
}

/* Ensure the underline works for the link inside */
.custom-post-card > div:nth-child(4) a:hover {
    text-decoration: underline !important;
    text-decoration-color: #2b2b2b !important;
    text-decoration-thickness: 1px !important;
}

/* ===== END Post Content - Selection one below each other ===== */

/* Mobile-only horizontal scrolling for multilingual menu */
@media only screen and (max-width: 767px) {
    /* Target the main menu wrapper - this is where the scroll happens */
    #Top_bar .menu_wrapper,
    .primary-menu .menu-wrapper,
    .mfn-main-menu {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 12px;
        margin-bottom: -12px;
        /* Smooth scrolling */
        scroll-behavior: smooth;
    }
    
    /* Hide scrollbar but keep it functional */
    #Top_bar .menu_wrapper::-webkit-scrollbar {
        height: 4px;
    }
    
    #Top_bar .menu_wrapper::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
    }
    
    #Top_bar .menu_wrapper::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 4px;
    }
    
    /* Make menu items display inline */
    #Top_bar .menu > ul,
    .primary-menu > ul,
    #menu-main-menu,
    .nav > ul {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        min-width: max-content !important;
        padding: 0 10px !important;
    }
    
    /* Each language menu item - including your "Sub Home English" etc. */
    #Top_bar .menu > ul > li,
    .primary-menu > ul > li,
    #menu-main-menu > li,
    .nav > ul > li {
        display: inline-block !important;
        float: none !important;
        flex-shrink: 0 !important;
    }
    
    /* Language menu links - better touch targets */
    #Top_bar .menu > ul > li > a,
    .primary-menu > ul > li > a {
        padding: 10px 15px !important;
        min-height: 44px !important; /* Better touch target */
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        font-size: 14px !important;
    }
    
    /* Optional: Style based on language */
    /* English items */
    #Top_bar .menu > ul > li:first-child > a,
    #Top_bar .menu > ul > li > a[href*="en"] {
        /* English menu style */
        font-weight: 600;
    }
    
    /* French items */
    #Top_bar .menu > ul > li > a[href*="fr"] {
        /* French menu style */
    }
    
    /* Chinese items */
    #Top_bar .menu > ul > li > a[href*="zh"] {
        /* Chinese menu style */
    }
    
    /* Hong Kong Chinese items */
    #Top_bar .menu > ul > li > a[href*="zh-hk"],
    #Top_bar .menu > ul > li > a[href*="hk"] {
        /* HK Chinese menu style */
    }
}


/* ============================================
   DESKTOP: 50% WIDTH REDUCTION FOR LANGUAGE POSTS
   ============================================ */
@media (min-width: 769px) {
    /* Apply 50% width to ALL content wrappers by default */
    .the_content_wrapper,
    .entry-content,
    .post-content,
    .content-area,
    .mfn-page-content {
        width: 50% !important;               /* 50% width for everything */
        max-width: 50% !important;           /* Ensure it stays at 50% */
        margin: 0 auto !important;           /* Center it */
        padding: 0 20px !important;          /* Add some padding */
        box-sizing: border-box !important;
    }
    
    /* Ensure images don't overflow */
    .the_content_wrapper img,
    .entry-content img,
    .post-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* ============================================
       EXCLUDE SPECIFIC PAGES FROM 50% WIDTH
       ============================================ */
    
    /* Home pages in all languages */
    .home .the_content_wrapper,
    .home .entry-content,
    .home .post-content,
    .home .content-area,
    .home .mfn-page-content,

    /* French home */
    .page-slug-home-fr .the_content_wrapper,
    .page-slug-home-fr .entry-content,
    .page-slug-home-fr .post-content,
    .page-slug-home-fr .content-area,
    .page-slug-home-fr .mfn-page-content,

    /* Chinese home */
    .page-slug-home-cn .the_content_wrapper,
    .page-slug-home-cn .entry-content,
    .page-slug-home-cn .post-content,
    .page-slug-home-cn .content-area,
    .page-slug-home-cn .mfn-page-content,

    /* Hong Kong home */
    .page-slug-home-hk .the_content_wrapper,
    .page-slug-home-hk .entry-content,
    .page-slug-home-hk .post-content,
    .page-slug-home-hk .content-area,
    .page-slug-home-hk .mfn-page-content,

    /* Bar Speakeasy */
    .page-slug-bar-speakeasy-cz .the_content_wrapper,
    .page-slug-bar-speakeasy-cz .entry-content,
    .page-slug-bar-speakeasy-cz .post-content,
    .page-slug-bar-speakeasy-cz .content-area,
    .page-slug-bar-speakeasy-cz .mfn-page-content,

    /* Best Brunch pages */
    .page-slug-best-brunch-in-town-cz .the_content_wrapper,
    .page-slug-best-brunch-in-town-cz .entry-content,
    .page-slug-best-brunch-in-town-cz .post-content,
    .page-slug-best-brunch-in-town-cz .content-area,
    .page-slug-best-brunch-in-town-cz .mfn-page-content,

    .page-slug-best-brunch-in-town-hk .the_content_wrapper,
    .page-slug-best-brunch-in-town-hk .entry-content,
    .page-slug-best-brunch-in-town-hk .post-content,
    .page-slug-best-brunch-in-town-hk .content-area,
    .page-slug-best-brunch-in-town-hk .mfn-page-content,

    /* Download pages */
    .page-slug-download-cn .the_content_wrapper,
    .page-slug-download-cn .entry-content,
    .page-slug-download-cn .post-content,
    .page-slug-download-cn .content-area,
    .page-slug-download-cn .mfn-page-content,

    .page-slug-download-hk .the_content_wrapper,
    .page-slug-download-hk .entry-content,
    .page-slug-download-hk .post-content,
    .page-slug-download-hk .content-area,
    .page-slug-download-hk .mfn-page-content,

    /* Café page */
    .page-slug-meillieur-cafe-a-hk .the_content_wrapper,
    .page-slug-meillieur-cafe-a-hk .entry-content,
    .page-slug-meillieur-cafe-a-hk .post-content,
    .page-slug-meillieur-cafe-a-hk .content-area,
    .page-slug-meillieur-cafe-a-hk .mfn-page-content,

    /* No Booking pages */
    .page-slug-no-booking-cz .the_content_wrapper,
    .page-slug-no-booking-cz .entry-content,
    .page-slug-no-booking-cz .post-content,
    .page-slug-no-booking-cz .content-area,
    .page-slug-no-booking-cz .mfn-page-content,

    .page-slug-no-booking-hk .the_content_wrapper,
    .page-slug-no-booking-hk .entry-content,
    .page-slug-no-booking-hk .post-content,
    .page-slug-no-booking-hk .content-area,
    .page-slug-no-booking-hk .mfn-page-content,

    /* Terms pages */
    .page-slug-term-cn .the_content_wrapper,
    .page-slug-term-cn .entry-content,
    .page-slug-term-cn .post-content,
    .page-slug-term-cn .content-area,
    .page-slug-term-cn .mfn-page-content,

    .page-slug-term-hk .the_content_wrapper,
    .page-slug-term-hk .entry-content,
    .page-slug-term-hk .post-content,
    .page-slug-term-hk .content-area,
    .page-slug-term-hk .mfn-page-content,

    /* About Us page */
    .page-slug-about-us-zh-hk .the_content_wrapper,
    .page-slug-about-us-zh-hk .entry-content,
    .page-slug-about-us-zh-hk .post-content,
    .page-slug-about-us-zh-hk .content-area,
    .page-slug-about-us-zh-hk .mfn-page-content,

    .page-id-204262 .the_content_wrapper,
    .page-id-204262 .entry-content,
    .page-id-204262 .post-content,
    .page-id-204262 .content-area,
    .page-id-204262 .mfn-page-content,

    .page-id-204224 .the_content_wrapper,
    .page-id-204224 .entry-content,
    .page-id-204224 .post-content,
    .page-id-204224 .content-area,
    .page-id-204224 .mfn-page-content,

    .page-id-204261 .the_content_wrapper,
    .page-id-204261 .entry-content,
    .page-id-204261 .post-content,
    .page-id-204261 .content-area,
    .page-id-204261 .mfn-page-content,

    .page-id-204253 .the_content_wrapper,
    .page-id-204253 .entry-content,
    .page-id-204253 .post-content,
    .page-id-204253 .content-area,
    .page-id-204253 .mfn-page-content,

    /* FORUM - WALL (by ID) */
    .page-id-205827 .the_content_wrapper,
    .page-id-205827 .entry-content,
    .page-id-205827 .post-content,
    .page-id-205827 .content-area,
    .page-id-205827 .mfn-page-content,
    .page-id-205827 .content_wrapper,
    .page-id-205827 .sections_group,
    .page-id-205827 .section.the_content,
    .page-id-205827 .section_wrapper,

    /* FORUM - WALL (by slug) */
    .page-slug-forum .the_content_wrapper,
    .page-slug-forum .entry-content,
    .page-slug-forum .post-content,
    .page-slug-forum .content-area,
    .page-slug-forum .mfn-page-content,
    .page-slug-forum .content_wrapper,
    .page-slug-forum .sections_group,
    .page-slug-forum .section.the_content,
    .page-slug-forum .section_wrapper,

    /* Instagram spots pages */
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .the_content_wrapper,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .entry-content,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .post-content,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .content-area,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .mfn-page-content,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .content_wrapper,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .sections_group,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .section.the_content,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .section_wrapper,

    .page-slug-the-best-instagram-spots-in-hong-kong-cz .the_content_wrapper,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .entry-content,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .post-content,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .content-area,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .mfn-page-content,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .content_wrapper,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .sections_group,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .section.the_content,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .section_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ============================================
   TABLET: ADJUST TO 70% WIDTH (Optional)
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    /* All content gets 70% on tablet */
    .the_content_wrapper,
    .entry-content,
    .post-content,
    .content-area,
    .mfn-page-content {
        width: 70% !important;
    }

    /* Excluded pages stay at 100% */
    .home .the_content_wrapper,
    .page-slug-home-fr .the_content_wrapper,
    .page-slug-home-cn .the_content_wrapper,
    .page-slug-home-hk .the_content_wrapper,
    .page-slug-bar-speakeasy-cz .the_content_wrapper,
    .page-slug-best-brunch-in-town-cz .the_content_wrapper,
    .page-slug-best-brunch-in-town-hk .the_content_wrapper,
    .page-slug-download-cn .the_content_wrapper,
    .page-slug-download-hk .the_content_wrapper,
    .page-slug-meillieur-cafe-a-hk .the_content_wrapper,
    .page-slug-no-booking-cz .the_content_wrapper,
    .page-slug-no-booking-hk .the_content_wrapper,
    .page-slug-term-cn .the_content_wrapper,
    .page-slug-term-hk .the_content_wrapper,
    .page-slug-about-us-zh-hk .the_content_wrapper,
    .page-id-205827 .the_content_wrapper,
    .page-slug-the-best-instagram-spots-in-hong-kong-hk .the_content_wrapper,
    .page-slug-the-best-instagram-spots-in-hong-kong-cz .the_content_wrapper,
    .page-id-204677 .the_content_wrapper,
    .page-id-204262 .the_content_wrapper,
    .page-id-204224 .the_content_wrapper,
    .page-id-204261 .the_content_wrapper,
    .page-id-204253 .the_content_wrapper,
    .home .entry-content,
    .home .post-content,
    .home .content-area,
    .home .mfn-page-content {
        width: 100% !important;
    }
}

/* ============================================
   MOBILE: FULL WIDTH FOR EVERYTHING
   ============================================ */
@media (max-width: 768px) {
    /* ALL content gets 100% width on mobile */
    .the_content_wrapper,
    .entry-content,
    .post-content,
    .content-area,
    .mfn-page-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   FORUM BACKGROUND & FULL WIDTH
   ============================================ */

#bbpress-forums {
    background-color: #424242 !important;
    padding: 2% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================
   BASE TEXT SIZE - Minimum 18px
   ============================================ */

#bbpress-forums,
.bbpress,
.bbp-wrapper,
.bbp-pagination,
.bbp-breadcrumb,
.bbp-topic-title,
.bbp-forum-title,
.bbp-body,
.bbp-header,
.bbp-footer,
.bbp-reply-content,
.bbp-pagination-count,
.bbp-pagination-links {
    font-size: 18px !important;
}

/* Links and text elements */
.bbp-topic-title a,
.bbp-forum-title a,
.bbp-reply-title a,
.bbp-body a,
.bbp-header a,
.bbp-footer a,
.bbp-breadcrumb a,
.bbp-pagination-links a,
.bbp-topic-meta a,
.bbp-reply-content p,
.bbp-reply-content li,
.bbp-body p,
.bbp-body li,
.bbp-body div {
    font-size: 18px !important;
}

/* MAIN LINK COLORS - Consolidated */
#bbpress-forums a,
.bbp-forum-title a,
.bbp-reply-title a,
.bbp-body a,
.bbp-header a,
.bbp-footer a,
.bbp-breadcrumb a,
.bbp-pagination-links a,
.bbp-topic-meta a {
    color: #424242 !important;  /* Gray for all regular links */
}

/* Topic titles should be black/h4 style (these override the gray above) */
.bbp-topic-title a {
    color: #424242 !important;  /* Black for topic titles */
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    font-family: inherit !important;
}

/* Forums titles should also be black/h4 style */
.bbp-forum-title a {
    color: #000000 !important;  /* Black for forum titles */
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    font-family: inherit !important;
}

/* Change to yellow on hover for ALL links */
#bbpress-forums a:hover,
.bbp-topic-title a:hover,
.bbp-forum-title a:hover,
.bbp-reply-title a:hover,
.bbp-body a:hover,
.bbp-header a:hover,
.bbp-footer a:hover,
.bbp-breadcrumb a:hover,
.bbp-pagination-links a:hover,
.bbp-topic-meta a:hover {
    color: #fff200 !important;
    transition: color 0.3s ease;
}

/* Meta information (post counts, voices, freshness) */
.bbp-topic-voice-count,
.bbp-topic-reply-count,
.bbp-topic-freshness,
.bbp-topic-freshness a,
.bbp-topic-freshness-author,
.bbp-topic-meta,
.bbp-topic-meta a,
.bbp-author-name,
.bbp-author-link,
.bbp-topic-started-by,
.bbp-topic-started-in,
.bbp-reply-post-date,
.bbp-reply-author .bbp-author-name,
.bbp-body .bbp-forum-info .bbp-forum-content,
.bbp-body .bbp-forum-topic-count,
.bbp-body .bbp-forum-reply-count,
.bbp-body .bbp-forum-freshness,
.bbp-body .bbp-forum-freshness a,
.bbp-body .bbp-topic-voice-count,
.bbp-body .bbp-topic-reply-count,
.bbp-body .bbp-topic-freshness,
.bbp-body .bbp-topic-freshness a,
.bbp-body .bbp-topic-meta,
.bbp-body .bbp-topic-meta a,
.bbp-body .bbp-author-name {
    font-size: 14px !important;
    font-weight: 200 !important;
    line-height: 1.3 !important;
    /* Color inherits from parent/gray links */
}

/* Pagination text */
.bbp-pagination-count,
.bbp-pagination-links,
.bbp-pagination-links a,
.bbp-pagination-links span {
    font-size: 14px !important;
    font-weight: 200 !important;
    line-height: 1.2 !important;
}

/* Forum list items */
.bbp-body ul li,
.bbp-body .bbp-forum,
.bbp-body .bbp-topic {
    font-size: 14px !important;
}

/* Ensure the forum takes full width on all devices */
@media (max-width: 768px) {
    .page-id-205827 .the_content_wrapper,
    .page-id-205827 .entry-content,
    .page-id-205827 .post-content {
        width: 100% !important;
        padding: 0 !important;
    }
    
    #bbpress-forums {
        padding: 4% !important;
    }
    
    .bbp-topic-title a,
    .bbp-forum-title a {
        font-size: 20px !important;
    }
    
    /* Keep meta at 14px on mobile */
    .bbp-topic-voice-count,
    .bbp-topic-reply-count,
    .bbp-topic-freshness,
    .bbp-topic-meta,
    .bbp-author-name,
    .bbp-pagination-count,
    .bbp-pagination-links {
        font-size: 14px !important;
    }
}

/* Custom Betheme-styled login form */
.custom-betheme-login-wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
    clear: both;
}

.custom-betheme-login-container {
    background: #4f4f4f;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #555;
}

.login-title {
    color: #fff200;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.login-subtitle {
    color: #ccc;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form fields */
.login-form-field {
    margin-bottom: 20px;
}

.login-form-field label {
    display: block;
    margin-bottom: 8px;
    color: #fff200;
    font-weight: 500;
    font-size: 15px;
}

.login-form-field input[type="text"],
.login-form-field input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    background: #a0a0a0;
    border: 2px solid #c8c8c8;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form-field input[type="text"]:focus,
.login-form-field input[type="password"]:focus {
    border-color: #fff200;
    outline: none;
    background: #a0a0a0;
}

/* Remember me checkbox */
.login-form-remember {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.login-form-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #fff200;
}

.login-form-remember label {
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* Submit button */
.login-form-submit input[type="submit"] {
    background: #a0a0a0;
    color: #fff200;
    padding: 16px 30px;
    border: 2px solid #fff200;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form-submit input[type="submit"]:hover {
    background: #fff200;
    color: #2b2b2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Login links */
.login-form-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #c8c8c8;
}

.login-form-links a {
    color: #fff200;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.login-form-links a:hover {
    text-decoration: underline;
    color: #fff;
}

.login-form-links .separator {
    color: #c8c8c8;
    margin: 0 10px;
}

/* Logged-in user welcome area */
.custom-betheme-login-wrapper.logged-in .custom-betheme-login-container {
    background: #2b2b2b;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar img {
    border-radius: 50%;
    border: 3px solid #fff200;
}

.user-info h4 {
    color: #fff200;
    margin: 0 0 5px 0;
    font-size: 20px;
}

.user-info .user-email {
    color: #ccc;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.logout-link {
    background: #2b2b2b;
    color: #fff200;
    padding: 8px 20px;
    border: 2px solid #fff200;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background: #fff200;
    color: #c8c8c8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-betheme-login-container {
        padding: 25px;
        margin: 0 15px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .user-welcome {
        flex-direction: column;
        text-align: center;
    }
}

/* Login Tabs - Yellow with more spacing */
.login-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #555;
    gap: 30px; /* More space between tabs */
}

.tab-link {
    flex: 1;
    text-align: center;
    padding: 15px 25px; /* More padding for spacing */
    color: #c8c8c8;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Keep text on one line */
}

.tab-link:hover {
    color: #fff200;
    background: #a0a0a0;
    transform: translateY(-2px);
}

.tab-link.active {
    color: #fff200 !important;
    border-bottom: 4px solid #fff200;
    margin-bottom: -12px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.1), transparent);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .login-tabs {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-link {
        white-space: normal; /* Allow wrapping on mobile */
        padding: 12px 15px;
    }
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

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

.form-title {
    color: #fff200;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    color: #ccc;
    text-align: center;
    margin-bottom: 25px;
}

.form-success,
.form-errors {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.form-success {
    background: #a0a0a0;
    color: #90ee90;
    border-left: 4px solid #90ee90;
}

.form-errors {
    background: #a0a0a0;
    color: #ff9999;
    border-left: 4px solid #ff9999;
}

/* Profile link styles */
.user-welcome h4 a.profile-link {
    color: #fff200;
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-welcome h4 a.profile-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.user-action-links {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-link-btn {
    background: #2b2b2b;
    color: #ffffff !important;
    padding: 8px 16px;
    border: 2px solid #fff200;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.profile-link-btn:hover {
    background: #fff200;
    color: #2b2b2b !important;
    transform: translateY(-2px);
}

.user-action-links .separator {
    color: #c8c8c8;
    font-weight: 300;
}

.user-action-links .logout-link {
    color: #fff200;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.user-action-links .logout-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Avatar as clickable link */
.user-avatar a {
    display: block;
    transition: transform 0.3s ease;
}

.user-avatar a:hover {
    transform: scale(1.05);
}

.user-avatar img {
    border-radius: 50%;
    border: 3px solid #fff200;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-action-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-action-links .separator {
        display: none;
    }
}

/* Lost Password link below Remember Me */
.login-form-lostpassword {
    margin: 15px 0 20px 0;
    text-align: left;
}

.lostpassword-link {
    color: #fff200;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
}

.lostpassword-link:hover {
    color: #ffffff;
    border-bottom-color: #fff200;
    transform: translateX(5px);
}

/* Remove the old lost password link from the footer */
.login-form-links .lost-password-link {
    display: none; /* Hide the old one if it still exists */
}

/* If you want to keep the divider line styling */
.login-form-lostpassword {
    position: relative;
}

.login-form-lostpassword::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #555, transparent);
    margin-top: 15px;
}


/* Keep only Simple Local Avatars section */
h3:contains('Simple Local Avatars'),
h3:contains('Custom Avatar'),
.simple-local-avatars-section {
    display: block !important;
}

/* ============================================
   PROFILE PAGE - FORCE ONE COLUMN ON MOBILE
   ============================================ */
@media screen and (max-width: 782px) {
    /* Target profile page only */
    body.profile-php .form-table tr,
    body.user-edit-php .form-table tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-bottom: 25px !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #444 !important;
    }
    
    body.profile-php .form-table th,
    body.user-edit-php .form-table th {
        display: block !important;
        width: 100% !important;
        padding: 0 0 8px 0 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #fff200 !important;
    }
    
    body.profile-php .form-table td,
    body.user-edit-php .form-table td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    body.profile-php .form-table input[type="url"],
    body.user-edit-php .form-table input[type="url"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
    }
}

/* Force hide all avatar sections except ours */
body.profile-php .user-profile-picture,
body.user-edit-php .user-profile-picture,
body.profile-php tr.user-profile-picture,
body.user-edit-php tr.user-profile-picture,
body.profile-php h2:contains('Avatar'),
body.user-edit-php h2:contains('Avatar'),
body.profile-php .simple-local-avatar-section,
body.user-edit-php .simple-local-avatar-section {
    display: none !important;
}

/* Style our custom avatar section */
body.profile-php h2:contains('Custom Avatar'),
body.user-edit-php h2:contains('Custom Avatar') {
    color: #fff200 !important;
    border-bottom: 2px solid #fff200 !important;
    padding-bottom: 10px !important;
}

/* Remove search form */
.bbp-search-form {
    display: none;
}

.bbp-forum-content .bbp-forum-meta .bbp-forum-description {
    display: none !important;
}

.bbp-forum-info .bbp-forum-meta {
    display: none !important;
}


