/* Google Fonts: Montserrat used */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    background: #f6faff;
    color: #23395d;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
}
a:hover, a:focus {
    text-decoration: underline;
}

html {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    min-height: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e3a5c;
    color: #fff;
    padding: 0 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(30,58,92,0.06);
}
.navbar-logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.navbar-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}
.navbar-links li a {
    color: #fff;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background .15s;
}
.navbar-links li a.active,
.navbar-links li a:hover {
    background: #2563eb;
    color: #fff;
}
.register-btn {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 5px;
    margin-left: 10px;
    box-shadow: 0 1px 8px rgba(37,99,235,0.07);
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, #2563eb 0%, #1e3a5c 100%);
    color: #fff;
    text-align: center;
    padding: 58px 16px 46px 16px;
}
.hero h1 {
    font-size: 2.7em;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero p {
    font-size: 1.18em;
    margin: 0 0 30px 0;
    line-height: 1.6;
}
.cta-btn {
    background: #fff;
    color: #2563eb;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.08em;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37,99,235,0.14);
    transition: background .17s, color .17s;
}
.cta-btn:hover {
    background: #dbeafe;
    color: #1e3a5c;
}

/* Courses Preview */
.courses-preview {
    padding: 48px 10px 28px 10px;
    text-align: center;
}
.courses-preview h2 {
    font-size: 2em;
    margin-bottom: 32px;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 950px;
    margin: 0 auto 18px auto;
    margin-bottom: 42px !important;
}
.course-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 1px 14px rgba(30,58,92,0.09);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    transition: transform .13s, box-shadow .13s;
}
.course-card:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 8px 24px rgba(30,58,92,0.11);
}
.course-card .icon {
    font-size: 2.6em;
    margin-bottom: 13px;
}
.secondary-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 22px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.06em;
    transition: background .15s;
}
.secondary-btn:hover {
    background: #1e40af;
}

/* About Section */
.about {
    max-width: 740px;
    margin: 48px auto;
    background: #fff;
    border-radius: 13px;
    padding: 34px 22px;
    box-shadow: 0 1px 12px rgba(30,58,92,0.09);
    text-align: center;
}
.about h2 {
    margin-bottom: 14px;
    font-size: 1.5em;
}

/* Contact Preview */
.contact-preview {
    padding: 30px 10px;
    background: #e7f0fb;
    text-align: center;
}
.contact-preview h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
}
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin: 0 auto;
    max-width: 480px;
}
.contact-grid > div {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30,58,92,0.09);
    padding: 13px 18px;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.05em;
}
.contact-icon {
    font-size: 1.25em;
}

/* Footer */
.footer {
    text-align: center;
    background: #1e3a5c;
    color: #eaf0fc;
    padding: 18px 10px;
    font-size: 1em;
    letter-spacing: 0.2px;
    margin-top: 30px;
    border-top-left-radius: 18px;
    margin-top: auto;
    border-top-right-radius: 18px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .hero h1 { font-size: 2em; }
    .courses-preview h2 { font-size: 1.3em; }
    .about { padding: 16px 6px; }
    .contact-grid > div { min-width: 0; width: 90vw; font-size: 1em; }
    .navbar { flex-direction: column; height: auto; padding: 0.7em 0.6em; }
    .navbar-logo { margin-bottom: 0.4em; }
    .navbar-links { gap: 0.5em; flex-wrap: wrap; }
    .navbar-links li a { padding: 8px 6px; font-size: 0.98em; }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 850px;
    margin: 0 auto;
    margin-bottom: 36px;
    justify-items: center;
}
.pricing-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 1px 14px rgba(30,58,92,0.09);
    padding: 32px 22px 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
    transition: transform .13s, box-shadow .13s;
    border: 2px solid #e0eaff;
}
.pricing-card:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 8px 24px rgba(30,58,92,0.11);
    border-color: #2563eb;
}
.pricing-card h3 {
    margin: 0 0 14px 0;
    color: #2563eb;
    font-size: 1.2em;
    font-weight: 700;
}
.pricing-card .price {
    font-size: 2.1em;
    color: #1e3a5c;
    font-weight: 800;
    margin-bottom: 12px;
}
.pricing-card ul {
    text-align: left;
    margin: 12px 0 20px 0;
    padding: 0 0 0 22px;
    font-size: 1em;
    color: #333;
}
.pricing-card .secondary-btn {
    margin-top: auto;
}
@media (max-width: 600px) {
    .pricing-card {
        padding: 24px 7vw;
        min-width: 0;
    }
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1050px;
}

.contact-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 1px 14px rgba(30,58,92,0.09);
    padding: 22px 18px 20px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.08em;
    min-width: 270px;
    min-height: 95px;
    width: 100%;
    max-width: 370px;
    border: 2px solid #e0eaff;
    transition: box-shadow 0.12s, border-color 0.12s;
}
.contact-card:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.11);
    border-color: #2563eb;
}
.contact-icon {
    font-size: 2.2em;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-card {
        max-width: 98vw;
        min-width: 0;
        padding: 16px 7vw;
    }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2em; }
  .courses-preview h2 { font-size: 1.3em; }
  .about { padding: 16px 6px; }
  .contact-grid > div { min-width: 0; width: 90vw; font-size: 1em; }

  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 0.3em;
  }
  .navbar-logo { margin-bottom: 0; font-size: 1.1rem; }
  .navbar-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.3em;
  }
  .navbar-links li {
    flex: 0 0 auto;
  }
  .navbar-links li a {
    font-size: 0.97em;
    padding: 8px 6px;
  }
  .register-btn {
    margin-left: 0;
    padding: 8px 10px;
    font-size: 0.97em;
    white-space: nowrap;
  }
}

/* Hamburger button styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 8px;
  z-index: 1101;
}
.hamburger span {
  height: 4px;
  width: 100%;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.25s;
}

/* Hamburger visible and menu collapses on mobile */
@media (max-width: 750px) {
  .hamburger {
    display: flex;
  }
  .navbar-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1e3a5c;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
    padding: 18px 0 20px 0;
    box-shadow: 0 3px 24px rgba(30,58,92,0.10);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    min-width: 180px;
    border-radius: 0 0 14px 14px;
    z-index: 1100;
  }
  body.nav-open .navbar-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .navbar {
    position: relative;
    min-height: 64px;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5em;
  }
}