/* 躍進教育 — 配色取自 logo：金、海軍藍、灰藍、米白 */
:root {
  --gold: #d4a03a;
  --gold-light: #f0c96a;
  --gold-dark: #b8862e;
  --navy: #1a3d5c;
  --navy-deep: #0f2840;
  --steel: #5b7f9a;
  --steel-light: #8eb0c8;
  --cream: #faf6ee;
  --cream-dark: #f0e8d8;
  --white: #ffffff;
  --orange: #e67e22;
  --orange-light: #f39c4a;
  --text: #1a2a3a;
  --text-muted: #4a6278;
  --text-on-dark: rgba(255, 255, 255, 0.95);
  --text-on-dark-muted: rgba(255, 255, 255, 0.82);
  --bg-dark-gradient: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  --shadow: 0 4px 24px rgba(26, 61, 92, 0.1);
  --shadow-lg: 0 12px 40px rgba(26, 61, 92, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-zh: "Noto Sans TC", system-ui, sans-serif;
  --font-en: "Outfit", var(--font-zh);
  --max-width: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-zh);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 160, 58, 0.2);
  height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.nav-links a.active {
  color: var(--gold-dark);
  font-weight: 700;
}

.nav-links a.active:not(.nav-cta) {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero（橫向版面）── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/homehero001.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff94;
  pointer-events: none;
}

.hero .hero-tagline {
  color: var(--steel);
}

.hero .hero-title-zh {
  color: var(--navy-deep);
}

.hero .hero-title-en {
  color: var(--navy);
}

.hero .hero-desc {
  color: var(--text-muted);
}

.hero .btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--steel-light);
}

.hero .btn-outline:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--gold-dark);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem 3rem;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.hero-title-zh {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.06em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-height: min(50vh, 380px);
  width: auto;
  filter: drop-shadow(var(--shadow-lg));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-strip {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-deep) 50%, var(--navy) 100%);
  padding: 1rem 0;
  border-top: 3px solid var(--gold);
}

.strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
}

.strip-inner span:not(.sep) {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strip-inner span:nth-child(odd):not(.sep) {
  background: linear-gradient(180deg, var(--steel-light) 0%, var(--steel) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strip-inner .sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(212, 160, 58, 0.4);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--steel-light);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.btn-block {
  width: 100%;
  margin-top: 1.25rem;
}

/* ── Highlights ── */
.highlights {
  background: var(--white);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}

.highlight-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

.highlight-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.highlight-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.highlight-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Inner pages ── */
.page-main {
  padding-top: var(--header-h);
}

.page-hero {
  background:
    linear-gradient(105deg, var(--cream) 0%, var(--cream-dark) 50%, rgba(91, 127, 154, 0.1) 100%),
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(212, 160, 58, 0.15) 0%, transparent 60%);
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

/* 深色漸層 SECTION／區塊 — 統一淺色文字 */
:is(
  section.page-hero-dark,
  .section.section-dark,
  .page-card.page-card-accent,
  .pricing-card,
  .schedule-table thead
) {
  background: var(--bg-dark-gradient);
  color: var(--text-on-dark);
}

:is(
  section.page-hero-dark,
  .section.section-dark,
  .page-card.page-card-accent,
  .pricing-card,
  .schedule-table thead
) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--text-on-dark);
}

:is(
  section.page-hero-dark,
  .section.section-dark,
  .page-card.page-card-accent,
  .pricing-card,
  .schedule-table thead
) :is(p, li, span, label, td, th) {
  color: var(--text-on-dark-muted);
}

:is(section.page-hero-dark, .section.section-dark) .section-header h2 {
  color: var(--text-on-dark);
}

:is(section.page-hero-dark, .section.section-dark) .section-header p {
  color: var(--text-on-dark-muted);
}

:is(section.page-hero-dark, .section.section-dark) .section-header h2::after {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
}

.section.section-dark .about-content p,
.section.section-dark .about-lead {
  color: var(--text-on-dark-muted);
}

.section.section-dark .about-lead {
  color: var(--text-on-dark);
}

.section.section-dark .about-content strong {
  color: var(--gold-light);
}

.page-hero.page-hero-dark {
  border-bottom-color: var(--gold-light);
}

.page-hero.page-hero-dark :is(h1, h2, h3, h4, h5, h6) {
  color: var(--text-on-dark);
}

.page-hero.page-hero-dark p {
  color: var(--text-on-dark-muted);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.page-hero:not(.page-hero-dark) h1 {
  color: var(--navy-deep);
}

.page-hero p {
  font-size: 1.05rem;
}

.page-hero:not(.page-hero-dark) p {
  color: var(--text-muted);
}

.page-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ── Home page cards ── */
.home-nav-cards {
  background: var(--white);
  padding: 4rem 0 5rem;
}

.page-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.page-card {
  display: block;
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dark);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.page-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
}

.page-card.page-card-accent {
  border-color: var(--gold);
}

.page-card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.page-card:not(.page-card-accent) h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.page-card:not(.page-card-accent) p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.page-card.page-card-accent h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.page-card.page-card-accent p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section:first-of-type.page-main + .section,
.page-main .section {
  padding-top: 3rem;
}

.page-main .section:last-child {
  padding-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--steel));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 1rem;
}

/* ── Tutors ── */
.tutors {
  background: var(--white);
}

.tutor-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.tutor-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.tutor-card:nth-child(even) {
  grid-template-columns: 1fr minmax(280px, 380px);
}

.tutor-card:nth-child(even) .tutor-poster {
  order: 2;
}

.tutor-card:nth-child(even) .tutor-body {
  order: 1;
}

.tutor-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.tutor-body {
  padding: 2rem 2rem 2rem 0;
}

.tutor-card:nth-child(even) .tutor-body {
  padding: 2rem 0 2rem 2rem;
}

.tutor-body h2,
.tutor-body h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold-light);
}

.tutor-block {
  margin-bottom: 1.25rem;
}

.tutor-block h3,
.tutor-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.tutor-block ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.tutor-block li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ── Schedule ── */
.schedule {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.schedule-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.schedule-slider {
  min-width: 0;
}

.schedule-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.schedule-table th {
  font-weight: 700;
  font-size: 0.95rem;
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.2s;
}

.schedule-table tbody tr:hover {
  background: var(--cream);
}

.schedule-table tbody tr:last-child {
  border-bottom: none;
}

.grade-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.grade-badge.p4 { background: var(--orange); }
.grade-badge.p5 { background: var(--steel); }
.grade-badge.p6 { background: var(--navy); }

.pricing-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
  width: 100%;
}

.pricing-card h2,
.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--gold-light);
  font-family: var(--font-en);
}

.price-unit {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}

.price-note strong {
  color: var(--gold-light);
}

.pricing-perks {
  list-style: none;
  margin-bottom: 1rem;
}

.pricing-perks li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.pricing-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.pricing-extra {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.pricing-extra strong {
  color: var(--text-on-dark);
}

/* ── Page slider ── */
.course-slider {
  max-width: 100%;
}

.slider-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold-light);
  background: var(--white);
}

.slider-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.5s ease;
}

.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-dark-gradient);
}

.slider-slide img {
  width: auto;
  max-width: 100%;
  max-height: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 61, 92, 0.75);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: var(--navy);
}

.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--steel-light);
  background: rgba(91, 127, 154, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.slider-dot.active {
  background: var(--gold);
  border-color: var(--gold-dark);
}

/* ── Features ── */
.features {
  background: var(--white);
}

.features-banner {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold-light);
}

.features-banner img {
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  font-size: 0.98rem;
  color: var(--text);
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateX(4px);
}

.formats h2,
.formats h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.format-tag {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, rgba(91, 127, 154, 0.12) 0%, rgba(212, 160, 58, 0.12) 100%);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
}

.format-tag.course {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border-color: var(--gold-dark);
  color: var(--navy-deep);
  font-weight: 700;
}

.formats-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Summer ── */
.summer {
  background: var(--cream);
}

.summer-poster {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold-light);
}

.summer-poster img {
  width: 100%;
}

/* ── About ── */
.about-page {
  background: var(--white);
}

.about-page .about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-lead {
  font-size: 1.15rem !important;
  font-weight: 500;
  color: var(--navy) !important;
}

.about-content strong {
  color: var(--gold-dark);
}

.about-goals {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.about-goal {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy-deep);
  font-weight: 900;
  font-size: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Contact ── */
.contact {
  background: var(--white);
  padding-bottom: 4rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.contact-address {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.contact-phone {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-dark);
  font-family: var(--font-en);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.contact-phone:hover {
  color: var(--navy);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0;
  transition: color 0.2s, transform 0.2s;
}

.social-link:hover {
  color: var(--gold-dark);
  transform: translateX(4px);
}

.social-link.instagram svg { color: #e1306c; }
.social-link.facebook svg { color: #1877f2; }

.contact-logo img {
  max-height: 160px;
  width: auto;
  opacity: 0.95;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0 1.5rem;
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--gold-light);
}

/* ── Floating WhatsApp ── */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .tutor-card,
  .tutor-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .tutor-card:nth-child(even) .tutor-poster,
  .tutor-card:nth-child(even) .tutor-body {
    order: unset;
  }

  .tutor-body,
  .tutor-card:nth-child(even) .tutor-body {
    padding: 1.5rem 2rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--cream-dark);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0;
    width: 100%;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 2.5rem 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    max-height: 220px;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .slider-btn.prev { left: 0.5rem; }
  .slider-btn.next { right: 0.5rem; }

  .contact-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    align-items: center;
  }

  .contact-logo {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-cards {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
