  /* 1. THEME & CORE STYLES */

  :root {
    --waoc-red: rgb(238, 0, 0);
    --waoc-black: #000000;
    --waoc-white: #ffffff;
    --waoc-gray: #f1f1f1;
    --waoc-gray98: #fafafa;
    --waoc-very-dark-gray: #222222;
    --waoc-dark-gray: #5d5d5d;
    --waoc-white-gray: #eeeeee;
    --waoc-paper: #fcfcfc;

    --waoc-border: var(--waoc-white-gray);

    --pill-active: rgba(238, 0, 0, 0.1);
    /* Keep it light so black text/icons pop */
    --pill-hover: rgba(0, 0, 0, 0.05);
    --pill-active-width: 92%;

    --container-max-width: min(1400px, 100vw - 64px);
    --footer-max-width: 1200px;

    --menu-height: 100px;
  }

  @media (max-width: 600px) {
    :root {
      /* Use 95% width on very small screens instead of subtracting fixed pixels */
      --container-max-width: 95vw;
    }
  }

  .w3-waoc-red,
  .w3-hover-waoc-red:hover {
    color: #fff !important;
    background-color: var(--waoc-red) !important;
  }

  .w3-text-waoc-red,
  .w3-hover-text-waoc-red:hover {
    color: var(--waoc-red) !important;
  }

  .w3-border-waoc-red,
  .w3-hover-border-waoc-red:hover {
    border-color: var(--waoc-red) !important;
  }

  @media (max-width: 1019px) {
    :root {
      --container-max-width: min(1400px, 100vw - 32px);
    }
  }

  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  html,
  button,
  .w3-button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: inherit;
    text-decoration: none;

    /*      font-size: 16px;*/
    /*      line-height: 1.5;*/
    /*      color: #333;*/
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li {
    overflow-wrap: break-word;
    /*    hyphens: auto; */
  }

  /*********** Responsive font size - Start *****************/

  /* --- TIER 1: The Massive Heading Classes --- */
  /* --- TIER 1: Massive Headings --- */
  .w3-jumbo {
    /* Default: 64px -> Safely scales down to 40px on mobile */
    font-size: clamp(40px, 4vw + 24px, 64px) !important;
  }

  .w3-xxxlarge {
    /* Default: 48px -> Safely scales down to 32px on mobile */
    font-size: clamp(32px, 3vw + 20px, 48px) !important;
  }

  /* --- TIER 2: Main Headings --- */
  h1,
  .w3-xxlarge {
    /* Default: 36px -> Safely scales down to 26px on mobile */
    font-size: clamp(26px, 2vw + 18px, 36px) !important;
    line-height: 1.2;
  }

  h2,
  .w3-xlarge {
    /* Default: 24px -> Safely scales down to 20px on mobile */
    font-size: clamp(20px, 1vw + 16px, 24px) !important;
    line-height: 1.25;
  }

  /* --- TIER 3: Sub-Headings & Labels --- */
  h3,
  .w3-large {
    /* Default: 18px -> Safely scales down to 16px on mobile */
    font-size: clamp(16px, 0.5vw + 14px, 18px) !important;
    line-height: 1.3;
  }

  h4 {
    /* Default: 16px -> Tiny compression down to 15px on small screens */
    font-size: clamp(15px, 0.2vw + 14px, 16px) !important;
    line-height: 1.4;
  }

  h5,
  .w3-medium {
    /* Default: 15px -> Keeps it highly legible, drops slightly to 14px */
    font-size: clamp(14px, 0.1vw + 13px, 15px) !important;
    line-height: 1.4;
  }

  h6,
  .w3-small {
    /* Default: 12px -> Hardlocked. Do not shrink tiny text further for accessibility */
    font-size: 12px !important;
    line-height: 1.4;
  }

  .w3-tiny {
    /* Default: 10px -> Keep static so it remains legible on mobile */
    font-size: 10px !important;
  }

  /*********** Responsive font size - End *****************/

  html {
    scroll-behavior: smooth;
  }

  .main-content h1 {
    color: var(--waoc-red);
    font-weight: 600;
  }

  .main-content h2 {
    border-left: 4px solid var(--waoc-red);
    padding-left: 15px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .main-content h2.tight-margin {
    margin-left: 0;
    margin-right: 0;
  }

  .main-content .w3-center>h2,
  .main-content h2.w3-center {
    padding-left: 0;
    border-left: none;
    margin-left: auto;
  }

  .prevent-select {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
  }

  .not-visible {
    visibility: hidden;
    opacity: 0;
  }

  .allow-wrap {
    white-space: normal !important;
  }

  .allow-word-break {
    word-break: break-all;
    overflow-wrap: break-word;
  }

  /* Global Reset for Underlines */
  a,
  a:hover,
  a:focus,
  .nav-btn,
  .waoc-btn {
    text-decoration: none !important;
    outline: none;
  }

  .main-content {
    margin-bottom: 100px;
    margin-bottom: 50px;
  }

  /* v234: Modern Link Styling for Main Content */
  .main-content a:not(.waoc-btn):not(.waoc-news-entry):not(.waoc-btn-primary) {
    color: var(--waoc-red);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
    /* Create a custom underline using border-bottom */
    border-bottom: 1px solid rgba(190, 30, 45, 0.2);
    /*      padding-bottom: 1px;*/
  }

  .main-content a:not(.waoc-btn):not(.waoc-news-entry):not(.waoc-btn-primary):not(.waoc-list-item) {
    /* Add padding with same text location, providing the link title not looking tight in same space usage */
    padding: 2px 2px 0 2px;
    margin: -2px -2px 0 -2px;
  }

  .main-content a:not(.waoc-btn):not(.waoc-news-entry):not(.waoc-btn-primary):hover {
    color: #a01826;
    /* Slightly darker red on hover, keep the same height of border */
    border-bottom: 1px solid var(--waoc-red);
    background-color: rgba(190, 30, 45, 0.05);
    /* Very subtle highlight */
    border-radius: 2px 2px 0 0;
  }


  /* Add FontAwesome icon for PDF file links */
  .main-content a[href$=".pdf"]:not(:has(img))::after {
    content: "\f1c1";
    /* FontAwesome file-pdf icon */
    vertical-align: super;
    font-size: 0.8em;
    font-weight: 400;
  }

  /* External Link Icon (Optional but recommended) */
  .main-content a[href^="http"]:not(.waoc-news-entry):not(:has(img)):not(:has(br))::after {
    content: "\f08e";
    vertical-align: super;
    font-size: 0.7em;
    font-weight: 900;
  }

  .main-content a[href$=".pdf"]:not(:has(img))::after,
  .main-content a[href^="http"]:not(.waoc-news-entry):not(:has(img)):not(:has(br))::after {
    /* FontAwesome external link icon */
    font-family: "Font Awesome 7 Free";
    margin-left: 5px;
    opacity: 0.7;
    padding-right: 5px;
  }

  /* v204 Skeleton: Prevents flashing and footer-jumping */
  .main-content {
    opacity: 0;
    min-height: 70vh;
    /* Keeps footer at the bottom while loading */
    transition: opacity 0.3s ease-in;
  }

  .main-content.loaded {
    opacity: 1;
  }

  /* For main content is the card default width */
  /* and Menu width */
  .waoc-navbar-content-wrapper,
  .main-content .content-wrapper.waoc-card,
  .main-content.waoc-card,
  .main-content-card.waoc-card {
    max-width: var(--container-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /*********************************************/
  .toggleComment {
    max-width: 500px;
  }

  .CommentButton {
    font-weight: 600;
    padding: 4px;
    cursor: pointer;
    margin-left: -4px;
    margin-right: -4px;
    display: inline-block;
  }

  /* The hidden state */
  .toggleComment,
  .toggle {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-in-out, opacity 0.2s ease;
    display: block !important;
    /* Must be block for max-height to animate */
  }

  /* The revealed state */
  .toggleComment.is-visible,
  .toggle.is-visible {
    max-height: 9999px;
    /* A value larger than your content */
    opacity: 1;
    margin-bottom: 20px;
  }

  /*********************************************/

  .readable-content {
    max-width: max(850px, 70vw);
    /* The "Sweet Spot" for laptop reading */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    /* Improved vertical breathing room */
  }

  @media (max-width: 850px) {
    .readable-content {
      max-width: 100%;
      width: auto;
    }
  }

  /* Specifically target the bottom bar buttons */
  .bottom-nav-container a {
    text-decoration: none !important;
  }

  /* Navbar Container */
  .waoc-header {
    min-height: auto;
    min-height: 87px;
  }

  .waoc-navbar-content-wrapper {
    display: flex;
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
  }

  .waoc-navbar {
    background-color: var(--waoc-white) !important;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--waoc-red);
    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(8px);
  }

  .waoc-navbar::after {
    content: "";
    position: absolute;
    width: 100%;
    margin-top: 80px;
  }

  /* Transition for smooth hiding/showing */
  .waoc-navbar {
    transition: transform 0.3s ease-in-out !important;
    position: fixed;
    /* Ensures it stays at the top of the viewport */
    width: 100%;
    top: 0;
    left: 0;
  }

  /* This class will be added via JS when scrolling down */
  .navbar-hidden {
    transform: translateY(-100%);
  }

  .brand-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  .club-name {
    color: var(--waoc-black) !important;
    font-weight: 500;
    text-transform: capitalize;
    font-size: 22px;
    letter-spacing: -0.01em;
    max-width: 60vx;
  }

  /* Desktop Links */
  .nav-links {
    margin-left: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  /* Top Menu Buttons */
  .waoc-btn {
    background-color: var(--waoc-red) !important;
    color: var(--waoc-white) !important;
    border-radius: 4px;
    font-weight: 600;
    padding: 10px 18px !important;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
  }

  @media (min-width: 1020px) {
    .waoc-btn:hover {
      transform: translateY(-3px);
      filter: brightness(1.1);
    }

    /* Main Bridge: Connects main button to dropdown below */
    .waoc-btn::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -20px;
      height: 20px;
      background: transparent;
    }

    .w3-dropdown-hover:hover>.dropdown-content {
      display: block;
    }

    .w3-dropdown-hover:first-child,
    .w3-dropdown-click:hover,
    .w3-dropdown-hover:hover>.w3-button:first-child,
    .w3-dropdown-click:hover>.w3-button:first-child {
      background-color: #fff;
    }

    /* Sub-Submenu Bridge Logic */
    .sub-trigger {
      position: relative;
    }

    /* SUB-BRIDGE: Connects "Results ▶" to the side menu to fix ghosting */
    .sub-trigger::after {
      content: "";
      position: absolute;
      top: 0;
      right: -15px;
      /* Creates invisible bridge to the right */
      width: 15px;
      height: 100%;
      background: transparent;
    }

    .w3-dropdown-hover:hover>.sub-dropdown-content {
      display: block;
      left: 100%;
      top: 0;
      margin-left: 2px;
    }

    #mobileMenu {
      display: none !important;
    }
  }

  .logo-svg {
    height: 64px;
    width: auto;
  }

  /* Dropdown Styles */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--waoc-white);
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
    left: 0;
    right: auto;
    width: max-content;
  }

  /* FLIPPED STATE (Edge Detection) */
  .dropdown-content.edge-right {
    left: auto !important;
    right: 0 !important;
  }

  .dropdown-content.edge-right .sub-dropdown-content {
    left: auto !important;
    right: 100% !important;
    margin-right: 0px;
    margin-left: 0;
  }

  .dropdown-content a,
  .sub-trigger {
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: left;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
  }

  .dropdown-content a:hover,
  .sub-trigger:hover {
    background-color: var(--waoc-red);
    color: var(--waoc-white);
  }

  /* Mobile/Tablet Logic */
  @media (max-width: 1019px) {

    .nav-links {
      display: none !important;
    }

    .mobile-toggle {
      display: block !important;
    }
  }

  @media (max-width: 1180px) {

    .club-name {
      font-size: 16px;
      max-width: 170px;
    }
  }

  .mobile-toggle {
    display: none;
    margin-left: auto;
    height: fit-content;
    margin-top: auto;
    margin-bottom: auto;
  }

  #mobileMenu {
    position: fixed;
    width: 100%;
    left: 0;
    top: 87px;
    background: white;
    /*     border-bottom: 3px solid var(--waoc-red);*/
    /*
      max-height: 85vh;
      max-height: calc(100vh - 87px - 75px);
      */
    max-height: 100vh;
    /* Height minus header and bottom bar */
    overflow-y: auto;
    z-index: 1999;
    overscroll-behavior: contain;
    /* Prevents background scroll chain */
    -webkit-overflow-scrolling: touch;

    /* PREVENT FLICKER: Keep layout calculated but invisible */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* The "Double Lock" you mentioned */
    transform: translateY(-10px);

    /* PERFORMANCE: Move to GPU layer */
    will-change: transform, opacity;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.2s linear,
      visibility 0.3s;
    scroll-behavior: auto !important;
  }

  /* When the menu is active */
  #mobileMenu.active-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /* Re-enable clicks */
    transform: translateY(0);
  }

  #mobileMenu:after {
    content: "";
    padding-bottom: 100px;
    padding-bottom: max(300px, 30vh);
    /* The requested bottom padding */
    display: block;
    width: 100%;
    border-top: 3px solid var(--waoc-red);
  }

  /* User Refinement: Mobile hover color */
  #mobileMenu .w3-button:hover {
    background-color: var(--waoc-red) !important;
    color: white !important;
  }

  .mobile-sub-header {
    background-color: var(--waoc-gray);
    font-weight: bold;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    display: block;
  }

  .mob-indent {
    padding-left: 35px !important;
    border-bottom: 1px solid var(--waoc-white-gray);
  }

  .mob-indent-deep {
    padding-left: 55px !important;
    font-style: italic;
    background-color: var(--waoc-gray98);
  }

  /* 3. BOTTOM NAVBAR (Action Dashboard) */
  /* A) Bar Height & Visibility */
  .waoc-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
    width: 95%;
    max-width: 600px;
    z-index: 1500;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;

    /*
      background: rgba(255, 255, 255, 0.95);
       */

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    height: 75px;
    /* Increased for more headroom */
    overflow: visible;
    /* Allows the scale effect to breathe */
  }

  .waoc-bottom-bar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
  }

  .bottom-nav-container {
    display: flex;
    height: 100%;
    padding: 0 15px;
    align-items: center;
    justify-content: space-around;
  }

  /* B) Button & Ripple Container */
  .nav-btn {
    text-align: center;
    height: 100%;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #65676b;
    flex: 1;
    z-index: 1;
    padding-top: 2px;
    overflow: hidden;
    /* Keeps the ripple contained to the button area */
    -webkit-tap-highlight-color: transparent;
  }

  .nav-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 0;
    height: 62px;
    /* Increased from 54px */
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-btn.active::before {
    width: 90%;
    /* Covers most of the button width */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--pill-active) !important;
  }

  /* Added this specific class to prevent buttons from expanding beyond 1400px */
  /* No more main tag
    main section>div {
      max-width: 1200px !important;
    }
*/
  /* 2. Hover State (Desktop) */
  @media (hover: hover) {
    .nav-btn:hover:not(.active)::before {
      width: 85%;
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
      background: var(--pill-hover);
    }
  }

  /* 3. The Active/Selected State */
  .nav-btn.active::before {
    width: var(--pill-active-width);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--pill-active) !important;
  }

  /* 4. Icon Interaction - Smooth Float */
  .nav-btn i {
    font-size: 20px;
    margin-bottom: 2px;
    /* Tighter gap between icon and text */
    position: relative;
    top: -1px;
    /* Subtle nudge to center visually within the taller pill */
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.3s ease;
  }

  .nav-btn.active i {
    transform: translateY(-5px) scale(1.25);
    /* Balanced lift for the 75px bar */
    color: var(--waoc-red);
    text-shadow: 0 4px 10px rgba(238, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    /* Ensures icon stays above the ripple */
  }

  .nav-btn.active span {
    font-weight: 800;
    transform: translateY(2px);
    /* Nudge text down slightly to balance icon lift */
    color: var(--waoc-red);
    transition: all 0.3s ease;
    z-index: 2;
  }

  /* 4. THE PERSISTENT ACTIVE PILL (The current section) */
  .nav-btn.active {
    color: var(--waoc-red) !important;
  }

  .nav-btn.active::before {
    width: var(--pill-active-width);
    background: var(--pill-active) !important;
    border: 1px solid rgba(238, 0, 0, 0.15);
    /* Defines the shape against the glass */
    opacity: 1;
  }

  .nav-btn i {
    font-size: clamp(16px, 4.2vw, 20px);
    margin-bottom: 4px;
    transition: all 0.3s ease;
  }

  .nav-btn span {
    font-size: clamp(9px, 2.3vw, 11px);
    font-weight: bold;
  }


  /******* filter style start ********/
  #club-event-list .waoc-list-item {
    max-height: 300px;

    transition: ease-in-out 0.3s;
    overflow: hidden;



    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--waoc-red) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  }

  /* Filter Animation */
  #club-event-list .waoc-list-item.filter-hide {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: 0;
    border-left: 5px solid var(--waoc-red);
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
  }


  /******* filter style end ******/

  /* Responsive visibility */
  @media (min-width: 1020px) {

    .nav-trigger-handle,
    .waoc-bottom-bar {
      display: block;
      display: none !important;
    }
  }

  /* If the screen is wide (Laptop/Landscape Phone) and short */
  @media screen and (min-aspect-ratio: 3/2) and (max-height: 500px) {

    .waoc-bottom-bar,
    .nav-trigger-handle {
      display: none !important;
    }

    /* Shrink the Hero even further to bring Events into view */
    .waoc-hero {
      height: 25vh;
      /* Very compact for wide/short screens */
    }
  }

  @media (max-width: 1019px) {
    .nav-links {
      display: none;
    }
  }

  /* Section Spacing */
  section {
    padding-top: 90px;
    min-height: 90vh;
    background-color: #fff;
  }

  section:last-child {
    min-height: calc(90vh + 120px);
  }

  section:nth-of-type(even) {
    background-color: var(--waoc-gray) !important;
  }


  /* Updated .nav-trigger-handle for v88 */
  .nav-trigger-handle {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* Start hidden by moving it down 100% of its new height */
    transform: translateX(-50%) translateY(120px);

    /* STICK TO v88 LOOK: Glassmorphism Lighter Red */
    background: rgba(238, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: white;
    width: 80px;
    height: 120px;
    /* INCREASED: Was 28px. This is the "skirt" to prevent gaps */
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: flex-start;
    /* KEEP ICON AT TOP: Changed from center */
    justify-content: center;
    padding-top: 8px;
    /* Precise icon placement */
    z-index: 1400;
    cursor: pointer;

    /* v88 BOUNCY ANIMATION PRESERVED */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    box-shadow: 0 -2px 15px rgba(238, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
  }

  /* Visibility State */
  .nav-trigger-handle.is-visible {
    /* We only slide up 28px to show the top part. 
     The remaining 52px stays hidden below the screen to bridge the gap. */
    transform: translateX(-50%) translateY(72px);
    transition-delay: 0.4s;
  }

  .nav-trigger-handle i {
    font-size: 14px;
    opacity: 0.9;
    animation: bounce 2.5s infinite;
  }

  @keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }

    40% {
      transform: translateY(-3px);
    }

    60% {
      transform: translateY(-1px);
    }
  }



  /* Create the Ripple Container */
  .nav-btn {
    position: relative;
    overflow: hidden;
    /* Contains the ripple within the button area */
  }

  /* The Ripple Element */
  .nav-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(238, 0, 0, 0.2);
    /* Red ripple color */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }

  /* Trigger Ripple on Click/Active */
  .nav-btn:active::after {
    animation: ripple-out 0.6s ease-out;
  }

  @keyframes ripple-out {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 1;
    }

    100% {
      transform: translate(-50%, -50%) scale(2.5);
      opacity: 0;
    }
  }

  .waoc-sticky-block {
    position: -webkit-sticky;
    /* Safari support */
    position: sticky;
    top: var(--menu-height);
    /* Adjust this to match your navbar height + margin */
    height: fit-content;
    /* Prevents the panel from stretching unnecessarily */
    z-index: 5;
  }

  @media screen and (max-height: 700px) {
    .waoc-sticky-block {
      position: relative;
    }
  }

  /**** apply waoc card globally *****/
  @media (min-width: 601px) {
    .waoc-side-panel-gap-left {
      margin-left: 16px;
    }
  }

  .titleImage,
  .waoc-previous-content .titleImage,
  .waoc-previous-content .insertedImage,
  .waoc-card {
    display: flex;
    flex-direction: column;
    height: auto;
    border-top: 5px solid var(--waoc-red) !important;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;

    /*    overflow: hidden; */
    /**** comment out overflow to prepare for sticky cards ****/
    /*  margin-bottom: 16px;*/

  }

  .waoc-card-img {
    width: 100%;
    border-radius: 0 0 4px 4px;
  }

  @media (max-width: 1019px) {
    .main-content-card {
      margin: 8px !important;
    }
  }

  @media (min-width: 1020px) {
    .main-content-card {
      margin: 16px 32px !important;
    }
  }

  /*************************************/


  /* --- LIST ITEM COMPONENT --- */
  .waoc-list-item {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid var(--waoc-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-out, background-color 0.2s ease;
  }

  .waoc-list-item:hover {
    background-color: #f9f9f9;
    transform: translateX(4px);
  }

  .waoc-list-item:last-child {
    border-bottom: none;
  }

  .waoc-date-side {
    min-width: 75px;
    padding-right: 10px;
    text-align: center;
    border-right: 2px solid var(--waoc-red);
    margin-right: 15px;
    line-height: 1.1;
    text-transform: uppercase;
  }


  /*****************************/


  /* Container to mask the table */
  .waoc-table-mask {
    width: 100%;
    max-height: 180px;
    /* Adjust based on how many rows you want visible */
    overflow-y: auto;
    /* Shows scrollbar only when table is too long */
    border: 1px solid var(--waoc-border);
    border-radius: 4px;
    margin-top: .4lh;
    margin-bottom: 1lh;
    background: var(--waoc-gray98);
    /* Subtle background to distinguish from card */
  }

  /* Ensure the table fills the mask properly */
  .waoc-table-mask table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
  }

  /* Custom "Thin" Scrollbar for a modern look (Chrome/Safari) */
  .waoc-table-mask::-webkit-scrollbar {
    width: 6px;
  }

  .waoc-table-mask::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }

  .waoc-table-mask::-webkit-scrollbar-track {
    background: transparent;
  }


  /* --- BUTTONS & TAGS --- */
  .waoc-btn-primary {
    background-color: var(--waoc-red) !important;
    color: white !important;
    transition: 0.3s;
    font-weight: bold;

    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .waoc-btn-primary:hover {
    color: white !important;
    background-color: #000000 !important;
  }

  .waoc-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
  }

  .waoc-tag-base {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 4px;
    white-space: nowrap;
  }

  .lvl-anchor {
    min-width: 95px;
    border: 1px solid;
    font-weight: bold;
    text-transform: capitalize;
  }

  .lvl-international {
    color: #9c27b0;
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.1);
  }

  .lvl-major {
    color: #000000;
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
  }

  .lvl-national {
    color: #3f51b5;
    border-color: #3f51b5;
    background: rgba(63, 81, 181, 0.1);
  }

  .lvl-regional {
    color: #009688;
    border-color: #009688;
    background: rgba(0, 150, 136, 0.1);
  }

  .lvl-local {
    color: var(--waoc-red);
    border-color: var(--waoc-red);
    background: rgba(238, 0, 0, 0.08);
  }

  .lvl-activity {
    color: #b58500;
    border-color: #b58500;
    background: rgba(181, 133, 0, 0.1);
  }

  .tag-league {
    border: 1px solid var(--waoc-red);
    color: var(--waoc-red);
  }

  /* --- HERO --- */


  .waoc-hero {
    width: 100%;
    height: min(300px, 30vh);
    overflow: hidden;
    background-color: #f0f0f0;
    /* Black background looks better during fades */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .waoc-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
    animation: breathe 20s ease-in-out infinite;
    /* Slow fade for elegance */
  }

  .waoc-hero-img.active {
    opacity: 1;
    z-index: 2;
  }

  /* Credit styling remains similar but with higher z-index */
  .waoc-hero-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 3;

    /* Shared fade logic */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }

  /* Only show the ACTIVE credit, and ONLY when the hero is hovered */
  .waoc-hero:hover .waoc-hero-credit.active {
    opacity: 1;
  }

  @keyframes breathe {

    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.08);
    }
  }

  /****************************************/

  /*********************************/
  /* v224: Perfect Equal-Width Row */
  .equal-height-row {
    display: flex;
    flex-direction: row;
    /* Default side-by-side */
    gap: 20px;
    /* Modern spacing */
    margin-top: 24px;
    width: 100%;
  }

  .equal-height-row .info-sub-card-wrapper {
    flex: 1;
    /* This forces equal width and keeps them on one line */
    display: flex;
    /* Ensures the inner card also stretches vertically */
  }

  .info-sub-card {
    width: 100%;
    /* Fill the flex wrapper */
    padding: 24px !important;
    background: var(--waoc-paper);
    border-radius: 4px;
    border-top: 4px solid var(--waoc-red);
    /* Modern top-border look */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* Mobile Responsiveness: Stack them when screen is small */
  @media (max-width: 768px) {
    .equal-height-row {
      flex-direction: column;
    }
  }

  /* Image styling for 2026 look */
  .parko-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .parko-img:hover {
    transform: scale(1.02);
  }


  /* v226: Full-bleed image inside a card */
  .image-container.waoc-card {
    padding: 0 !important;
    /* Remove padding so image touches edges */
    overflow: hidden;
    /* Clips the image to the card's rounded corners */
    display: flex;
    flex-direction: column;
  }

  .image-container.waoc-card img {
    width: 100%;
    height: auto;
    display: block;
    /* Removes the tiny gap at the bottom of images */
    margin: 0;
  }


  /***** Event List and Tags - Start *****/

  /* Base Tag Style */
  .waoc-tag-filter {
    display: inline-block;
    padding: 6px 16px;
    margin: 4px;
    white-space: nowrap;
    /*                border-radius: 20px;
                /* Rounded pill shape looks more like a button */
    /*
                font-size: 0.85em;
                font-weight: 600;
                border: 1px solid #ddd;
                background-color: var(--waoc-gray);

                */
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
  }

  /* Hover Effect: Lift the button and darken border */
  .waoc-tag-filter:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Active State: Using the WAOC Indigo/Blue for the "Selected" look */
  .waoc-tag-filter.active {
    background-color: var(--waoc-red) !important;
    /* Indigo */
    color: white !important;
    border-color: var(--waoc-red);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  }



  /* Status Badge Styles */

  .event-title-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows the badge to jump to a new line if needed */
    align-items: center;
    /* Keeps them vertically centered if on the same line */
    gap: 0px 10px;
    /* This replaces margin-left and handles alignment automatically */

  }

  .event-status-badge {
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;

    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  /* Specific States */
  .status-open {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
  }

  .status-closing {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ef6c00;
    animation: pulse-orange 2s infinite;
    /* Optional urgency animation */
  }

  @keyframes pulse-orange {
    0% {
      box-shadow: 0 0 0 0 rgba(239, 108, 0, 0.4);
    }

    70% {
      box-shadow: 0 0 0 6px rgba(239, 108, 0, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(239, 108, 0, 0);
    }
  }

  .paginator {
    font-size: 20px;
  }

  .paginator a {
    border-bottom: 0px !important;
  }


  .waoc-event-map-container {
    width: 100%;
    /* This creates a 4:3 aspect ratio */
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  @media screen and (min-aspect-ratio: 3/2) and (max-height: 500px) {
    .waoc-event-map-container {

      /* This creates a 16:9 cinematic aspect ratio */
      aspect-ratio: 16 / 9;
    }
  }

  .waoc-event-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* Optional: Make it taller on mobile for better usability */
  @media (max-width: 600px) {
    .waoc-event-map-container {
      aspect-ratio: 4 / 3;
    }
  }

  /***** Event List and Tags - End   *****/

  /**** Weight Table - Start ****/

  /* Safely target only this dashboard layout module block */
  .waoc-weight-factor-dashboard-container {
    --waoc-wf-border: #e2e8f0;
    --waoc-wf-muted: #64748b;
    --waoc-wf-dark: #1e293b;

    box-sizing: border-box;
    width: 100%;
    padding: 10px 0;
    margin: 20px 0;
  }

  /* Isolated box reset guard for this feature snippet */
  .waoc-weight-factor-dashboard-container *,
  .waoc-weight-factor-dashboard-container *::before,
  .waoc-weight-factor-dashboard-container *::after {
    box-sizing: border-box !important;
  }

  /* 5 Columns Layout Setup for Desktops */
  .waoc-weight-factor-data-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
    gap: 0 12px;
    align-items: start;
  }

  .waoc-weight-factor-group-column {
    display: contents !important;
  }

  .waoc-weight-factor-sub-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  /* Header Design Styles */
  .waoc-weight-factor-grid-header {
    background-color: #f8fafc !important;
    color: var(--waoc-wf-muted) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 12px !important;
    border: 1px solid var(--waoc-wf-border) !important;
    border-bottom: 2px solid var(--waoc-wf-border) !important;
    border-radius: 4px 4px 0 0 !important;
    margin-bottom: 2px !important;
    text-align: center;
  }

  .waoc-weight-factor-mobile-header {
    display: none !important;
  }

  /* Card Content Rules */
  .waoc-weight-factor-grid-cell {
    padding: 10px 12px !important;
    border: 1px solid var(--waoc-wf-border) !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01) !important;
  }

  .waoc-weight-factor-grid-cell .waoc-weight-factor-tag {
    color: var(--waoc-wf-muted) !important;
    font-weight: 500 !important;
  }

  /* Tabular numeric monospace parameters */
  .waoc-weight-factor-grid-cell .waoc-weight-factor-val {
    font-weight: 700 !important;
    color: var(--waoc-wf-dark) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-variant-numeric: tabular-nums !important;
    display: inline-block !important;
    width: 35px !important;
    text-align: left !important;
  }

  /* Full Card Custom Colour Matrix mappings */
  .waoc-weight-factor-color-cell {
    font-weight: 600 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .waoc-weight-factor-color-cell .waoc-weight-factor-val {
    /*  background: rgba(255, 255, 255, 0.6) !important;  */
    /* padding: 2px 6px !important; */
    /*  border-radius: 4px !important; */
    font-size: 0.8rem !important;
    /*  border: 1px solid rgba(0, 0, 0, 0.05) !important; */
    width: 35px !important;
    text-align: left !important;
  }

  [data-waoc-wf-color="Yellow"] {
    background-color: #fef08a !important;
    color: #713f12 !important;
  }

  [data-waoc-wf-color="Orange"] {
    background-color: #fed7aa !important;
    color: #9a3412 !important;
  }

  [data-waoc-wf-color="Long Orange"] {
    background-color: #ffedd5 !important;
    color: #b45309 !important;
  }

  [data-waoc-wf-color="Red"] {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
  }

  [data-waoc-wf-color="Light Green"] {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
  }

  [data-waoc-wf-color="Short Green"] {
    background-color: #dcfce7 !important;
    color: #15803d !important;
  }

  [data-waoc-wf-color="Green"] {
    background-color: #bbf7d0 !important;
    color: #166534 !important;
  }

  [data-waoc-wf-color="Short Blue"] {
    background-color: #eff6ff !important;
    color: #1e40af !important;
  }

  [data-waoc-wf-color="Blue"] {
    background-color: #dbeafe !important;
    color: #1e40af !important;
  }

  [data-waoc-wf-color="Short Brown"] {
    background-color: #fbf1e6 !important;
    color: #431407 !important;
  }

  [data-waoc-wf-color="Brown"] {
    background-color: #edddce !important;
    color: #451a03 !important;
  }

  [data-waoc-wf-color="Black"] {
    background-color: #1e293b !important;
    color: #f8fafc !important;
  }

  [data-waoc-wf-color="Black"] .waoc-weight-factor-val {
    color: #ffffff !important;
    background: #1e293b !important;
  }


  /* RESPONSIVE DESIGN: 3 Continuous Columns for Mobile Screen Breakpoints */
  @media (max-width: 850px) {
    .waoc-weight-factor-data-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 0 8px !important;
    }

    .waoc-weight-factor-data-grid .waoc-weight-factor-grid-header {
      display: none !important;
    }

    .waoc-weight-factor-group-column {
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
    }

    .waoc-weight-factor-mobile-header {
      display: block !important;
      background-color: #cbd5e1 !important;
      color: #1e293b !important;
      font-weight: 800 !important;
      font-size: 0.64rem !important;
      text-transform: uppercase !important;
      letter-spacing: 0.05em !important;
      padding: 8px 4px !important;
      border-radius: 4px !important;
      text-align: center;
      margin-bottom: 2px !important;
    }

    .waoc-weight-factor-grid-cell {
      padding: 8px 6px !important;
      font-size: 0.8rem !important;
    }

    .waoc-weight-factor-grid-cell .waoc-weight-factor-val {
      width: 35px !important;
      font-size: 0.8rem !important;
    }

    .waoc-weight-factor-color-cell .waoc-weight-factor-val {
      width: 35px !important;
      font-size: 0.75rem !important;
      padding: 2px 4px !important;
    }
  }

  /**** Weight Table - End ****/


  /**** Responsive Text Replacement *****/
  @media (max-width: 768px) {
    .waoc-responsive-text {
      /* Hide the original text visually */
      font-size: 0;
    }

    .waoc-responsive-text::before {
      /* Pull text from data attribute */
      content: attr(data-text);
      /* Restore the visible font size */
      font-size: 1rem;
    }
  }

  /**************************************/