/* AS-SBC Custom CSS Enhancements */

/* 1. Header enhancements */
.as-sbc-site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05) !important;
  height: auto !important;
  padding: 0 !important;
}

.as-sbc-site-header .container-wide {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  min-height: 90px !important;
  display: flex !important;
  align-items: center !important;
}

.as-sbc-logo {
  max-height: 88px !important;
  height: 88px !important;
  width: auto !important;
  transition: none !important;
}

.as-sbc-logo-link {
  display: block;
  transition: opacity 0.2s ease;
}

.as-sbc-logo-link:hover {
  opacity: 0.9;
  text-decoration: none !important;
}

.as-sbc-svg-logo {
  max-width: 100%;
  height: auto;
}

/* 2. Overlapping Mission Columns */
.mission-overlap-group {
  margin-top: -5rem !important;
  position: relative;
  z-index: 50;
}

.mission-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 12px !important;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  overflow: hidden;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 3. Country Chapters Carousel & Interactive Grid */
.chapters-section-wrapper {
  position: relative;
  overflow: hidden;
}

/* Carousel structure */
.chapters-carousel-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.chapters-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0.25rem 2rem 0.25rem;
  scrollbar-width: none; /* Firefox */
}

.chapters-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.chapter-card-wrapper {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Chapter Card Styling */
.chapter-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 240px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.chapter-card-pin {
  width: 36px;
  height: 36px;
  background-color: var(--wp--preset--color--light-green-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--wp--preset--color--primary-green);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.chapter-card:hover .chapter-card-pin {
  background-color: var(--wp--preset--color--primary-green);
  color: #ffffff;
}

.chapter-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wp--preset--color--dark-slate);
  margin: 0;
}

/* Detail reveal overlay */
.chapter-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--wp--preset--color--dark-slate);
  color: #ffffff;
  padding: 1.5rem;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-sizing: border-box !important;
}

.chapter-card:hover .chapter-detail-overlay,
.chapter-card.is-active .chapter-detail-overlay {
  transform: translateY(0);
}

.chapter-lead-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--secondary-blue);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.chapter-lead-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.chapter-brief {
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  color: var(--wp--preset--color--light-slate);
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.chapter-link-btn {
  display: inline-block;
  background-color: var(--wp--preset--color--accent-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.chapter-link-btn:hover {
  background-color: #d84b15;
  color: #ffffff;
  text-decoration: none;
}

/* Carousel Control Arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--wp--preset--color--dark-slate);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: all 0.2s ease;
  z-index: 20;
}

.carousel-nav-btn:hover {
  background-color: var(--wp--preset--color--primary-green);
  color: #ffffff;
  border-color: var(--wp--preset--color--primary-green);
}

.carousel-nav-prev {
  left: -22px;
}

.carousel-nav-next {
  right: -22px;
}

/* Carousel bottom page/indicator dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.carousel-dot.is-active {
  background-color: var(--wp--preset--color--primary-green);
  width: 16px;
  border-radius: 4px;
}

/* Chapter Search Box styling */
.chapter-search-box-container {
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.chapter-search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chapter-search-input:focus {
  border-color: var(--wp--preset--color--primary-green);
  box-shadow: 0 0 0 3px rgba(32, 181, 128, 0.15);
}

.chapter-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* Search results info */
.search-no-results {
  display: none;
  text-align: center;
  color: #64748b;
  padding: 2rem;
  font-size: 1rem;
  width: 100%;
}

/* 4. Query Loop Hub Styling */
.events-query-loop .wp-block-post {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--wp--preset--color--accent-orange);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.02);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.events-query-loop .wp-block-post:hover {
  transform: translateX(4px);
}

.resources-query-loop .wp-block-post {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.02);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resources-query-loop .wp-block-post:hover {
  border-color: var(--wp--preset--color--primary-green);
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.05);
}

/* Taxonomy pill details */
.taxonomy-term-pill {
  display: inline-block;
  background-color: var(--wp--preset--color--light-green-tint);
  color: var(--wp--preset--color--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .mission-overlap-group {
    margin-top: -2rem !important;
  }
  .carousel-nav-btn {
    display: none !important; /* Hide arrows on mobile, use swipe */
  }
  .chapter-card-wrapper {
    flex: 0 0 240px;
  }
}

/* 5. Recent Insights & Activities Section Styles */
.recent-posts-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.recent-posts-tabs {
  display: flex;
  background-color: var(--wp--preset--color--light-slate);
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.posts-tab-btn {
  border: none;
  background: none;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wp--preset--color--dark-slate);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.posts-tab-btn:hover {
  color: var(--wp--preset--color--primary-green);
}

.posts-tab-btn.active {
  background-color: var(--wp--preset--color--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(238, 94, 37, 0.2);
}

/* Sticky Poster Card Styles */
.sticky-poster-container {
  height: 100%;
}

.sticky-poster-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sticky-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
}

.sticky-poster-image-container {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, var(--wp--preset--color--dark-slate) 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
}

.sticky-poster-image-fallback {
  transition: transform 0.5s ease;
}

.sticky-poster-card:hover .sticky-poster-image-fallback {
  transform: scale(1.1);
  color: var(--wp--preset--color--secondary-blue);
}

.sticky-poster-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sticky-poster-badge {
  align-self: flex-start;
  background-color: var(--wp--preset--color--light-green-tint);
  color: var(--wp--preset--color--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sticky-poster-title {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--wp--preset--color--dark-slate);
  margin: 0 0 1rem 0;
  transition: color 0.2s ease;
}

.sticky-poster-card:hover .sticky-poster-title {
  color: var(--wp--preset--color--primary-green);
}

.sticky-poster-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.sticky-poster-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

.sticky-poster-date {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.sticky-poster-link-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wp--preset--color--accent-orange);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.sticky-poster-link-btn:hover {
  transform: translateX(4px);
  color: #d84b15;
}

/* Other Activities List Styles */
.other-activities-container {
  padding-left: 0.5rem;
}

.other-activities-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wp--preset--color--dark-slate);
  margin: 0 0 1.5rem 0;
  border-bottom: 2px solid var(--wp--preset--color--light-slate);
  padding-bottom: 0.75rem;
}

.other-activities-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-item-card {
  padding: 1.25rem;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.01);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-item-card:hover {
  border-color: var(--wp--preset--color--secondary-blue);
  background-color: var(--wp--preset--color--light-slate);
  transform: translateX(4px);
}

.activity-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.activity-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #475569;
}

.activity-item-card:hover .activity-item-badge {
  background-color: var(--wp--preset--color--white);
}

.activity-item-badge.report-badge {
  background-color: rgba(66, 194, 238, 0.12);
  color: var(--wp--preset--color--secondary-blue);
}

.activity-item-badge.news-badge {
  background-color: rgba(32, 181, 128, 0.12);
  color: var(--wp--preset--color--primary-green);
}

.activity-item-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.activity-item-title {
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
}

.activity-item-title a {
  color: var(--wp--preset--color--dark-slate);
  text-decoration: none;
  transition: color 0.15s ease;
}

.activity-item-title a:hover {
  color: var(--wp--preset--color--primary-green);
}

/* Animations for tab content transition */
.recent-posts-cols-wrapper {
  transition: opacity 0.25s ease-in-out;
}

.recent-posts-cols-wrapper.fade-out {
  opacity: 0;
}

/* Header login button enhancement */
.as-sbc-login-button a {
  font-weight: 600;
  color: var(--wp--preset--color--dark-slate) !important;
}

.as-sbc-login-button a:hover {
  color: var(--wp--preset--color--primary-green) !important;
  text-decoration: none !important;
}

@media (max-width: 992px) {
  .recent-posts-cols-wrapper {
    flex-direction: column !important;
  }
  .sticky-poster-column,
  .other-activities-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .other-activities-container {
    padding-left: 0;
    margin-top: 2rem;
  }
}

/* 6. Events & Resource Hub Custom Section Styles */
.events-grid .wp-block-column {
  margin-bottom: 2rem;
}

.event-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.03), 0 2px 4px -2px rgb(0 0 0 / 0.03);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
}

.event-card.event-upcoming {
  border-top: 4px solid var(--wp--preset--color--accent-orange);
}

.event-card.event-webinar {
  border-top: 4px solid var(--wp--preset--color--secondary-blue);
}

.event-card.event-past {
  border-top: 4px solid #64748b;
  opacity: 0.95;
}

.event-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.badge-upcoming {
  background-color: rgba(238, 94, 37, 0.1);
  color: var(--wp--preset--color--accent-orange);
}

.badge-webinar {
  background-color: rgba(66, 194, 238, 0.1);
  color: var(--wp--preset--color--secondary-blue);
}

.badge-past {
  background-color: #f1f5f9;
  color: #64748b;
}

/* Resource Hub Card Styles */
.resource-grid .wp-block-column {
  margin-bottom: 2rem;
}

.resource-card {
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.03), 0 2px 4px -2px rgb(0 0 0 / 0.03);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  border-color: var(--wp--preset--color--primary-green);
}

.resource-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.badge-strategy {
  background-color: rgba(32, 181, 128, 0.1);
  color: var(--wp--preset--color--primary-green);
}

.badge-framework {
  background-color: rgba(66, 194, 238, 0.1);
  color: var(--wp--preset--color--secondary-blue);
}

.badge-media {
  background-color: rgba(238, 94, 37, 0.1);
  color: var(--wp--preset--color--accent-orange);
}

/* Popular Tag Links */
.popular-tag-link {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  color: var(--wp--preset--color--dark-slate) !important;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.popular-tag-link:hover {
  background-color: var(--wp--preset--color--primary-green);
  border-color: var(--wp--preset--color--primary-green);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Custom Search Box centering/styling inside Hub */
.sbc-search-wrapper .wp-block-search {
  max-width: 600px;
  margin: 0 auto;
}

.sbc-search-wrapper .wp-block-search__input {
  border-radius: 9999px 0 0 9999px !important;
  border: 1px solid #cbd5e1 !important;
  border-right: none !important;
  padding: 0.85rem 1.5rem !important;
  font-size: 1rem !important;
  background-color: #ffffff !important;
}

.sbc-search-wrapper .wp-block-search__button {
  border-radius: 0 9999px 9999px 0 !important;
  background-color: var(--wp--preset--color--primary-green) !important;
  color: #ffffff !important;
  padding: 0.85rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--wp--preset--color--primary-green) !important;
  margin-left: 0 !important;
  transition: background-color 0.2s ease !important;
}

.sbc-search-wrapper .wp-block-search__button:hover {
  background-color: var(--wp--preset--color--dark-slate) !important;
  border-color: var(--wp--preset--color--dark-slate) !important;
}

/* Premium Image Hover Zoom Effects */
.event-card:hover .event-image img,
.sticky-poster-card:hover .sticky-poster-image-container img,
.activity-item-card:hover .activity-item-image img,
.resource-card:hover .resource-image img {
  transform: scale(1.08) !important;
}

.event-image img,
.sticky-poster-image-container img,
.activity-item-image img,
.resource-image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* White Placeholder Styling for Newsletter Input */
.homepage-newsletter-section input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
}

.homepage-newsletter-section input[type="email"]::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

.homepage-newsletter-section input[type="email"]::-moz-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
}

.homepage-newsletter-section input[type="email"]:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* 7. Dropdown & Sub-Menu Navigation Styling */
.main-navigation {
  position: relative;
}

/* Desktop Styles */
@media (min-width: 993px) {
  .menu-toggle {
    display: none !important;
  }
  
  .nav-menu-list {
    display: flex !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
  }
  
  .nav-menu-list li {
    position: relative !important;
  }
  
  .nav-menu-list .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background-color: #ffffff !important;
    min-width: 220px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    list-style: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s !important;
    z-index: 1000 !important;
  }
  
  .nav-menu-list li:hover > .sub-menu,
  .nav-menu-list li.focus-active > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
  }
  
  .nav-menu-list .sub-menu li {
    width: 100% !important;
  }
  
  .nav-menu-list .sub-menu a {
    display: block !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 0.925rem !important;
    color: #334155 !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    white-space: nowrap !important;
    text-align: left !important;
    border-radius: 0 !important;
  }
  
  .nav-menu-list .sub-menu a:hover {
    background-color: #f8fafc !important;
    color: #ee5e25 !important;
    text-decoration: none !important;
  }
}

/* Dropdown Arrow animations */
.dropdown-icon {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.25s ease !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.nav-menu-list li:hover .dropdown-icon {
  transform: rotate(180deg) !important;
}

/* Mobile & Tablet Styles */
@media (max-width: 992px) {
  .main-navigation {
    position: static !important;
  }
  
  .menu-toggle {
    display: block !important;
    position: relative !important;
    z-index: 1010 !important;
  }
  
  .nav-menu-list {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 1.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 1000 !important;
    gap: 1rem !important;
    box-sizing: border-box !important;
  }
  
  .nav-menu-list.is-open {
    display: flex !important;
  }
  
  .nav-menu-list li {
    width: 100% !important;
  }
  
  .nav-menu-list a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0.5rem !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
  }
  
  .nav-menu-list a:hover {
    color: #ee5e25 !important;
    text-decoration: none !important;
  }
  
  .nav-menu-list .sub-menu {
    display: none !important;
    list-style: none !important;
    padding: 0 0 0 1rem !important;
    margin: 0.5rem 0 0 0 !important;
    border-left: 2px solid #e2e8f0 !important;
  }
  
  .nav-menu-list .sub-menu.is-open {
    display: block !important;
  }
  
  .nav-menu-list .sub-menu li {
    width: 100% !important;
  }
  
  .nav-menu-list .sub-menu a {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 0.5rem !important;
    border-bottom: none !important;
  }
  
  .nav-menu-list .sub-menu a:hover {
    color: #ee5e25 !important;
  }
  
  .dropdown-icon {
    font-size: 0.8rem !important;
    padding: 0.25rem !important;
    cursor: pointer !important;
  }
  
  .dropdown-icon.is-rotated {
    transform: rotate(180deg) !important;
  }

  /* Mobile Menu CTA Card Styles */
  .mobile-menu-cta-item {
    display: block !important;
    padding: 0.5rem 0.25rem !important;
    margin-top: 0.5rem !important;
  }
  
  .mobile-menu-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #334155 !important;
    text-align: center !important;
    color: #ffffff !important;
  }
  
  .mobile-menu-cta-card h4 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.2 !important;
  }
  
  .mobile-menu-cta-card p {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    margin: 0 0 1.25rem 0 !important;
  }
  
  /* High specificity overrides for anchor elements inside the CTA card */
  .nav-menu-list .mobile-menu-cta-card a.mobile-menu-cta-btn-reg {
    display: block !important;
    flex: 1 !important;
    text-align: center !important;
    background-color: #20b580 !important;
    color: #ffffff !important;
    padding: 0.6rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    border-bottom: none !important;
    width: auto !important;
    transition: background-color 0.2s ease !important;
  }
  
  .nav-menu-list .mobile-menu-cta-card a.mobile-menu-cta-btn-reg:hover {
    background-color: #1aa070 !important;
    color: #ffffff !important;
  }
  
  .nav-menu-list .mobile-menu-cta-card a.mobile-menu-cta-btn-login {
    display: block !important;
    flex: 1 !important;
    text-align: center !important;
    border: 1px solid #475569 !important;
    border-bottom: 1px solid #475569 !important;
    color: #cbd5e1 !important;
    padding: 0.575rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    width: auto !important;
    transition: all 0.2s ease !important;
    background-color: transparent !important;
  }
  
  .nav-menu-list .mobile-menu-cta-card a.mobile-menu-cta-btn-login:hover {
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
  }
}

/* 8. About Page Interactive and Hover Styles */
.about-intro-grid {
  transition: all 0.3s ease;
}

.about-facts-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.about-facts-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.04) !important;
}

.mission-vision-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

.goal-card:hover {
  transform: translateY(-4px) !important;
  border-color: #20b580 !important;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Overrides for About Page */
@media (max-width: 992px) {
  .about-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 4rem 0 !important;
  }
  .mission-vision-grid {
    grid-template-columns: 1fr !important;
  }
  .about-intro-section,
  .about-mission-vision-section,
  .about-goals-section {
    padding: 4rem 0 !important;
  }
  .section-header {
    margin-bottom: 3rem !important;
  }
}

/* 9. Contact Page Layout & Interactive Form Styles */
.contact-card-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.contact-card-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.05) !important;
  background-color: #ffffff !important;
}

.contact-card-item:nth-child(1):hover {
  border-color: #42c2ee !important;
}

.contact-card-item:nth-child(2):hover {
  border-color: #20b580 !important;
}

.contact-card-item:nth-child(3):hover {
  border-color: #ee5e25 !important;
}

.contact-form-panel input,
.contact-form-panel textarea {
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
  border-color: #20b580 !important;
  box-shadow: 0 0 0 3px rgba(32, 181, 128, 0.15) !important;
}

.contact-submit-btn:hover {
  background-color: #0f172a !important;
}

/* Responsive Rules for Contact Page */
@media (max-width: 992px) {
  .contact-main-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 4rem 0 !important;
  }
  .contact-main-section {
    padding: 4rem 0 !important;
  }
  .contact-form-panel {
    padding: 2rem !important;
  }
  .form-row-mobile {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* 10. Footer Synchronized Menu Styling */
.footer-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.footer-links-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links-list a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  transition: color 0.2s ease !important;
}

.footer-links-list a:hover {
  color: #20b580 !important;
  text-decoration: none !important;
}

/* 11. Single Post Template Premium Layout */
.single-post-article-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.single-post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

.single-post-header {
  max-width: 100%;
  margin: 0 0 2rem 0;
  text-align: left;
}

.single-post-meta-badge {
  display: inline-block;
  background-color: rgba(32, 181, 128, 0.12);
  color: #20b580;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.single-post-meta-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 1rem;
}

.single-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.single-post-featured-image-wrapper {
  max-width: 100%;
  margin: 0 0 2.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.single-post-featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post-featured-image-wrapper:hover img {
  transform: scale(1.03);
}

.single-post-content-column {
  max-width: 760px;
  margin: 0 auto;
}

.single-post-body-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
}

.single-post-body-text p {
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.single-post-body-text h2,
.single-post-body-text h3,
.single-post-body-text h4 {
  color: #0f172a;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.single-post-body-text h2 {
  font-size: 1.75rem;
}

.single-post-body-text h3 {
  font-size: 1.4rem;
}

.single-post-body-text ul,
.single-post-body-text ol {
  margin-top: 0;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.single-post-body-text li {
  margin-bottom: 0.5rem;
}

.single-post-body-text blockquote {
  border-left: 4px solid #20b580;
  background-color: #f8fafc;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}

.single-post-body-text blockquote p {
  margin: 0 !important;
  font-size: 1.2rem;
  line-height: 1.6;
}

.single-post-footer-meta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.single-post-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.single-post-tag-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-right: 0.5rem;
}

.single-post-tag-pill {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.single-post-tag-pill:hover {
  background-color: #20b580;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Next / Prev Navigation Grid */
.single-post-navigation-section {
  background-color: #f8fafc;
  padding: 5rem 0;
  border-top: 1px solid #e2e8f0;
}

.post-navigation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.post-nav-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.post-nav-card.prev-card {
  align-items: flex-start;
  text-align: left;
}

.post-nav-card.next-card {
  align-items: flex-end;
  text-align: right;
}

.post-nav-card:hover {
  transform: translateY(-4px);
  border-color: #20b580;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}

.post-nav-card.next-card:hover {
  border-color: #42c2ee;
}

.post-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.post-nav-card.prev-card:hover .post-nav-label {
  color: #20b580;
}

.post-nav-card.next-card:hover .post-nav-label {
  color: #42c2ee;
}

.post-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.post-nav-card:hover .post-nav-title {
  color: #0f172a;
}

@media (max-width: 768px) {
  .single-post-meta-row {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
  
  .post-navigation-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .single-post-container {
    padding: 3rem 1.5rem;
  }
  
  .single-post-featured-image-wrapper {
    margin-bottom: 2.5rem;
  }
}

/* 12. Single Post 2-Column Sidebar Layout */
.single-post-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 993px) {
  .single-post-layout-grid {
    grid-template-columns: 1fr 340px;
  }
}

.single-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 993px) {
  .single-post-sidebar {
    position: sticky !important;
    top: 120px !important;
    align-self: start !important;
  }
}

/* Sidebar Widget Styling */
.sidebar-widget {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.sidebar-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
  line-height: 1.2;
}

.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #20b580;
  border-radius: 2px;
}

/* Membership CTA widget Card */
.sidebar-widget-membership-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
}

.sidebar-widget-membership-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(32, 181, 128, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.sidebar-cta-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sidebar-cta-desc {
  font-size: 0.925rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.sidebar-cta-btn-primary {
  display: block;
  background-color: #20b580;
  color: #ffffff !important;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.2s;
  margin-bottom: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-cta-btn-primary:hover {
  background-color: #1aa070;
  text-decoration: none !important;
}

.sidebar-cta-btn-secondary {
  display: block;
  border: 1px solid #475569;
  color: #cbd5e1 !important;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.725rem 1.25rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-cta-btn-secondary:hover {
  border-color: #94a3b8;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none !important;
}

/* Trending Insights Widget List */
.sidebar-trending-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-trending-item {
  display: flex;
  gap: 1rem;
  text-decoration: none !important;
  align-items: start;
}

.sidebar-trending-img-wrapper {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.sidebar-trending-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sidebar-trending-item:hover img {
  transform: scale(1.08);
}

.sidebar-trending-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sidebar-trending-item-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.25rem 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-trending-item:hover .sidebar-trending-item-title {
  color: #20b580;
}

.sidebar-trending-date {
  font-size: 0.775rem;
  color: #64748b;
}

/* 13. Social Share Buttons (Below Content) */
.single-post-share-bar {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-buttons-row {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
  padding: 0;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.share-x:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff !important;
}

.share-fb:hover {
  background-color: #1877f2;
  border-color: #1877f2;
  color: #ffffff !important;
}

.share-li:hover {
  background-color: #0077b5;
  border-color: #0077b5;
  color: #ffffff !important;
}

.share-copy {
  outline: none;
}

.share-copy:hover {
  background-color: #20b580;
  border-color: #20b580;
  color: #ffffff !important;
}

/* 14. Category Grid & Pill Highlights */
.popular-tag-link.is-active {
  background-color: var(--wp--preset--color--primary-green) !important;
  border-color: var(--wp--preset--color--primary-green) !important;
  color: #ffffff !important;
}

.popular-tag-link.is-active:hover {
  background-color: var(--wp--preset--color--primary-green) !important;
  border-color: var(--wp--preset--color--primary-green) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Beautiful category grid card hover layout override */
.news-grid .activity-item-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease !important;
}

.news-grid .activity-item-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08) !important;
  border-color: var(--wp--preset--color--primary-green) !important;
  background-color: #ffffff !important;
}

@media (min-width: 993px) {
  .mobile-menu-cta-item {
    display: none !important;
  }
}

/* 15. Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0 !important;
  transform: translateY(8px) !important;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform, opacity;
}

.scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered Delay Utilities */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* 16. Single Resource Download Button Hover */
.download-resource-btn:hover {
  background-color: #1b9b6d !important;
  color: #ffffff !important;
}


