body {
      font-family: 'Segoe UI', sans-serif;
      background: #f1f4f9;
      margin: 0px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
* {
  box-sizing: border-box;
}
    /*HERO*/

    .hero-section {
      width: 100%;
      height: 360px;
      background-image: url('../images/korean-grammar-bg.jpg'); /* replace with your image */
      background-size: cover;
      background-position: center;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

    }

    .hero-overlay {
      background: linear-gradient(to right, rgba(0, 48, 124, 0.6), rgba(128, 0, 128, 0.6));
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 20px;
    }

    .hero-content {
      max-width: 700px;
      color: white;
      text-align: center; /* <-- center the text */
    }

    .hero-title {
      font-size: 44px;
      font-weight: bold;
      margin-top: -20px;
    }

    .hero-desc {
      font-size: 20px;
      line-height: 1.5;
      max-width: 700px;
    }

    .mobile-btn-size{}

    /* MOBILE VIEW */
    @media (max-width: 768px) {
      .mobile-btn-size{
        font-size: 13px;
      }

      .hero-overlay {
        padding: 0 20px;
        text-align: center;
      }

      .hero-content {
        text-align: center;
      }

      .hero-title {
        font-size: 36px;
      }

      .hero-desc {
        font-size: 16px;
      }
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 30px 0;
      font-size: 16px;
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    }

    td {
      border: 1px solid #ccc;
      padding: 12px 16px;
      text-align: left;
    }

    th {
      background-color: #00307c;
      font-weight: bold;
      color: white;
    }

    thead {
      background-color: #00307c;
      font-weight: bold;
      color: white;
    }

    tbody tr:nth-child(even) {
      background-color: #f0f4f8;
    }

    h1 {
      color: #00307c;
      padding-bottom: 10px;
      margin-bottom: 30px;
    }
    h2 {
      color: #00307c;
      margin-top: 40px;
      font-size: 1.4rem;
    }
     h3 {
      color: #00307c;
      margin-top: 40px;
      font-size: 1.2rem;
    }
    p {
      margin: 12px 0;
    }
    a {
      color: #00307c;
      text-decoration: none;
    }


    /*STUDY MATERIALS CARD*/

  .cta-card-section {
    background-color: #f1f4f9;
    padding: 20px 20px;
    display: flex;
    justify-content: center;
  }

  .cta-card {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    text-align: center;
  }

  .cta-title {
    font-size: 28px;
    color: #00307c;
    margin-bottom: 10px;
    font-weight: bold;
    margin-top: 0px;
  }

  .cta-subtitle {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;

  }

  .cta-btn {
    background-color: #00307c;
    color: white;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;

  }

  .cta-btn:hover {
    opacity: 0.7;
  }

  @media (max-width: 768px) {
    .cta-title {
      font-size: 22px;
      margin-top: 0px;
    }

    .cta-subtitle {
      font-size: 16px;
    }

    .cta-card {
      padding: 30px 20px;
    }
  }

  /*BODY CONTENT*/

.grammar-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 40px;
  background-color: none;
}


.grammar-section p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: left;
  color: #333;
}

.grammar-list {
  list-style: none;
  padding-left: 0;
}

.grammar-list > li {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 18px;

}

.grammar-list > li > strong > a {
  color: #00307c;
  text-decoration: none;
  font-size: 20px;
}

.grammar-list > li > strong > a:hover {
  color: #f05454;
}

.grammar-list ul {
  list-style-type: disc;
  margin-left: 5px;
  margin-top: 10px;
}

.grammar-list ul li {
  margin-bottom: 6px;
  font-size: 16px;
}

.grammar-list ul li a {
  color: #00307c;
  text-decoration: none;
}

.grammar-list ul li a:hover {
  color: #f05454;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .grammar-section {
    padding: 20px 15px;
  }

  .grammar-section h1.section-title {
    font-size: 28px;
  }

  .grammar-section p {
    font-size: 16px;
    text-align: left;
  }

  .grammar-list > li {
    font-size: 16px;
  }

  .grammar-list ul li {
    font-size: 14px;
  }
}
