@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d29259;
  --primary-dark: #b87e4a;
  --accent-color: #f39c12;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --success-color: #27ae60;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* WordPress adjustment */
.entry-content {
  max-width: 100%;
}

/* Hide page title on volunteer opportunities page */
.volunteer-opportunities-container ~ .entry-title,
.page-template-default .entry-title,
.volunteer-opportunities-container ~ h1.elementor-heading-title,
body:has(.volunteer-opportunities-container) .entry-header,
body:has(.volunteer-opportunities-container) .page-title {
  display: none !important;
}

.volunteer-opportunities-container {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #111827;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/wp-content/uploads/2024/09/Desktop_MasterHeaders_Home-1.jpg');
  background-size: cover;
  background-position: center bottom;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h1 .text-primary {
  color: var(--primary-color);
}

.hero-content p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: #e5e7eb;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.75rem;
  }

  .hero-content p {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

/* Ways to Serve Section */
.ways-to-serve-section {
  padding: 4rem 1rem;
  background-color: white;
}

.ways-to-serve-container {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.ways-to-serve-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  font-weight: 400;
  line-height: 1.2;
  color: rgb(224, 222, 220);
  margin-bottom: 1rem;
}

.ways-to-serve-section p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.65;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto;
  border-left: 4px solid #d29259;
  padding-left: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .ways-to-serve-section {
    padding: 5rem 1.5rem;
  }

  .ways-to-serve-section h2 {
    font-size: 9.375rem;
    line-height: 11.25rem;
  }

  .ways-to-serve-section p {
    font-size: 1.4375rem;
    line-height: 2.375rem;
    padding-left: 2rem;
  }
}

/* Opportunities Wrapper */
.opportunities-wrapper {
  width: 100%;
  background-color: rgb(243, 244, 246);
}

.opportunities-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.opportunities-grid {
  position: relative;
  padding-top: 5rem;
  margin-top: 2rem;
}

.opportunities-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.opportunities-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

/* Opportunities Grid */
.opportunities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem 2rem;
}

@media (max-width: 1024px) {
  .opportunities-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .opportunities-list {
    grid-template-columns: 1fr;
    padding: 0 1rem 1rem;
  }

  .opportunities-header h2 {
    font-size: 1.5rem;
  }
}

/* Opportunity Card */
.opportunity-card-new {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 32px;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.opportunity-card-new:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* Volunteer Badge - Top Left */
.volunteer-badge-top {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: #d29259;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.volunteer-badge-top svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

/* Urgent Title Highlight */
.card-title.urgent {
  color: #2d2f2b;
}

/* Recurring Badge - Footer */
.recurring-badge-footer {
  background-color: #dbeafe;
  color: #0c4a6e;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  white-space: nowrap;
}

/* Members Only Badge - Footer */
.members-only-badge-footer {
  background-color: #ede9fe;
  color: #5b21b6;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  white-space: nowrap;
}

/* Semi-Private Badge - Footer */
.semi-private-badge-footer {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  white-space: nowrap;
}

/* Icon Badge */
.icon-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #d29259;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.icon-badge i {
  font-size: 1rem;
  color: white;
  line-height: 1;
}

/* Card Content */
.card-content {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d29259;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-description {
  font-size: 1rem;
  color: #2d2f2b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* Card Footer */
.card-footer-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  gap: 0.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.footer-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #2d2f2b;
}

.footer-info .volunteer-count {
  color: #d29259;
  font-weight: 500;
}

.footer-info svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Arrow Button */
.arrow-button {
  color: #d29259;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  line-height: 1;
  padding: 0.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrow-button:hover,
.arrow-button:visited,
.arrow-button:focus,
.arrow-button:active {
  text-decoration: none;
  opacity: 0.8;
  outline: none;
}

/* Footer Container */
.opportunities-footer {
  display: flex;
  justify-content: center;
  padding: 2rem 2rem 4rem;
}

.view-all-button {
  font-family: 'Oswald', sans-serif;
  background-color: #d29259;
  color: white;
  padding: 0.75rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.view-all-button:hover,
.view-all-button:visited,
.view-all-button:focus,
.view-all-button:active {
  text-decoration: none;
  background-color: #b87e4a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 146, 89, 0.4);
  outline: none;
  color: white;
}

.view-all-button:active {
  transform: translateY(0);
}

/* Empty State */
.opportunities-empty-state {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--bg-light);
}

.opportunities-empty-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .opportunity-card-new {
    padding: 1.25rem;
  }

  .volunteer-badge-top {
    top: 1rem;
    left: 1rem;
    font-size: 0.65rem;
  }

  .volunteer-badge-top svg {
    width: 0.875rem;
    height: 0.875rem;
  }

  .recurring-badge-footer {
    font-size: 0.6rem;
  }

  .members-only-badge-footer {
    font-size: 0.6rem;
  }

  .semi-private-badge-footer {
    font-size: 0.6rem;
  }

  .icon-badge {
    top: 1rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.25rem;
  }

  .icon-badge i {
    font-size: 0.55rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-description {
    font-size: 0.8rem;
  }

  .footer-info span {
    font-size: 0.7rem;
  }

  .arrow-button {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
  }

  .opportunities-footer {
    padding: 2rem 1rem;
  }
}

/* Utility Classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.font-oswald {
  font-family: 'Oswald', sans-serif;
}

.gap-8 {
  gap: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.px-2rem {
  padding-left: 2rem;
  padding-right: 2rem;
}

.border-l-4 {
  border-left: 4px solid;
}

.border-primary {
  border-left-color: #d29259;
}

.pl-6 {
  padding-left: 1.5rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-bold {
  font-weight: 700;
}

.text-gray-900 {
  color: #111827;
}

.text-gray-600 {
  color: #4b5563;
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:justify-between {
    justify-content: space-between;
  }

  .md\:pl-8 {
    padding-left: 2rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
  }
}
