.page-home .page-body {
  width: min(1536px, 100%);
  max-width: none;
  padding: 0 0 2rem;
  background: #f3f7fc;
}

.hero-block {
  position: relative;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0d3f8d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  min-height: 320px;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero-slide-image,
.hero-slide-fallback {
  width: 100%;
  height: min(42vw, 420px);
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-fallback {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(120deg, #0d4ba7 0%, #2d6ac6 45%, #7da8e3 100%);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 56, 131, 0.92) 0%, rgba(10, 56, 131, 0.78) 28%, rgba(10, 56, 131, 0.18) 56%, rgba(10, 56, 131, 0.08) 100%);
}

.hero-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(38%, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4.5rem 3rem 4.7rem;
  color: #ffffff;
  z-index: 2;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  white-space: pre-line;
}

.hero-description {
  margin: 1rem 0 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 2.9rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: transparent;
}

.hero-btn-solid,
.hero-btn-primary {
  background: #ffffff;
  color: #154ca1;
}

.panel-btn {
  margin-top: 1.7rem;
  width: fit-content;
  padding: 0 1.15rem;
  min-height: 2.7rem;
  background: #154ca1;
  color: #ffffff;
  border-radius: 0.35rem;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.hero-control svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.hero-control-prev {
  left: 1.3rem;
}

.hero-control-next {
  right: 1.3rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.feature-ribbon {
  background: #ffffff;
  padding: 0.85rem 1rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  max-width: 1360px;
  margin: -1.2rem auto 0;
  border: 1px solid rgba(21, 76, 161, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 41, 82, 0.08);
  position: relative;
  z-index: 4;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 1.2rem;
  align-items: start;
  border-right: 1px solid rgba(21, 76, 161, 0.12);
}

.feature-card:last-child {
  border-right: none;
}

.feature-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: #edf3fe;
  color: #154ca1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.feature-copy h3 {
  margin: 0;
  font-size: 1rem;
  color: #154ca1;
}

.feature-copy p {
  margin: 0.35rem 0 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #42536b;
}

.home-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 1360px;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
}

.panel-card {
  background: #ffffff;
  border: 1px solid rgba(21, 76, 161, 0.12);
  border-radius: 0.45rem;
  box-shadow: 0 10px 24px rgba(17, 41, 82, 0.05);
  overflow: hidden;
}

.welcome-card {
  padding: 1.45rem;
  background:
    linear-gradient(180deg, rgba(243, 247, 253, 0.96), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.panel-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(21, 76, 161, 0.1);
}

.panel-head h2 {
  margin: 0;
  font-size: 1.7rem;
  color: #154ca1;
}

.panel-head-spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.panel-link {
  color: #154ca1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.panel-copy {
  margin: 1rem 0 0;
  color: #3f5168;
  line-height: 1.75;
  white-space: pre-line;
}

.panel-list {
  display: grid;
}

.notice-row,
.event-row {
  display: grid;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1.2rem;
  border-top: 1px solid rgba(21, 76, 161, 0.08);
}

.notice-row:first-child,
.event-row:first-child {
  border-top: none;
}

.notice-row {
  grid-template-columns: 2.3rem 1fr;
}

.notice-row-link {
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease;
}

.notice-row-link:hover {
  background: #f8fbff;
}

.notice-row-link:hover .notice-copy p {
  color: #154ca1;
}

.event-row {
  grid-template-columns: 2.1rem 1fr auto;
}

.date-badge {
  width: 2.3rem;
  border: 1px solid #9db6e5;
  border-radius: 0.28rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: #154ca1;
  padding: 0.35rem 0.1rem;
  white-space: pre-line;
}

.notice-copy,
.event-copy {
  min-width: 0;
}

.notice-copy p,
.event-title,
.event-date {
  margin: 0;
  line-height: 1.45;
}

.notice-copy p,
.event-title {
  color: #253a52;
}

.notice-date {
  display: block;
  margin-top: 0.25rem;
  color: #55677e;
  font-size: 0.82rem;
  line-height: 1.35;
}

.event-date {
  color: #55677e;
  font-size: 0.92rem;
}

.notice-tag,
.event-tag {
  align-self: center;
  background: #e8f7ec;
  color: #34a853;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}

.notice-tag {
  margin-top: 0.35rem;
  display: inline-flex;
  width: fit-content;
  background: #fff2f2;
  color: #de3c3c;
}

.event-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.3rem;
  border: 1px solid #9db6e5;
  color: #154ca1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.event-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.notice-empty,
.notice-empty .event-copy,
.notice-empty .notice-copy {
  grid-template-columns: 1fr;
}

.contact-link-list,
.contact-social-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.contact-link-list a,
.contact-social-grid a {
  color: inherit;
  text-decoration: none;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  margin-top: 1rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-input {
  border: none;
  padding: 0.9rem 1rem;
  font: inherit;
}

.newsletter-btn {
  border: none;
  background: #154ca1;
  color: #ffffff;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-about-section {
  max-width: 1360px;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
}

.home-about-shell {
  display: grid;
  gap: 1rem;
}

.home-about-intro-card,
.home-about-stats-card,
.home-about-card,
.home-about-facility-card,
.home-about-principal-card {
  background: #ffffff;
  border: 1px solid rgba(21, 76, 161, 0.12);
  border-radius: 0.45rem;
  box-shadow: 0 10px 24px rgba(17, 41, 82, 0.05);
}

.home-about-intro-card {
  padding: 1.35rem 1.4rem 1.45rem;
}

.home-about-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #154ca1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-about-intro-card h2 {
  margin: 0;
  color: #1e2f4d;
  font-size: clamp(2rem, 2.8vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.home-about-intro-card p {
  margin: 1rem 0 0;
  max-width: 72ch;
  color: #41556f;
  line-height: 1.75;
}

.home-about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  margin-top: 1.15rem;
  padding: 0 1rem;
  border-radius: 0.35rem;
  background: #154ca1;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.home-about-stats-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.home-about-stat-item {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.15rem 0.9rem 1.05rem;
  text-align: center;
  border-left: 1px solid rgba(21, 76, 161, 0.08);
}

.home-about-stat-item:first-child {
  border-left: none;
}

.home-about-stat-icon,
.home-about-card-icon,
.home-about-facility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #edf3fe;
  color: #154ca1;
}

.home-about-stat-icon svg,
.home-about-card-icon svg,
.home-about-facility-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.home-about-stat-item strong {
  color: #154ca1;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.home-about-stat-item span {
  color: #475d77;
  font-size: 0.84rem;
  line-height: 1.3;
}

.home-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-about-card {
  padding: 1.2rem 1.1rem 1.15rem;
}

.home-about-card h3,
.home-about-facility-card h3,
.home-about-principal-card h3 {
  margin: 0;
  color: #154ca1;
}

.home-about-card h3 {
  margin-top: 0.85rem;
  font-size: 1.03rem;
}

.home-about-card p,
.home-about-principal-copy blockquote,
.home-about-principal-role,
.home-about-facility-list,
.home-about-intro-card p {
  color: #41556f;
}

.home-about-card p {
  margin: 0.65rem 0 0;
  line-height: 1.7;
  font-size: 0.92rem;
}

.home-about-lower-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 1rem;
}

.home-about-facility-card,
.home-about-principal-card {
  padding: 1.15rem;
}

.home-about-facility-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1rem;
  margin-top: 0.8rem;
}

.home-about-facility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.home-about-facility-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.home-about-facility-icon {
  width: 1rem;
  height: 1rem;
  background: transparent;
  border-radius: 0;
  flex: 0 0 auto;
}

.home-about-facility-icon svg {
  width: 100%;
  height: 100%;
}

.home-about-facility-media {
  margin: 0;
  min-height: 220px;
  overflow: hidden;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #dfe8f7 0%, #bfcfe9 100%);
}

.home-about-facility-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about-principal-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.95rem;
  margin-top: 0.95rem;
}

.home-about-principal-photo {
  display: grid;
  place-items: center;
  width: clamp(7.5rem, 16vw, 11rem);
  height: clamp(9rem, 19vw, 13rem);
  overflow: hidden;
  border-radius: 0.45rem;
  background: radial-gradient(circle at 30% 30%, #e8effd, #b9cdf3);
  box-shadow: 0 6px 16px rgba(12, 46, 112, 0.12);
}

.home-about-principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: radial-gradient(circle at 30% 30%, #e8effd, #b9cdf3);
}

.home-about-principal-photo span {
  color: #154ca1;
  font-size: 1.9rem;
  font-weight: 800;
}

.home-about-principal-copy blockquote {
  position: relative;
  margin: 0;
  padding: 0.25rem 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-about-principal-copy blockquote::before {
  content: "“";
  position: absolute;
  left: -0.05rem;
  top: -0.55rem;
  color: rgba(21, 76, 161, 0.22);
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 700;
}

.home-about-principal-name {
  margin: 0.8rem 0 0;
  color: #154ca1;
  font-weight: 800;
}

.home-about-principal-role {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}

.student-clubs-section {
  max-width: 1200px;
  margin: 2.1rem auto 0;
  padding: 0 1rem 2.35rem;
  color: #061735;
}

.clubs-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.05rem;
}

.clubs-heading h2 {
  position: relative;
  margin: 0 0 1rem;
  color: #123d9c;
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.clubs-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 2.8rem;
  height: 0.12rem;
  border-radius: 999px;
  background: #f3d21b;
}

.clubs-heading p {
  max-width: 34.5rem;
  margin: 0;
  color: #071936;
  font-size: 0.98rem;
  line-height: 1.65;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.club-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e4f2;
  border-radius: 0.4rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 49, 100, 0.04);
}

.club-image {
  display: block;
  width: 100%;
  height: 8.45rem;
  object-fit: cover;
}

.club-icon {
  position: absolute;
  top: 6.95rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 5px 14px rgba(8, 20, 71, 0.18);
}

.club-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.club-icon-blue,
.club-icon-green,
.club-icon-orange,
.club-icon-purple,
.club-icon-leaf,
.club-icon-sky {
  background: linear-gradient(180deg, #0b43b3, #073798);
}

.club-body {
  display: grid;
  align-content: start;
  min-height: 10.5rem;
  padding: 2.55rem 0.9rem 1.1rem;
  text-align: center;
}

.club-body h3 {
  min-height: 2.45rem;
  margin: 0;
  color: #07389a;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.22;
}

.club-body p {
  min-height: 3.65rem;
  margin: 0.85rem 0 1.1rem;
  color: #061735;
  font-size: 0.82rem;
  line-height: 1.65;
}

.club-link {
  align-self: end;
  justify-self: center;
  color: #0b43b3;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.club-link span {
  margin-left: 0.45rem;
  font-size: 1rem;
}

.club-detail-section {
  max-width: 1120px;
  margin: 1.6rem auto 0;
  padding: 0 1rem 2.6rem;
  color: #061735;
}

.club-detail-back {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #0b43b3;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.club-detail-card {
  overflow: hidden;
  border: 1px solid #d9e4f2;
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 49, 100, 0.04);
}

.club-detail-media {
  margin: 0;
  height: clamp(15rem, 34vw, 24rem);
  overflow: hidden;
}

.club-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-detail-content {
  position: relative;
  padding: 3.9rem clamp(1.15rem, 4vw, 3rem) 2.4rem;
}

.club-detail-content .club-icon {
  top: -1.85rem;
}

.club-detail-content h1 {
  margin: 0;
  color: #123d9c;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.club-detail-lead,
.club-detail-body {
  max-width: 48rem;
  color: #061735;
}

.club-detail-lead {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.club-detail-body {
  margin-top: 1.4rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.club-detail-body p {
  margin: 0 0 1rem;
}

@media (max-width: 1200px) {
  .hero-slide-content {
    width: min(46%, 520px);
    padding-left: 3.2rem;
    padding-right: 2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card:nth-child(3n) {
    border-right: none;
  }

  .home-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clubs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-slide-image,
  .hero-slide-fallback {
    height: 480px;
  }

  .hero-slide-content {
    width: 100%;
    max-width: 34rem;
    padding: 2.4rem 1.6rem 4.2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.6rem;
  }

  .feature-card:nth-child(2n) {
    border-right: none;
  }

  .home-panel-grid {
    grid-template-columns: 1fr;
  }

  .student-clubs-section {
    margin-top: 1.6rem;
  }

  .clubs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-home .page-body {
    padding-bottom: 1rem;
  }

  .hero-slider {
    min-height: 35rem;
  }

  .hero-slide-image,
  .hero-slide-fallback {
    height: clamp(35rem, 126vw, 40rem);
    min-height: 35rem;
    object-position: 62% center;
  }

  .hero-slide-overlay {
    background:
      linear-gradient(180deg, rgba(10, 56, 131, 0.58) 0%, rgba(10, 56, 131, 0.08) 28%, rgba(10, 56, 131, 0.74) 100%),
      linear-gradient(90deg, rgba(10, 56, 131, 0.92) 0%, rgba(10, 56, 131, 0.78) 44%, rgba(10, 56, 131, 0.28) 78%, rgba(10, 56, 131, 0.08) 100%);
  }

  .hero-slide-content {
    justify-content: flex-end;
    width: 100%;
    max-width: 23rem;
    padding: 5.4rem 1.35rem 4.4rem;
  }

  .hero-title {
    max-width: 11.5ch;
    font-size: clamp(2.2rem, 9.4vw, 3.1rem);
    line-height: 1.08;
  }

  .hero-description {
    margin-top: 0.75rem;
    max-width: 18rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: min(100%, 20rem);
    margin-top: 1.15rem;
  }

  .hero-btn {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0 0.85rem;
    font-size: 0.96rem;
  }

  .hero-control {
    width: 2.7rem;
    height: 2.7rem;
    background: rgba(85, 97, 124, 0.58);
  }

  .hero-control-prev {
    left: 0.65rem;
  }

  .hero-control-next {
    right: 0.65rem;
  }

  .hero-dots {
    bottom: 0.85rem;
    gap: 0.55rem;
  }

  .hero-dot {
    width: 0.78rem;
    height: 0.78rem;
  }

  .feature-ribbon {
    padding: 0.7rem 0.65rem 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.65rem;
    border-radius: 1rem;
  }

  .feature-card {
    gap: 0.9rem;
    padding: 1.25rem 1rem 1.15rem;
    border-bottom: 1px solid rgba(21, 76, 161, 0.12);
  }

  .feature-card:nth-child(odd) {
    border-right: 1px solid rgba(21, 76, 161, 0.12);
  }

  .feature-card:nth-child(even) {
    border-right: none;
  }

  .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .feature-copy h3 {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .feature-copy p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .home-panel-grid {
    gap: 1rem;
    margin-top: 1.1rem;
    padding: 0 0.65rem;
  }

  .panel-card {
    border-radius: 1rem;
  }

  .panel-head,
  .welcome-card,
  .notice-row,
  .event-row {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .welcome-card {
    padding-top: 1.35rem;
    padding-bottom: 1.45rem;
  }

  .panel-head h2 {
    font-size: 1.45rem;
  }

  .panel-head-spread {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .panel-link {
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .event-row {
    grid-template-columns: 2rem 1fr auto;
  }

  .event-tag {
    grid-column: auto;
    justify-self: end;
  }

  .home-about-section {
    padding: 0 0.65rem;
    margin-top: 1rem;
  }

  .student-clubs-section {
    padding: 0 0.65rem 1.55rem;
  }

  .clubs-heading {
    display: block;
    margin-bottom: 1.35rem;
  }

  .clubs-heading p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .clubs-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .club-image {
    height: 11.5rem;
  }

  .club-icon {
    top: 9.95rem;
  }

  .home-about-intro-card,
  .home-about-card,
  .home-about-facility-card,
  .home-about-principal-card {
    border-radius: 1rem;
  }

  .home-about-intro-card {
    padding: 1.2rem 1.05rem 1.25rem;
  }

  .home-about-stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-about-stat-item {
    border-top: 1px solid rgba(21, 76, 161, 0.08);
  }

  .home-about-stat-item:first-child,
  .home-about-stat-item:nth-child(2) {
    border-top: none;
  }

  .home-about-grid,
  .home-about-lower-grid,
  .home-about-facility-layout {
    grid-template-columns: 1fr;
  }

  .home-about-card h3 {
    font-size: 0.98rem;
  }

  .home-about-facility-media {
    min-height: 180px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-btn {
    min-height: 3rem;
  }
}

@media (max-width: 520px) {
  .feature-ribbon {
    padding: 0.65rem 0.75rem 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 0.55rem;
    border-radius: 0.9rem;
  }

  .feature-card,
  .feature-card:nth-child(odd),
  .feature-card:nth-child(even),
  .feature-card:nth-child(3n) {
    border-right: none;
  }

  .feature-card {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 0.95rem;
    border-bottom: 1px solid rgba(21, 76, 161, 0.12);
  }

  .feature-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .feature-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .feature-icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .feature-copy {
    min-width: 0;
  }

  .feature-copy h3 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .feature-copy p {
    font-size: 0.92rem;
    line-height: 1.48;
  }
}
