/* ==========================
        HERO
========================== */

.program-hero {
  position: relative;

  min-height: 80vh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(rgba(15, 76, 129, 0.75), rgba(15, 76, 129, 0.75)),
    url("../../img/programs/program-hero.jpg");

  background-size: cover;
  background-position: center;
}

/* วงกลมตกแต่ง */

.program-hero::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  top: -200px;
  right: -100px;
}

.program-hero::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);

  bottom: -150px;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 2;

  text-align: center;
  color: white;

  max-width: 900px;

  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-subtitle {
  font-size: 1rem;

  letter-spacing: 4px;

  font-weight: 600;

  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  line-height: 1.1;

  margin: 20px 0;

  font-weight: 800;
}

.hero-content p {
  font-size: 1.15rem;

  line-height: 1.8;

  max-width: 700px;

  margin: 0 auto;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 35px;

  padding: 14px 32px;

  background: #ffffff;

  color: var(--primary);

  border-radius: 50px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ==========================
        program-selection
========================== */

.program-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    min-height: 220px;

    box-shadow: 0 4px 20px rgba(0,0,0,.08);

    transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.program-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);
}

.program-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #0d3b8e;
}

.program-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.program-selection {
    padding: 80px 0;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.section-header p {
    font-size: 1rem;
    color: #666;
}

/* ==========================
    Grade Selection Section
========================== */

.grade-selection {
    padding: 80px 0;
    background: #f8fafc;
}

.grade-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.grade-card {

    background: #ffffff;

    padding: 25px;

    border-radius: 14px;

    text-align: center;

    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 4px 20px rgba(0,0,0,.06);

    transition: all .3s ease;
}

.grade-card:hover {

    transform: translateY(-5px);

    background: #0d3b8e;

    color: white;
}


/* ==========================
    Document List Section
========================== */

.document-list {
    padding: 80px 0;
}

.document-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;

    margin-top: 50px;
}

.document-card {

    background: #fff;

    border-radius: 16px;

    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    box-shadow: 0 4px 20px rgba(0,0,0,.08);

    transition: .3s ease;
}

.document-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}


.document-icon i {

    font-size: 2rem;

    color: #dc2626;
}

.document-btn {

    background: #0d3b8e;

    color: #fff;

    text-decoration: none;

    padding: 10px 18px;

    border-radius: 8px;

    font-weight: 600;
}

/* ==========================
    Help Section
========================== */

.help-section {
    padding: 80px 0;
}

.help-card {
    background: #f8fafc;

    padding: 50px;

    border-radius: 20px;

    text-align: center;
}


/* ==========================
     display
========================== */
.grade-selection,
.document-list {
    display: none;
}

/* ==========================
    Active State
========================== */

.program-card.active {
    background: #0d3b8e;
    color: #fff;
}

.program-card.active i {
    color: #fff;
}


.document-btn.disabled {
    background: #999;
    pointer-events: none;
    cursor: not-allowed;
}


/* Tablet */
@media (max-width: 992px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grade-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .document-card {

        flex-direction: column;

        text-align: center;
    }
}