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

:root {
  --primary: #1a3a6b;
  --primary-light: #2952a3;
  --accent: #e8501a;
  --accent2: #f4a261;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #e2e6ef;
  --text: #1c2340;
  --text-muted: #5a6480;
  --text-light: #8a93b2;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(26,58,107,0.07);
  --shadow-md: 0 4px 24px rgba(26,58,107,0.12);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary); height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; display:flex; align-items:center; gap:8px; }
.nav-brand .brand-icon { background: var(--accent2); color: var(--primary); font-size:13px; font-weight:800; padding:3px 8px; border-radius:6px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 13.5px; font-weight: 500; padding: 6px 13px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.13); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* HERO */
.hero { background: linear-gradient(135deg, #0f2554 0%, var(--primary) 50%, #1e4fa0 100%); padding: 64px 24px 52px; color: #fff; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(244,162,97,0.2); border: 1px solid rgba(244,162,97,0.4); color: var(--accent2); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.hero h1 span { color: var(--accent2); }
.hero p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-search { display: flex; gap: 0; max-width: 480px; margin: 0 auto 28px; }
.hero-search input { flex: 1; padding: 12px 16px; border: none; border-radius: 8px 0 0 8px; font-size: 14px; color: var(--text); }
.hero-search button { padding: 12px 20px; background: var(--accent); color: #fff; border: none; border-radius: 0 8px 8px 0; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.hero-search button:hover { background: #c8421a; }
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-link { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 20px; transition: background 0.15s; cursor: pointer; }
.hero-link:hover { background: rgba(255,255,255,0.22); text-decoration: none; color: #fff; }

/* STATS BAR */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; gap: 0; }
.stat-item { flex: 1; text-align: center; border-right: 1px solid var(--border); padding: 8px; }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 22px; font-weight: 800; color: var(--primary); }
.stat-item .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* LAYOUT */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }

/* SECTION */
.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.section-link { font-size: 13px; color: var(--primary-light); font-weight: 500; }

/* QUICK ACCESS CARDS */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.quick-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; cursor: pointer; text-decoration: none; display: block; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); text-decoration: none; }
.quick-card .qicon { font-size: 32px; margin-bottom: 10px; }
.quick-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.quick-card p { font-size: 12px; color: var(--text-muted); }
.quick-card .qcount { display: inline-block; background: var(--bg); color: var(--primary); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-top: 8px; }

/* NEWS */
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 10px; display: flex; gap: 12px; transition: border-color 0.15s; }
.news-card:hover { border-color: var(--primary-light); }
.news-card img { width: 76px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--border); }
.news-card .source { display: inline-block; background: #e8f0ff; color: var(--primary); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-bottom: 4px; }
.news-card h4 { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 3px; }
.news-card p { font-size: 12px; color: var(--text-muted); }
.news-card .date { font-size: 11px; color: var(--text-light); margin-left: 6px; }

/* BLOG CARDS */
.blog-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-thumb { width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 38px; background: #eef1fb; }
.blog-body { padding: 14px 16px; }
.blog-body .cat { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.blog-body h4 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: var(--text); }
.blog-body p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* VACANCY CARDS */
.vacancy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; transition: border-color 0.15s; }
.vacancy-card:hover { border-color: var(--primary-light); }
.vacancy-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.vacancy-card .org { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.vac-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vtag { background: #eef0f8; color: var(--primary); font-size: 11px; padding: 2px 9px; border-radius: 10px; }
.vtag.deadline { background: #fff5ee; color: #b94a00; }
.vtag.new { background: #eefbf0; color: #1a7a3a; font-weight: 700; }
.vac-apply { font-size: 12px; font-weight: 600; color: var(--primary-light); white-space: nowrap; padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; transition: all 0.15s; }
.vac-apply:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* ABOUT CURATOR */
.curator-card { background: linear-gradient(135deg, #f0f4ff, #fff); border: 1px solid #d0daff; border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 20px; align-items: center; }
.curator-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.curator-info h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.curator-info .role { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.curator-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cbadge { background: #e8f0ff; color: var(--primary); font-size: 11px; padding: 3px 10px; border-radius: 12px; }

/* SIDEBAR */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.sidebar-card h3 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.link-list { list-style: none; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: none; }
.link-list a { display: block; padding: 7px 0; font-size: 13px; color: var(--text); transition: color 0.15s; }
.link-list a:hover { color: var(--primary-light); text-decoration: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #eef0f8; color: var(--primary); font-size: 12px; padding: 4px 10px; border-radius: 20px; cursor: pointer; transition: background 0.15s; }
.tag:hover { background: var(--primary); color: #fff; }

/* BUTTONS */
.btn { display: inline-block; padding: 8px 18px; background: var(--primary); color: #fff; border-radius: 7px; font-size: 13px; font-weight: 600; transition: background 0.15s; border: none; cursor: pointer; }
.btn:hover { background: var(--primary-light); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* PAGE HEADER */
.page-header { background: var(--primary); color: #fff; padding: 32px 24px 26px; }
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-header p { font-size: 14px; color: rgba(255,255,255,0.7); }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }

/* MATERIAL / VACANCY FULL PAGES */
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn { padding: 7px 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.material-section { display: none; }
.material-section.active { display: block; }
.mat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.mat-icon { width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mat-icon.pdf { background: #fff0ef; }
.mat-icon.ppt { background: #fff5e6; }
.mat-icon.video { background: #e8f4ff; }
.mat-icon.note { background: #eefbf0; }
.mat-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.mat-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.dl-btn { font-size: 12px; color: var(--primary-light); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); text-decoration: none; }
.dl-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-row .icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.contact-row .label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.contact-row .value { font-size: 14px; font-weight: 500; color: var(--text); }
.contact-row .value a { color: var(--primary-light); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text); transition: all 0.15s; }
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.profile-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.profile-hero .avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 3px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; flex-shrink: 0; }
.profile-hero h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-hero .role { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }

/* FOOTER */
footer { background: #0f2554; color: rgba(255,255,255,0.65); padding: 36px 24px 18px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-brand .brand-icon { background: var(--accent2); color: var(--primary); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* UTILS */
.hidden { display: none !important; }
.notice { background: #fffbea; border: 1px solid #f6d860; border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: #7a5c00; margin-bottom: 20px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.search-bar input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); background: var(--surface); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; color: var(--text); background: var(--surface); }
.section-divider { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 24px 0 12px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--primary); padding: 10px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 20px; border-radius: 0; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 26px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-row { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .curator-card { flex-direction: column; text-align: center; }
  .profile-hero { flex-direction: column; text-align: center; }
}

/* ── AD UNITS ───────────────────────────────────────────────────── */
/* Wrapper keeps Google AdSense inserts clean and identifiable       */
.ad-unit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.ad-unit::before {
  content: 'Advertisement';
  display: block;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Full-width leaderboard strip between page sections */
.ad-leaderboard {
  margin: 24px 0;
  width: 100%;
}
.ad-leaderboard ins, .ad-leaderboard .ad-placeholder {
  display: block;
  width: 100%;
  min-height: 90px;
}

/* Rectangle / medium-rectangle for sidebar or in-feed */
.ad-rectangle {
  margin: 0 0 20px;
}
.ad-rectangle ins, .ad-rectangle .ad-placeholder {
  display: block;
  width: 100%;
  min-height: 250px;
}

/* In-feed native ad between list items */
.ad-infeed {
  margin: 12px 0;
}
.ad-infeed ins, .ad-infeed .ad-placeholder {
  display: block;
  width: 100%;
  min-height: 120px;
}

/* Above-footer full-width banner */
.ad-footer-banner {
  margin: 32px auto 0;
  max-width: 1140px;
  padding: 0 20px;
}
.ad-footer-banner ins, .ad-footer-banner .ad-placeholder {
  display: block;
  width: 100%;
  min-height: 90px;
}

/* Placeholder shown before AdSense approval — remove once live */
.ad-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #f0f2f8,
    #f0f2f8 8px,
    #e6e9f3 8px,
    #e6e9f3 16px
  );
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .ad-leaderboard ins, .ad-leaderboard .ad-placeholder { min-height: 60px; }
  .ad-rectangle ins, .ad-rectangle .ad-placeholder { min-height: 200px; }
}
