/* fundraising-static/css/responsive.css */

/* General container padding and margin for mobile */
@media (max-width: 640px) {
  .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl, .max-w-lg, .max-w-md, .max-w-sm,
  .container, .tab-content, .main-content, .content-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .p-6, .px-6, .p-4, .px-4, .p-2, .px-2 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .py-4, .py-6, .py-2 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  .mt-12, .mt-6, .mt-4, .mt-2 {
    margin-top: 1rem !important;
  }
  .mb-12, .mb-6, .mb-4, .mb-2 {
    margin-bottom: 1rem !important;
  }
  .rounded-lg, .rounded-md, .rounded {
    border-radius: 0.5rem !important;
  }
  .shadow-lg, .shadow-md, .shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
}

/* Tabs: stack vertically on mobile, full width */
@media (max-width: 640px) {
  .tab-btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
  }
  #navbar, .tabs-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
}

/* Forms: full width inputs and better spacing */
@media (max-width: 640px) {
  input, select, textarea, button {
    font-size: 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .grid-cols-2, .md\:grid-cols-2, .grid-cols-3, .md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .flex-row, .md\:flex-row {
    flex-direction: column !important;
  }
  .space-y-4 > * + * {
    margin-top: 1rem !important;
  }
  .form-section, .form-group {
    margin-bottom: 1rem !important;
  }
}

/* Buttons: larger touch area and spacing */
@media (max-width: 640px) {
  button, .tab-btn {
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
  }
  .flex.gap-2 > * {
    margin-bottom: 0.5rem;
  }
}

/* Tables: horizontal scroll on mobile */
@media (max-width: 640px) {
  .overflow-x-auto {
    overflow-x: auto !important;
  }
  table {
    min-width: 600px !important;
    font-size: 0.95rem !important;
  }
  th, td {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Hide some non-essential columns on very small screens */
@media (max-width: 480px) {
  th:nth-child(4), td:nth-child(4),
  th:nth-child(5), td:nth-child(5),
  th:nth-child(6), td:nth-child(6),
  th:nth-child(7), td:nth-child(7) {
    display: none !important;
  }
}

/* Images: scale down and center on mobile */
@media (max-width: 640px) {
  img, .responsive-img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Headings and text: better spacing */
@media (max-width: 640px) {
  h1, h2, h3, h4, h5, h6 {
    font-size: 1.1em !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  p, .text-base, .text-lg, .text-xl {
    font-size: 1em !important;
  }
}

/* Utility: ensure .main-content and .tab-content are full width on mobile */
@media (max-width: 640px) {
  .main-content, .tab-content {
    width: 100% !important;
    padding: 0.5rem !important;
  }
}

/* Team tab specific: better mobile layout for team lead and members */
@media (max-width: 640px) {
  #team-content .flex,
  #team-content .flex-col,
  #team-content .items-center {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  #team-content .mb-8 {
    margin-bottom: 1rem !important;
  }
  #team-content .grid,
  #team-content .grid-cols-1,
  #team-content .sm\:grid-cols-2,
  #team-content .md\:grid-cols-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  #team-content .rounded,
 
  #team-content .shadow,
  #team-content .shadow-lg {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
  #team-content img {
    max-width: 180px !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
  }
  #team-content .text-2xl,
  #team-content .font-bold,
  #team-content .font-semibold {
    font-size: 1.1em !important;
    text-align: center !important;
  }
  #team-content .p-4 {
    padding: 0.50rem !important;
  }
}

/* --- TEAM TAB: ENHANCED RESPONSIVENESS & CIRCULAR IMAGES --- */
#team-content img,
.team-content img {
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-bg {
  background-image: url('images/fundraising-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

.team-content-wrapper, .team-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  #team-content {
    margin-top: 2.5rem !important; /* extra space below navbar */
  }
  .team-bg {
    background-image: url('images/fundraising-bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 0.75rem;
    min-height: 100vh;
  }
  .team-content-wrapper, .team-content {
    position: relative;
    z-index: 2;
  }
  #team-content img,
  .team-content img {
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 0.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    background: #fff !important;
  }
}

@media (max-width: 640px) {
  /* Team tab: reduce top margin and add spacing below tab bar */
  #team-content {
    margin-top: 0.5rem !important;
  }
  .tab-btn {
    margin-bottom: 0.5rem !important;
    margin-right: 0 !important;
  }
  #navbar, .tabs-bar {
    margin-bottom: 1rem !important;
  }
  /* Team member card: more padding and spacing */
  #team-content .p-4 {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  /* Team images: ensure border/shadow are visible and not clipped */
  #team-content img {
    max-width: 50vw !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 0.5rem !important;
    box-sizing: border-box !important;
  }
  /* Remove extra margin above first card if present */
  #team-content .mb-8 {
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
  }
}

.home-img-bigger {
  width: 360px;
  max-width: 90vw;
}
@media (min-width: 768px) {
  .home-img-bigger {
    width: 480px;
    max-width: 40vw;
  }
} 