/* blog hero Area (base-mobile) */
.blog-section {
   min-height: 100vh;
  padding: 100px 1.5rem 60px;
  background: linear-gradient(rgba(8, 9, 10, 0.8), rgba(10, 25, 47, 0.8)),
    url('../images/blog.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  background-attachment: fixed;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.blog-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'bebas';
}   

.blog-content p {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.CTA {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.CTA a {
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background: var(--bg-card);
  color: var(--white);
}

.secondary-btn {
  border: 1px solid var(--accent);
  color: var(--white);
}
/* blog post section */
.blog-post {
  padding: 80px 1.5rem;
  height: auto;
  
}

.blog-post h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--extra-sec)
}

.blog-post h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 1rem auto;
}
.post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url(/images/blog.jpg) no-repeat center center/cover;
    gap: 2rem;
    justify-content: center;
    margin: 0 auto;
    padding: 2rem 0;
}
.blog-card {
  backdrop-filter: blur(30px);
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow: 10px 10px 20px #111, -10px -10px 20px #ddd;
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: transform 0.4s;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card h2 {
  font-size: 1.2rem;
  margin: 1rem 0 0.8rem 0;
  color: var(--white);
}
.blog-card a {
  margin-top: auto;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  padding: 0.5rem 0;
}

/* style internal "Read More" links that point to local content */
.blog-card a.internal-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.blog-a{
  text-align: center;
  color: var(--white);
  padding-top: 1rem;
  display: block;
  margin: auto;
  font-size: 1.3rem;
  border: 2px solid var(--extra-sec);
  width: 170px;
  padding-bottom: 1rem;
 backdrop-filter: blur(30px);
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow:
  10px 10px 20px #111,
  -10px -10px 20px #ddd;
  margin-top: 1.5rem;
  border-radius: 15px;
  background-color: var(--bg-card);

}
article{
  color: var(--extra-sec);
}

/* additional article styling */
.extra-content {
  max-width: 800px;
  margin: 3rem auto;
  text-align: center;
  line-height: 1.6;
}

.extra-content .article-img {
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* comments section styling */
.comments-section {
  padding: 80px 1.5rem;
  background-color: var(--text-main);
  border-top: 1px solid var(--accent);
}

.comments-container {
  max-width: 900px;
  margin: 0 auto;
}

.comments-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--extra-sec);
  margin-bottom: 3rem;
  position: relative;
}

.comments-section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 1rem auto;
}

.comments-list {
  margin-bottom: 3rem;
}

.comment {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-header h4 {
  font-size: 1rem;
  color: var(--accent);
  margin: 0;
}

.comment-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.comment p {
  color: var(--extra-sec);
  line-height: 1.6;
  margin: 0;
}

.comment-form-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(30px);
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow:
   10px 10px 20px #111,
  -10px -10px 20px #ddd;
}

.comment-form-wrapper h3 {
  font-size: 1.5rem;
  color: var(--extra-sec);
  margin-bottom: 1.5rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background-color:  var(--bg-card);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s, transform 0.2s;
  align-self: flex-start;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* responsive adjustments */
@media (min-width: 768px) {
  .blog-section {
    padding: 140px 3rem 80px;
  }

  .blog-content h1 {
    font-size: 3.5rem;
  }

  .blog-content p {
    font-size: 1.125rem;
  }

  .CTA {
    flex-direction: row;
    justify-content: center;
  }

  .CTA a {
    margin: 0 0.5rem;
  }

  .post-image {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
  }

  .blog-card {
    width: 45%;
    max-width: 350px;
    margin: 0;
  }

  .blog-a {
    width: auto;
  }

  article {
    margin: 4rem auto;
  }

  .comments-section {
    padding: 100px 3rem;
  }

  .comments-section h2 {
    font-size: 2.5rem;
  }

  .comment-form-wrapper {
    padding: 2.5rem;
  }

  .comment-header {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1024px) {
  .post-image {
    gap: 2rem;
  }

  .blog-card {
    width: 30%;
    max-width: 350px;
  }

  .comments-container {
    max-width: 1000px;
  }
}

@media (max-width: 600px) {
  .blog-card {
    width: 90%;
    max-width: 100%;
  }

  .post-image {
    padding: 1rem 1rem;
    gap: 1.5rem;
  }
}

/* -----------------------------
   Blog post detail (internal pages)
   ----------------------------- */
.blog-post-detail {
  padding: 120px 1.5rem 80px; /* leave room for fixed header */
  max-width: var(--container-max-width);
  margin: 0 auto;
  color: var(--extra-sec);
}

.blog-post-detail h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--extra-sec);
}

.blog-post-detail p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--extra-sec);
  margin-bottom: 1rem;
}

.blog-post-detail img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.blog-post-detail .secondary-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

/* larger screens */
@media (min-width: 768px) {
  .blog-post-detail {
    padding: 160px 3rem 100px;
  }

  .blog-post-detail h1 {
    font-size: 2.5rem;
  }

  .blog-post-detail p {
    font-size: 1.05rem;
  }
}

