.class-levels {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.class-level-group {
  margin: 0 0 42px;
}

.class-level-head {
  margin: 0 0 18px;
}

.class-level-head h2 {
  margin: 0 0 8px;
  color: #0b2a4a;
  font-size: 34px;
  line-height: 1.1;
}

.class-level-head p {
  margin: 0;
  max-width: 900px;
  color: #4a5d75;
  font-size: 18px;
  line-height: 1.6;
}

.class-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px,1fr));
  gap: 26px;
}

.class-card {
  background: linear-gradient(180deg, rgba(51,69,109,0.96) 0%, rgba(43,58,92,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.class-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
}

.class-card p {
  margin: 0;
  color: #d5e2f2;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .class-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .class-level-head h2 {
    font-size: 28px;
  }

  .class-level-head p {
    font-size: 16px;
  }

  .class-card-grid {
    grid-template-columns: 1fr;
  }

  .class-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .class-card h3 {
    font-size: 21px;
  }

  .class-card p {
    font-size: 16px;
  }
}
/* Allow Classes page to use wider layout */
.page-id-2797 .site-main,
.page-id-2797 .content-area,
.page-id-2797 .content-inner {
  max-width: 1400px !important;
  width: 94% !important;
  margin: auto !important;
}
.class-card {
  text-decoration: none;
  display: block;
}
/* Improve class cards */

.class-card {
  background: linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  border: 1px solid rgba(15,40,80,0.08);
  border-radius: 18px;
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.class-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.16);
}

/* Class title */

.class-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #0b2a4a;
}

/* Time/location row */

.class-card p {
  margin: 0;
  font-size: 16px;
  color: #4a5d75;
  padding-left: 26px;
  position: relative;
}

/* Location icon */

.class-card p::before {
  content: "📍";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
}

/* Level header styling */

.class-level-head {
  margin-bottom: 18px;
  border-bottom: 2px solid #e6eef7;
  padding-bottom: 10px;
}

.class-level-head h2 {
  font-size: 32px;
  margin: 0 0 6px;
  color: #0b2a4a;
}

.class-level-head p {
  margin: 0;
  color: #4a5d75;
}

/* Optional subtle highlight for level groups */

.class-level-group {
  margin-bottom: 48px;
}
/* Level section banners */

.class-level-head {
  background: linear-gradient(90deg,#0b2a4a,#123d72);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.class-level-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.class-level-head p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

/* spacing between level sections */

.class-level-group {
  margin-bottom: 50px;
}
