* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #ff3d3d;
  --navy-blue: #1c2447;
  --light-gray: #f5f5f5;
  --dark-gray: #666666;
  --border-gray: #e0e0e0;
  --white: #ffffff;
  --text-dark: #1a1a1a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--white);
  border-bottom: 2px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 50px;
  width: auto;
}

.logo-text h1 {
  color: var(--primary-red);
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

.tagline {
  color: var(--primary-red);
  font-size: 12px;
  margin: 0;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red);
}

.btn-register {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
}

.btn-register:hover {
  background-color: #e02a2a;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-blue) 0%, #2a3a5c 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary:hover {
  background-color: #e02a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 61, 61, 0.3);
}

/* Courses Section */
.courses {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.course-header {
  padding: 20px;
  background-color: var(--navy-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.course-duration {
  background-color: var(--primary-red);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.course-description {
  padding: 20px;
  flex-grow: 1;
  color: var(--dark-gray);
  line-height: 1.6;
}

.course-footer {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-gray);
  background-color: #fafafa;
}

.course-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-red);
}

.btn-secondary {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #0f1620;
  transform: translateY(-2px);
}

/* Registration Section */
.registration {
  padding: 80px 0;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.registration-form {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.registration-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 14px;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  padding: 12px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(255, 61, 61, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 10px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
  text-align: center;
  margin-top: 20px;
}

.success-message.hidden {
  display: none;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  color: var(--navy-blue);
  margin-bottom: 20px;
  font-size: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  color: var(--dark-gray);
  line-height: 1.8;
}

.contact-info a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--navy-blue);
  color: var(--white);
  text-align: center;
  padding: 30px 0;
  margin-top: 0;
}

.footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .nav {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .nav-link {
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-header {
    flex-direction: column;
  }

  .course-footer {
    flex-direction: column;
    gap: 15px;
  }

  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .registration-form {
    padding: 25px;
  }
}
