.page-blog {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-blog__articles-section,
.page-blog__category-section,
.page-blog__cta-section,
.page-blog__latest-news,
.page-blog__about-tg777-app,
.page-blog__subscribe-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__article-card {
  background-color: #F8F8F8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-blog__article-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FCBC45;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__read-more-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #e0a53b;
  text-decoration: underline;
}

.page-blog__categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000, #333333);
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-blog__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__cta-button--register {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__cta-button--register:hover {
  background-color: #e0a53b;
}

.page-blog__cta-button--download {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__cta-button--download:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-blog__latest-news {
  margin-top: 60px;
}

.page-blog__news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #F8F8F8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.page-blog__news-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__news-content {
  padding: 20px;
  flex-grow: 1;
}

.page-blog__news-title {
  font-size: 1.4em;
  margin-bottom: 8px;
}

.page-blog__news-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__news-title a:hover {
  color: #FCBC45;
}

.page-blog__news-date {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 10px;
}

.page-blog__news-excerpt {
  font-size: 0.95em;
  color: #555555;
}

.page-blog__about-tg777-app {
  margin-top: 60px;
}

.page-blog__about-text {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-blog__subscribe-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
}

.page-blog__subscribe-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45;
}

.page-blog__subscribe-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__subscribe-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.page-blog__subscribe-input {
  flex-grow: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  outline: none;
}

.page-blog__subscribe-button {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__subscribe-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-text {
    font-size: 1em;
  }
  .page-blog__news-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__news-image {
    width: 100%;
    height: 220px;
  }
  .page-blog__news-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px);
  }
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__news-list {
    gap: 20px;
  }
  .page-blog__news-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__news-image {
    width: 100%;
    height: 200px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__subscribe-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__subscribe-input,
  .page-blog__subscribe-button {
    width: 100%;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__subscribe-title {
    font-size: 2em;
  }
  .page-blog__articles-section img, 
  .page-blog__latest-news img, 
  .page-blog__about-tg777-app img, 
  .page-blog__subscribe-section img, 
  .page-blog__hero-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-blog__news-image {
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__subscribe-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
}