/*
Theme Name: OSSD HK Info Theme
Theme URI: https://ossd.hk/
Author: OpenAI
Author URI: https://openai.com/
Description: Custom WordPress theme for ossd.hk, built as a Hong Kong Cantonese OSSD information website with Sauder Academy references.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ossd-hk
*/

:root {
  --brand-blue: #0d2446;
  --brand-blue-2: #173a70;
  --brand-gold: rgb(202, 160, 74);
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --max-width: 1200px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate-900);
  background: var(--white);
  font-family: Inter, "Noto Sans HK", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-logo {
  width: auto;
  height: 56px;
  border-radius: 12px;
}
.brand-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.brand-subtitle {
  margin: 0.2rem 0 0;
  color: var(--slate-500);
  font-size: 0.95rem;
}
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  color: var(--slate-600);
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--slate-900); }
.cta-button,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.cta-button, .button-primary {
  background: var(--slate-900);
  color: var(--white);
}
.button-primary:hover, .cta-button:hover, .university-link:hover { opacity: 0.92; }
.button-secondary {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-2) 55%, #e9eef7 100%);
  color: var(--white);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
}
.hero::before {
  width: 260px;
  height: 260px;
  top: -30px;
  right: 8%;
  background: rgba(202,160,74,0.25);
}
.hero::after {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -100px;
  background: rgba(255,255,255,0.12);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: 5rem 0;
}
.eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  font-size: 0.95rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.1;
  margin: 1rem 0;
}
.highlight { color: var(--brand-gold); }
.hero p.lead,
.section-lead {
  font-size: 1.1rem;
  line-height: 1.9;
}
.hero p.lead { color: #dbe5f1; max-width: 680px; }
.button-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.mini-card,
.info-card,
.white-card,
.university-card,
.requirement-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1rem;
}
.hero-panel {
  background: var(--white);
  color: var(--slate-900);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(15,23,42,0.2);
}
.panel-inner,
.white-card {
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.white-card { background: var(--white); border: 1px solid var(--slate-200); box-shadow: var(--shadow); }
.section {
  padding: 5rem 0;
}
.section.alt { background: var(--slate-100); }
.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate-500);
  font-size: 0.8rem;
  font-weight: 700;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.info-card, .white-card, .university-card, .requirement-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.info-card h3,
.white-card h3,
.university-card h3,
.requirement-card h3 { margin-top: 0; }
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead { background: var(--slate-900); color: var(--white); }
th, td { padding: 1rem 1.1rem; text-align: left; vertical-align: top; }
tbody tr:nth-child(even) { background: #f8fafc; }
.badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.8rem;
  font-weight: 700;
}
.gold-badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(202,160,74,0.18);
  color: var(--slate-900);
  font-size: 0.85rem;
  font-weight: 700;
}
.feature-list,
.clean-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}
.feature-list li,
.clean-list li { margin-bottom: 0.65rem; }
.dark-card {
  background: var(--slate-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}
.dark-card p, .dark-card li { color: #cbd5e1; }
.university-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.university-link {
  display: inline-flex;
  margin-top: 1rem;
  background: var(--slate-900);
  color: var(--white);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.sauder-card {
  margin-top: 2.5rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.sauder-logo {
  height: 64px;
  width: auto;
  border-radius: 12px;
  background: var(--white);
  padding: 0.5rem;
  border: 1px solid var(--slate-200);
}
.faq details {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq details + details { margin-top: 1rem; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.contact-section {
  background: var(--slate-900);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
}
.contact-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.code-box {
  background: rgba(2,6,23,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem;
  overflow-x: auto;
}
.code-box code { color: var(--brand-gold); }
.footer {
  border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
  color: var(--slate-500);
}
.footer-meta { text-align: right; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .mini-cards { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
}

@media (max-width: 767px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .brand-logo { height: 48px; }
  .section, .hero-grid { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  th, td { padding: 0.85rem; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
