/* Mobile Responsive Styles */
@media (max-width:900px){
  /* Show hamburger, hide desktop nav */
  .links{display:none}
  .hamburger{display:flex}

  /* Header padding on mobile */
  .header{padding:0 10px}

  /* Center all headings on mobile */
  h1, h2, h3, h4, h5, h6 {
    text-align: center !important;
  }

  /* Center kickers and buttons on mobile */
  .kicker {
    text-align: center !important;
  }

  .button {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Container padding for 10px spacing */
  .container {
    padding: 0 10px !important;
  }

  /* Hero: 40% white section at top, 60% image below */
  .hero-wrapper{min-height:calc(100vh - 64px);background:white;scroll-snap-align:start;}
  .hero-image{position:relative;left:0;width:100%;height:calc(60vh - 64px);z-index:0;}
  .hero-content{padding:20px 0 0;background:white;min-height:40vh;display:flex;flex-direction:column;justify-content:center}
  .hero-content h1{font-size:80px;color:#002868}
  .hero-content p{color:#1a1a1a;text-shadow:none}
  .hero-content .kicker{color:#B22234;text-shadow:none}
  .hero-badge-wrapper{padding:0 15px 0 15px;background:transparent;position:absolute;bottom:40px;left:0;right:0}

  /* Hero seals on mobile */
  .hero-seals{gap:20px;height:75px}
  .seal-501c3{width:75px;height:75px}
  .seal-candid{height:100%;width:auto}

  /* Sections: extra top margin for fixed header, side margins for content */
  .section{padding:60px 0 50px !important;min-height:100vh;display:flex;flex-direction:column;justify-content:center}
  .section:last-of-type{scroll-snap-align:start;padding-bottom:20px}
  .section h2{text-align: center;}
  /* Footer on mobile */
  .footer{min-height:auto;scroll-snap-align:end}
  
  /* Add margins to images on mobile (except hero image which is full width) */
  .two-column-image img{margin:0 10px;width:calc(100% - 20px);border-radius:12px}
  
  .grid{grid-template-columns:1fr !important;gap:12px}
  .two-column{grid-template-columns:1fr;gap:24px}
  .footer-columns{grid-template-columns:1fr;gap:24px}

  /* Ensure Ways You Can Help section shows 1 card per row */
  #help .grid {
    grid-template-columns: 1fr !important;
  }

  #help .grid .card {
    margin: 0 0 12px 0;
  }
  .footer-column p,
  .footer-column h4,
  .footer-column ul{margin-left:20px!important;margin-right:20px!important;}
  .footer-column p,
  .footer-column ul{font-weight: bold;}
  .contact-container{padding:0 10px}
  .contact-left,.contact-right{max-width:100%}
  .contact-intro{font-size:16px}
  .footer-column .donate-button{margin-left:0;margin-right:0;}
  .footer-column:last-of-type {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Joined cards in grid - mobile (vertical stack) - only for specific grids */
  .grid-joined{gap:0 !important}
  .grid-joined .card{margin:0 !important}
  .grid-joined .card:first-child{border-radius:16px 16px 0 0 !important}
  .grid-joined .card:last-child{border-radius:0 0 16px 16px !important}
  .grid-joined .card:first-child:last-child{border-radius:16px !important}
  
  #help-cards{text-align: center;}
  #help-cards .button{margin:auto}

  /* Romans box - full width on mobile, no rounded corners */
  .romans-box{
    margin-left:-20px !important;
    margin-right:-20px !important;
    border-radius:0 !important;
    width:100%!important;
  }
  
  /* Mobile margins for p, h, and .kicker elements, excluding those inside .card */
  p:not(.card p):not(.card *),
  h1:not(.card h1):not(.card *),
  h2:not(.card h2):not(.card *),
  h3:not(.card h3):not(.card *),
  h4:not(.card h4):not(.card *),
  h5:not(.card h5):not(.card *),
  h6:not(.card h6):not(.card *),
  .kicker:not(.card .kicker):not(.card *){margin-left:10px;margin-right:10px}
  .card{margin:0 0 12px 0}

  /* Sections get 10px padding */
  .section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Ongoing Efforts - Full width image container */
  .full-width-image-container{width:calc(100% - 20px);margin-left:auto;margin-right:auto;margin-top:60px;border-radius:12px}

  /* Form Pages Mobile */
  .help-request-page, .sponsorship-page, .testimonial-page,
  .connect-page, .volunteer-page {
    padding: 2rem 10px !important;
  }

  .form-container {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Help Request - Urgency Scale */
  .urgency-scale {
    flex-direction: column;
    gap: 0.5rem;
  }

  .radio-group {
    width: 100%;
  }

  .scale-label {
    text-align: center;
  }

  /* Sponsorship - Radio Options */
  .radio-options {
    padding: 0.75rem;
  }

  .radio-option {
    padding: 0.5rem;
  }

  /* Testimonial - Star Rating */
  .star-rating {
    gap: 0.5rem;
  }

  .star-rating label {
    font-size: 1.25rem;
    width: 35px;
    height: 35px;
  }

  /* Ongoing Efforts Page Mobile */
  .banner-section div[style*="width: 50%"] {
    width: 100% !important;
  }

  .banner-section .container {
    justify-content: center !important;
  }

  .banner-section .container > div {
    text-align: center !important;
  }

  .two-column {
    display: flex;
    flex-direction: column;
  }

  .two-column-image,
  .image-box {
    order: -1;
    margin-bottom: 20px;
  }

  /* Who We Are section - natural order on mobile (image first, text second) */
  #who .two-column {
    display: flex;
    flex-direction: column;
  }

  /* About Us Page Mobile */
  .founder-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .founder-image-left,
  .founder-image-right {
    min-height: 200px;
  }

  .founder-image-placeholder {
    min-height: 200px;
  }

  .founder-message {
    padding: 32px 24px;
  }

  .founder-message h2 {
    font-size: 24px;
  }

  .our-story-section h2 {
    font-size: 28px;
  }

  /* Get Involved Page Mobile */
  .get-involved-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .get-involved-content h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .content-left h2 {
    font-size: 26px;
  }

  .flag-heart-container {
    max-width: 300px;
  }

  .empowering-section {
    margin-top: 60px;
  }

  .empowering-section h2 {
    font-size: 28px;
  }

  .join-us-section {
    margin-top: 60px;
  }

  .photo-container {
    min-height: 450px;
    padding: 0 10px;
  }

  .photo-main {
    max-width: 100%;
  }

  .photo-overlay {
    max-width: 60%;
    bottom: 60px;
  }

  .photo-heading {
    font-size: 24px;
    margin-top: 24px;
    text-align: center;
  }

  /* ongoing-efforts */
  #four-people {
    min-height: unset;
  }

  /* Hide banner title on mobile, keep button visible */
  .banner-title {
    display: none !important;
  }

  .mobile-contact-button {
    display: block !important;
  }

  /* Content Pages Mobile */
  .privacy-content, .terms-content, .accessibility-content, .donate-content {
    padding: 0 10px;
  }

  .privacy-content h2, .terms-content h2, .accessibility-content h2 {
    font-size: 24px;
    margin: 32px 10px 12px 10px;
  }

  .privacy-content p, .terms-content p, .accessibility-content p,
  .accessibility-content ul {
    font-size: 15px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .contact-box {
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* Donate Page Mobile */
  .donate-content h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .donate-content p {
    font-size: 16px;
  }

  /* Contact Page Mobile */
  .contact-page {
    padding: 40px 10px !important;
  }

  .contact-container {
    padding: 0 !important;
  }
}