/* Purpose Page Styles */

/* Fixed navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Adjust body padding to account for fixed header */
body {
  padding-top: 80px;
}

.purpose-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(135deg, #fdf7f1 0%, #f5ede3 100%);
  margin-bottom: 2rem;
}

.purpose-hero h1 {
  font-size: 3rem;
  color: #3e2c1c;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #5a3d2c;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.purpose-section {
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.purpose-content {
  max-width: 1000px;
  margin: 0 auto;
}

.purpose-section h2 {
  font-size: 2.2rem;
  color: #3e2c1c;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.purpose-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4a4a;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Purpose Grid */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.purpose-card {
  background: #fdf7f1;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e0d8cf;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purpose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.purpose-card h3 {
  font-size: 1.4rem;
  color: #3e2c1c;
  margin-bottom: 1rem;
  font-weight: 600;
}

.purpose-card p {
  text-align: left;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Values List */
.values-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 0.8rem;
  border-left: 4px solid #c4915c;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.value-item h4 {
  font-size: 1.3rem;
  color: #3e2c1c;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.value-item p {
  text-align: left;
  margin-bottom: 0;
  font-size: 1rem;
  color: #555;
}

/* Contribute Section */
.contribute-section {
  background: #f8f4f0;
  border-radius: 1rem;
  margin: 2rem 1.5rem;
}

.contribute-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contribute-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid #e0d8cf;
  transition: transform 0.3s ease;
}

.contribute-card:hover {
  transform: translateY(-3px);
}

.contribute-card h3 {
  font-size: 1.3rem;
  color: #3e2c1c;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contribute-card p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Call to Action */
.purpose-cta {
  background: linear-gradient(135deg, #3e2c1c 0%, #5a3d2c 100%);
  color: white;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0 0;
}

.purpose-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.purpose-cta p {
  color: #f0f0f0;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .view-detail,
.cta-buttons .show-more-btn {
  min-width: 200px;
  text-align: center;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.7rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-buttons .view-detail {
  background-color: #c4915c;
  color: white;
  border: 2px solid #c4915c;
  margin: 0;
}

.cta-buttons .view-detail:hover {
  background-color: #b8854f;
  border-color: #b8854f;
}

.cta-buttons .show-more-btn {
  background-color: transparent;
  border: 2px solid #c4915c;
  color: #c4915c;
}

.cta-buttons .show-more-btn:hover {
  background-color: #c4915c;
  color: white;
}

/* Mobile responsive styles for purpose page */
@media (max-width: 768px) {
  body {
    padding-top: 110px; /* Match other pages */
    font-size: 14px;
  }

  .purpose-hero {
    padding: 1.5rem 1rem 1rem;
    margin: 0;
  }

  .purpose-hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }

  .purpose-section {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
  }

  .purpose-content {
    padding: 0;
    margin: 0;
  }

  .purpose-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .purpose-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .purpose-card {
    padding: 1.5rem;
  }

  .purpose-card h3 {
    font-size: 1.2rem;
  }

  .purpose-card p {
    font-size: 0.95rem;
  }

  .values-list {
    gap: 1rem;
  }

  .value-item {
    padding: 1.2rem;
  }

  .value-item h4 {
    font-size: 1.1rem;
  }

  .value-item p {
    font-size: 0.95rem;
  }

  .contribute-section {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }

  .contribute-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contribute-card {
    padding: 1.5rem;
  }

  .contribute-card h3 {
    font-size: 1.2rem;
  }

  .contribute-card p {
    font-size: 0.95rem;
  }

  .purpose-cta {
    padding: 2rem 1rem;
  }

  .purpose-cta h2 {
    font-size: 1.8rem;
  }

  .purpose-cta p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .view-detail,
  .cta-buttons .show-more-btn {
    min-width: 100%;
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

/* Samsung Galaxy S & smaller devices - purpose page */
@media (max-width: 360px) {
  body {
    padding-top: 125px; /* Extra space for Samsung UI */
  }

  .purpose-hero {
    padding: 1.2rem 0.6rem;
    background: linear-gradient(135deg, #fdf7f1 0%, #f5ede3 100%);
  }

  .purpose-hero h1 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .purpose-section {
    padding: 1rem 0.6rem;
  }

  .purpose-section h2 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .purpose-section p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .purpose-card {
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .purpose-card h3 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .purpose-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-buttons .view-detail,
  .cta-buttons .show-more-btn {
    min-height: 48px; /* Better touch targets for Samsung */
    font-size: 0.9rem;
  }
}

/* iPhone Standard Models - purpose page */
@media (min-width: 361px) and (max-width: 375px) {
  body {
    padding-top: 118px; /* iPhone safe area */
    -webkit-font-smoothing: antialiased;
  }

  .purpose-hero {
    padding: 1.4rem 0.8rem;
    /* iPhone safe area support */
    padding-left: max(0.8rem, env(safe-area-inset-left));
    padding-right: max(0.8rem, env(safe-area-inset-right));
  }

  .purpose-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.4;
  }

  .purpose-section {
    padding: 1.2rem 0.8rem;
    padding-left: max(0.8rem, env(safe-area-inset-left));
    padding-right: max(0.8rem, env(safe-area-inset-right));
  }

  .purpose-section h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .purpose-section p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .purpose-card {
    padding: 1.2rem;
    border-radius: 12px; /* iOS design language */
  }
}

/* iPhone Plus & Samsung Galaxy Note - purpose page */
@media (min-width: 376px) and (max-width: 414px) {
  body {
    padding-top: 115px;
    -webkit-font-smoothing: antialiased;
  }

  .purpose-hero {
    padding: 1.6rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .purpose-hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .purpose-section {
    padding: 1.4rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .purpose-section h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .purpose-section p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .purpose-card {
    padding: 1.3rem;
    border-radius: 12px;
  }
}

/* Tablet responsive styles for purpose page */
@media (max-width: 1024px) and (min-width: 769px) {
  .purpose-hero {
    padding: 2.5rem 1.5rem 2rem;
  }

  .purpose-hero h1 {
    font-size: 2.5rem;
  }

  .purpose-section {
    padding: 2rem 1.5rem;
  }

  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contribute-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    gap: 1.5rem;
  }
}

/* Samsung Galaxy S Series optimizations for purpose page */
@media (max-width: 360px) {
  .purpose-hero {
    padding: 1.5rem 0.8rem;
  }

  .purpose-hero h1 {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .purpose-section {
    padding: 1.2rem 0.8rem;
  }

  .purpose-section h2 {
    font-size: 1.5rem;
  }

  .purpose-card {
    padding: 1.2rem;
  }

  .purpose-card h3 {
    font-size: 1.1rem;
  }
}

/* iPhone Standard optimizations for purpose page */
@media (min-width: 361px) and (max-width: 375px) {
  .purpose-hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .purpose-section h2 {
    font-size: 1.6rem;
  }
}

/* iPhone Plus & Galaxy Note optimizations for purpose page */
@media (min-width: 376px) and (max-width: 414px) {
  .purpose-hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .purpose-section h2 {
    font-size: 1.7rem;
  }
}