/*
Theme Name: CampusCareer
Theme URI: https://campuscareer.example
Author: CampusCareer
Description: A clean, accessible classic WordPress theme for student career education.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: campuscareer
*/

:root {
  --navy: #102a43;
  --blue: #1769aa;
  --pale-blue: #eaf4fb;
  --ink: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --white: #fff;
  --surface: #f7fafc;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.header-inner, .container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 210px; }
.site-title { color: var(--navy); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.site-description { display: block; color: var(--muted); font-size: .78rem; }
.primary-menu { flex: 1; }
.primary-menu > div > ul, .primary-menu > ul { display: flex; justify-content: flex-end; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-menu li { position: relative; list-style: none; }
.primary-menu a { display: block; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 650; padding: 10px 9px; border-radius: 8px; }
.primary-menu a:hover, .primary-menu a:focus-visible { color: var(--blue); background: var(--pale-blue); }
.primary-menu .sub-menu { position: absolute; top: 100%; left: 0; display: none; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 14px 35px rgba(16,42,67,.14); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { white-space: normal; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 9px 13px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.hero { background: radial-gradient(circle at 85% 20%, #d7edfb 0, transparent 34%), linear-gradient(135deg, var(--pale-blue), #fff); padding: 104px 0; }
.hero h1 { max-width: 760px; color: var(--navy); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.1; margin: 0 0 20px; }
.hero p { max-width: 680px; color: var(--muted); font-size: 1.15rem; }
.button, .wp-block-button__link { display: inline-block; border-radius: 8px; padding: 11px 18px; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; }
.button.secondary { margin-left: 8px; background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-heading { color: var(--navy); margin-top: 0; }
.section-intro { max-width: 700px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.card h3 { margin-top: 0; color: var(--navy); }
.card p { color: var(--muted); }
.content-shell { padding: 48px 0 80px; }
.breadcrumbs { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.entry-header { max-width: 880px; }
.entry-header h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.025em; }
.entry-content { max-width: 820px; }
.entry-content > p:first-child { font-size: 1.12rem; color: var(--muted); }
.entry-content h2, .entry-content h3 { color: var(--navy); margin-top: 2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin: .45rem 0; }
.entry-content blockquote { margin: 2rem 0; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--pale-blue); }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: 8px; background: #102a43; color: #fff; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content code { padding: .15em .35em; border-radius: 4px; background: var(--surface); color: var(--navy); }
.entry-content pre code { padding: 0; background: transparent; color: inherit; }
.card-meta { margin: 0 0 8px; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.card-meta a { color: inherit; }
.text-link { font-weight: 750; text-decoration: none; }
.related-articles { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-articles h2 { color: var(--navy); }
.contact-form { max-width: 680px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-form label { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-honeypot { position: absolute; left: -9999px; }
.form-notice { padding: 12px 16px; border-radius: 8px; font-weight: 650; }
.form-notice-success { background: #e8f7ef; color: #14532d; }
.form-notice-error { background: #fff1f2; color: #9f1239; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination a, .pagination span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }
.search-form { display: flex; gap: 8px; max-width: 620px; }
.search-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.site-footer { background: var(--navy); color: #d9e2ec; padding: 40px 0; }
.site-footer a { color: #b3d4ee; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.pagination { margin-top: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 14px 0; }
  .site-branding { flex: 1; }
  .menu-toggle { display: block; }
  .primary-menu { display: none; width: 100%; }
  .primary-menu.is-open { display: block; }
  .primary-menu > div > ul, .primary-menu > ul { display: block; }
  .primary-menu li { padding: 8px 0; }
  .primary-menu .sub-menu { position: static; display: block; margin: 4px 0 0 12px; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--line); box-shadow: none; }
  .hero { padding: 56px 0; }
  .button.secondary { margin: 10px 0 0; }
  .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .content-shell { padding-top: 32px; }
  .entry-content table { display: block; overflow-x: auto; }
}
