/* Forum Page Styles */

.forum-page {
  direction: rtl;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Hero Section */
.forum-hero {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.pexels.com/photos/416778/pexels-photo-416778.jpeg?auto=compress&cs=tinysrgb&w=1680");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 96px 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.forum-hero__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

.forum-hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-family: "Assistant", sans-serif;
}

.forum-hero__subtitle {
  font-size: 20px;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Assistant", sans-serif;
  opacity: 0.95;
}

/* Forum Section */
.forum-section {
  padding: 64px 0;
  background-color: #f0f2f5;
  width: 100%;
  box-sizing: border-box;
}

.forum-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Forum Head */
.forum-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.forum-head__title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  font-family: "Assistant", sans-serif;
}

.forum-btn {
  background-color: #e91e63;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
  font-family: "Assistant", sans-serif;
  white-space: nowrap;
}

.forum-btn:hover {
  background-color: #f6c3a8;
  color: #ffffff;
}

/* Forum Card */
.forum-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
  overflow: hidden;
}

.forum-card__header {
  background-color: #e5e7eb;
  padding: 16px 24px;
}

.forum-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: "Assistant", sans-serif;
}

.forum-card__body {
  padding: 0;
}

/* Forum Table */
.forum-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Assistant", sans-serif;
}

.forum-table thead {
  background-color: #f3f4f6;
}

.forum-table th {
  padding: 16px 24px;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forum-table th.is-center {
  text-align: center;
}

.forum-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}

.forum-table tbody tr:hover {
  background-color: #f9fafb;
}

.forum-table tbody tr:last-child {
  border-bottom: none;
}

.forum-table td {
  padding: 16px 24px;
  vertical-align: top;
}

.forum-table td:first-child {
  text-align: right;
}

.forum-table td:last-child {
  text-align: right;
}

.forum-table td.is-center {
  text-align: center;
}

/* Forum Links */
.forum-link {
  color: #e91e63;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: 4px;
}

.forum-table td:first-child .forum-link {
  font-weight: 700;
  font-size: 16px;
}

.forum-link:hover {
  color: #f6c3a8;
  text-decoration: underline;
}

/* Forum Meta */
.forum-meta {
  color: #6b7280;
  font-size: 14px;
  margin: 4px 0 0 0;
  font-family: "Assistant", sans-serif;
}

.forum-table td p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-family: "Assistant", sans-serif;
}

.forum-table td p:first-child {
  margin-bottom: 4px;
}

.forum-table td .forum-link {
  font-size: 14px;
  font-weight: 500;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .forum-hero {
    padding: 64px 0;
  }

  .forum-hero__title {
    font-size: 36px;
  }

  .forum-hero__subtitle {
    font-size: 18px;
  }

  .forum-section {
    padding: 48px 0;
  }

  .forum-head__title {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .forum-hero {
    padding: 48px 0;
  }

  .forum-hero__title {
    font-size: 28px;
  }

  .forum-hero__subtitle {
    font-size: 16px;
  }

  .forum-section {
    padding: 32px 0;
  }


  .forum-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-btn {
    width: 100%;
    text-align: center;
  }

  .forum-card__header {
    padding: 12px 16px;
  }

  .forum-card__title {
    font-size: 18px;
  }

  .forum-table th,
  .forum-table td {
    padding: 12px 16px;
  }

  .forum-table th.hide-sm,
  .forum-table td.hide-sm {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .forum-hero__title {
    font-size: 24px;
  }

  .forum-hero__subtitle {
    font-size: 14px;
  }

  .forum-head__title {
    font-size: 24px;
  }

  .forum-card__title {
    font-size: 16px;
  }

  .forum-table th,
  .forum-table td {
    padding: 10px 12px;
  }

  .forum-link {
    font-size: 14px;
  }

  .forum-meta {
    font-size: 12px;
  }
}
