/*
Theme Name: Astra Child
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom child theme for Astra.
Template: astra
Version: 1.0
*/

/* Global Font Family - Apply Noto Sans TC to entire site */
body,
html,
* {
    font-family: "Noto Sans TC", sans-serif !important;
}

/* Example customization */
/* Change Astra top bar background */
/* Astra Main Header Background Color */


/* Header/Top navigation background */

/* * {
    outline: 1px solid red !important;
  } */

/* Author page - Force white text for author bio field */
.author-archive-details,
.author-archive-details * {
    color: white !important;
}

/* Author box in post detail page - Left align text */
.elementor-author-box {
    text-align: left !important;
    align-items: flex-start !important;
}
  
/* Force logo size */
i.fab::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-weight: normal;
  color: #ffffff;
}


.ast-primary-header-bar {
    background-color: #3174cc !important; /* Blue background */
  }
  
  /* Mobile header background */
  #ast-mobile-header .ast-primary-header-bar {
    background-color: #3174cc !important; /* Blue background */
  }

  /* Override the CSS variable that controls navbar height - it increases on mobile by default */
  :root {
    --navbar-height: 70px;
  }

  /* Set mobile header height to 70px to prevent content from being hidden */
  @media (max-width: 768px) {
    :root {
      --navbar-height: 70px !important;
    }

    /* Force ONLY the primary header bar to fixed height */
    .ast-mobile-header-wrap .ast-primary-header-bar,
    .ast-primary-header-bar {
      min-height: 70px !important;
      max-height: 70px !important;
      height: 70px !important;
    }

    /* Let the site header auto-size but don't constrain its height */
    #masthead,
    .site-header {
      height: auto !important;
    }

    /* Control inner header elements */
    .ast-mobile-header-wrap,
    .main-header-bar-wrap,
    .ast-primary-header-bar,
    .site-primary-header-wrap {
      min-height: 70px !important;
      max-height: 70px !important;
      height: 70px !important;
    }

    /* Adjust menu item line height for mobile */
    /* DISABLED: This was causing blue button arrow to not be centered */
    /* .ast-mobile-header-wrap .main-header-menu > .menu-item {
      line-height: 70px !important;
    } */

    /* Control padding that might expand the header */
    .ast-mobile-header-wrap .ast-primary-header-bar {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    /* Control the container inside the header */
    .site-header .ast-container,
    .main-header-bar .ast-container {
      min-height: 70px !important;
      max-height: 70px !important;
    }

    /* Ensure content starts below the fixed 70px header */
    #page,
    #content,
    .site-content {
      margin-top: 0 !important;
      padding-top: 0 !important;
    }

    /* Position sticky header correctly */
    .site-header.ast-header-break-point {
      position: sticky !important;
      top: 0 !important;
      z-index: 999 !important;
    }
  }


  /* Make menu links white */
  .ast-primary-header-bar a,
  #ast-mobile-header .ast-primary-header-bar a {
    color: #ffffff !important; /* White text */
  }
  
  /* Menu hover effect (light gray on hover) */
  .ast-primary-header-bar a:hover,
  #ast-mobile-header .ast-primary-header-bar a:hover {
    color: #f0f0f0 !important;
    font-weight: bold !important;
  }
/* Make the mobile menu toggle icon white */
button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-minimal .mobile-menu-toggle-icon svg {
    fill: #ffffff !important;
    color: #ffffff !important;
  }

/* Hide hamburger icon shade/border */
@media (max-width: 768px) {
    button.menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-minimal {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}

  /* Header background */

  /* Footer background */
/* Style the section below footer */
.site-below-footer-wrap {
    background-color: #3174cc !important; /* Your desired background */
    color: #ffffff !important;
    padding: 20px 0 !important;
    text-align: center;
  }
  
  /* Copyright text */
  .ast-footer-copyright p {
    margin: 0;
    color: #ffffff !important;
    font-size: 14px;
  }
  
  /* Links inside the footer */
  .ast-footer-copyright a {
    color: #ffffff !important;
    text-decoration: underline;
  }
  
  .ast-footer-copyright a:hover {
    color: #cccccc !important;
  }
  
  /* banner image */
  #banner-image {
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#banner-image > .e-con-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

#banner-image > .e-con-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

#banner-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

#banner-image img:hover {
    transform: scale(1.02);
}

.post-category a{
  color: #ffffff !important;
}

@media (max-width: 768px) {
    #banner-image > .e-con-inner {
        flex-direction: column !important;
        padding: 20px 15px !important;
        max-width: 100% !important;
    }
}

/* Add your custom CSS below this line */
.author-info {
  position: relative;
  left: 50%;
  right: 0 !important;
  width: 100vw;
  margin-left: -50vw;
  z-index: auto;
  margin-bottom: 24px;
  background-image: url('./assets/WEEKLY.jpg');
  background-size: auto;
  background-position: center;
  border-bottom-right-radius: 120px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #fff;
  /* Responsive height */
  min-height: 180px;
  padding: 20px 0;
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .author-info {
    position: relative;
    left: 50%;
    right: 0 !important;
    width: 100vw;
    margin-left: -50vw;
    z-index: auto;
    margin-bottom: 24px;
    background-image: url('./assets/WEEKLY.jpg');
    background-size: auto;
    background-position: center;
    border-bottom-right-radius: 70px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #fff;
    /* Responsive height */
    min-height: 180px;
    padding: 20px 15px;
  }

}

.author-avatar {
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #30af9e;

}

@media (max-width: 768px) {
  .author-avatar {
    justify-content: top;
    display: flex;
    flex-direction: horizontal;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #30af9e;
  }
}

/* Fix for search input text color */
.global-search-input {
  color: #333 !important;
}

/* Position the filter button at the end of the author-info section */
.filter-posts {
    display: flex;
    justify-content: flex-end; /* Align the button to the end */
    margin-top: 20px;
    margin-bottom: 20px;
}

.filter-posts select {
  padding: 5px 30px 5px 10px; /* left padding + space for arrow */
  padding: 5px 2.5em 5px 10px; /* extra right padding for arrow */
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #3174cc;
  color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,100 100,50 40,50' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 0.6em;
  display: inline-block;
  width: fit-content;
}
.archive-sort-dropdown {
    position: relative;
    display: inline-block;
}
/* Wrapper styling to mimic dropdown structure */
.select-wrapper {
  position: relative;
  display: inline-block;
}

/* Native <select> styled like a custom button */
.select-wrapper select#sort-posts {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  color: #3174cc;
  border: 1.5px solid #3174cc;
  border-radius: 6px;
  padding: 8px 40px 8px 18px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%233174cc" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M6 8l4-4 4 4M14 12l-4 4-4-4" stroke="%233174cc" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

/* Hover/focus states */
.select-wrapper select#sort-posts:hover,
.select-wrapper select#sort-posts:focus {
  background-color: #3174cc;
  color: #fff;
  border-color: #3174cc;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M6 8l4-4 4 4M14 12l-4 4-4-4" stroke="white" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* Ensure full width in small containers if needed */
@media (max-width: 480px) {
  .select-wrapper select#sort-posts {
    width: 100%;
  }
}




.author-details{
  margin-top: 20px;
}

.author-details h2,
.author-details p {
  color: #ffffff;
  
}



html body .site-main .ast-container {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Fix for search results display */
.srp-sort-dropdown-list {
  display: none !important;
  flex-direction: column !important;
}

.srp-sort-dropdown-list.active {
  display: flex !important;
}

.post-category {
  color: #ffffff !important;
}

/* Golden UI Card Styles (applied to .archive only) */
.archive .archive-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  justify-content: center;
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}
@media (max-width: 1024px) {
  .archive .archive-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .archive .archive-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.archive .archive-post-card {
  background: #fff;
  border-radius: 15px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.archive .archive-post-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.archive .archive-post-meta {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.archive .archive-post-category {
  display: inline-block;
  background-color: #f0f7ff;
  color: #3174cb !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  width: max-content;
}
.archive .archive-post-category:hover,
.archive .archive-post-category:hover a {
  background-color: #3174cb;
  color: #fff !important;
}
.archive .archive-post-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin: 10px 0;
}
.archive .archive-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.archive .archive-post-title a:hover {
  color: #3174cb;
}
.archive .archive-post-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  height: auto;
  max-height: 3.2em;
}
.archive .post-thumbnail,
.archive .archive-post-image {
  overflow: hidden;
  border-radius: 15px 15px 0 0 !important;
}
.archive .post-thumbnail img,
.archive .archive-post-image img {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
}
.archive .archive-post-card:hover .post-thumbnail img,
.archive .archive-post-card:hover .archive-post-image img {
  transform: scale(1.05);
}
.archive .archive-post-author-date {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #777;
  margin-top: auto;
  gap: 0.5rem;
}
.archive .archive-post-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Filter Button Styles */
.filter-button {
    background-color: #3174cc; /* White background */
    color: white; /* Blue text */
    border: 1px solid #3174cc;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.filter-button i {
    font-family: FontAwesome;
    color: #ffffff; /* White filter icon */
    background-color: #3174cc; /* Blue background for icon */
    border-radius: 50%;
    justify-content: end;
    
}

.filter-button:hover {
    background-color: white; /* Blue background */
    color: #3174cc; /* White text */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Filter Popup Styles */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.filter-popup-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.filter-popup-content h2 {
    margin-bottom: 20px; /* Add spacing below the title */
    color: #3174cc;
    font-size: 24px; /* Adjust font size if needed */
    text-align: center; /* Ensure the title is centered */
}

.filter-popup-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #3174cc;
}

.filter-popup-content input,
.filter-popup-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.filter-popup-content button {
    margin: 5px;
}
#content{
  margin-left: 0px !important;
}

/* Bottom Banner Styles */
.bottom-banner {
  background-image: url('./assets/WEEKLYFOTTER.jpg'); /* Ensure the path to the image is correct */
  background-size: fill; /* Ensures the image covers the entire div */
  background-position: center; /* Centers the image */
  height: 300px; /* Adjust height as needed */
  width: 100vw;
  margin-top: 50px;
  color: #ffffff;
  display: flex; /* Ensures proper alignment of child elements */
  align-items: center; /* Vertically centers content */
  
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: none; /* Hidden by default */
    overflow-y: auto;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

.popup-overlay .popup-content {
    margin-top: 60px;
}

.popup-close {
    position: absolute;
    top: 50px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #3174cc; /* Default blue color */
    background-color: transparent; /* Transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.popup-close:hover {
    background-color: #3174cc; /* Blue background on hover */
    color: white; /* White text on hover */
    border-radius: 50%; /* Make it circular on hover */
    width: 40px; /* Set width for the circle on hover */
    height: 40px; /* Set height for the circle on hover */
}


.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Category Buttons - Commented out to prevent conflicts with tag search */

/* .tag {

    background-color: white; 
    color: #3174cc; 
    padding: 6px 12px;
    border-radius: 5px;
    border: #3174cc solid 1px; 
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
} */

/* .tag.active {
    background-color: #3174cc;
    color: white;
    width: max-content; 
}
*/

/* .tag:hover {
    background-color: #3174cc; 
    color: white; 
    border: 1px solid #3174cc;
}  */
.catag {
    display: inline-flex;
    align-items: center;
    background-color: white; 
    color: #3174cc; 
    padding: 6px 16px;
    border-radius: 6px;
    border: 1.5px solid #3174cc; 
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
    margin: 5px;
    position: relative;
}

.catag.active {
    display: inline-flex;
    align-items: center;
    background-color: #3174cc; 
    color: white; 
    border-radius: 6px;
    border: 1.5px solid #3174cc; 
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.catag:hover {
    background-color: #3174cc;
    color: white;
}


.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start; /* Ensures children align to the left */
  padding: 10px;
  margin: 0 auto; /* Center the group itself */
  width: fit-content; /* Optional: shrink to fit content */
}

.radio-group input {
    margin-right: 8px;
    accent-color: #3174cc;
}

.actions {
    margin-top: 20px; /* Add spacing above the buttons */
}

.actions button {
    background-color: #3174cc;
    color: white;
    padding: 10px 30px; /* Adjust padding for better spacing */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px; /* Add spacing between the title and button */
}

.actions .reset {
    margin-top: 10px;
    font-size: 14px;
    color: #3174cc;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.divider {
  margin: 20px 0; /* Add vertical spacing above and below the divider */
 /* Optional: Add a border to visually separate sections */
}

.site-main, #main-content {
    width: 100%;
    min-height: 60vh; /* or whatever fits your design */
    box-sizing: border-box;
  
}
#content{
  background: #fff;
  width: 100vw;
}
/* .filter-popup .align-left {
    text-align: left;
} */

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
/* Date Range Section */
.date-range-section {
  text-align: left;
  padding: 0 20px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.section.align-left {
  text-align: left;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: left;
  width: 50%;
}

.section.align-left h3 {
  text-align: left;
  margin-left: 0;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  margin: 0;
  width: fit-content;
  text-align: left;
}

.radio-group label {
  text-align: left;
  margin-left: 0;
}
/* 
a{
  color: rgb(134, 39, 39) !important;
} */

@media (max-width: 767px) {
  .blue-sticky-toc-list.visible {
    top: 44px !important;  /* moves it below the nav bar */
    z-index: 9999 !important;
  }
}


.blue-boxx {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mega-menu-icon-wrapper {
    margin-bottom: 0px; /* Minimized bottom margin for icon blocks */
    text-align: left;
}
.mega-menu-icon-block {
    margin-top: 16px; /* Minimized bottom margin for icon blocks */
    text-align: left;
}
.mega-menu-icon-block:last-child {
    margin-bottom: 0;
}
/* Add a larger margin below the first promotion banner if needed */
/* .blue-box-img {
    margin-bottom: 32px;
} */
.mega-menu-icon-img {
    width: 100%;
    height: auto;
    display: block;
    text-align: left;
}
.icon-heading, .icon-text {
    text-align: left;
}
.mega-menu-icon-wrapper {
    width: 100%;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none;
    color: inherit;
}

.mega-menu-button {
    display: flex;
    align-items: center;
    justify-content: start;
    text-decoration: none;
    margin-top: 10px;
    background-color: #3879CD;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    margin-right: 4px;
}

/* Override inherited line-height to fix arrow centering */
.ast-mobile-header-wrap .main-header-menu .mega-menu-button {
    line-height: normal !important;
}

@media (max-width: 800px) {
  .popup-overlay .popup-content {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
  .popup-overlay .archive-tags,
  .popup-overlay .section,
  .popup-overlay .radio-group {
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }
}

/* Mobile Menu Right Section Hiding - Smooth Animation */
@media (max-width: 921px) {
    .site-header-primary-section-right.site-header-section.ast-flex.ast-grid-right-section {
        transition: opacity 0.2s ease-in-out;
        opacity: 1;
    }
    
    /* Only hide when mobile menu is actually open */
    body.ast-main-header-nav-open .site-header-primary-section-right.site-header-section.ast-flex.ast-grid-right-section {
        opacity: 0;
        pointer-events: none;
    }
}

/* Enable vertical scrolling for mobile menu when content overflows */
@media (max-width: 1024px) {
    .ast-builder-menu-mobile,
    .ast-mobile-menu,
    .ast-header-break-point .main-navigation {
        max-height: calc(100vh - 80px); /* Account for header height */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-behavior: smooth;
    }
    
    /* Ensure main menu container is scrollable */
    .ast-builder-menu-mobile .main-header-menu,
    .ast-mobile-menu .main-header-menu,
    .ast-header-break-point .main-navigation .main-header-menu {
        max-height: inherit;
        overflow-y: auto;
    }
    
    /* Style the scrollbar for better appearance */
    .ast-builder-menu-mobile::-webkit-scrollbar,
    .ast-mobile-menu::-webkit-scrollbar,
    .ast-header-break-point .main-navigation::-webkit-scrollbar {
        width: 6px;
    }
    
    .ast-builder-menu-mobile::-webkit-scrollbar-track,
    .ast-mobile-menu::-webkit-scrollbar-track,
    .ast-header-break-point .main-navigation::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .ast-builder-menu-mobile::-webkit-scrollbar-thumb,
    .ast-mobile-menu::-webkit-scrollbar-thumb,
    .ast-header-break-point .main-navigation::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }
    
    .ast-builder-menu-mobile::-webkit-scrollbar-thumb:hover,
    .ast-mobile-menu::-webkit-scrollbar-thumb:hover,
    .ast-header-break-point .main-navigation::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Hide mobile menu dropdown arrows - all variations */
/*
@media (max-width: 1024px) {
    .ast-builder-menu-mobile .ast-menu-toggle,
    .ast-builder-menu-mobile .dropdown-menu-toggle,
    .ast-mobile-menu .ast-menu-toggle,
    .ast-mobile-menu .dropdown-menu-toggle,
    .ast-header-break-point .main-navigation .ast-menu-toggle,
    .ast-header-break-point .main-navigation .dropdown-menu-toggle {
        display: none !important;
    }
}
*/

/* Make full menu item clickable area - all mobile menu variations */
@media (max-width: 1024px) {
    .ast-builder-menu-mobile .menu-item-has-children > .menu-link,
    .ast-mobile-menu .menu-item-has-children > .menu-link,
    .ast-header-break-point .main-navigation .menu-item-has-children > .menu-link {
        cursor: pointer;
    }
}

/* Remove any arrow indicators and ensure proper spacing */
@media (max-width: 1024px) {
    .ast-builder-menu-mobile .menu-item-has-children > .menu-link::after,
    .ast-mobile-menu .menu-item-has-children > .menu-link::after,
    .ast-header-break-point .main-navigation .menu-item-has-children > .menu-link::after {
        display: none !important;
    }
}



/* Ensure submenu visibility when toggled */
@media (max-width: 1024px) {
    .ast-builder-menu-mobile .sub-menu.toggled-on,
    .ast-mobile-menu .sub-menu.toggled-on,
    .ast-header-break-point .main-navigation .sub-menu.toggled-on {
        display: block !important;
    }

    /* Style the submenu items */
    .ast-builder-menu-mobile .sub-menu .menu-item > .menu-link,
    .ast-mobile-menu .sub-menu .menu-item > .menu-link,
    .ast-header-break-point .main-navigation .sub-menu .menu-item > .menu-link {
        padding-left: 40px;
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* Ensure nested submenu items maintain original styling while being clickable */
    .ast-builder-menu-mobile .sub-menu .menu-item-has-children > .menu-link,
    .ast-mobile-menu .sub-menu .menu-item-has-children > .menu-link,
    .ast-header-break-point .main-navigation .sub-menu .menu-item-has-children > .menu-link {
        cursor: pointer;
    }
}

/* Fix dropdown toggle icon visibility - make them darker for better contrast */
@media (max-width: 1024px) {
    .ast-builder-menu-mobile .ast-menu-toggle,
    .ast-builder-menu-mobile .dropdown-menu-toggle,
    .ast-mobile-menu .ast-menu-toggle,
    .ast-mobile-menu .dropdown-menu-toggle,
    .ast-header-break-point .main-navigation .ast-menu-toggle,
    .ast-header-break-point .main-navigation .dropdown-menu-toggle {
        color: #3174cc !important; /* Use your theme's blue color for better visibility */
        /* Remove box shadows and focus borders */
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    /* Also style the SVG icons inside the toggle buttons */
    .ast-builder-menu-mobile .ast-menu-toggle svg,
    .ast-builder-menu-mobile .dropdown-menu-toggle svg,
    .ast-mobile-menu .ast-menu-toggle svg,
    .ast-mobile-menu .dropdown-menu-toggle svg,
    .ast-header-break-point .main-navigation .ast-menu-toggle svg,
    .ast-header-break-point .main-navigation .dropdown-menu-toggle svg {
        fill: #3174cc !important;
        color: #3174cc !important;
    }
    
    /* Remove focus borders from menu items and buttons */
    .ast-builder-menu-mobile .menu-item:focus,
    .ast-mobile-menu .menu-item:focus,
    .ast-header-break-point .main-navigation .menu-item:focus,
    .ast-builder-menu-mobile .ast-menu-toggle:focus,
    .ast-builder-menu-mobile .dropdown-menu-toggle:focus,
    .ast-mobile-menu .ast-menu-toggle:focus,
    .ast-mobile-menu .dropdown-menu-toggle:focus,
    .ast-header-break-point .main-navigation .ast-menu-toggle:focus,
    .ast-header-break-point .main-navigation .dropdown-menu-toggle:focus {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Remove any background or border from menu items when clicked/focused */
    .ast-builder-menu-mobile .menu-item:active,
    .ast-mobile-menu .menu-item:active,
    .ast-header-break-point .main-navigation .menu-item:active,
    .ast-builder-menu-mobile .menu-item:focus,
    .ast-mobile-menu .menu-item:focus,
    .ast-header-break-point .main-navigation .menu-item:focus {
        background: transparent !important;
        border: none !important;
        outline: none !important;
    }
    
    /* Remove focus styling from ALL dropdown menu items (including submenu items) */
    .ast-builder-menu-mobile .sub-menu .menu-item:focus,
    .ast-mobile-menu .sub-menu .menu-item:focus,
    .ast-header-break-point .main-navigation .sub-menu .menu-item:focus,
    .ast-builder-menu-mobile .sub-menu .menu-item:active,
    .ast-mobile-menu .sub-menu .menu-item:active,
    .ast-header-break-point .main-navigation .sub-menu .menu-item:active,
    .ast-builder-menu-mobile .sub-menu .menu-item:hover,
    .ast-mobile-menu .sub-menu .menu-item:hover,
    .ast-header-break-point .main-navigation .sub-menu .menu-item:hover {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    /* Remove focus styling from all menu links */
    .ast-builder-menu-mobile .menu-link:focus,
    .ast-mobile-menu .menu-link:focus,
    .ast-header-break-point .main-navigation .menu-link:focus,
    .ast-builder-menu-mobile .menu-link:active,
    .ast-mobile-menu .menu-link:active,
    .ast-header-break-point .main-navigation .menu-link:active {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
}
.custom-widget-title {
    font-size: 18px; /* Match your h2 font size */
    font-weight: bold; /* Match h2 weight */
    margin-bottom: 15px; /* Optional */
    color: white;
}

/* Mobile Menu Toggle Button - Full Width with Right-Aligned Arrow */
@media (max-width: 1024px) {
    .ast-builder-menu-mobile .ast-menu-toggle,
    .ast-mobile-menu .ast-menu-toggle,
    .ast-header-break-point .main-navigation .ast-menu-toggle {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        text-align: left !important;
    }
    
    /* Ensure the arrow stays on the right */
    .ast-builder-menu-mobile .ast-menu-toggle .ast-icon,
    .ast-mobile-menu .ast-menu-toggle .ast-icon,
    .ast-header-break-point .main-navigation .ast-menu-toggle .ast-icon {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* Hide screen reader text but keep it accessible */
    .ast-builder-menu-mobile .ast-menu-toggle .screen-reader-text,
    .ast-mobile-menu .ast-menu-toggle .screen-reader-text,
    .ast-header-break-point .main-navigation .ast-menu-toggle .screen-reader-text {
        position: absolute !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
    }
}

/* Standardize all dividers to 1px height and #E5E5E5 color */
.wp-block-separator {
    height: 1px !important;
    background-color: #E5E5E5 !important;
    border: none !important;
}

.wp-block-separator.has-alpha-channel-opacity {
    height: 1px !important;
    background-color: #E5E5E5 !important;
    border: none !important;
}

.wp-block-separator.is-style-wide {
    height: 1px !important;
    background-color: #E5E5E5 !important;
    border: none !important;
}

.wp-block-separator.is-style-dots {
    height: 1px !important;
    background-color: #E5E5E5 !important;
    border: none !important;
}

/* Table font styling - Change from 15px to 16px and color to #636972 */
.kb-table-data13375_3fd5d5_ic,
.kb-table-data13375_3fd5d5_ic td,
.kb-table-data13375_3fd5d5_ic th,
.kb-table-data13375_3fd5d5_ic p,
.kb-table-data13375_3fd5d5_ic span,
.kb-table-data13375_3fd5d5_ic * {
    font-size: 16px !important;
    color: #636972 !important;
}

/* Bullet point styling - Change color to #636972 and size to 16px */
.kb-table-data13375_3fd5d5_ic ul,
.kb-table-data13375_3fd5d5_ic ol,
.kb-table-data13375_3fd5d5_ic ul li,
.kb-table-data13375_3fd5d5_ic ol li {
    font-size: 16px !important;
    color: #636972 !important;
    font-family: "Noto Sans TC", sans-serif !important;
}

/* Bullet point marker color */
.kb-table-data13375_3fd5d5_ic ul li::marker,
.kb-table-data13375_3fd5d5_ic ol li::marker {
    color: #636972 !important;
    font-size: 16px !important;
}


/* Kadence Table - Hardcode 8px margin-top and margin-bottom for all cell content */
/* Target all paragraphs, lists, and list items inside table cells */
.kb-table-container td p,
.kb-table-container th p,
.kb-table-container td ul,
.kb-table-container th ul,
.kb-table-container td ol,
.kb-table-container th ol,
.kb-table-container td li,
.kb-table-container th li,
.kb-table-container td div,
.kb-table-container th div,
.kb-table td p,
.kb-table th p,
.kb-table td ul,
.kb-table th ul,
.kb-table td ol,
.kb-table th ol,
.kb-table td li,
.kb-table th li,
.kb-table td div,
.kb-table th div,
[class*="kb-table"] td p,
[class*="kb-table"] th p,
[class*="kb-table"] td ul,
[class*="kb-table"] th ul,
[class*="kb-table"] td ol,
[class*="kb-table"] th ol,
[class*="kb-table"] td li,
[class*="kb-table"] th li,
[class*="kb-table"] td div,
[class*="kb-table"] th div {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* Kadence Table Bullet Fix - Remove all left padding/margin from lists */
.kb-table-container ul,
.kb-table-container ol,
.kb-table ul,
.kb-table ol,
[class*="kb-table"] ul,
[class*="kb-table"] ol {
    padding-left: 0.9em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    list-style-position: outside !important;
}

.kb-table-container ul li,
.kb-table-container ol li,
.kb-table ul li,
.kb-table ol li,
[class*="kb-table"] ul li,
[class*="kb-table"] ol li {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Blog Content Alignment - Bullet point styling for all blog content */
/* Apply to single post content, blog archives, and general content areas */
.single-post .entry-content ul li::marker,
.single-post .entry-content ol li::marker,
article .entry-content ul li::marker,
article .entry-content ol li::marker,
.blog .entry-content ul li::marker,
.blog .entry-content ol li::marker,
.ast-single-post .entry-content ul li::marker,
.ast-single-post .entry-content ol li::marker {
    color: #636972 !important;
    font-size: 16px !important;
}

/* Blog Content - List margin (reduce default 3em to 2em) */
/* Exclude Kadence tables from this rule */
.single-post .entry-content ul:not([class*="kb-table"] ul):not(.kb-table-container ul),
.single-post .entry-content ol:not([class*="kb-table"] ol):not(.kb-table-container ol),
article .entry-content ul:not([class*="kb-table"] ul):not(.kb-table-container ul),
article .entry-content ol:not([class*="kb-table"] ol):not(.kb-table-container ol),
.blog .entry-content ul:not([class*="kb-table"] ul):not(.kb-table-container ul),
.blog .entry-content ol:not([class*="kb-table"] ol):not(.kb-table-container ol),
.ast-single-post .entry-content ul:not([class*="kb-table"] ul):not(.kb-table-container ul),
.ast-single-post .entry-content ol:not([class*="kb-table"] ol):not(.kb-table-container ol),
.elementor-widget-container ul:not([class*="kb-table"] ul):not(.kb-table-container ul),
.elementor-widget-container ol:not([class*="kb-table"] ol):not(.kb-table-container ol),
.wp-block-list ul:not([class*="kb-table"] ul):not(.kb-table-container ul),
.wp-block-list ol:not([class*="kb-table"] ol):not(.kb-table-container ol) {
    margin-left: 2em !important;
}

/* Blog Content - List item spacing (1.5 character spacing) */
.single-post .entry-content ul li,
.single-post .entry-content ol li,
article .entry-content ul li,
article .entry-content ol li,
.blog .entry-content ul li,
.blog .entry-content ol li,
.ast-single-post .entry-content ul li,
.ast-single-post .entry-content ol li {
    letter-spacing: 0.09em !important; /* 1.5 character spacing approximation */
    word-spacing: 0.15em !important; /* Additional spacing for better readability */
    font-family: "Noto Sans TC", sans-serif !important;
}

/* POPUP MAKER - Responsive Square Popup (600px x 600px at 676px+) */

/* Mobile/Tablet: Below 676px - Scale proportionally (square aspect ratio) */
@media only screen and (max-width: 675px) {
    .pum-container.pum-responsive,
    .pum-container.pum-responsive.pum-responsive-nano,
    .pum-container.pum-responsive.pum-responsive-micro,
    .pum-container.pum-responsive.pum-responsive-tiny,
    .pum-container.pum-responsive.pum-responsive-small,
    .pum-container.pum-responsive.pum-responsive-medium,
    .pum-container.pum-responsive.pum-responsive-normal,
    .pum-container.pum-responsive.pum-responsive-large,
    .pum-container.pum-responsive.pum-responsive-xlarge {
        width: 90vw !important; /* 90% of viewport width */
        height: 90vw !important; /* Same as width to maintain square */
        max-width: 90vw !important;
        max-height: 90vw !important;
        overflow: visible !important;
        position: relative !important;
    }
}

/* Desktop: 676px and above - Fixed 600px x 600px square */
@media only screen and (min-width: 676px) {
    .pum-container.pum-responsive,
    .pum-container.pum-responsive.pum-responsive-nano,
    .pum-container.pum-responsive.pum-responsive-micro,
    .pum-container.pum-responsive.pum-responsive-tiny,
    .pum-container.pum-responsive.pum-responsive-small,
    .pum-container.pum-responsive.pum-responsive-medium,
    .pum-container.pum-responsive.pum-responsive-normal,
    .pum-container.pum-responsive.pum-responsive-large,
    .pum-container.pum-responsive.pum-responsive-xlarge {
        width: 600px !important;
        height: 600px !important;
        max-width: 600px !important;
        max-height: 600px !important;
        margin-left: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        overflow: visible !important;
        position: relative !important;
    }
}

/* Popup content - No scroll bars, centered */
.pum-container .pum-content {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    overflow-y: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Images inside popup - Fit within container */
.pum-container .pum-content img {
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* Fix scroll-to-top button z-index to appear above bottom promotion banner */
#espt-scroll-top {
    z-index: 9999 !important;
    position: fixed !important;
}

/* Ensure bottom promotion banner stays below scroll-to-top button */
.bpp-bottom-banner,
div[class*="bpp-bottom-banner"],
div[id*="bpp-bottom-banner"] {
    z-index: 999 !important;
}

/* Mobile Navbar: Fix vertical centering after reducing height to 70px */
@media (max-width: 768px) {
    .ast-primary-header-bar.main-header-bar {
        display: flex !important;
        align-items: center !important;
    }

    .ast-primary-header-bar .ast-builder-grid-row {
        display: flex !important;
        align-items: center !important;
        width: 100%;
        justify-content: space-between !important;
    }

    /* Ensure right section stays on extreme right */
    .site-header-primary-section-right.site-header-section.ast-flex.ast-grid-right-section {
        display: flex !important;
        align-items: center !important;
        margin-left: auto !important;
        justify-content: flex-end !important;
    }

    /* Left section alignment */
    .site-header-primary-section-left.site-header-section.ast-flex.site-header-section-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
}

/* ====================================================================
   KADENCE TABLE - RESPONSIVE HORIZONTAL SCROLL FOR SMALLER SCREENS
   ==================================================================== */

/* Wrapper for horizontal scroll on all screen sizes below 920px */
@media (max-width: 920px) {
    /* Create a scrollable container for Kadence tables */
    /* CRITICAL: Override Kadence's overflow:hidden with higher specificity */
    .kb-table-container,
    div.kb-table-container,
    div[class*="kb-table-container"] {
        width: 100% !important;
        overflow: visible !important; /* Override Kadence's overflow:hidden */
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
        margin-bottom: 20px !important;
        position: relative !important;
        border-radius: 16px !important; /* Maintain Kadence's border radius */
    }

    /* Ensure the table doesn't shrink and maintains its width */
    .kb-table-container .kb-table,
    .kb-table-container table,
    [class*="kb-table-container"] .kb-table,
    [class*="kb-table-container"] table {
        min-width: 600px !important; /* Minimum width to prevent column squashing */
        width: auto !important;
        table-layout: auto !important;
        border-collapse: separate !important; /* Changed to separate to allow border-radius */
        border-spacing: 0 !important; /* Remove spacing between cells */
        border-radius: 16px !important; /* Add border-radius to table */
        overflow: hidden !important; /* Clip backgrounds to rounded corners */
    }

    /* Apply border-radius to corner header cells to clip background overflow */
    .kb-table-container .kb-table thead tr:first-child th:first-child,
    [class*="kb-table-container"] .kb-table thead tr:first-child th:first-child {
        border-top-left-radius: 16px !important;
    }

    .kb-table-container .kb-table thead tr:first-child th:last-child,
    [class*="kb-table-container"] .kb-table thead tr:first-child th:last-child {
        border-top-right-radius: 16px !important;
    }

    .kb-table-container .kb-table tbody tr:last-child td:first-child,
    .kb-table-container .kb-table tbody tr:last-child th:first-child,
    [class*="kb-table-container"] .kb-table tbody tr:last-child td:first-child,
    [class*="kb-table-container"] .kb-table tbody tr:last-child th:first-child {
        border-bottom-left-radius: 16px !important;
    }

    .kb-table-container .kb-table tbody tr:last-child td:last-child,
    .kb-table-container .kb-table tbody tr:last-child th:last-child,
    [class*="kb-table-container"] .kb-table tbody tr:last-child td:last-child,
    [class*="kb-table-container"] .kb-table tbody tr:last-child th:last-child {
        border-bottom-right-radius: 16px !important;
    }

    /* Style the scrollbar for better visibility */
    .kb-table-container::-webkit-scrollbar {
        height: 8px !important;
        background-color: #f5f5f5 !important;
    }

    .kb-table-container::-webkit-scrollbar-track {
        background-color: #f5f5f5 !important;
        border-radius: 4px !important;
    }

    .kb-table-container::-webkit-scrollbar-thumb {
        background-color: #3174cc !important;
        border-radius: 4px !important;
        transition: background-color 0.3s ease !important;
    }

    .kb-table-container::-webkit-scrollbar-thumb:hover {
        background-color: #2563a8 !important;
    }

    /* REMOVED: Shadow indicator that was creating visible spot when scrolling */
    /* The ::after pseudo-element has been removed to fix the shaded mark issue */

    /* Ensure table cells maintain proper spacing */
    .kb-table td,
    .kb-table th,
    [class*="kb-table"] td,
    [class*="kb-table"] th {
        white-space: normal !important; /* Allow text wrapping within cells */
        padding: 12px 16px !important;
        min-width: 120px !important; /* Minimum cell width to prevent crushing */
    }

    /* First column (usually header column) can be narrower */
    .kb-table td:first-child,
    .kb-table th:first-child,
    [class*="kb-table"] td:first-child,
    [class*="kb-table"] th:first-child {
        min-width: 100px !important;
    }
}

/* Extra small screens (mobile phones) - More aggressive horizontal scroll */
@media (max-width: 480px) {
    .kb-table-container .kb-table,
    .kb-table-container table,
    [class*="kb-table-container"] .kb-table,
    [class*="kb-table-container"] table {
        min-width: 500px !important; /* Slightly smaller minimum for very small screens */
    }

    /* Reduce padding on smaller screens for better content fit */
    .kb-table td,
    .kb-table th,
    [class*="kb-table"] td,
    [class*="kb-table"] th {
        padding: 10px 12px !important;
        font-size: 15px !important; /* Slightly smaller font for mobile */
    }
}

/* Add a scroll hint indicator for mobile users */
@media (max-width: 920px) {
    /* Add a swipe indicator before the table (optional - remove if not needed) */
    .kb-table-container::before {
        content: '← 左右滑動查看更多 →' !important;
        display: block !important;
        text-align: center !important;
        color: #3174cc !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 8px 0 !important;
        background-color: #f0f7ff !important;
        border-radius: 16px 16px 0 0 !important; /* Match container's 16px top border-radius */
        margin-bottom: 0 !important;
        animation: fadeOutHint 4s ease-in-out forwards !important;
    }

    /* Fade out the swipe hint after 4 seconds */
    @keyframes fadeOutHint {
        0%, 75% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            visibility: hidden;
        }
    }
}

/* Kadence Table - 1, 2, or 3 columns: fixed width, no horizontal scroll */
@media (max-width: 920px) {
    .kb-table-container.kb-table-fixed-width {
        overflow-x: hidden !important;
    }
    .kb-table-container.kb-table-fixed-width::before {
        display: none !important;
    }
    .kb-table-container.kb-table-fixed-width .kb-table {
        min-width: 100% !important;
        width: 100% !important;
    }
    .kb-table-container.kb-table-fixed-width .kb-table td,
    .kb-table-container.kb-table-fixed-width .kb-table th {
        min-width: unset !important;
    }
}

/* END KADENCE TABLE RESPONSIVE STYLING */

/* Fix long URLs breaking layout in blog content */
.elementor-widget-container {
  overflow-wrap: break-word;
}