/* style/blog.css */

:root {
  --febet-primary: #11A84E;
  --febet-secondary: #22C768;
  --febet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --febet-card-bg: #11271B;
  --febet-background: #08160F;
  --febet-text-main: #F2FFF6;
  --febet-text-secondary: #A7D9B8;
  --febet-border: #2E7A4E;
  --febet-glow: #57E38D;
  --febet-gold: #F2C14E;
  --febet-divider: #1E3A2A;
  --febet-deep-green: #0A4B2C;
}

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--febet-text-main);
  background-color: var(--febet-background);
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 80px 0;
  background-color: var(--febet-deep-green);
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--febet-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: var(--febet-text-secondary);
  margin-bottom: 30px;
}

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

.page-blog__btn-primary {
  background: var(--febet-button-gradient);
  color: var(--febet-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--febet-text-main);
  border: 2px solid var(--febet-primary);
  margin-left: 20px;
}

.page-blog__btn-secondary:hover {
  background: var(--febet-primary);
  color: #fff;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--febet-text-main);
  text-align: center;
  margin-bottom: 20px;
  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: var(--febet-gold);
  border-radius: 2px;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: var(--febet-text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__latest-articles {
  padding: 80px 0;
  background-color: var(--febet-background);
}

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

.page-blog__article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--febet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--febet-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--febet-border);
}

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

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

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--febet-text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: var(--febet-text-secondary);
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: var(--febet-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: var(--febet-gold);
  font-weight: 600;
  display: inline-block;
  margin-top: auto;
}

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

.page-blog__about-blog {
  padding: 80px 0;
  background-color: #0A1E16; /* Slightly lighter dark green */
  color: var(--febet-text-secondary);
}

.page-blog__about-blog .page-blog__section-title {
  color: var(--febet-text-main);
}

.page-blog__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__about-text {
  flex: 1;
}

.page-blog__paragraph {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--febet-text-secondary);
}

.page-blog__about-image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-blog__categories {
  padding: 80px 0;
  background-color: var(--febet-background);
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  background-color: var(--febet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--febet-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--febet-border);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-blog__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--febet-text-main);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-excerpt {
  font-size: 0.95em;
  color: var(--febet-text-secondary);
  padding: 0 15px;
}

.page-blog__video-section {
  padding: 80px 0;
  background-color: var(--febet-deep-green);
  text-align: center;
}

.page-blog__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-blog__btn-container {
  margin-top: 30px;
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0A1E16; /* Slightly lighter dark green */
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: var(--febet-card-bg);
  border: 1px solid var(--febet-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--febet-text-main);
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--febet-gold);
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--febet-text-secondary);
  line-height: 1.7;
}

.page-blog__faq-answer p {
  margin: 0;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--febet-background);
  text-align: center;
}

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

/* General image styling for content areas */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distorting */
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__about-content {
    flex-direction: column;
  }
  .page-blog__about-image-wrapper {
    width: 100%;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
  }

  .page-blog__section-title {
    font-size: 2em !important;
    margin-bottom: 15px !important;
  }

  .page-blog__section-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  .page-blog__hero-section,
  .page-blog__latest-articles,
  .page-blog__about-blog,
  .page-blog__categories,
  .page-blog__video-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0 !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Handled by container */
    padding-right: 0 !important; /* Handled by container */
  }

  /* Buttons responsive */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important; /* Remove margin for stacked buttons */
    margin-top: 10px; /* Add vertical spacing */
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }

  .page-blog__articles-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr !important;
  }

  .page-blog__card-content {
    padding: 20px !important;
  }

  .page-blog__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px !important;
  }
  
  .page-blog__hero-image-wrapper {
    max-height: 250px !important;
  }
}