/*
Theme Name: No.1 Brand
Theme URI: https://no1-enteacher.com
Author: No.1 English Teacher
Description: Modern brand identity theme for No.1 English Teacher. Clean editorial typography, responsive layout, fast performance, and AdSense-friendly structure.
Version: 1.0.0
Text Domain: no1-brand
*/

:root {
  --navy-950: #071526;
  --navy-900: #0B1F3A;
  --navy-800: #132E52;
  --navy-700: #1E3A5F;
  --amber-600: #D97706;
  --amber-700: #B45309;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.14);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--amber-600);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
}

.brand-logo:hover {
  color: var(--navy-900);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-600);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.06em;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-800);
}

.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current-category-ancestor > a {
  color: var(--navy-900);
  background: var(--slate-100);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy-900);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: var(--amber-700);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-outline-dark {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-200);
}

.btn-outline-dark:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: var(--slate-50);
}

/* ===== Brand Hero Section ===== */
.brand-hero {
  background: radial-gradient(circle at 85% 20%, rgba(217, 119, 6, 0.16), transparent 42%),
              linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 84px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: #FDE68A;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.brand-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.hero-card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FDE68A;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat-num {
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.4;
}

/* ===== Sections ===== */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--slate-600);
}

/* ===== 4 Core Pillars Grid ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  color: var(--slate-800);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
  color: var(--slate-800);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  color: var(--amber-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-900);
}

.pillar-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.7;
  flex-grow: 1;
}

.pillar-meta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--amber-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Article Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #EFF6FF;
  color: var(--navy-700);
  margin-bottom: 14px;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy-900);
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--amber-700);
}

.card-excerpt {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.7;
  flex-grow: 1;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate-500);
}

/* ===== Methodology 3-Step Band ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.method-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px;
}

.method-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--amber-600);
  line-height: 1;
  margin-bottom: 14px;
}

.method-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-900);
}

.method-card p {
  margin: 0;
  font-size: 15px;
  color: var(--slate-600);
}

/* ===== Editorial Team Band ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
}

.team-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-700);
  margin-bottom: 10px;
}

.team-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate-600);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--white);
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
}

/* ===== Archive / Page Header ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 56px 0;
}

.page-hero .breadcrumb {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.page-hero .breadcrumb a {
  color: #FDE68A;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.28;
  color: var(--white);
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  font-size: 16px;
}

/* ===== Single Article & Page Prose ===== */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.article-header {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-200);
}

.article-breadcrumb {
  font-size: 13.5px;
  color: var(--slate-500);
  margin-bottom: 14px;
}

.article-header h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  line-height: 1.32;
  color: var(--navy-900);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--slate-500);
}

.prose {
  font-size: 16.5px;
  line-height: 1.88;
  color: var(--slate-800);
}

.prose h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
  padding-left: 14px;
  border-left: 4px solid var(--amber-600);
  line-height: 1.35;
}

.prose h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-800);
}

.prose p {
  margin: 0 0 18px;
}

.prose ul, .prose ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 10px;
}

.prose a {
  color: var(--amber-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code {
  background: var(--slate-100);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.92em;
  color: var(--navy-900);
}

.prose blockquote {
  margin: 26px 0;
  padding: 22px 26px;
  background: var(--slate-50);
  border-left: 4px solid var(--navy-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.prose th, .prose td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}

.prose thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.prose tbody tr:nth-child(even) {
  background: var(--slate-50);
}

.author-box {
  margin-top: 48px;
  padding: 26px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-box h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
}

.author-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate-600);
}

.related-section {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 60px 0;
}

/* ===== Pagination ===== */
.pagination {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 14px;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-name {
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 380px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FDE68A;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.56);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 24px 22px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav li a {
    padding: 10px 12px;
  }
  .brand-hero {
    padding: 56px 0 64px;
  }
  .pillars-grid,
  .cards-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 36px 26px;
  }
  .author-box,
  .team-card {
    flex-direction: column;
  }
}
