/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.nav-cta {
  background: #4f46e5;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(135deg, #f0f0ff 0%, #ffffff 100%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: #4f46e5;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #3730a3;
}

/* COURSES */
.courses {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.courses h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #f9f9ff;
  border: 1px solid #e0e0f0;
  border-radius: 12px;
  padding: 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}

.course-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.course-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.course-card a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

/* COURSE DETAIL */
.course-detail {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.course-detail a:not(.cta-button) {
  color: #4f46e5;
  text-decoration: none;
  font-size: 0.9rem;
}

.course-detail h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
}

.course-detail p {
  color: #555;
  margin-bottom: 2rem;
}

.course-detail h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.course-detail ul {
  list-style: none;
  margin-bottom: 2.5rem;
}

.course-detail ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 0.95rem;
}

.course-detail ul li::before {
  content: "✓ ";
  color: #4f46e5;
  font-weight: 700;
}

/* SIGNUP */
.signup {
  max-width: 480px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: #f9f9ff;
  border: 1px solid #e0e0f0;
  border-radius: 16px;
}

.signup h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.signup p {
  color: #555;
  margin-bottom: 2rem;
}

.signup div {
  margin-bottom: 1.2rem;
}

.signup label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.signup input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.signup input:focus {
  border-color: #4f46e5;
}

.signup input[type="submit"] {
  background: #4f46e5;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.signup input[type="submit"]:hover {
  background: #3730a3;
}

/* THANK YOU */
.thankyou {
  text-align: center;
  padding: 6rem 2rem;
}

.thankyou h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #4f46e5;
}

.thankyou p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.thankyou a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}