/* style/blog.css */

/* Base styles for the blog page content */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default to dark text for light background */
  background-color: var(--background-color, #F5F7FA); /* Default background */
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color, #E53935);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F, #E53935);
  border-radius: 2px;
}

.page-blog__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main, #333333);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  max-width: 900px;
  margin: 60px auto; /* Adjust margin to center content vertically within hero */
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
  opacity: 0.9;
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-blog__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  background: #f0f0f0;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  background-color: var(--card-bg, #FFFFFF);
  padding-bottom: 80px;
}

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

.page-blog__article-card {
  background: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-blog__article-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 25px;
}

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: var(--text-main, #333333);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: var(--primary-color, #E53935);
}

.page-blog__card-meta {
  font-size: 14px;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__btn-text {
  color: var(--primary-color, #E53935);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.page-blog__btn-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--primary-color, #E53935);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__btn-text:hover::after {
  transform: scaleX(1);
}

.page-blog__view-all-button {
  text-align: center;
  margin-top: 50px;
}

/* Article Categories Section */
.page-blog__categories-section {
  background-color: var(--background-color, #F5F7FA);
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  padding: 12px 25px;
  background: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 30px;
  color: var(--text-main, #333333);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-blog__category-item a:hover {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-color: #E53935;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

/* About mu 9 Section */
.page-blog__about-mu9 {
  background-color: var(--card-bg, #FFFFFF);
}

.page-blog__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-blog__text-block {
  flex: 2;
}

.page-blog__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #555555;
}

.page-blog__text-block ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-blog__text-block ul li {
  margin-bottom: 10px;
  color: #555555;
}

.page-blog__text-block ul li strong {
  color: var(--primary-color, #E53935);
}

.page-blog__text-block a {
  color: var(--primary-color, #E53935);
  text-decoration: none;
}

.page-blog__text-block a:hover {
  text-decoration: underline;
}

.page-blog__image-block {
  flex: 1;
  text-align: center;
}

.page-blog__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-blog__image-caption {
  font-size: 14px;
  color: #777777;
  margin-top: 10px;
}

/* Betting Guide Section */
.page-blog__betting-guide {
  background-color: var(--background-color, #F5F7FA);
}

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