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

:root {
  /* Colors */
  --primary: #0F172A;
  --secondary: #2563EB;
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --heading: #111827;
  --body: #374151;
  --white: #FFFFFF;
  
  /* Accent Colors */
  --accent-news: #2563EB;
  --accent-careers: #10B981;
  --accent-exams: #2563EB;
  --accent-colleges: #7C3AED;
  --accent-opinion: #F59E0B;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Dimensions & Spacing */
  --max-width-site: 1200px;
  --max-width-reading: 800px;
  --header-height: 72px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container {
  width: 100%;
  max-width: var(--max-width-site);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Branding Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
}

.logo-youth {
  color: var(--primary);
}

.logo-wire {
  color: var(--secondary);
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--body);
  margin-top: 3px;
  font-weight: 500;
  border-top: 1px solid var(--border);
  padding-top: 2px;
  width: 100%;
  text-align: center;
}

/* Navigation Links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.01em;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--heading);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border-radius: 50%;
}

.icon-btn:hover {
  background-color: var(--bg);
  color: var(--secondary);
}

.hamburger-btn {
  display: none;
}

/* Category Accent Markers */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.badge-news { color: var(--accent-news); }
.badge-careers { color: var(--accent-careers); }
.badge-exams { color: var(--accent-exams); }
.badge-colleges { color: var(--accent-colleges); }
.badge-opinion { color: var(--accent-opinion); }

/* Main Site Content Areas */
.site-main {
  min-height: calc(100vh - var(--header-height) - 180px);
  padding: 40px 24px;
  max-width: var(--max-width-site);
  margin: 0 auto;
}

/* Homepage Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 40px;
}

.hero-main-group {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.hero-featured-card {
  grid-column: span 2;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.hero-featured-card .featured-image-wrapper {
  aspect-ratio: 16/9;
  background-color: #f1f5f9;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 18px;
}

.hero-featured-card .featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-featured-card:hover .featured-image-wrapper img {
  transform: scale(1.02);
}

.hero-featured-card h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-featured-card h2 a:hover {
  color: var(--secondary);
}

.hero-featured-card p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  flex-wrap: wrap;
}

.meta-author {
  color: var(--primary);
  font-weight: 600;
}

.meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #cbd5e1;
  display: inline-block;
}

/* Secondary Stories inside Hero Grid */
.hero-secondary-card {
  display: flex;
  flex-direction: column;
}

.hero-secondary-card .image-wrapper {
  aspect-ratio: 16/10;
  background-color: #f1f5f9;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 1px;
}

.hero-secondary-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-secondary-card:hover .image-wrapper img {
  transform: scale(1.02);
}

.hero-secondary-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-secondary-card h3 a:hover {
  color: var(--secondary);
}

.hero-secondary-card p {
  font-size: 13.5px;
  color: var(--body);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right Sidebar: Latest News */
.latest-sidebar {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.sidebar-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-item h4 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.latest-item h4 a:hover {
  color: var(--secondary);
}

/* Category Sections on Homepage */
.section-wrapper {
  margin-bottom: 56px;
}

.section-header {
  border-bottom: 1px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 8px;
}

.section-headline {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section-more-link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.section-more-link:hover {
  text-decoration: underline;
}

/* Standard Editorial Grid */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-editorial {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.card-editorial:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.card-editorial .card-image {
  aspect-ratio: 16/9;
  background-color: #f1f5f9;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 1px;
}

.card-editorial .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card-editorial:hover .card-image img {
  transform: scale(1.02);
}

.card-editorial h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card-editorial h3 a:hover {
  color: var(--secondary);
}

.card-editorial p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-editorial .card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Opinion Section Styling */
.opinion-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}

.opinion-main-card {
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

.opinion-main-card h3 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.opinion-main-card h3 a:hover {
  color: var(--secondary);
}

.opinion-main-card p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 16px;
}

.opinion-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.opinion-list-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.opinion-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.opinion-list-item h4 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.opinion-list-item h4 a:hover {
  color: var(--secondary);
}

/* Single Article Template Style */
.article-wrapper {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  padding: 24px 0;
}

.breadcrumb {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.article-deck {
  font-size: 20px;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.article-meta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  border-color: #cbd5e1;
  background-color: var(--bg);
  color: var(--primary);
}

/* Article Hero Image */
.article-featured-image {
  margin-bottom: 40px;
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 1px;
}

.article-image-caption {
  font-size: 13px;
  color: #64748B;
  margin-top: 10px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
}

.image-credit {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Body Content Typography */
.article-body {
  font-size: 19px;
  line-height: 1.75;
  color: #27272a;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.4;
  color: var(--secondary);
  border-left: 3px solid var(--secondary);
  padding-left: 24px;
  margin: 36px 0;
  font-style: italic;
}

/* Premium Editorial Components */
.editorial-widget {
  border: 1px solid var(--border);
  background-color: var(--white);
  padding: 24px;
  margin: 36px 0;
  border-radius: 1px;
}

.widget-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}

.takeaway-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.takeaway-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.takeaway-list li::before {
  content: "•";
  color: var(--secondary);
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Custom Dotted Editorial Borders */
.quick-facts-box {
  border: 1px dotted #94a3b8;
  background-color: var(--white);
  padding: 20px;
  margin: 32px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fact-item {
  font-size: 15px;
}

.fact-item strong {
  color: var(--heading);
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 2px;
}

/* Timeline component */
.editorial-timeline {
  margin: 32px 0;
  border-left: 1.5px solid var(--border);
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 2px solid var(--white);
}

.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--body);
}

/* Author Box */
.author-box {
  border-top: 1.5px solid var(--primary);
  padding-top: 24px;
  margin-top: 48px;
  display: flex;
  gap: 20px;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #cbd5e1;
  font-family: var(--font-serif);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.author-details h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.author-details p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
}

/* Post Navigation (Prev/Next) */
.post-navigation {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 36px;
  gap: 24px;
}

.post-nav-item {
  width: 50%;
}

.post-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.post-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.post-nav-item:hover .post-nav-title {
  color: var(--secondary);
}

.post-nav-next {
  text-align: right;
}

/* Footer Section */
.site-footer {
  background-color: var(--primary);
  color: #94a3b8;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: var(--max-width-site);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-about {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-link-group h5 {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-link-group ul {
  list-style: none;
}

.footer-link-group li {
  margin-bottom: 8px;
}

.footer-link-group a {
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon:hover {
  color: var(--white);
}

/* Category and Search templates styling */
.archive-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 16px;
}

.archive-title {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.archive-description {
  font-size: 16px;
  color: #64748B;
}

.search-input-wrapper {
  max-width: 600px;
  margin: 0 auto 48px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  font-family: var(--font-sans);
  border: 1.5px solid var(--border);
  background-color: var(--white);
  color: var(--heading);
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary);
}

.search-results-info {
  margin-bottom: 24px;
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

/* Hamburger overlay drawer menu */
.hamburger-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--white);
  z-index: 200;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
  transition: var(--transition-smooth);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.hamburger-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.drawer-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}

.drawer-link:hover {
  color: var(--secondary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.3);
  z-index: 150;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* Comments section */
.comments-section {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.comments-title {
  font-size: 24px;
  margin-bottom: 24px;
}

.comment-form {
  margin-bottom: 32px;
}

.comment-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 1px;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  resize: vertical;
  margin-bottom: 12px;
}

.comment-textarea:focus {
  border-color: var(--primary);
}

.submit-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background-color: var(--secondary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.comment-date {
  color: #64748B;
  font-weight: 400;
}

.comment-text {
  font-size: 15px;
  color: var(--body);
  line-height: 1.5;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 48px 0;
  font-size: 16px;
  color: #64748B;
}

/* Responsive Styles */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 32px;
  }
  
  .latest-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }
  
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .opinion-layout {
    grid-template-columns: 1fr;
  }
  
  .opinion-main-card {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  
  .article-header h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-main-group {
    grid-template-columns: 1fr;
  }
  
  .hero-featured-card {
    grid-column: span 1;
  }
  
  .article-header h1 {
    font-size: 32px;
  }
  
  .article-deck {
    font-size: 17px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 16px;
  }
  
  .post-nav-item {
    width: 100%;
  }
  
  .post-nav-next {
    text-align: left;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
  }
}
