/* =============================================
   Youth Policy Advisory Group - Main Styles
   ============================================= */

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

:root {
  --primary: #1a6b3c;
  --primary-dark: #134f2d;
  --primary-light: #e8f4ee;
  --accent: #f0c040;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e0e0;
  --white: #ffffff;
  --bg-light: #f7faf8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --header-h: 70px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.7; font-size: 16px; background: var(--white); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
  line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #eee; }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 var(--border); }
.header-top { border-bottom: 1px solid var(--border); }
.header-top-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.header-logo { flex: 1; }
.header-logo img { max-height: 52px; width: auto; }
.site-title-link { font-size: 20px; font-weight: 700; color: var(--primary); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ---- Navigation ---- */
.site-nav { background: var(--primary); }
.site-nav .container { display: flex; }
.nav-menu { display: flex; align-items: stretch; }
.nav-menu li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 14px 18px; color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { background: var(--primary-dark); color: var(--white); }
.nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  min-width: 220px; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200; border: 1px solid var(--border);
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a { display: block; padding: 10px 18px; color: var(--text); font-size: 14px; }
.nav-menu .sub-menu li a:hover { background: var(--primary-light); color: var(--primary); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; height: 580px; }
.hero-slides { width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.7s ease;
  display: flex; align-items: center;
  background-color: var(--primary-dark);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,50,25,0.82) 0%, rgba(10,50,25,0.4) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; color: var(--white); }
.hero-content h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero-content p { font-size: 18px; margin-bottom: 28px; opacity: 0.9; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,0.2); border: none; color: white; font-size: 32px;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.35); }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background var(--transition); }
.hero-dot.active { background: var(--white); }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); color: var(--white); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item strong { display: block; font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat-item span { font-size: 14px; opacity: 0.8; margin-top: 4px; display: block; }

/* ---- Section Shared ---- */
.section-news,
.section-opinions,
.section-about-highlight,
.section-partners,
.section-gov-links { padding: 72px 0; }
.section-news { background: var(--bg-light); }
.section-opinions { background: var(--white); }
.section-about-highlight { background: var(--primary-light); }
.section-partners { background: var(--white); border-top: 1px solid var(--border); }
.section-gov-links { background: var(--bg-light); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.section-header h2 { font-size: 28px; font-weight: 600; }
.view-all { font-size: 14px; color: var(--primary); font-weight: 500; }
.view-all:hover { text-decoration: underline; }

/* ---- News Cards ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--transition), transform var(--transition); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card-img { display: block; overflow: hidden; aspect-ratio: 16/9; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: block; }
.news-card-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.read-more { font-size: 13px; font-weight: 500; color: var(--primary); }
.no-content { color: var(--text-muted); font-style: italic; }

/* ---- Opinions ---- */
.opinions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.opinion-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow var(--transition); }
.opinion-card:hover { box-shadow: var(--shadow); }
.opinion-icon { font-size: 32px; color: var(--primary); margin-bottom: 12px; display: block; line-height: 1; }
.opinion-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.opinion-card h4 a { color: var(--text); }
.opinion-card h4 a:hover { color: var(--primary); }
.opinion-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.opinion-author { font-size: 13px; font-weight: 500; color: var(--primary); }
.opinion-placeholder { text-align: center; }

/* ---- About Highlight ---- */
.about-highlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-highlight-text .label { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }
.about-highlight-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; line-height: 1.25; }
.about-highlight-text p { color: var(--text-muted); margin-bottom: 28px; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; }
.about-highlight-img img, .about-img-placeholder { border-radius: var(--radius-lg); overflow: hidden; width: 100%; }
.about-img-placeholder svg { width: 100%; border-radius: var(--radius-lg); }

/* ---- Partners ---- */
.partners-track-wrapper { overflow: hidden; }
.partners-track { display: flex; gap: 40px; animation: scrollPartners 30s linear infinite; width: max-content; }
.partners-track:hover { animation-play-state: paused; }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 80px; min-width: 160px;
  padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  filter: grayscale(1); opacity: 0.7; transition: filter var(--transition), opacity var(--transition);
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
.partner-logo img { max-height: 56px; width: auto; object-fit: contain; }
.partner-logo span { font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }

/* ---- Gov Links ---- */
.section-gov-links h2 { font-size: 28px; font-weight: 600; margin-bottom: 28px; }
.gov-links-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.gov-link-card {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 14px; font-weight: 500; transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.gov-link-card:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 2px 8px rgba(26,107,60,0.1); }
.gov-link-icon { font-size: 20px; }

/* ---- Footer ---- */
.site-footer { background: #0f3d22; color: rgba(255,255,255,0.85); }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand img { max-height: 52px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 20px; font-weight: 700; color: var(--white); display: block; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; opacity: 0.7; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-social a:hover { color: var(--white); }
.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--white); }
.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); text-align: center; }

/* ---- Single Post / Page ---- */
.page-content, .single-content { padding: 60px 0; max-width: 820px; margin: 0 auto; }
.page-content h1, .single-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 24px; }
.entry-content h2 { font-size: 24px; font-weight: 600; margin: 28px 0 12px; }
.entry-content h3 { font-size: 20px; font-weight: 600; margin: 22px 0 10px; }
.entry-content p { margin-bottom: 16px; color: var(--text-muted); }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; }
.entry-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ---- Archive / Blog ---- */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 60px 0; }
.page-title-bar { background: var(--primary); color: var(--white); padding: 40px 0; }
.page-title-bar h1 { font-size: 32px; font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-highlight-inner { gap: 40px; }
}
@media (max-width: 768px) {
  .header-actions { display: none; }
  .mobile-menu-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-menu { flex-direction: column; }
  .nav-menu > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-menu .sub-menu { position: static; box-shadow: none; border-radius: 0; border: none; background: rgba(0,0,0,0.2); display: none; }
  .nav-menu li.open > .sub-menu { display: block; }
  .nav-menu .sub-menu li a { color: rgba(255,255,255,0.8); padding-left: 32px; }
  .hero { height: 460px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .opinions-grid { grid-template-columns: 1fr; }
  .about-highlight-inner { grid-template-columns: 1fr; }
  .about-highlight-img { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-prev, .hero-next { display: none; }
}
