/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  color: #ffffff;
}

.page-blog__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-blog__article-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  line-height: 1.3;
}

.page-blog__article-title:hover {
  color: #1e87b3;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  font-size: 1rem;
  color: #26A9E0;
  font-weight: 500;
  text-decoration: none;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

.page-blog__view-all-btn {
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
}

.page-blog__featured-video-section {
  padding: 60px 0;
  background-color: #121212;
}

.page-blog__video-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-blog__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it takes full width */
}

.page-blog__video-text {
  max-width: 800px;
  text-align: center;
  color: #cccccc;
}

.page-blog__video-text p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #26A9E0;
}

.page-blog__category-card:hover .page-blog__category-title {
  color: #ffffff;
}

.page-blog__category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-blog__category-description {
  font-size: 0.95rem;
  color: #cccccc;
}

.page-blog__why-choose-pun88 {
  padding: 60px 0;
  background-color: #121212;
}

.page-blog__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-blog__advantage-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-blog__advantage-item:hover {
  transform: translateY(-5px);
}

.page-blog__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-blog__advantage-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-blog__advantage-description {
  font-size: 1rem;
  color: #cccccc;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-item summary {
  display: block;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  position: relative;
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #cccccc;
}

.page-blog__cta-final {
  padding: 60px 0;
  background-color: #26A9E0;
  text-align: center;
}

.page-blog__cta-final .page-blog__section-title {
  color: #ffffff;
}

.page-blog__cta-final .page-blog__section-subtitle {
  color: #f0f0f0;
}

.page-blog__cta-final .page-blog__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-blog__cta-final .page-blog__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-blog__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .page-blog__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .page-blog__section-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  }

  /* Images responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image {
    position: relative;
    height: 300px;
    filter: brightness(0.7);
  }
  .page-blog__hero-content {
    padding: 20px 15px;
    margin-top: -100px; /* Pull content up over image a bit */
  }
  .page-blog__article-image {
    height: 180px;
  }

  /* Video responsiveness */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important;
  }

  /* Button responsiveness */
  .page-blog__hero-cta,
  .page-blog__view-all-btn,
  .page-blog__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__view-all-wrapper,
  .page-blog__video-text {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-blog__cta-final .page-blog__btn-primary {
    max-width: 300px !important; /* Limit width for final CTA button */
    margin: 0 auto;
  }

  .page-blog__latest-articles,
  .page-blog__featured-video-section,
  .page-blog__categories-section,
  .page-blog__why-choose-pun88,
  .page-blog__faq-section,
  .page-blog__cta-final {
    padding: 40px 0;
  }

  .page-blog__article-card {
    margin-bottom: 20px;
  }

  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-blog__section-subtitle {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }
  .page-blog__article-title {
    font-size: 1.2rem;
  }
  .page-blog__hero-cta,
  .page-blog__view-all-btn,
  .page-blog__btn-primary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}