/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-blog__section-spacing {
  padding: 80px 0;
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__section-intro {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__dark-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-blog__description {
  font-size: 20px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

.page-blog__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  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);
}

.page-blog__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #57E38D; /* Glow */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #F2FFF6;
}

/* Latest Posts Section */
.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-blog__post-card {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__post-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-image {
  transform: scale(1.05);
}

.page-blog__post-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 225px); /* Adjust height based on image */
}

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

.page-blog__post-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__post-meta {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__view-all-button {
  text-align: center;
}

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

.page-blog__category-card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__category-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Why Fly88 Section */
.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog__feature-item {
  background-color: #11271B; /* Card B G */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-blog__feature-item p {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B;
  list-style: none;
}

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

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-left: 15px;
  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;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
}

.page-blog__cta-content {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E;
}

.page-blog__cta-content .page-blog__section-title {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
}

.page-blog__cta-content .page-blog__description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__section-spacing {
    padding: 60px 0;
  }
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-blog__description {
    font-size: 18px;
  }
  .page-blog__posts-grid {
    gap: 20px;
  }
  .page-blog__category-grid {
    gap: 20px;
  }
  .page-blog__feature-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__section-spacing {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }
  .page-blog__section-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-blog__hero-section {
    padding-bottom: 60px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }
  .page-blog__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-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-button,
  .page-blog__cta-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__feature-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__post-image-wrapper {
    height: auto;
  }
  .page-blog__post-content {
    height: auto;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__category-title {
    font-size: 20px;
  }
  .page-blog__feature-title {
    font-size: 20px;
  }
  .page-blog__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__cta-content {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-blog__cta-content {
    padding: 30px 15px;
  }
}