/* style/blog.css */

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

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--bg-main);
  line-height: 1.6;
  padding-bottom: 80px; /* Space for floating CTA */
}

.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog h1 {
  font-weight: bold;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog h2 {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog h3 {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

.page-blog a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-blog a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.page-blog__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-blog__list-item {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

.page-blog__section {
  padding: 40px 0;
  border-bottom: 1px solid var(--divider-color);
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  background-color: var(--deep-green-color);
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__btn-large {
  font-size: 1.2em;
  padding: 15px 35px;
}

/* Image styles */
.page-blog__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: var(--bg-card);
  padding: 60px 0;
}

.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-main);
  list-style: none;
  outline: none;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid transparent; /* default */
}

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

.page-blog__faq-item[open] summary {
  border-bottom-color: var(--border-color);
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

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

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

.page-blog__faq-answer {
  padding: 20px 25px;
  color: var(--text-secondary);
  font-size: 0.95em;
  background-color: var(--bg-card);
}

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

/* Floating CTA Buttons */
.page-blog__floating-cta {
  position: fixed;
  bottom: 20px;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  text-align: center;
  min-width: 120px;
}

.page-blog__floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__floating-cta--register {
  right: 20px;
}

.page-blog__floating-cta--login {
  right: 160px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }

  .page-blog__main-title {
    font-size: 2em;
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog h3 {
    font-size: 1.4em;
  }

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

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-blog__floating-cta {
    max-width: calc(50% - 30px);
    width: calc(50% - 30px);
    bottom: 10px;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-blog__floating-cta--register {
    right: 10px;
  }

  .page-blog__floating-cta--login {
    left: 10px;
    right: auto;
  }

  .page-blog__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__floating-cta {
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
    margin-bottom: 60px; /* Space for the other button */
  }

  .page-blog__floating-cta--login {
    bottom: 10px;
    margin-bottom: 0;
  }

  .page-blog__floating-cta--register {
    bottom: 60px; /* Position above login */
    margin-bottom: 0;
  }
}