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 VIEW */
    @media (max-width: 768px) {
      .hero-overlay {
        padding: 0 20px;
        text-align: center;
      }

      .hero-content {
        text-align: center;
      }

      .hero-title {
        font-size: 36px;
      }

      .hero-desc {
        font-size: 16px;
      }
    }


    /*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;
}

.cta-subtitle {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

}

.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;
  }

  .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;
  text-decoration: none;
}

.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;
}

/* 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;
  }
}
