/*
Theme Name: SMK Tema School
Theme URI: https://example.com/smk-tema-school
Author: Copilot
Author URI: https://example.com
Description: Tema WordPress sekolah modern dengan landing page profil, program, berita, dan CTA PPDB.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: smktema
*/

:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-strong: #0f3d3e;
  --text: #183032;
  --text-soft: #476366;
  --primary: #0f8b8d;
  --secondary: #f4a259;
  --border: #d8dfdd;
  --shadow: 0 18px 40px rgba(24, 48, 50, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, #d2eeef 0%, transparent 35%),
    radial-gradient(circle at 88% 20%, #ffe2c6 0%, transparent 28%),
    linear-gradient(150deg, #f7f8f4 0%, #eef4f1 100%);
  line-height: 1.6;
}

.bg-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.45;
}

.bg-glow-1 {
  top: -110px;
  right: -80px;
  background: #a8d6d8;
}

.bg-glow-2 {
  bottom: -120px;
  left: -90px;
  background: #ffd1a2;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(120deg, rgba(10, 56, 140, 0.96), rgba(7, 43, 115, 0.96));
  border-bottom: 1px solid rgba(163, 193, 255, 0.35);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo {
  display: block;
  width: min(250px, 52vw);
  height: auto;
  max-width: 100%;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), #12a5a7);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text small {
  color: rgba(228, 238, 255, 0.9);
  font-size: 0.72rem;
}

.site-header .brand-text strong {
  color: #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav-list li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

.main-nav a:hover {
  color: #c8ddff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  color: #ffffff;
  cursor: pointer;
}

.site-header .btn-sm {
  background: #ffffff;
  color: #083b9a;
  box-shadow: 0 10px 24px rgba(4, 26, 73, 0.24);
}

.site-header .btn-sm:hover {
  box-shadow: 0 12px 26px rgba(4, 26, 73, 0.32);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  background: linear-gradient(120deg, var(--primary), #0aa6a8);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 139, 141, 0.28);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.32);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: var(--surface-strong);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.top-slider {
  padding: 18px 0 10px;
}

.slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(20, 43, 47, 0.25);
  background: #0f3d3e;
  min-height: clamp(360px, 50vw, 500px);
}

.slider-track {
  position: relative;
  min-height: clamp(360px, 50vw, 500px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 32px;
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 23, 26, 0.08) 0%, rgba(3, 23, 26, 0.84) 82%);
}

.slide-kicker {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #b6f5ff;
  text-transform: uppercase;
}

.slide-overlay h2 {
  max-width: 20ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #10383e;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.slider-nav:focus-visible,
.slider-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  padding: 72px 0 44px;
  align-items: start;
}

.kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.lead {
  max-width: 60ch;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--surface-strong);
}

.stats span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-bottom: 14px;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-card li {
  display: grid;
  gap: 3px;
}

.hero-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

.hero-card p {
  margin: 0;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.section {
  padding: 70px 0;
}

.about {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.3));
  border-top: 1px solid rgba(216, 223, 221, 0.8);
  border-bottom: 1px solid rgba(216, 223, 221, 0.8);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.quote-card {
  background: var(--surface-strong);
  color: #f5fffe;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.quote-card p {
  font-family: "Source Serif 4", serif;
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.quote-card span {
  color: #b2d8d9;
}

.section-title {
  margin: 10px 0 28px;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.teacher-grid-archive {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.teacher-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 22px 0 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.06), rgba(255, 255, 255, 0.92));
}

.teacher-filter-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #183c40;
}

.teacher-filter-field select {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #c9d7d6;
  background: #fff;
  padding: 10px 12px;
}

.teacher-filter-field input[type="search"] {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #c9d7d6;
  background: #fff;
  padding: 10px 12px;
}

.teacher-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.teacher-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8dfdd;
}

.teacher-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-body {
  padding: 14px;
}

.teacher-body h2,
.teacher-body h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.teacher-body a {
  color: var(--text);
  text-decoration: none;
}

.teacher-body a:hover {
  color: var(--primary);
}

.teacher-role {
  margin: 0;
  color: var(--text-soft);
}

.teacher-mapel {
  margin: 10px 0 0;
  font-weight: 700;
  color: #00526f;
}

.teacher-meta-chips,
.teacher-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.teacher-meta-chips span,
.teacher-profile-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf6f6;
  color: #145e64;
  font-size: 0.88rem;
  font-weight: 700;
}

.teacher-actions {
  margin-top: 20px;
}

.teacher-pagination {
  margin-top: 22px;
}

.teacher-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  margin: 0 4px 8px 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.teacher-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.teacher-detail-thumb {
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0 12px;
}

.teacher-detail-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.teacher-profile-card {
  padding: 28px;
}

.teacher-profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 18px 0 10px;
}

.teacher-profile-photo {
  border-radius: 18px;
  overflow: hidden;
  background: #d8dfdd;
  border: 1px solid var(--border);
}

.teacher-profile-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.teacher-info-compact {
  margin-top: 0;
}

.teacher-role-detail {
  margin-top: 8px;
  font-size: 1.05rem;
}

.teacher-mapel-detail {
  margin-top: 0;
}

.teacher-info {
  margin: 6px 0 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.teacher-info-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 14px;
  background: #f9fbfb;
  border-bottom: 1px solid #e3ebea;
}

.teacher-info-row:last-child {
  border-bottom: none;
}

.teacher-info-row span {
  font-weight: 700;
  color: #1e3f45;
}

.teacher-info-row strong {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 960px) {
  .teacher-profile-layout {
    grid-template-columns: 1fr;
  }

  .teacher-filter-bar {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin-bottom: 10px;
}

.news {
  background: linear-gradient(180deg, rgba(15, 139, 141, 0.07), transparent 40%);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 34px;
  align-items: start;
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.news-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #d8dfdd;
  aspect-ratio: 16 / 10;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-row:hover .news-thumb img {
  transform: scale(1.04);
}

.news-body h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.68rem);
  margin: 0 0 8px;
}

.news-body p {
  margin: 0;
  color: #12383d;
  font-size: 1rem;
  line-height: 1.45;
}

.news-body a {
  color: inherit;
  text-decoration: none;
}

.news-body a:hover {
  color: var(--primary);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.news-meta small {
  color: #1c3537;
  font-size: 0.92rem;
  font-weight: 500;
}

.news-meta span {
  color: #00526f;
  font-size: 1rem;
  font-weight: 700;
}

.news-widget {
  background: linear-gradient(165deg, #06576a, #04495a);
  color: #f2fcff;
  border-radius: 12px;
  padding: 30px 28px;
  box-shadow: 0 18px 36px rgba(4, 73, 90, 0.34);
}

.news-widget h3 {
  color: #ffffff;
  font-size: 1.9rem;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.news-widget ol {
  list-style: none;
  counter-reset: keunggulan;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(190, 232, 241, 0.18);
  display: grid;
  gap: 16px;
}

.news-widget li {
  counter-increment: keunggulan;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.news-widget li::before {
  content: counter(keunggulan, decimal-leading-zero);
  width: 38px;
  height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #1f2b22;
  background: linear-gradient(160deg, #ffc74c, #f8ae23);
  box-shadow: 0 8px 14px rgba(248, 174, 35, 0.35);
}

.news-widget p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.news-widget a {
  color: #ffffff;
  text-decoration: none;
}

.news-widget a:visited {
  color: #ffffff;
}

.news-widget a:hover {
  color: #d8efff;
}

.news-widget a:focus-visible {
  color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #0f8b8d, #1f5d61);
  color: #fff;
  border-radius: 24px;
  padding: 34px;
}

.cta-wrap .kicker {
  color: #b8f4f5;
}

.cta-wrap p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(216, 223, 221, 0.9);
  background: rgba(255, 255, 255, 0.65);
  padding: 20px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-title {
  margin-bottom: 14px;
}

.single-post .entry-title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.2;
}

.post-share {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-share span {
  font-weight: 700;
  color: var(--text);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

.share-fb {
  background: #1877f2;
}

.share-wa {
  background: #1fa855;
}

.share-btn:hover {
  filter: brightness(1.06);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(18, 56, 61, 0.07);
}

.sidebar-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.sidebar-widget p {
  margin: 0;
  color: var(--text-soft);
}

.sidebar-list,
.sidebar-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sidebar-list a,
.sidebar-widget a {
  text-decoration: none;
  color: var(--text);
}

.sidebar-list a:hover,
.sidebar-widget a:hover {
  color: var(--primary);
}

.sidebar-widget.widget_recent_entries ul {
  counter-reset: recent-post;
}

.sidebar-widget.widget_recent_entries ul li {
  counter-increment: recent-post;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.sidebar-widget.widget_recent_entries ul li::before {
  content: counter(recent-post, decimal-leading-zero);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #1f2b22;
  background: linear-gradient(160deg, #ffc74c, #f8ae23);
  box-shadow: 0 7px 12px rgba(248, 174, 35, 0.28);
}

.guru-portal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(18, 56, 61, 0.08);
}

.guru-portal h2,
.guru-portal h3 {
  margin-bottom: 12px;
}

.guru-portal-form {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.guru-portal-form input,
.guru-portal-form select,
.guru-portal-form textarea {
  width: 100%;
  border: 1px solid #c8d7d6;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.guru-portal-form label {
  font-weight: 700;
  color: var(--text);
}

.guru-portal-table-wrap {
  overflow-x: auto;
}

.guru-portal-table {
  width: 100%;
  border-collapse: collapse;
}

.guru-portal-table th,
.guru-portal-table td {
  border: 1px solid #d8e3e2;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.guru-portal-table th {
  background: #eef5f4;
}

.portal-notice {
  border-radius: 10px;
  padding: 10px 12px;
}

.portal-notice.success {
  background: #e9f7ed;
  color: #185f32;
  border: 1px solid #b8e0c5;
}

.portal-notice.error {
  background: #fdeeee;
  color: #8b2e2e;
  border: 1px solid #f4c1c1;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

@media (max-width: 980px) {
  .hero,
  .grid-2,
  .cards,
  .teacher-grid,
  .teacher-grid-archive {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
    top: auto;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-widget {
    max-width: 560px;
  }

  .hero {
    padding-top: 52px;
  }

  .slider,
  .slider-track {
    min-height: 350px;
  }

  .cta-wrap,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 4%;
    width: min(280px, 92vw);
    background: linear-gradient(145deg, rgba(9, 54, 136, 0.98), rgba(7, 42, 112, 0.98));
    border: 1px solid rgba(173, 200, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(6, 33, 91, 0.35);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .main-nav a {
    color: #ffffff;
  }

  .main-nav a:hover {
    color: #d8e7ff;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .top-slider {
    padding-top: 14px;
  }

  .slider,
  .slider-track {
    min-height: 290px;
    border-radius: 18px;
  }

  .slide-overlay {
    padding: 18px 16px 52px;
  }

  .slide-overlay h2 {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    margin-bottom: 8px;
    max-width: 18ch;
  }

  .slide-overlay .btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .slider-nav {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-body h3 {
    font-size: clamp(1.16rem, 6vw, 1.55rem);
  }

  .news-meta {
    flex-wrap: wrap;
  }

  .news-widget {
    padding: 24px 20px;
  }

  .news-widget h3 {
    font-size: 1.7rem;
  }

  .single-post .entry-title {
    font-size: clamp(1.45rem, 7.2vw, 2rem);
  }

  .teacher-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
