/*
 * HAP Ultimate Mega Menu - Fixed CSS
 * Use this file to replace the previous mega menu override CSS completely.
 * Main fixes:
 * - Removed duplicate/conflicting rules.
 * - Fixed invalid gradient color usage.
 * - Fixed mobile mega menu going to the right side inside Astra mobile drawer.
 * - Made CTA button smaller and cleaner.
 * - Made desktop mega menu adaptive without overflowing the viewport.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --hap-bg:#f7f5f2;
  --hap-bg-2:#ffffff;
  --hap-surface:#ffffff;
  --hap-text:#333333;
  --hap-muted:#666666;
  --hap-line:#e5e0d8;

  /* Solid colors for text/borders */
  --hap-brand:#ff8b00;
  --hap-brand-2:#fa6f96;
  --hap-teal:#69bdcd;
  --hap-pink:#feb856;

  /* Gradients for backgrounds only */
  --hap-brand-gradient:linear-gradient(80deg,#69BDCD,#FA6F96,#FEB856);
  --hap-brand-gradient-2:linear-gradient(80deg,#FEB856,#FA6F96,#69BDCD);

  --hap-shadow:0 10px 25px rgba(0,0,0,.08);
  --hap-shadow-hover:0 14px 32px rgba(0,0,0,.12);
  --hap-radius:16px;
  --hap-radius-sm:12px;
  --hap-container:min(1280px, calc(100% - 40px));
}

/* ==============================
   Base / Theme compatibility
   ============================== */

.hap-container{
  width:100%;
  max-width:var(--hap-container);
  margin-left:auto;
  margin-right:auto;
  padding-left:0;
  padding-right:0;
}

body.hap-mega-page{
  background:var(--hap-bg) !important;
  font-family:'Inter','Open Sans',Arial,sans-serif;
  color:var(--hap-text);
}

.hap-mega-page *{
  box-sizing:border-box;
  font-family:inherit;
}

.main-header-bar,
.main-header-container,
.ast-builder-grid-row,
.ast-builder-menu,
.ast-builder-menu-1,
.main-navigation,
.main-header-menu,
.main-header-menu .sub-menu,
.ast-desktop .main-header-menu,
.ast-desktop .main-header-menu .sub-menu,
.ast-nav-menu,
.ast-nav-menu .sub-menu,
.site-header-primary-section-left,
.site-header-primary-section-right,
.ast-desktop-header-content,
.ast-mobile-header-wrap,
.ast-above-header-wrap,
.site-primary-header-wrap,
.ast-primary-sticky-header-active{
  overflow:visible !important;
}

li[data-hap-mega-item="1"],
.menu-item.hap-mega-enabled{
  position:relative;
}

li[data-hap-mega-item="1"] > a,
.menu-item.hap-mega-enabled > a{
  display:flex;
  align-items:center;
  gap:6px;
}

/* ==============================
   Desktop mega menu
   ============================== */

.hap-mega-menu{
  --hap-mega-shift:0px;
  position:absolute;
  left:50%;
  top:100%;
  display:inline-block;
  width:auto;
  max-width:min(1000px, calc(100vw - 40px));
  margin:10px 0 0 0;
  padding:0;
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
  border-radius:var(--hap-radius);
  box-shadow:var(--hap-shadow);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(calc(-50% + var(--hap-mega-shift))) translateY(8px);
  transition:opacity .25s ease, visibility .25s ease, transform .25s ease;
  z-index:99999;
  will-change:transform,opacity;
}

.menu-item.hap-mega-enabled:hover > .hap-mega-menu,
.menu-item.hap-mega-enabled.hap-open > .hap-mega-menu,
li[data-hap-mega-item="1"]:hover > .hap-mega-menu,
li[data-hap-mega-item="1"].hap-open > .hap-mega-menu,
.menu-item.hap-open > .hap-mega-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(calc(-50% + var(--hap-mega-shift))) translateY(0);
}

.hap-mega-inner{
  width:auto;
  max-width:none;
  margin:0 auto;
  padding:28px;
  display:grid;
  grid-template-columns:max-content 340px;
  gap:34px;
  box-sizing:border-box;
}

.hap-mega-left,
.hap-mega-right,
.hap-mega-featured{
  min-width:0;
}

.hap-mega-right,
.hap-mega-featured{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hap-mega-right{
  border-left:1px solid var(--hap-line);
  padding-left:34px;
}

/* ==============================
   Mega menu header + button
   ============================== */

.hap-mega-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:18px;
  border-bottom:1px solid var(--hap-line);
}

.hap-mega-head-row span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--hap-brand);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.02em;
  text-transform:capitalize;
  white-space:nowrap;
}

.hap-mega-all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  width:auto;
  min-width:0;
  max-width:max-content;
  height:auto !important;
  min-height:0 !important;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:var(--hap-brand-gradient);
  color:#ffffff !important;
  box-shadow:0 8px 18px rgba(250,111,150,.20);
  font-size:13px;
  font-weight:800;
  line-height:1 !important;
  letter-spacing:.01em;
  text-decoration:none !important;
  white-space:nowrap;
  cursor:pointer;
  transform:translateY(0);
  transition:background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.hap-mega-all:hover,
.hap-mega-all:focus{
  background:var(--hap-brand-gradient-2);
  color:#ffffff !important;
  text-decoration:none !important;
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(250,111,150,.26);
}

.hap-mega-all:active{
  transform:translateY(0);
  box-shadow:0 6px 14px rgba(250,111,150,.20);
}

/* ==============================
   Category columns
   ============================== */

.hap-mega-grid{
  display:grid;
  gap:24px 30px;
}

.hap-mega-grid.hap-cols-1{grid-template-columns:repeat(1,max-content);}
.hap-mega-grid.hap-cols-2{grid-template-columns:repeat(2,max-content);}
.hap-mega-grid.hap-cols-3{grid-template-columns:repeat(3,max-content);}
.hap-mega-grid.hap-cols-4{grid-template-columns:repeat(4,max-content);}

.hap-mega-col{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

.hap-mega-cat{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:6px 0;
  margin:0;
  text-decoration:none !important;
  color:var(--hap-text);
  background:none;
  border:none;
  border-radius:0;
  box-shadow:none;
  transition:background .2s ease, color .2s ease;
}

.hap-mega-cat:hover,
.hap-mega-cat:focus{
  color:var(--hap-brand);
  background:rgba(0,0,0,.025);
  transform:none;
  box-shadow:none;
  border-color:transparent;
}

.hap-mega-cat-name{
  display:block;
  max-width:220px;
  margin:0;
  color:inherit;
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hap-mega-cat-count{
  display:none;
}

/* ==============================
   Featured posts in mega menu
   ============================== */

.hap-mega-featured-title{
  margin:0;
  color:var(--hap-text);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1.25;
}

.hap-mega-featured-empty{
  padding:18px;
  border-radius:20px;
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
}

.hap-mega-featured-empty p{
  margin:0;
  color:var(--hap-muted);
}

.hap-mega-post{
  display:flex;
  align-items:flex-start;
  gap:12px;
  width:100%;
  min-width:0;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--hap-line);
  background:var(--hap-surface);
  color:inherit;
  text-decoration:none !important;
  transition:box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}

.hap-mega-post:hover,
.hap-mega-post:focus{
  border-color:rgba(255,139,0,.26);
  box-shadow:var(--hap-shadow-hover);
  transform:translateY(-1px);
}

.hap-mega-thumb{
  width:82px;
  min-width:82px;
  height:64px;
  object-fit:cover;
  flex-shrink:0;
  background:#f2e6e6;
  border-radius:12px;
}

.hap-mega-thumb.placeholder{
  background:var(--hap-bg);
}

.hap-mega-post-title{
  margin:0 0 4px;
  color:var(--hap-text);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.hap-mega-post-date{
  font-size:12px;
  color:var(--hap-muted);
}

.hap-mobile-arrow{
  margin-left:6px;
  display:inline-block;
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid currentColor;
  transform:rotate(0deg);
  transition:transform .2s ease;
}

.menu-item.hap-open > a .hap-mobile-arrow,
li[data-hap-mega-item="1"].hap-open > a .hap-mobile-arrow{
  transform:rotate(180deg);
}

/* ==============================
   Topics / category pages
   ============================== */

main.hap-topics-page,
main.hap-category-page{
  width:100%;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}

.hap-topics-page,
.hap-category-page{
  background:var(--hap-bg) !important;
}

.hap-topics-hero{
  padding:42px 0 20px;
}

.hap-topics-hero-card,
.hap-category-hero-inner{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  background:var(--hap-surface) !important;
  border:1px solid var(--hap-line) !important;
  box-shadow:var(--hap-shadow);
}

.hap-topics-hero-card{
  padding:52px 40px 34px;
}

.hap-category-page{
  padding:24px 0 80px;
}

.hap-category-hero{
  margin-bottom:26px;
}

.hap-category-hero-inner{
  padding:54px 46px 38px;
}

.hap-topics-hero-card:before,
.hap-topics-hero-card:after,
.hap-category-hero-inner::before,
.hap-category-hero-inner::after{
  content:none !important;
  display:none !important;
}

.hap-topics-kicker,
.hap-category-kicker{
  position:relative;
  z-index:2;
  display:inline-block;
  margin-bottom:12px;
  color:var(--hap-brand);
  font-size:13px;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.hap-category-kicker{
  margin-bottom:14px;
}

.hap-topics-title,
.hap-category-title{
  position:relative;
  z-index:2;
  margin:0 0 10px;
  color:var(--hap-text);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-weight:900;
  letter-spacing:-.04em;
}

.hap-topics-title{
  font-size:clamp(34px,6vw,68px);
  line-height:.98;
}

.hap-category-title{
  font-size:clamp(38px,6vw,74px);
  line-height:.95;
}

.hap-topics-desc,
.hap-category-desc{
  position:relative;
  z-index:2;
  max-width:760px;
  color:var(--hap-muted);
  font-size:18px;
  line-height:1.75;
}

.hap-topics-directory{
  padding:18px 0 70px;
}

.hap-topics-search{
  margin:20px 0 28px;
  max-width:560px;
  position:relative;
}

.hap-topics-search input[type="text"]{
  width:100%;
  min-height:56px;
  padding:14px 16px;
  font-size:16px;
  border:1px solid var(--hap-line);
  border-radius:18px;
  background:var(--hap-surface);
  box-shadow:var(--hap-shadow);
}

#hap-search-results{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:10;
  display:none;
  max-height:260px;
  overflow-y:auto;
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
  border-radius:16px;
  box-shadow:var(--hap-shadow);
}

#hap-search-results a{
  display:block;
  padding:12px 14px;
  color:var(--hap-text);
  text-decoration:none;
  border-bottom:1px solid var(--hap-line);
}

#hap-search-results a:last-child{
  border-bottom:none;
}

#hap-search-results a:hover{
  background:var(--hap-bg-2);
}

.hap-topics-letters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:28px;
}

.hap-topics-letters a{
  min-width:42px;
  height:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:var(--hap-surface);
  color:var(--hap-text);
  border:1px solid var(--hap-line);
  box-shadow:var(--hap-shadow);
  font-weight:800;
}

.hap-letter-group{
  margin-bottom:30px;
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--hap-shadow);
}

.hap-letter-group h2{
  margin:0 0 14px;
  color:var(--hap-text);
  font-size:28px;
}

.hap-letter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 18px;
  border-top:1px solid var(--hap-line);
  padding-top:18px;
}

.hap-letter-grid a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
  color:var(--hap-text);
  text-decoration:none;
  font-weight:700;
}

.hap-letter-grid a strong{
  font-size:12px;
  color:var(--hap-muted);
  white-space:nowrap;
}

.hap-letter-grid a:hover{
  color:var(--hap-brand);
}

.hap-category-section-label{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 18px;
  color:var(--hap-text);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.hap-category-section-label:before{
  content:"";
  width:34px;
  height:4px;
  border-radius:999px;
  background:var(--hap-brand-gradient);
}

.hap-subcat-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  margin:0 0 34px;
}

.hap-subcat-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px 20px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--hap-line);
  color:inherit;
  text-decoration:none;
  box-shadow:var(--hap-shadow);
  transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.hap-subcat-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,139,0,.28);
  box-shadow:var(--hap-shadow-hover);
}

.hap-subcat-card-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(105,189,205,.10),rgba(250,111,150,.10));
  border:1px solid var(--hap-line);
  color:var(--hap-teal);
  font-size:22px;
}

.hap-icon-paw{
  display:block;
}

.hap-subcat-card-title{
  margin:0;
  color:var(--hap-text);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:22px;
  line-height:1.15;
}

.hap-subcat-card-desc{
  margin:0;
  color:var(--hap-muted);
  font-size:15px;
  line-height:1.6;
}

.hap-subcat-card-meta{
  margin-top:auto;
  color:var(--hap-brand);
  font-weight:800;
  font-size:14px;
}

.hap-post-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:26px;
}

.hap-post-card{
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
  border-radius:var(--hap-radius);
  overflow:hidden;
  box-shadow:var(--hap-shadow);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hap-post-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,139,0,.28);
  box-shadow:var(--hap-shadow-hover);
}

.hap-post-grid .hap-post-card.is-featured{
  grid-column:span 12;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  min-height:470px;
}

.hap-post-grid .hap-post-card:not(.is-featured){
  grid-column:span 6;
}

.hap-post-thumb{
  display:block;
  overflow:hidden;
  background:#f7eae5;
  text-decoration:none;
}

.hap-post-card.is-featured .hap-post-thumb{
  min-height:470px;
  height:100%;
}

.hap-post-card:not(.is-featured) .hap-post-thumb{
  aspect-ratio:16/10;
}

.hap-post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}

.hap-post-card:hover .hap-post-thumb img{
  transform:scale(1.03);
}

.hap-post-thumb.placeholder{
  display:block;
  width:100%;
  min-height:240px;
  background:var(--hap-bg);
}

.hap-post-content{
  display:flex;
  flex-direction:column;
  gap:12px;
  height:100%;
  padding:24px 24px 22px;
}

.hap-post-card.is-featured .hap-post-content{
  padding:38px 36px;
  justify-content:center;
}

.hap-post-meta{
  color:var(--hap-muted);
  font-size:12px;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.hap-post-title{
  margin:0;
  color:var(--hap-text);
  font-family:'Poppins','Montserrat',Arial,sans-serif;
  font-size:30px;
  line-height:1.12;
  letter-spacing:-.02em;
}

.hap-post-title a{
  color:inherit;
  text-decoration:none;
}

.hap-post-excerpt{
  margin:0;
  color:var(--hap-muted);
  font-size:16px;
  line-height:1.7;
}

.hap-read-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  background:var(--hap-brand-gradient);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  box-shadow:var(--hap-shadow);
}

.hap-pagination{
  margin-top:26px;
}

.hap-pagination .nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hap-pagination .page-numbers,
.hap-no-posts{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  background:var(--hap-surface);
  border:1px solid var(--hap-line);
  box-shadow:var(--hap-shadow);
  color:var(--hap-text);
  text-decoration:none;
}

.hap-pagination .page-numbers.current{
  background:var(--hap-brand-gradient);
  color:#fff;
}

body.hap-mega-page footer,
body.hap-mega-page .site-footer,
body.hap-mega-page #colophon{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* ==============================
   Responsive desktop/tablet
   ============================== */

@media (max-width:1200px){
  .hap-mega-inner{
    grid-template-columns:max-content 300px;
    gap:26px;
  }

  .hap-subcat-cards{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* ==============================
   Mobile mega menu hard fix
   This is the important part for Astra mobile drawer.
   ============================== */

@media (max-width:921px){

  .ast-mobile-popup-content,
  .ast-mobile-popup-inner,
  .ast-mobile-header-content,
  .ast-builder-menu-mobile,
  .ast-builder-menu-mobile .main-navigation,
  .ast-builder-menu-mobile .main-header-menu,
  .main-header-menu{
    overflow-x:hidden !important;
  }

  .ast-mobile-popup-content .main-header-menu,
  .ast-mobile-header-content .main-header-menu,
  .ast-builder-menu-mobile .main-header-menu{
    width:100% !important;
    max-width:100% !important;
  }

  .ast-mobile-popup-content .menu-item,
  .ast-mobile-header-content .menu-item,
  .ast-builder-menu-mobile .menu-item,
  .main-header-menu .menu-item,
  .menu-item.hap-mega-enabled,
  li[data-hap-mega-item="1"]{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    position:relative !important;
    overflow:visible !important;
  }

  .hap-mobile-arrow{
    display:inline-block;
  }

  .ast-mobile-popup-content .hap-mega-menu,
  .ast-mobile-header-content .hap-mega-menu,
  .ast-builder-menu-mobile .hap-mega-menu,
  .main-header-menu .hap-mega-menu,
  .main-header-menu .sub-menu.hap-mega-menu,
  .hap-mega-menu{
    position:static !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    float:none !important;
    clear:both !important;
    display:none !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:10px 0 0 0 !important;
    padding:0 !important;
    border-radius:16px !important;
    background:var(--hap-surface) !important;
    border:1px solid var(--hap-line) !important;
    box-shadow:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:none !important;
    translate:none !important;
    z-index:auto !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  .menu-item.hap-mega-enabled.hap-open > .hap-mega-menu,
  li[data-hap-mega-item="1"].hap-open > .hap-mega-menu,
  .menu-item.hap-open > .hap-mega-menu{
    display:block !important;
  }

  .menu-item.hap-mega-enabled:hover > .hap-mega-menu,
  li[data-hap-mega-item="1"]:hover > .hap-mega-menu,
  .menu-item:hover > .hap-mega-menu{
    display:none !important;
  }

  .menu-item.hap-mega-enabled.hap-open:hover > .hap-mega-menu,
  li[data-hap-mega-item="1"].hap-open:hover > .hap-mega-menu,
  .menu-item.hap-open:hover > .hap-mega-menu{
    display:block !important;
  }

  .hap-mega-inner{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:16px 14px !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  .hap-mega-left,
  .hap-mega-right,
  .hap-mega-featured{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
  }

  .hap-mega-right{
    border-left:0 !important;
    padding-left:0 !important;
  }

  .hap-mega-grid,
  .hap-mega-grid.hap-cols-1,
  .hap-mega-grid.hap-cols-2,
  .hap-mega-grid.hap-cols-3,
  .hap-mega-grid.hap-cols-4{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .hap-mega-col{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:8px !important;
  }

  .hap-mega-head-row{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    flex-direction:column !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    margin-bottom:14px !important;
    padding-bottom:12px !important;
  }

  .hap-mega-head-row span{
    max-width:100% !important;
    font-size:17px !important;
    line-height:1.25 !important;
    white-space:normal !important;
  }

  .hap-mega-all{
    align-self:flex-start !important;
    width:auto !important;
    max-width:100% !important;
    padding:9px 14px !important;
    font-size:12px !important;
    line-height:1 !important;
  }

  .hap-mega-cat{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:7px 0 !important;
  }

  .hap-mega-cat-name{
    max-width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    font-size:15px !important;
    overflow-wrap:anywhere !important;
  }

  .hap-mega-featured-title{
    font-size:16px !important;
  }

  .hap-mega-posts,
  .hap-mega-resources,
  .hap-mega-cards,
  .hap-mega-featured{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .hap-mega-post,
  .hap-mega-card,
  .hap-mega-resource{
    display:flex !important;
    align-items:flex-start !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:10px !important;
    box-sizing:border-box !important;
  }

  .hap-mega-post > div,
  .hap-mega-post-title,
  .hap-mega-post h4,
  .hap-mega-post a{
    min-width:0 !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
  }

  .hap-mega-thumb,
  .hap-mega-post img{
    width:64px !important;
    min-width:64px !important;
    height:54px !important;
    object-fit:cover !important;
    border-radius:12px !important;
  }

  .hap-mega-post-title{
    font-size:13.5px !important;
    line-height:1.35 !important;
  }

  .hap-mega-post-date{
    font-size:11.5px !important;
  }

  .hap-subcat-cards,
  .hap-letter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .hap-post-grid .hap-post-card.is-featured,
  .hap-post-grid .hap-post-card:not(.is-featured){
    grid-column:span 12;
    display:block;
    min-height:0;
  }

  .hap-post-card.is-featured .hap-post-thumb{
    min-height:280px;
  }
}

@media (min-width:922px){
  .hap-mobile-arrow{
    display:none;
  }

  .menu-item > .hap-mega-menu{
    display:block;
  }
}

@media (max-width:680px){
  .hap-container{
    max-width:calc(100% - 28px);
  }

  .hap-topics-hero-card,
  .hap-category-hero-inner{
    padding:34px 24px 24px;
  }

  .hap-subcat-cards,
  .hap-letter-grid{
    grid-template-columns:1fr;
  }

  .hap-category-title{
    font-size:42px;
  }

  .hap-topics-title{
    font-size:40px;
  }
}

@media (max-width:480px){
  .hap-mega-inner{
    padding:14px 12px !important;
  }

  .hap-mega-post{
    gap:9px !important;
  }

  .hap-mega-thumb,
  .hap-mega-post img{
    width:58px !important;
    min-width:58px !important;
    height:50px !important;
  }

  .hap-mega-post-title{
    font-size:13px !important;
  }
}