/* ============================================
   SOAFO MOBILE STYLESHEET
   Only applies to screens 768px or smaller
   Uses !important to override desktop styles
   ============================================ */

@media screen and (max-width: 768px) {

  /* ===== HEADER ===== */
  .hdr {
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .logo-img {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
  }
  .org-name h1 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
  .org-name p {
    font-size: 11px !important;
    margin-top: 2px !important;
  }
  
  /* Hide Join SOAFO button on mobile */
  .hdr-btn {
    display: none !important;
  }
  
  /* ===== HAMBURGER GOLD BOX ===== */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #c9900a !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0 !important;
    cursor: pointer !important;
    width: 44px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  .hamburger span {
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    background: #0d2144 !important;
    border-radius: 2px !important;
    transition: all 0.25s ease !important;
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(0, 8px) !important;
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0 !important;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -8px) !important;
  }
  
  /* ===== NAV MENU - HIDDEN BY DEFAULT ON MOBILE ===== */
  .nav-container {
    display: none !important;
    background: #0d2144 !important;
    border-top: 3px solid #c9900a !important;
    border-bottom: 3px solid #c9900a !important;
  }
  .nav-container.open {
    display: block !important;
  }
  .nav-wrap {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }
  .ni {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    position: static !important;
  }
  .ni > a {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    color: #c8d9ee !important;
    text-decoration: none !important;
    border: none !important;
  }
  .ni.act > a {
    color: #c9900a !important;
    border-left: 4px solid #c9900a !important;
  }
  
  /* Dropdowns - show as static list on mobile */
  .drop {
    display: block !important;
    position: static !important;
    background: #1e3d70 !important;
    border-left: 4px solid #c9900a !important;
    box-shadow: none !important;
    border-top: none !important;
    min-width: auto !important;
    width: 100% !important;
  }
  .drop a {
    display: block !important;
    padding: 11px 36px !important;
    font-size: 14px !important;
    color: #b8d0ea !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  
  /* ===== BODY TEXT - larger for mobile readability ===== */
  body { font-size: 17px !important; }
  p { font-size: 17px !important; line-height: 1.6 !important; }
  .body-p { font-size: 17px !important; }
  .page-content p { font-size: 17px !important; line-height: 1.65 !important; }
  .ft-col p, footer p { font-size: 14px !important; }
  .page-content li { font-size: 17px !important; line-height: 1.6 !important; }
  
  /* ===== ANNOUNCEMENT ===== */
  .ann {
    padding: 10px 14px !important;
  }
  .ann-line.big {
    font-size: 13px !important;
  }
  .ann-line.mid {
    font-size: 11px !important;
  }
  .ann-line.sml {
    font-size: 10px !important;
  }
  
  /* ===== HERO ===== */
  .hero {
    padding: 32px 16px !important;
  }
  .hero-inner {
    display: block !important;
  }
  .hero h2 {
    font-size: 32px !important;
    line-height: 1.1 !important;
  }
  .hero-sub {
    font-size: 14px !important;
  }
  .hero-seal {
    display: none !important;
  }
  .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  .btn-red, .btn-out {
    width: 100% !important;
    text-align: center !important;
    padding: 13px 20px !important;
    box-sizing: border-box !important;
  }
  
  /* ===== STATS ===== */
  .stats-inner {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .sc {
    padding: 14px 8px !important;
  }
  .sc-num {
    font-size: 24px !important;
  }
  .sc-lbl {
    font-size: 10px !important;
  }
  
  /* ===== SECTIONS - all single column ===== */
  .about-sec, .features, .found-sec, .aff-sec {
    padding: 32px 16px !important;
  }
  .about-inner, .feat-grid, .found-inner {
    display: block !important;
  }
  .fc {
    padding: 18px !important;
    margin-bottom: 12px !important;
  }
  
  /* ===== INNER PAGES ===== */
  .page-hero {
    padding: 22px 16px !important;
  }
  .page-hero h2 {
    font-size: 22px !important;
  }
  .page-body {
    display: block !important;
    padding: 0 16px !important;
  }
  .page-content {
    padding: 22px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid #d1d5db !important;
  }
  .page-sidebar {
    padding: 18px 0 !important;
  }
  
  /* ===== TABLES ===== */
  .board-table {
    font-size: 12px !important;
  }
  .board-table th, .board-table td {
    padding: 8px !important;
  }
  
  /* ===== CONTACT ===== */
  .contact-grid {
    display: block !important;
  }
  
  /* ===== GALLERY ===== */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .gallery-wrap {
    padding: 12px !important;
  }
  
  /* ===== FOOTER ===== */
  footer {
    padding: 28px 16px 18px !important;
  }
  .ft-grid {
    display: block !important;
  }
  .ft-col {
    margin-bottom: 22px !important;
  }
  .ft-bot {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
  }
  
  /* ===== INLINE STYLE OVERRIDES ===== */
  div[style*="max-width:1100px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  div[style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
}

/* ===== HAMBURGER HIDDEN ON DESKTOP ===== */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* ===== EXTRA SMALL SCREENS ===== */
@media screen and (max-width: 380px) {
  .hero h2 {
    font-size: 28px !important;
  }
  .stats-inner {
    grid-template-columns: 1fr !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .org-name h1 {
    font-size: 15px !important;
  }
}
