/* style/blog.css */
/* Base styles for the blog page, adhering to BEM and color scheme */

:root {
  --phtaya-primary: #F2C14E;
  --phtaya-secondary: #FFD36B;
  --phtaya-card-bg: #111111;
  --phtaya-background: #0A0A0A;
  --phtaya-text-main: #FFF6D6;
  --phtaya-border: #3A2A12;
  --phtaya-glow: #FFD36B;
  --body-bg: #0A0A0A; /* Assuming a dark body background from shared.css */
}

/* General page styling - ensuring text contrast on dark background */
.page-blog {
  font-family: Arial, sans-serif;
  color: var(--phtaya-text-main); /* Light text for dark background */
  background-color: var(--phtaya-background); /* Explicitly set for clarity, though body might handle */
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: var(--phtaya-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 246, 214, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--phtaya-background);
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  color: var(--phtaya-primary);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  /* No fixed large font-size, rely on clamp for responsiveness if needed */
  font-size: clamp(2em, 4vw, 3.2em); /* Example clamp for h1 */
}

.page-blog__description {
  font-size: 1.1em;
  color: var(--phtaya-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container fills width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text on dark button */
  border: none;
}

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--phtaya-glow);
}

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

.page-blog__btn-secondary:hover {
  background-color: var(--phtaya-primary);
  color: var(--phtaya-background);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: var(--phtaya-background);
}

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

.page-blog__post-card {
  background-color: var(--phtaya-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid var(--phtaya-border);
}

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

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

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

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

.page-blog__post-title a {
  color: var(--phtaya-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}