/* style/blog.css */

/* Base styles for the page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Section styling */
.page-blog__hero-section,
.page-blog__introduction-section,
.page-blog__featured-video-section,
.page-blog__registration-guide-section,
.page-blog__latest-posts-section,
.page-blog__news-updates-section,
.page-blog__security-support-section,
.page-blog__faq-section,
.page-blog__cta-final-section {
  padding: 80px 0;
  box-sizing: border-box;
}

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

.page-blog__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 800px;
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-blog__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-blog__btn-primary--center,
.page-blog__btn-secondary--center {
  margin: 20px auto 0 auto;
  display: block;
  width: fit-content;
}

.page-blog__btn-secondary--inline {
    margin-top: 15px;
    display: inline-block;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    background-color: transparent;
}

.page-blog__btn-secondary--inline:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* General Content */
.page-blog__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #333333;
}

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

.page-blog__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333333;
}

.page-blog__item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333333;
}

.page-blog__item-title--light {
  color: #ffffff;
}

.page-blog__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #333333;
}

.page-blog__text-block--light {
  color: #ffffff;
}

.page-blog__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-blog__container--flex-reverse {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 40px;
}

.page-blog__content-block {
  flex: 1;
  min-width: 300px;
}

.page-blog__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Video Section */
.page-blog__featured-video-section {
  padding-top: 10px; /* body handles header offset */
}

.page-blog__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

/* Blog Posts Grid */
.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__post-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
}

.page-blog__card--bordered {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-blog__post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-blog__post-title a:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-blog__post-meta {
  font-size: 0.85rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #d16e06;
  text-decoration: underline;
}

/* News List */
.page-blog__news-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-blog__news-list li {
  margin-bottom: 15px;
  font-size: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.page-blog__news-list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-right: 10px;
}

.page-blog__news-list li a:hover {
  text-decoration: underline;
}

.page-blog__news-list li time {
  font-size: 0.9rem;
  color: #666666;
}

/* Security Grid */
.page-blog__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-blog__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  list-style: none; /* For details tag */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

/* CTA Area */
.page-blog__cta-area {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__hero-section {
    min-height: 400px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__sub-title {
    font-size: 1.4rem;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-blog__container--flex,
  .page-blog__container--flex-reverse {
    flex-direction: column;
  }
  .page-blog__content-block,
  .page-blog__image-block {
    width: 100%;
  }
  .page-blog__security-grid {
    grid-template-columns: 1fr;
  }
}

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

  /* Hero Section */
  .page-blog__hero-section {
    padding: 40px 0 !important;
    padding-top: 10px !important;
  }
  .page-blog__hero-content {
    padding: 15px !important;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }

  /* Responsive images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Responsive video */
  .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;
    overflow: hidden !important;
  }
  .page-blog__featured-video-section {
    padding-top: 10px !important;
  }

  /* Responsive buttons */
  .page-blog__cta-button,
  .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;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__cta-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  /* Section padding adjustments */
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__featured-video-section,
  .page-blog__registration-guide-section,
  .page-blog__latest-posts-section,
  .page-blog__news-updates-section,
  .page-blog__security-support-section,
  .page-blog__faq-section,
  .page-blog__cta-final-section {
    padding: 40px 0 !important;
  }

  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__sub-title {
    font-size: 1.2rem;
  }
  .page-blog__item-title {
    font-size: 1.1rem;
  }
  .page-blog__text-block {
    font-size: 0.95rem;
  }

  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.1rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-blog__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 15px 15px;
  }
}