/*
 * Theme Name: SOI Default
 * Version: 1.0.0
 * Author: SOI (School Of Interns) CMS
 * Description: The default clean theme for SOI (School Of Interns) CMS. Responsive, modern, extensible.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --brand:       #f5941f;
  --brand-dark:  #d47a10;
  --bg:          #ffffff;
  --surface:     #f8fafc;
  --border:      #e2e8f0;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --heading-font:'Merriweather', Georgia, serif;
  --body-font:   'Inter', system-ui, sans-serif;
  --container:   1180px;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,0.06),0 4px 16px rgba(0,0,0,0.06);
}

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.7;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-brand { text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.site-brand-icon { font-size: 1.5rem; }
.site-brand-name { font-family: var(--body-font); font-size: 1.15rem; font-weight: 800; color: var(--text); }
.site-brand-name span { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--brand); background: rgba(245,148,31,0.06); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #fefefe 0%, #f0f7ff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  display: inline-block;
  background: rgba(245,148,31,0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.hero-cta:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,148,31,0.3); }

/* ===== MAIN LAYOUT ===== */
.site-main { padding: 3rem 0; }
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: flex-start;
}
.content-full { grid-column: span 2; }

/* ===== POSTS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-card-image-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post-card-body { padding: 1.25rem; }
.post-card-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.6rem; }
.post-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); }
.post-card-cat { color: var(--brand); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.post-card-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--brand); }
.post-card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; }
.read-more { color: var(--brand); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ===== SINGLE CONTENT (page / post) ===== */
.entry-header { margin-bottom: 2rem; }
.entry-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.entry-cat {
  display: inline-block;
  background: rgba(245,148,31,0.1);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  text-decoration: none;
}
.entry-title {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}
.entry-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.entry-meta strong { color: var(--text); }

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4 {
  font-family: var(--heading-font);
  margin: 2rem 0 1rem;
  line-height: 1.3;
  color: var(--text);
}
.entry-content h2 { font-size: 1.65rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1.35rem; }
.entry-content a { color: var(--brand); text-decoration: underline; }
.entry-content ul,.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.entry-content code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.entry-content pre { background: #1e293b; color: #e2e8f0; padding: 1.25rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.35rem; font-size: 0.88rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.35rem; }
.entry-content th,.entry-content td { padding: 0.6rem 1rem; border: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.entry-content th { background: var(--surface); font-weight: 700; }
.entry-content .wp-block-image img { border-radius: 8px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.widget-body { padding: 1rem 1.25rem; }
.widget-post {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.widget-post:last-child { border-bottom: none; }
.widget-post-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; flex: 1; }
.widget-post-date { font-size: 0.72rem; color: var(--text-light); }
.widget-post:hover .widget-post-title { color: var(--brand); }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb-sep { color: var(--text-light); }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 0.5rem; justify-content: center; padding: 2.5rem 0; flex-wrap: wrap; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.page-link:hover { color: var(--brand); border-color: var(--brand); }
.page-link.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== FOOTER ===== */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-brand-name { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-brand-name span { color: var(--brand); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #cbd5e1; margin-bottom: 0.85rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--brand); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .content-full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .mobile-menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: 1.8rem; }
}
