/* Pak Home Tutors – shared styles */
:root {
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --border: rgba(226, 190, 46, 0.2);
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --yellow: #e2be2e;
  --blue: #0d17ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--yellow); }
img { max-width: 100%; height: auto; }

header:not(.site-header) {
  background: #000028;
  padding: 18px 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 960px; margin: 0 auto; }
header:not(.site-header) img.logo {
  max-height: 70px; width: auto; display: block; margin: 0 auto 8px;
}
header:not(.site-header) .site-name { font-size: 1.5rem; margin-bottom: 4px; font-weight: 700; color: #fff; }
header:not(.site-header) .tagline { font-size: 0.9rem; color: var(--yellow); margin-bottom: 12px; font-weight: 500; }
header:not(.site-header) nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
header:not(.site-header) nav a {
  color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 6px;
  border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
header:not(.site-header) nav a:hover, header:not(.site-header) nav a.active {
  background: var(--blue); border-color: var(--yellow); box-shadow: 0 0 12px rgba(13, 23, 255, 0.5);
}

.site-header {
  background: #000028;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .header-bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.site-header .brand img.logo { max-height: 48px; width: auto; }
.site-header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.site-header .brand-text .name { font-weight: 700; font-size: 1.1rem; }
.site-header .brand-text .tag { font-size: 0.75rem; color: var(--yellow); }
.site-header .nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-header .nav-desktop > a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: font-weight 0.15s, color 0.15s;
}
.site-header .nav-desktop > a:hover,
.site-header .nav-desktop > a.active {
  background: transparent;
  font-weight: 700;
  color: var(--yellow);
}
.site-header .nav-desktop a.nav-wa {
  background: #25d366;
  color: #fff;
  margin-left: 4px;
}
.site-header .nav-desktop a.nav-wa:hover { background: #128c7e; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}
.menu-toggle:hover { background: var(--blue); }
.menu-toggle[aria-expanded="true"] { background: var(--blue); border-color: var(--yellow); }
.nav-mobile {
  display: none;
  background: #000028;
  border-top: 1px solid var(--border);
  padding: 8px 0 12px;
}
.nav-mobile.open { display: block; }
.nav-mobile > a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile > a:hover,
.nav-mobile > a.active {
  background: rgba(13, 23, 255, 0.3);
  color: var(--yellow);
}
.nav-mobile a.nav-wa {
  background: #25d366;
  color: #fff;
  margin: 10px 16px 0;
  border-radius: 8px;
  text-align: center;
  border: none;
}

@media (max-width: 900px) {
  .site-header .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .brand-text .tag { display: none; }
  .site-header .brand img.logo { max-height: 44px; }
  .site-header .brand-text .name { font-size: 1.05rem; }
}

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; }
.breadcrumbs {
  max-width: 960px; margin: 0 auto; padding: 12px 16px 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--yellow); }
.hero { margin-bottom: 28px; }
.hero h1 {
  font-size: 1.75rem; font-weight: 800; margin-bottom: 10px;
  line-height: 1.3; color: #fff;
}
.hero .lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }
.section-title {
  font-size: 1.35rem; font-weight: 700; color: var(--yellow);
  margin: 28px 0 14px; padding-bottom: 6px;
  border-bottom: 2px solid rgba(226, 190, 46, 0.3);
}
ul, ol { padding-left: 1.3em; margin: 10px 0; }
li { margin-bottom: 6px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.card h3 { color: var(--yellow); font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.92rem; }
.btn {
  display: inline-block;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #128c7e; transform: translateY(-1px); }
.cta-box {
  background: linear-gradient(135deg, rgba(13,23,255,0.25), rgba(226,190,46,0.12));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 28px 0;
}
.cta-box h2 { color: var(--yellow); margin-bottom: 8px; font-size: 1.3rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 16px; }
.related-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px;
}
.related-grid a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.related-grid a:hover { border-color: var(--yellow); color: var(--yellow); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-item h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.faq-item p { color: var(--text-muted); font-size: 0.92rem; }

.pre-footer {
  background: #080818;
  border-top: 1px solid var(--border);
  padding: 40px 16px 36px;
}
.pre-footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.pre-footer h2 { color: var(--yellow); font-size: 1.35rem; margin-bottom: 8px; font-weight: 700; }
.pre-footer .pre-footer-desc {
  color: var(--text-muted); font-size: 0.95rem; margin-bottom: 22px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.pre-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.pre-footer-grid a {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 10px; text-decoration: none;
  color: var(--text-muted); font-size: 0.9rem; transition: all 0.2s;
}
.pre-footer-grid a:hover {
  background: rgba(13, 23, 255, 0.35); border-color: var(--yellow); transform: translateY(-2px);
}
.pre-footer-cta { margin-top: 8px; }
.pre-footer-cta p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.pre-footer-lists {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: left; margin-bottom: 24px;
}
.pre-footer-col h3 { color: var(--yellow); font-size: 1rem; margin-bottom: 10px; font-weight: 700; }
.pre-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pre-footer-col li { margin-bottom: 6px; }
.pre-footer-col a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s;
}
.pre-footer-col a:hover { color: var(--yellow); text-decoration: underline; }

footer { background: #000028; color: var(--text-muted); text-align: center; padding: 28px 16px 20px; margin-top: 0; border-top: none; }
.social-links { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg-card); color: #fff; font-size: 1.15rem; text-decoration: none;
  border: 1px solid rgba(226, 190, 46, 0.3); transition: transform 0.2s, background 0.2s;
}
.social-links a:hover { transform: scale(1.1); }
.social-links a.facebook:hover { background: #1877f2; }
.social-links a.youtube:hover { background: #ff0000; }
.social-links a.instagram:hover { background: #e4405f; }
.social-links a.tiktok:hover { background: #000; border-color: var(--yellow); }
footer .copyright { font-size: 0.88rem; opacity: 0.85; }

.whatsapp-float {
  position: fixed; bottom: 20px; right: 16px; background: #25d366; color: white; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; padding: 12px 18px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none; z-index: 100; display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.whatsapp-float:hover { background: #128c7e; transform: scale(1.03); color: white; }

/* DROPDOWN NAV */
.nav-dropdown { position: relative; display: inline-block; }
.nav-drop-btn {
  background: transparent; border: none; color: inherit; font: inherit; font-weight: 600; font-size: 0.8rem;
  cursor: pointer; padding: 8px 12px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: font-weight 0.15s, color 0.15s;
}
.nav-drop-btn:hover,
.nav-dropdown.open .nav-drop-btn,
.nav-dropdown.active .nav-drop-btn {
  background: transparent;
  font-weight: 700;
  color: var(--yellow);
}
.nav-drop-btn i { font-size: 0.7rem; transition: transform 0.2s; }
.nav-dropdown.open .nav-drop-btn i { transform: rotate(180deg); }
.nav-drop-panel {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 520px; max-width: 90vw; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45); padding: 16px; z-index: 200;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px;
}
.nav-dropdown.open .nav-drop-panel { display: grid; }
.nav-drop-panel--compact { min-width: 320px; }
.nav-drop-group { display: flex; flex-direction: column; gap: 4px; }
.nav-drop-label {
  font-size: 0.75rem; font-weight: 700; color: var(--yellow);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
  padding-bottom: 4px; border-bottom: 1px solid rgba(226, 190, 46, 0.25);
}
.nav-drop-panel a {
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem;
  padding: 4px 6px; border-radius: 4px; transition: color 0.15s, background 0.15s;
}
.nav-drop-panel a:hover { color: var(--yellow); background: rgba(13, 23, 255, 0.25); }

/* Mobile accordion */
.nav-mobile .mob-section { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile .mob-section summary {
  padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: #fff;
}
.nav-mobile .mob-section summary::-webkit-details-marker { display: none; }
.nav-mobile .mob-section summary::after {
  content: "\25BE";
  font-size: 0.85rem;
  opacity: 0.75;
  margin-left: 8px;
}
.nav-mobile .mob-section[open] summary::after {
  content: "\25B4";
}
.nav-mobile .mob-links {
  padding: 0 12px 12px 24px; display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile .mob-links a {
  padding: 8px 10px; font-size: 0.9rem; color: var(--text-muted); border-radius: 4px;
}
.nav-mobile .mob-links a:hover { color: var(--yellow); background: rgba(13, 23, 255, 0.2); }

/* Pre-footer accordions */
.pre-footer-accordions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; margin: 0 auto 28px; max-width: 960px; text-align: left;
}
.pf-acc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.pf-acc summary {
  padding: 14px 16px; font-weight: 700; font-size: 0.95rem; color: var(--yellow);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; user-select: none;
}
.pf-acc summary::-webkit-details-marker { display: none; }
.pf-acc summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; opacity: 0.8; }
.pf-acc[open] summary::after { content: "\2212"; }
.pf-acc .pf-links {
  list-style: none; margin: 0; padding: 0 16px 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px;
}
.pf-acc .pf-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem;
  padding: 3px 0; display: block; transition: color 0.15s;
}
.pf-acc .pf-links a:hover { color: var(--yellow); text-decoration: underline; }

@media (max-width: 700px) {
  .nav-drop-panel { min-width: 280px; left: 0; transform: none; }
  .pre-footer-accordions { grid-template-columns: 1fr; }
  .pf-acc .pf-links { grid-template-columns: 1fr; }
  .pre-footer-lists { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.35rem; }
  header:not(.site-header) .site-name { font-size: 1.3rem; }
  header:not(.site-header) img.logo { max-height: 58px; }
  .section-title { font-size: 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .pre-footer { padding: 30px 12px 28px; }
  .pre-footer h2 { font-size: 1.2rem; }
  .pre-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pre-footer-grid a { font-size: 0.85rem; padding: 10px 8px; }
  .whatsapp-float { bottom: 14px; right: 12px; padding: 11px 14px; font-size: 0.9rem; }
}
@media (max-width: 380px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 52px; height: 52px; border-radius: 50%; justify-content: center; padding: 0; }
}
