/* ============================================
   EDUCATION LEVEL PAGES — SHARED STYLESHEET
   Australian School Finder
   ============================================ */

/* ── Homepage Timeline Phase Images ─────────── */
.phase-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
}
.phase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.edu-phase:hover .phase-img-wrap img {
  transform: scale(1.06);
}
.phase-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.phase-img-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.phase-content-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}


.edu-page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.edu-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.edu-page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoomEdu 20s ease-in-out infinite alternate;
}
@keyframes heroZoomEdu {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.edu-page-hero-overlay {
  position: absolute;
  inset: 0;
}
.edu-page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 9rem 1.5rem 5rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}
.edu-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.edu-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.edu-page-title span {
  display: block;
}
.edu-page-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.edu-page-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.edu-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* ── Breadcrumb ──────────────────────────────── */
.edu-breadcrumb {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.75rem 0;
}
.edu-breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #64748B;
}
.edu-breadcrumb-inner a {
  color: #003087;
  font-weight: 500;
  transition: color 0.2s;
}
.edu-breadcrumb-inner a:hover { color: #FFCD00; }
.edu-breadcrumb-inner i { font-size: 0.65rem; color: #CBD5E1; }
.edu-breadcrumb-inner span { color: #334155; font-weight: 600; }

/* ── Main Layout ─────────────────────────────── */
.edu-page-body {
  background: #fff;
}
.edu-content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .edu-content-wrap { grid-template-columns: 1fr; }
  .edu-sidebar { order: -1; }
}

/* ── Section titles ──────────────────────────── */
.edu-section {
  margin-bottom: 3.5rem;
}
.edu-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,48,135,0.07);
  color: #003087;
  border: 1px solid rgba(0,48,135,0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.edu-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.edu-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
.edu-section p {
  font-size: 0.975rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.edu-section ul {
  margin: 0.75rem 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.edu-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}
.edu-section ul li i {
  color: #00A651;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── Info Cards Grid ─────────────────────────── */
.edu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.edu-info-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.edu-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,48,135,0.1);
  border-color: rgba(0,48,135,0.2);
}
.edu-info-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.edu-info-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.4rem;
}
.edu-info-card p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* ── State Comparison Table ──────────────────── */
.edu-state-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
}
.edu-state-table thead tr {
  background: linear-gradient(135deg, #003087, #0050BB);
  color: #fff;
}
.edu-state-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.edu-state-table tbody tr {
  border-bottom: 1px solid #E2E8F0;
  transition: background 0.2s;
}
.edu-state-table tbody tr:last-child { border-bottom: none; }
.edu-state-table tbody tr:nth-child(even) { background: #F8FAFC; }
.edu-state-table tbody tr:hover { background: rgba(0,48,135,0.04); }
.edu-state-table td {
  padding: 0.85rem 1.25rem;
  color: #334155;
  vertical-align: top;
}
.edu-state-table td:first-child {
  font-weight: 700;
  color: #003087;
  white-space: nowrap;
}
.table-scroll { overflow-x: auto; border-radius: 12px; }

/* ── Highlight Box ───────────────────────────── */
.edu-highlight-box {
  background: linear-gradient(135deg, #003087 0%, #0050BB 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.edu-highlight-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,205,0,0.12);
  border-radius: 50%;
}
.edu-highlight-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFCD00;
  margin-bottom: 1rem;
  margin-top: 0;
}
.edu-highlight-box p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.edu-highlight-box ul { margin: 0.75rem 0 0; }
.edu-highlight-box ul li { color: rgba(255,255,255,0.88); }
.edu-highlight-box ul li i { color: #FFCD00; }

/* ── Tips Box ────────────────────────────────── */
.edu-tips-box {
  background: linear-gradient(135deg, #00A651 0%, #007A3D 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  margin: 2rem 0;
}
.edu-tips-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  margin-top: 0;
}
.edu-tips-box ul { margin: 0; }
.edu-tips-box ul li { color: rgba(255,255,255,0.92); }
.edu-tips-box ul li i { color: #FFCD00; }

/* ── FAQ ─────────────────────────────────────── */
.edu-faq {
  margin: 2rem 0;
}
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item.open { box-shadow: 0 4px 20px rgba(0,48,135,0.1); }
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  transition: background 0.2s;
}
.faq-question:hover { background: #F8FAFC; }
.faq-item.open .faq-question { background: rgba(0,48,135,0.04); color: #003087; }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #64748B;
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-item.open .faq-icon {
  background: #003087;
  color: #FFCD00;
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.75;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
}

/* ── Internal Links Bar ──────────────────────── */
.edu-related-pages {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.edu-related-pages h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}
.edu-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.edu-related-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s;
}
.edu-related-link:hover {
  border-color: #003087;
  color: #003087;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,48,135,0.12);
}
.edu-related-link i { font-size: 1rem; flex-shrink: 0; }
.edu-related-link.active-link {
  background: linear-gradient(135deg, #003087, #0050BB);
  border-color: transparent;
  color: #fff;
  cursor: default;
}
.edu-related-link.active-link:hover { transform: none; box-shadow: none; }

/* ── CTA Search Bar ──────────────────────────── */
.edu-cta-section {
  background: linear-gradient(135deg, #FFCD00 0%, #E6B800 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.edu-cta-section::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.edu-cta-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #003087;
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.edu-cta-section p {
  color: rgba(0,48,135,0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.edu-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #003087;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
}
.edu-cta-btn:hover {
  background: #001F5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,48,135,0.35);
  color: #fff;
}
.edu-cta-btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: #003087;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(0,48,135,0.3);
  transition: all 0.3s;
  text-decoration: none;
  margin-left: 0.75rem;
}
.edu-cta-btn-alt:hover {
  background: rgba(0,48,135,0.08);
  border-color: #003087;
  color: #003087;
}
.edu-cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Sidebar ─────────────────────────────────── */
.edu-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
}
.sidebar-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-card h4 i { color: #003087; }
.sidebar-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.875rem;
}
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat-label { color: #64748B; }
.sidebar-stat-value { font-weight: 700; color: #003087; }
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover {
  border-color: #003087;
  color: #003087;
  background: rgba(0,48,135,0.04);
}
.sidebar-link i { color: #003087; font-size: 0.85rem; width: 1rem; text-align: center; }
.sidebar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFCD00, #E6B800);
  color: #003087;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 10px;
  transition: all 0.25s;
  margin-top: 0.75rem;
}
.sidebar-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,205,0,0.4);
  color: #003087;
}

/* ── Home: Education Level Cards ─────────────── */
.edu-levels-section {
  padding: 5rem 0;
  background: #fff;
}
.edu-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  margin-top: 0;
}
.edu-level-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.edu-level-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,48,135,0.16);
  border-color: transparent;
}
.edu-level-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.edu-level-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.edu-level-card:hover .edu-level-card-img img {
  transform: scale(1.06);
}
.edu-level-card-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  backdrop-filter: blur(8px);
}
.edu-level-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.edu-level-card-age {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.edu-level-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.edu-level-card-body p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.edu-level-card-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: gap 0.2s;
}
.edu-level-card:hover .edu-level-card-cta { gap: 0.65rem; }

/* ── Animations ──────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 768px) {
  .edu-page-hero-content { padding: 7rem 1.25rem 4rem; }
  .edu-page-meta { gap: 0.75rem; }
  .edu-meta-pill { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
  .edu-content-wrap { padding: 2.5rem 1.25rem 3.5rem; gap: 2rem; }
  .edu-highlight-box, .edu-tips-box { padding: 1.75rem 1.5rem; }
  .edu-cta-section { padding: 2rem 1.5rem; }
  .edu-state-table { font-size: 0.82rem; }
  .edu-state-table thead th, .edu-state-table td { padding: 0.75rem 1rem; }
  .edu-levels-grid { grid-template-columns: 1fr; }
  .edu-level-card-img { height: 180px; }
  .sidebar-card { position: static; }
}
@media (max-width: 480px) {
  .edu-cta-btn-alt { margin-left: 0; }
}
