/* style/blog.css */

/* --- General Styling --- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color */
  background-color: var(--background); /* Default background color */
}

.page-blog__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__text-block p, .page-blog__text-block li {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 10px;
}

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

.page-blog__text-block ul li {
  margin-bottom: 5px;
}

.page-blog a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top from header */
  background-color: var(--background);
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
  background: var(--background);
  color: var(--main-color);
  border: 2px solid var(--border-color);
}

.page-blog__btn-secondary:hover {
  background: var(--main-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-blog__center-button {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block; /* Ensures it centers with margin auto */
  width: fit-content; /* Adjust width to content */
  min-width: 200px;
}

/* --- Introduction Section --- */
.page-blog__introduction-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-blog__introduction-section .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__introduction-section .page-blog__section-description {
  color: var(--text-secondary);
}

.page-blog__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  text-align: left;
}

.page-blog__text-block {
  flex: 1 1 45%;
  min-width: 300px;
  padding: 20px;
  border-radius: 8px;
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Guide Section --- */
.page-blog__guide-section {
  background-color: #ffffff; /* Light background for contrast */
  color: var(--text-main);
}

.page-blog__guide-section .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__guide-section .page-blog__section-description {
  color: var(--text-secondary);
}

.page-blog__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}

.page-blog__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.page-blog__step-item:nth-child(even) {
  background-color: #f2f2f2;
}

.page-blog__step-title {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--deep-green);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__step-item p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 15px;
}

.page-blog__step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* --- Benefits Section --- */
.page-blog__benefits-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-blog__benefits-section .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__benefits-section .page-blog__section-description {
  color: var(--text-secondary);
}

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

.page-blog__benefit-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  border: 1px solid var(--border-color);
}

.page-blog__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__card-title {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__card-text {
  font-size: 16px;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* --- Security Section --- */
.page-blog__security-section {
  background-color: #ffffff;
  color: var(--text-main);
}

.page-blog__security-section .page-blog__section-title {
  color: var(--text-main);
}

.page-blog__security-section .page-blog__section-description {
  color: var(--text-secondary);
}

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

.page-blog__security-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-blog__security-item .page-blog__sub-title {
  color: var(--deep-green);
  margin-bottom: 15px;
}

.page-blog__security-item p {
  color: var(--text-secondary);
  font-size: 16px;
}

.page-blog__security-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* --- FAQ Section --- */
.page-blog__faq-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-blog__faq-section .page-blog__section-title {
  color: var(--text-main);
}

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-blog__faq-question:hover {
  background-color: var(--deep-green);
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-blog__faq-question:hover .page-blog__faq-qtext {
  color: #ffffff;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  margin-left: 15px;
}

.page-blog__faq-question:hover .page-blog__faq-toggle {
  color: #ffffff;
}

.page-blog__faq-answer {
  padding: 15px 25px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  background-color: var(--card-bg);
}

/* Ensure color contrast on light/dark backgrounds */
.page-blog__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-blog__dark-bg .page-blog__section-title,
.page-blog__dark-bg .page-blog__sub-title,
.page-blog__dark-bg .page-blog__card-title,
.page-blog__dark-bg .page-blog__faq-qtext {
  color: var(--text-main);
}

.page-blog__dark-bg .page-blog__section-description,
.page-blog__dark-bg p,
.page-blog__dark-bg li,
.page-blog__dark-bg .page-blog__card-text,
.page-blog__dark-bg .page-blog__faq-answer {
  color: var(--text-secondary);
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__light-bg .page-blog__section-title,
.page-blog__light-bg .page-blog__sub-title,
.page-blog__light-bg .page-blog__card-title,
.page-blog__light-bg .page-blog__faq-qtext {
  color: #333333;
}

.page-blog__light-bg .page-blog__section-description,
.page-blog__light-bg p,
.page-blog__light-bg li,
.page-blog__light-bg .page-blog__card-text,
.page-blog__light-bg .page-blog__faq-answer {
  color: #555555;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-blog__hero-content {
    margin-top: 20px;
    padding: 25px;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }

  .page-blog__description {
    font-size: 17px;
  }

  .page-blog__section {
    padding: 50px 15px;
  }

  .page-blog__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-blog__content-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .page-blog__text-block {
    flex: 1 1 100%;
  }

  .page-blog__benefits-grid,
  .page-blog__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-blog__card-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    margin-top: 15px;
    padding: 20px;
  }

  .page-blog__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-blog__description {
    font-size: 16px;
  }

  .page-blog__section {
    padding: 40px 15px;
  }

  .page-blog__section-title {
    font-size: clamp(24px, 5vw, 32px);
  }

  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-blog__sub-title {
    font-size: clamp(18px, 4vw, 24px);
  }

  .page-blog__text-block p, .page-blog__text-block li {
    font-size: 15px;
  }

  .page-blog__cta-button,
  .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;
    padding-right: 15px;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-blog__center-button {
    width: 100%;
    min-width: unset;
  }

  .page-blog__step-item {
    padding: 20px;
  }

  .page-blog__step-title {
    font-size: clamp(18px, 5vw, 24px);
  }

  .page-blog__card-image {
    height: 180px;
  }

  .page-blog__card-title {
    font-size: 20px;
  }

  .page-blog__security-image {
    height: 180px;
  }

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 20px;
  }

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

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__step-item,
  .page-blog__benefit-card,
  .page-blog__security-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-blog__container */
    /* padding-right: 15px; */ /* Handled by .page-blog__container */
    overflow: hidden !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Specific for content sections to ensure proper padding on mobile */
  .page-blog__introduction-section .page-blog__text-block,
  .page-blog__guide-section .page-blog__step-item,
  .page-blog__benefits-section .page-blog__benefit-card,
  .page-blog__security-section .page-blog__security-item,
  .page-blog__faq-section .page-blog__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__section {
    padding: 30px 10px;
  }

  .page-blog__hero-content {
    padding: 15px;
  }

  .page-blog__main-title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .page-blog__description {
    font-size: 15px;
  }

  .page-blog__cta-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .page-blog__section-title {
    font-size: clamp(22px, 6vw, 28px);
  }

  .page-blog__section-description {
    font-size: 15px;
  }

  .page-blog__text-block {
    padding: 15px;
  }

  .page-blog__step-item {
    padding: 15px;
  }

  .page-blog__card-title {
    font-size: 18px;
  }

  .page-blog__card-text {
    font-size: 14px;
  }

  .page-blog__faq-question {
    padding: 12px 15px;
    font-size: 15px;
  }

  .page-blog__faq-toggle {
    font-size: 18px;
  }

  .page-blog__faq-answer {
    padding: 8px 15px 15px;
    font-size: 14px;
  }
}