/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-bottom: 60px; /* Space above footer */
}

/* General container for content */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2C14E; /* Main Color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 900;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-blog__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  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, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #0A0A0A; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #3A2A12; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #0A0A0A;
  color: #FFD36B;
  border-color: #F2C14E;
}

.page-blog__btn-link {
  background: none;
  border: none;
  color: #FFD36B;
  padding: 8px 0;
  font-size: 1em;
  font-weight: 600;
  text-decoration: underline;
}

.page-blog__btn-link:hover {
  color: #F2C14E;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #F2C14E;
  text-decoration: none;
}

.page-blog__article-title a:hover {
  color: #FFD36B;
  text-decoration: underline;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #FFD36B;
  align-self: flex-end;
}

.page-blog__cta-buttons--centered {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

.page-blog__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

.page-blog__category-item {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: #FFF6D6;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #1a1a1a;
  border-color: #F2C14E;
  transform: translateY(-3px);
  color: #F2C14E;
}

.page-blog__category-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Guides Section */
.page-blog__guides-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-blog__guide-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__guide-item-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__guide-item-text {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-blog__promotions-section {
  padding: 80px 0;
  background-color: #111111;
}

.page-blog__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-blog__promo-card {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__promo-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-blog__security-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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