/* =============================================================================
   mobile.css — 767px (hamburger drawer) and 500px (full block display)
   ============================================================================= */


/* =============================================================================
   HAMBURGER BASE — outside any query so the button/animation always works
   ============================================================================= */

   *{
    }
#hamburger-btn {
  display: none;           /* off on desktop; turned on at 767px */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  z-index: 10000;
  transition: all 0.25s ease;
}

#hamburger-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

#hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to × when menu is open */
body.mobile-nav-open #hamburger-btn span:nth-child(1) { 
  transform: translateY(7px) rotate(45deg); 
}
body.mobile-nav-open #hamburger-btn span:nth-child(2) { 
  opacity: 0; 
  transform: scaleX(0); 
}
body.mobile-nav-open #hamburger-btn span:nth-child(3) { 
  transform: translateY(-7px) rotate(-45deg); 
}

/* Dim overlay when drawer is open — only at 767px, not at 500px */
@media screen and (min-width: 501px)  {
  body.mobile-nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.25s ease;
  }
  
  /* Close overlay when clicking outside menu */
  body.mobile-nav-open::before {
    cursor: pointer;
  }
}

/* Close button inside the drawer (X) */
.mobile-menu-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  padding: 8px;
  line-height: 1;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* =============================================================================
   767px — hamburger + slide-in drawer
   ============================================================================= */
 

/* =============================================================================
   500px — everything display:block, no drawer, no hamburger, just stacked
   ============================================================================= */
@media screen and (max-width: 500px) {

  /* ── Kill the hamburger & drawer completely ── */
  #hamburger-btn { display: none !important; }
  .mobile-menu-close { display: none !important; }

  /* Nav: show all items as a plain stacked list */
  #superfish-1,
  ul#superfish-1 {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    list-style: none !important;
    left: 0 !important; /* Reset slide position */
  }

  /* All nav items as plain blocks */
  #superfish-1 li,
  #superfish-1 > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: static !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }

  #superfish-1 li a,
  #superfish-1 > li > a.sf-depth-1 {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    color: #fff !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
  }

  /* Show all submenus as plain blocks — no tap needed */
  #superfish-1 .sf-megamenu,
  #superfish-1 > li > ul,
  #superfish-1 ul {
    display: block !important;
    position: static !important;
    background: rgba(0,0,0,0.18) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    min-width: 0 !important;
  }

  /* Flatten megamenu layout */
  .sf-megamenu-wrapper,
  .sf-megamenu-wrapper ol,
  .sf-megamenu-column {
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #superfish-1 .sf-megamenu li,
  #superfish-1 ul li {
    display: block !important;
    width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }

  #superfish-1 .sf-megamenu a,
  #superfish-1 ul a,
  #superfish-1 .sf-depth-2,
  #superfish-1 .sf-depth-3 {
    display: block !important;
    padding: 8px 12px 8px 22px !important;
    color: rgba(255,255,255,0.72) !important;
    font-size: 0.82em !important;
    font-weight: normal !important;
    text-decoration: none !important;
  }

  /* Remove arrow pseudo-element */
  #superfish-1 > li.menuparent > a.sf-depth-1::after { display: none !important; }

  /* Header: stack nav below donate */
  #zone-header {
    display: block !important;
    padding: 8px 10px !important;
  }

  #region-header-first {
    display: block !important;
    width: 100% !important;
    float: none !important;
    order: unset;
  }

  #region-header-second {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin: 0 0 6px 0 !important;
    order: unset;
  }

  /* Donate spans full width */
  #donate_now, .orange_button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 0 4px 0 !important;
  }

  #donate_now h2, .orange_button h2 {
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 0.88em !important;
  }

  /* Everything else: tighter grid */
  .container-12,
  .grid-12, .grid-9, .grid-6, .grid-3 {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    clear: both;
  }

  .region, .region-header-first, .region-header-second,
  .region-sidebar-first, .region-content, .region-footer-second {
    width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both;
  }

  #region-sidebar-first {
    padding: 10px !important;
    margin-bottom: 6px;
  }

  #region-content {
    padding: 0 10px !important;
  }

  #sbw_logo img#logo {
    display: block;
    margin: 0 auto;
    max-width: 120px;
    height: auto;
  }

  #sbw-motto { font-size: 0.82em; text-align: center; padding: 5px; }

  #logo-buttons { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  #logo-buttons h2 { margin: 0; font-size: 0.82em; text-align: center; }

  #big_red { width: 100% !important; margin: 8px 0; }
  #big_red h1 { font-size: 0.8em; padding: 10px; text-align: center; margin: 0; }

  .socialmedia_icon { width: 30px; height: 30px; }

  .clearinghouse_count { font-size: 1.55em; }
  .clearinghouse_text  { font-size: 0.78em; }

  #badware_search { width: 68%; font-size: 0.82em; padding: 5px 8px; }

  .node-featuredcontent .field-item img,
  .fc-ss img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .views_slideshow_cycle_main,
  .views-slideshow-cycle-main-frame,
  .views-slideshow-cycle-main-frame-row,
  .views-slideshow-cycle-main-frame-row-item {
    width: 100% !important;
    display: block !important;
  }

  #block-block-11 .block-title,
  #block-block-11 h2 { font-size: 1.05em; }
  #block-block-11 h3 { font-size: 0.95em; }
  #block-block-11 p,
  #block-block-11 li {
    
    white-space: wrap;
    font-size: 0.82em; line-height: 1.5; 
    width: 80%;
  }

  .panel-display, .panel-1col, .panel-panel, .panel-col {
    display: block !important;
    width: 100% !important;
    float: none !important;
  }

  .panel-pane, .pane-custom, .pane-content, .block, .block-inner {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
  }

  /* Footer on 500px */
  #footer {
    padding: 16px 12px;
  }

  #footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer_link {
    font-size: 0.78em;
    padding: 4px 6px;
    display: inline-block;
    color: #bbb;
    text-decoration: none;
  }

  .footer_link:hover {
    color: #ffaa00;
  }

  .clearfix::after { content: ""; display: table; clear: both; }
}







 