/* News Page Styles - Developed according to design drawings */

.news-page {
  background: rgba(234, 235, 235, 1);
}

#main {
  margin-top: 2px !important;
}

.news-container {
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.news-hero-content {
  position: relative;
  left: 640px;
  z-index: 10;
  width: 516px;
  height: 300px;
  text-align: center;
  padding-top: 240px;
}

.news-hero-title {
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 24px 0;
}

.news-hero-subtitle {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.6;
  z-index: 1;
}

.news-hero-description {
  font-size: 16px;
  line-height: 1.8;
  z-index: 1;
}

/* Latest News Section */
.news-latest-section {
  padding: 80px 0 100px;
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
}

.news-latest-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(200, 200, 200, 0.3);
}

.news-section-header {
  margin-bottom: 60px;
}

.news-section-label {
  font-size: 20px;
  margin-bottom: 16px;
}

.news-section-title {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.3;
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  padding: 40px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 1);
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-start;
}

.news-item-date {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.news-item-date-text {
  font-size: 16px;
  color: rgba(51, 51, 51, 1);
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-item-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  width: fit-content;
  line-height: 1.4;
}

.news-item-badge.news-badge-changelog {
  background-color: rgba(215, 227, 222, 1) !important;
}

.news-badge-changelog {
  background-color: rgba(215, 227, 222, 1);
}

.news-item-badge.news-badge-founders {
  background-color: rgba(227, 223, 215, 1) !important;
}

.news-badge-founders {
  background-color: rgba(227, 223, 215, 1);
}

.news-item-badge.news-badge-events {
  background-color: rgba(244, 227, 220, 1) !important;
}

.news-badge-events {
  background-color: rgba(244, 227, 220, 1);
}

.news-item-badge.news-badge-default {
  background-color: rgba(231, 231, 231, 1) !important;
}

.news-badge-default {
  background-color: rgba(231, 231, 231, 1);
}

.news-item-description {
  font-size: 16px;
  line-height: 1.8;
}

.news-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 38px;
  width: fit-content;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.80);
  color: rgba(51, 51, 51, 1);
}

.news-item-link:hover {
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .news-hero-content {
    left: 0;
    width: 100%;
    padding-top: 120px;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
  }

  .news-hero-title {
    font-size: 32px;
  }

  .news-hero-subtitle {
    font-size: 22px;
  }

  .news-latest-section {
    padding: 60px 20px;
  }

  .news-section-title {
    font-size: 24px;
  }

  .news-item {
    padding: 30px 0;
    gap: 20px;
  }

  .news-item-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  .news-hero-title {
    font-size: 28px;
  }
}