/* General Body & Font Settings */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #f8f9fa;
  color: #232323;
  font-size: 18px;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #0055A4;
  margin-bottom: 1rem;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.6rem;
  color: #EF4135;
}

/* Navigation Bar */
nav {
  background: linear-gradient(to right, #0055A4 40%, #fff 40%, #EF4135 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #0055A4;
  background: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  align-items: center;
  font-size: 1.1rem;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  color: #0055A4;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-links li a:hover,
.dropdown-content a:hover {
  background: #e0edf5;
  color: #EF4135;
}
.nav-button {
  background-color: #EF4135;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.nav-button:hover {
  background-color: #c8362c;
}
/* Dropdown menu */
.dropdown .dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  z-index: 1;
  top: 110%;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  display: block;
  color: #0055A4;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.dropdown-content a:last-child {
  border-bottom: none;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #0055A4 60%, #fff 85%, #EF4135 100%);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
}
.hero-content h1 {
  font-family: 'Montserrat', serif;
  font-size: 3rem;
}
.hero-content p {
  font-size: 1.25rem;
  margin: 1rem 0 2rem 0;
  color: #222;
  background: rgba(255, 255, 255, 0.45);
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
}
.cta {
  text-decoration: none;
  background: #0055A4;
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1.2px;
  box-shadow: 0 8px 24px rgba(34, 68, 119, 0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta:hover {
  background: #EF4135;
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 65, 53, 0.17);
}
.hero-images {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.thematic-image {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 85, 164, 0.12);
}

/* Sections general styling */
section {
  padding: 3rem 2rem 2rem 2rem;
  max-width: 1080px;
  margin: 0 auto 3rem auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,85,164,0.10);
}

/* Courses Section */
.course-groups {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.course-group {
  background: #f9fbfe;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 85, 164, 0.08);
  padding: 1rem 2rem 2rem 2rem;
  min-width: 280px;
  max-width: 400px;
}
.sub-card {
  background: #f1f5fa;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(34, 68, 119, 0.06);
}
.sub-card h4 {
  margin: 0 0 0.2rem 0;
  color: #EF4135;
  font-family: 'Montserrat', serif;
}
.sub-card h4 a {
  color: #EF4135;
  text-decoration: none;
}
.sub-card h4 a:hover {
  text-decoration: underline;
}

/* Features under courses */
.features {
  margin-top: 1.5rem;
  border-left: 5px solid #0055A4;
  background: #f6f6f6;
  padding: 1.2rem;
  border-radius: 12px;
}
.features ul {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0.4rem 0 0 0;
  color: #EF4135;
  font-weight: 600;
}
.features ul span {
  color: #0055A4;
  font-weight: 400;
}
.feature-highlights {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: #0055A4;
  margin-bottom: 0.5rem;
}
.feature-highlights span {
  background: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 85, 164, 0.06);
}

/* Admissions Section */
#admissions .admissions-list {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  padding: 0;
}
#admissions .admissions-list li {
  background: #fff;
  margin-bottom: 0.45rem;
  padding: 0.65rem 1rem;
  border-left: 6px solid #EF4135;
  border-radius: 8px;
  font-size: 1.11rem;
  color: #0055A4;
}

/* Admissions Form Styling */
.admissions-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 350px;
  margin: 0 auto 3rem auto;
  background: #f3faff;
  padding: 1.25rem;
  border-radius: 11px;
  box-shadow: 0 2px 12px rgba(0, 85, 164, 0.06);
}
.admissions-form input,
.admissions-form select,
.admissions-form button {
  font-size: 1rem;
  padding: 0.8rem;
  border: 1px solid #c4c7ce;
  border-radius: 8px;
  outline: none;
}
.admissions-form button {
  background: linear-gradient(90deg, #0055A4 65%, #EF4135 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.admissions-form button:hover {
  background: linear-gradient(90deg, #EF4135 80%, #0055A4 100%);
}

/* Test Your Skills Section */

.assess-section {
  background: #f0f4f8;
  padding: 3rem 2rem;
  border-radius: 16px;
  max-width: 1080px;
  margin: 3rem auto 4rem auto;
  box-shadow: 0 8px 32px rgba(0, 85, 164, 0.06);
}
.assess-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.assess-column {
  background: #fff;
  padding: 1.8rem 1.5rem;
  border-radius: 12px;
  flex: 1 1 30%;
  box-shadow: 0 4px 20px rgba(0, 85, 164, 0.08);
}
.assess-column ul {
  list-style-type: disc;
  padding-left: 1.4rem;
  font-weight: 500;
  font-size: 1.05rem;
}
.assess-column ul li a {
  color: #0055A4;
  text-decoration: none;
}
.assess-column ul li a:hover {
  text-decoration: underline;
}

/* Live Worksheet */
.live-worksheet {
  background-color: #fefefe;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 85, 164, 0.1);
  max-width: 400px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.live-worksheet h4 {
  margin-bottom: 1rem;
  color: #0055A4;
}
.live-worksheet label {
  font-weight: 600;
  font-size: 1.1rem;
}
.live-worksheet select {
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}
.live-worksheet button {
  margin-top: 0.8rem;
  background-color: #0055A4;
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s;
}
.live-worksheet button:hover {
  background-color: #003f7d;
}
#worksheet-feedback.correct {
  color: green;
}
#worksheet-feedback.incorrect {
  color: red;
}

/* Contact Section */
#contact p {
  margin: 0.3rem 0;
}

/* Login Modal */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 85, 164, 0.15);
  position: relative;
}
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
  color: #0055A4;
}
.hidden {
  display: none;
}
#login-form input {
  width: 80%;
  padding: 0.6rem;
  margin: 0.7rem 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
#login-form button {
  background-color: #0055A4;
  border: none;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#login-form button:hover {
  background-color: #003f7d;
}
#login-message {
  margin-top: 1rem;
  color: red;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .assess-columns {
    flex-direction: column;
  }
  nav {
    flex-direction: column;
    padding: 0.7rem 1rem;
    align-items: flex-start;
  }
  nav .logo {
    margin-bottom: 0.5rem;
  }
  .features ul,
  .feature-highlights {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero-images {
    flex-direction: column;
    align-items:center;
  }
}
