/* HERO */
.history-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.history-page-hero {
  background: linear-gradient(135deg, #0A0F1F, #0F1A33);
  padding: 60px 20px;
  text-align: center;
  color: #F5D77A;
  border-bottom: 2px solid #C9A24A;
}

.history-page-hero h1 {
  font-size: 36px;
  margin: 0;
  color: #F7E99C;
}

.history-page-hero .history-subtitle {
  font-size: 18px;
  color: #D4AF37;
  margin-top: 10px;
}

/* SECTION BLOCK */
.history-section-block {
  padding: 40px 20px;
}

.history-section-block.alt {
  background: rgba(10, 15, 31, 0.85);
}

.history-container {
  max-width: 900px;
  margin: auto;
}

/* หัวข้อหลัก */
.history-section-block h2 {
  color: #F7E99C;
  font-size: 26px;
  margin: 0 0 20px;
  border-left: 4px solid #C9A24A;
  padding-left: 10px;
}

/* หัวข้อย่อย */
.history-sub-block {
  margin-bottom: 24px;
}

.history-sub-block h3 {
  color: #D4AF37;
  font-size: 20px;
  margin: 0 0 8px;
}

.history-sub-block p {
  margin: 0;
  line-height: 1.8;
  font-size: 16px;
}

/* -------------------------------------------------- */
/* 📱 มือถือ (ต่ำกว่า 600px) */
/* -------------------------------------------------- */
@media (max-width: 600px) {

  .history-page-hero {
    padding: 40px 16px;
  }

  .history-page-hero h1 {
    font-size: 28px;
  }

  .history-page-hero .history-subtitle {
    font-size: 16px;
  }

  .history-section-block {
    padding: 30px 16px;
  }

  .history-section-block h2 {
    font-size: 22px;
  }

  .history-sub-block h3 {
    font-size: 18px;
  }

  .history-sub-block p {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* -------------------------------------------------- */
/* 📱💻 แท็บเล็ต (601px – 900px) */
/* -------------------------------------------------- */
@media (min-width: 601px) and (max-width: 900px) {

  .history-page-hero {
    padding: 50px 20px;
  }

  .history-page-hero h1 {
    font-size: 32px;
  }

  .history-page-hero .history-subtitle {
    font-size: 17px;
  }

  .history-section-block {
    padding: 35px 20px;
  }

  .history-section-block h2 {
    font-size: 24px;
  }

  .history-sub-block h3 {
    font-size: 19px;
  }

  .history-sub-block p {
    font-size: 16px;
  }
}
/*--แก้จอเอียง--*/
/* ============================
   ⭐ Mobile Landscape (เอียงจอ)
   ความสูงน้อย → ลด padding + ลด font
============================ */
@media (max-height: 500px) and (max-width: 1024px) {

  .history-page-hero {
    padding: 30px 15px;
  }

  .history-page-hero h1 {
    font-size: 26px;
  }

  .history-page-hero .history-subtitle {
    font-size: 15px;
  }

  .history-section-block {
    padding: 25px 15px;
  }

  .history-section-block h2 {
    font-size: 20px;
  }

  .history-sub-block h3 {
    font-size: 17px;
  }

  .history-sub-block p {
    font-size: 14px;
    line-height: 1.7;
  }
}

