/* 1. Hero Section */
/* In ./first.css */

/* 2. Common Cards Section */
.common-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.hx-mt-2.hx-text-4xl,
main h1:first-of-type,
.content h1:first-of-type {
  font-size: 3rem !important;
  text-align: center;
  font-family: 'Roboto-Bold', sans-serif;
}
 
@media (min-width: 768px) {
  .hx-mt-2.hx-text-4xl,
  main h1:first-of-type,
  .content h1:first-of-type {
    font-size: 4rem !important;
  }
}
#solving-problems {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

#advantages {
  padding-top: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#solving-problems h2 {
  font-size: 2rem;
}

@media (max-width: 480px) {
  #solving-problems h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  #solving-problems h2 {
    font-size: 2.5rem;
  }
}

.problem-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.5rem auto 0;
}

@media (max-width: 768px) {
  .problem-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .problem-card-grid {
    grid-template-columns: 1fr;
  }
}
.problem-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.problem-card:hover,
.problem-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

html[class~="dark"] .problem-card {
  border-color: #2a2a2a;
}

.problem-card-icon {
  flex-shrink: 0;
  margin-left: 1rem;
}

.problem-card-icon svg {
  width: 28px;
  height: 28px;
}

/* Individual card colors */
.problem-card:nth-child(1) { border-left: 4px solid #3b82f6; } /* blue */
.problem-card:nth-child(2) { border-left: 4px solid #ef4444; } /* red */
.problem-card:nth-child(3) { border-left: 4px solid #8b5cf6; } /* purple */
.problem-card:nth-child(4) { border-left: 4px solid #10b981; } /* green */
.problem-card:nth-child(5) { border-left: 4px solid #f59e0b; } /* amber */
.problem-card:nth-child(6) { border-left: 4px solid #ec4899; } /* pink */
.problem-card:nth-child(7) { border-left: 4px solid #06b6d4; } /* cyan */
.problem-card:nth-child(8) { border-left: 4px solid #f97316; } /* orange */
.problem-card:nth-child(9) { border-left: 4px solid #6366f1; } /* indigo */

.problem-card:nth-child(1) .problem-card-icon { color: #3b82f6; }
.problem-card:nth-child(2) .problem-card-icon { color: #ef4444; }
.problem-card:nth-child(3) .problem-card-icon { color: #8b5cf6; }
.problem-card:nth-child(4) .problem-card-icon { color: #10b981; }
.problem-card:nth-child(5) .problem-card-icon { color: #f59e0b; }
.problem-card:nth-child(6) .problem-card-icon { color: #ec4899; }
.problem-card:nth-child(7) .problem-card-icon { color: #06b6d4; }
.problem-card:nth-child(8) .problem-card-icon { color: #f97316; }
.problem-card:nth-child(9) .problem-card-icon { color: #6366f1; }

.common-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: none;
  border-radius: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.common-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.common-card:hover::before {
  opacity: 1;
}

.common-card:hover,
.common-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.common-card h2 {
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.common-card p {
  color: #64748b;
  line-height: 1.7;
}

html[class~="dark"] .common-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #262626 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[class~="dark"] .common-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html[class~="dark"] .common-card h2 {
  color: #f1f5f9;
}

html[class~="dark"] .common-card p {
  color: #94a3b8;
}

/* Card header with icon */
.common-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.common-card-header h2 {
  margin: 0;
  line-height: 1;
}

.common-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  flex-shrink: 0;
}

.common-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

/* Individual icon colors matching accent bars */
.common-card:nth-child(1) .common-card-icon { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.common-card:nth-child(2) .common-card-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.common-card:nth-child(3) .common-card-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.common-card:nth-child(4) .common-card-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.common-card:nth-child(5) .common-card-icon { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }

html[class~="dark"] .common-card-icon {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Individual card accent colors */
.common-card:nth-child(1)::before { background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%); }
.common-card:nth-child(2)::before { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
.common-card:nth-child(3)::before { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.common-card:nth-child(4)::before { background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%); }
.common-card:nth-child(5)::before { background: linear-gradient(180deg, #ec4899 0%, #db2777 100%); }

@media (max-width: 768px) {
  .common-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .common-card:last-child {
    grid-column: span 2;
    padding-inline: 6rem;
    text-align: center;
  }

  .common-card:last-child::before {
    width: 100%;
    height: 4px;
    left: 0;
    top: 0;
  }
}

/* 3. Community Section */
.community-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.community-content {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-cta {
  text-align: center;
}

.community-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-chat-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
}

.chat-section {
  max-width: 300px;
}

.chat-section-button {
  display: inline-flex;
  border: 1px solid;
  padding: 10px;
  margin-top: 7px;
  border-radius: 10px;
  background: transparent;
  color: rgb(var(--color-black));
  transition: all 0.2s ease-in-out;
}

.chat-section-button:hover {
  background: rgb(var(--color-black));
  border-color: rgb(var(--color-black));
  color: rgb(var(--color-white));
}

.chat-section {
  flex: 1;
  margin-right: 2rem;
}
.chat-section:last-child {
  margin-right: 0;
}

.chat-section .platform-icons {
  justify-content: center;
}

@media (max-width: 535px) {
  .social-chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .chat-section {
    margin-right: 0rem;
  }
}

@media (min-width: 1149px) {
  .community-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .community-content {
    flex: 1;
    order: 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .community-cta {
    flex: 1;
    order: 2;
    text-align: left;
    margin: auto;
  }

  .community-cta p {
    margin: 0;
  }

  .chat-section .platform-icons {
    justify-content: left;
  }
}

/* 4. Explore Section */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem auto 0;
}

.explore-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.explore-card h2 svg {
  margin-top: 3px;
}

.explore-card h2 span {
  margin-left: 6px;
}

.explore-link {
  margin-top: 1.25rem;
  font-weight: 600;
  color: #2563eb;
}

.explore-card:hover,
.explore-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

html[class~="dark"] .explore-card {
  border-color: #2a2a2a;
}

html[class~="dark"] .explore-link {
  color: #00aeff;
}

@media (max-width: 768px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

/* 5. Contributors Section */
#contributors {
  width: 100%;
  text-align: center;
  font-size: 2rem;
}

#shareDropdown {
  display: none;
  position: absolute;
  background-color: white;
  color: black;
  padding: 10px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  border-radius: 10px;
  margin-top: 55px;
}

.contributors-button {
  height: 50px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  margin: 2px;
}

.all-contributors-table table tbody tr td {
  text-align: center;
}
@media (max-width: 768px) {
  .all-contributors-table table tbody tr td {
    width: 100%;
  }
}

