html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #1e293b;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}
.font-sans { font-family: 'Inter', Arial, sans-serif; }
.font-heading { font-family: 'Playfair Display', serif; }
.navbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 2px 8px #0001;
  padding: 1rem 1rem 1rem 1rem; /* set bottom padding to 0 */
  align-items: center;
  margin-bottom: 0;
  border-bottom: none;
}
.navbar-brand {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: inherit !important;
  cursor: default !important;
}
.navbar-brand:visited {
  color: inherit !important;
}
.navbar-brand:hover,
.navbar-brand:active,
.navbar-brand:focus {
  color: inherit !important;
  text-decoration: none !important;
  cursor: default !important;
}
.navbar-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.navbar-menu a.active, .navbar-menu a:hover {
  color: #fbbf24;
  border-bottom: 2px solid #fbbf24;
}
.courses-hero {
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 0 0 0.5rem 0;
  text-align: center;
  width: 100vw;
  max-width: 100vw;
  margin-top: 0;
  border-top: none;
}
.courses-hero-content {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  padding: 0;
}
@media (min-width: 900px) {
  .courses-hero {
    padding: 0 0 0.5rem 0; /* even less vertical padding for desktop */
  }
}
.courses-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1e40af;
  margin-bottom: 1rem;
  font-weight: 700;
}
.courses-hero-content p {
  color: #1d4ed8;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.courses-grid {
  padding: 2rem 1rem 3rem 1rem;
  background: #fff;
}
.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.course-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px #1e293b22, 0 1.5px 4px #1e293b11;
  border: 1px solid #dbeafe;
  padding: 2rem;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
  min-height: 120px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.course-card:hover, .course-card:focus-within {
  box-shadow: 0 16px 48px #1e293b33, 0 4px 16px #1e293b22;
  transform: translateY(-6px) scale(1.025);
  z-index: 2;
}
.course-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #1e40af;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.course-price {
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border-radius: 8px;
  padding: 0.25rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}
.text-blue-800 { color: #1e40af; }
.text-blue-700 { color: #1d4ed8; }
.text-red-500 { color: #ef4444; }
.font-bold { font-weight: 700; }
.course-btn {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  margin-top: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s;
}
.course-btn.yellow {
  background: #fbbf24;
  color: #1e293b;
}
.course-btn:hover {
  background: #1e40af;
  color: #fff;
}
.course-btn.yellow:hover {
  background: #f59e42;
  color: #fff;
}
/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30,41,59,0.25);
  backdrop-filter: blur(4px);
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px #0003;
  padding: 1.2rem 1rem;
  max-width: 374px; /* 10% more than 340px */
  width: 95vw;
  max-height: 77vh; /* 10% more than 70vh */
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.2s;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #1d4ed8;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
}
.modal-open .courses-grid {
  filter: blur(6px) brightness(0.95);
  pointer-events: none;
  user-select: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* Short-form card button */
.course-card .course-short-btn {
  margin-top: 1rem;
  align-self: flex-end;
  font-size: 0.95rem;
  padding: 0.4rem 1.2rem;
}
.footer {
  background: #eff6ff;
  color: #1e40af;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  border-top: 1px solid #dbeafe;
  min-height: 70px;
  position: relative;
}
.policy-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.2rem;
  justify-content: end;
  align-items: end;
  position: absolute;
  right: 2.2rem;
  bottom: 1.2rem;
  min-width: 220px;
  max-width: 320px;
  width: fit-content;
  background: none;
}
.policy-link-item {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.policy-link-item:hover {
  color: #15803d;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .policy-links-grid {
    position: static;
    justify-content: center;
    align-items: center;
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-top: 0.7rem;
    gap: 0.2rem 0.7rem;
    grid-template-columns: 1fr 1fr;
  }
  .policy-link-item {
    width: 100%;
    min-width: unset;
    text-align: center;
  }
}
@media (min-width: 900px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .navbar-brand {
    margin-right: auto;
  }
  .navbar-menu {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  .courses-container {
    flex-direction: column;
    align-items: center;
  }
  .course-card {
    width: 100%;
    max-width: 400px;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 1rem 0.5rem;
  }
  .courses-hero {
    padding: 0 0 0.5rem 0;
  }
  .courses-grid {
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  .course-card {
    padding: 1rem;
    font-size: 0.95rem;
  }
  .courses-hero-content h1 {
    font-size: 1.3rem;
  }
  .modal-content {
    max-width: 98vw;
    padding: 0.7rem 0.5rem;
  }
} 
.navbar-brand,
.navbar-brand:visited,
.navbar-brand:active,
.navbar-brand:focus {
  color: inherit !important;
  text-decoration: none !important;
  cursor: default !important;
}