/* ================================================= */
/* ACCENT SYSTEM — SINGLE SOURCE OF TRUTH            */
/* ================================================= */

:root {
  --accent: #2B5078;           /* deep navy — authoritative, trustworthy */
  --accent-mid: #4F6D8A;       /* mid blue — secondary usage */
  --accent-light: #7BA7C8;     /* sky — hover highlights, subtle fills */
  --accent-bg: rgba(30, 60, 130, 0.04);  /* page frame wash */
  --gold: #C8902A;             /* warm amber — selective emphasis only */
  --gold-light: rgba(200, 144, 42, 0.12);
  --surface-1: #FDFCFA;        /* very light warm white — plain sections */
  --surface-2: #F5F8FB;        /* slightly blue-tinted off-white */
  --surface-3: #EBF1F7;        /* stronger wash for gradient sections */
  --section-gradient: linear-gradient(180deg, #E8EFF7 0%, #F4F7FB 100%); /* top-to-bottom blue wash */
  --text-primary: #1A2533;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #D8E4EE;
}


/*===============================================*/
/*  Google Fonts & Heading Serif                 */
/*===============================================*/

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ========================================= */
/* Global Reset */
/* ========================================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--accent-bg);
  line-height: 1.6;
  overflow-x: visible;
}

/* ========================================= */
/* Accent bar at very top */
/* ========================================= */
html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 60%, var(--accent-light) 100%);
  z-index: 10000;
}

/* ========================================= */
/* Links baseline */
/* ========================================= */
a {
  text-decoration: none;
  color: inherit;
}

/* =============================================== */
/* Site Header & Footer Wrapper (for JS injection) */
/* ============================================== */
#site-header {
  min-height: 120px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
  margin-top: 4px;
}

#site-footer {
  min-height: 200px;
}

/* ========================================= */
/* TOP BAR (Sticky Header) */
/* ========================================= */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  width: 100%;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  height: 72px;
  width: auto;
  display: block;
}

/* ========================================= */
/* NAVIGATION */
/* ========================================= */
/*.main-nav {
  display: flex;
  margin-left: auto;
}*/

.main-nav {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu > li > a,
.nav-menu > li > button {
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.2;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.submenu-toggle {
  appearance: none;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,.15);
  padding: 10px 0;
  list-style: none;
  margin: 0;
  padding-left: 0;
  z-index: 10000;
}

.submenu li a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
}

@media (hover: hover) {
  .has-submenu:hover .submenu {
    display: block;
  }
}

.has-submenu.open .submenu {
  display: block;
}

/* ========================================= */
/* MAIN CONTENT STYLING */
/* ========================================= */
.container {
  max-width: 900px;
  margin: 10px auto 60px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(43,80,120,0.10);
  border-top: none;
}

/* Page header / Hero */
.page-header {
  text-align: left;
  margin-bottom: 50px;
  border-left: 4px solid var(--gold);
  padding: 24px 20px 24px 24px;
  background: var(--surface-1);
  border-radius: 0 6px 6px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric accent behind the header */
.page-header::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,80,120,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.0em;
  margin: 0 0 0.4em 0;
  line-height: 1.3;
  color: var(--accent);
}

.page-header .tagline {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================= */
/* Section styling */
section {
  padding: 40px 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--section-gradient);   /* gradient — odd sections */
}

/* Alternate section banding — warm white sections */
section:nth-of-type(even) {
  background: var(--surface-1);
}

/* Headings inside sections */
h2 {
  font-size: 1.6em;
  color: var(--accent);
  margin: 0 0 0.8em 0;
  line-height: 1.4;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

/* Subheadings */
h3 {
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  line-height: 1.4;
}

/* Paragraphs */
p {
  margin-bottom: 1em;
}

/* ========================================= */
/* Card Icons */
/* ========================================= */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--accent);
}

.card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.75;
  margin-top: 2px;
}

/* Adjust h3 in role cards to work with flexbox */
.role-column h3 {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.3;
}

/* Adjust h3 in achievement cards to work with flexbox */
.achievement h3 {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.3;
}

/* Layout grids */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card style for role / competency / achievement blocks */
.role-column, .achievement, .education-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-top: 3px solid transparent;
}

.role-column:hover, .achievement:hover, .education-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(43, 80, 120, 0.14);
  border-top-color: var(--accent);
  border-color: var(--accent-light);
}

/* Sidebar icons */
.sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6; /* 50% opacity */
}

.profiles {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-top: 0;
  margin-bottom: 2em;
  padding: 0;
}

.profile-button {
  background: var(--accent);
  display: inline-block;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(43,80,120,0.18);
}

.profile-button:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(200,144,42,0.28);
}

/* Footer */
footer {
  text-align: center;
  border-top: 1px solid var(--accent);
  background: var(--surface-2);
  padding-top: 30px;
  padding-bottom: 30px;
  color: var(--text-secondary);
}

/*================================================*/
/*  Flexbox to wrap text around blog post images */
/*================================================*/

.media-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.media-image {
  max-width: 50px;
  height: auto;
  flex-shrink: 0;
}

.media-text {
  flex: 1;
  min-width: 0;  /* Prevents flex item from overflowing */
}

.media-text h2 {
  margin-top: 0;
}

/* ========================================= */
/* BLOG STYLES */
/* ========================================= */

/* Blog Categories Section */
.blog-categories-section {
  margin-bottom: 50px;
}

.blog-categories-section h2 {
  font-size: 1.4em;
  margin-bottom: 25px;
}

/* Category Cards Grid */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.category-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  /*border-color: #red;*/
}

.category-card .card-header h3 {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.3;
}

.category-card .category-description {
  font-size: 0.95em;
  color: #555;
  margin: 10px 0;
  line-height: 1.5;
}

.category-card .post-count {
  font-size: 0.85em;
  color: #999;
  margin: 10px 0 0 0;
  font-style: italic;
}

/* Highlight special category (Coursework) */
.category-card-highlight {
  /*border: 2px solid #red;*/
  background: #f0f4f8;
}

/* Latest Posts Section */
.latest-posts-section {
  margin-top: 50px;
}

.latest-posts-section h2 {
  font-size: 1.4em;
  margin-bottom: 20px;
}

/* ========================================= */
/* BLOG CATEGORY PAGES (with sidebar) */
/* ========================================= */

/* Blog Container with Sidebar */
.blog-container {
  max-width: 1200px;
  margin: 10px auto 60px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.blog-sidebar {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  height: fit-content;
  position: sticky;
  top: 120px;        /* below sticky header */
  border: 1px solid var(--accent); /* NEW: accent border */
  align-self: start; /* REQUIRED for CSS Grid */

}

.blog-sidebar h3 {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: #333;
  padding-left: 10px;
}

/* Category Navigation */
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-nav-link {
  padding: 10px 12px;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-nav-link:hover {
  background: #fff;
}

.category-nav-link.active {
  color: #fff;
  font-weight: 600;
}

.category-nav-all {
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}

.category-nav-special {
  border-top: 1px solid #ddd;
  margin-top: 8px;
  padding-top: 12px;
  font-style: italic;
}

/* Blog Content Area */
.blog-content {
  min-width: 0;
}

/* Category Header */
.category-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.category-header .card-header {
  margin-bottom: 10px;
}

.category-header h1 {
  margin: 0;
  font-size: 2em;
}

.category-intro {
  font-size: 1.1em;
  color: #666;
  margin: 10px 0 0 44px;
  line-height: 1.5;
}

/* Blog Posts List */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-post-item {
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.blog-post-item:last-child {
  border-bottom: none;
}

.blog-post-item h2 {
  margin: 0 0 10px 0;
  font-size: 1.5em;
  border-left: none;
  padding-left: 0;
}

.blog-post-item h2 a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-item h2 a:hover {
  color: #2D3748;
  text-decoration: underline;
}

.post-meta {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 12px;
}

.post-tags {
color: #000;
}

.post-excerpt {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ========================================= */
/* INDIVIDUAL BLOG POST STYLES */
/* ========================================= */

/* Blog Post Container */
.blog-post-container {
  max-width: 800px;
  margin: 10px auto 60px;
  padding: 40px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Post Header */
.post-header {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.post-header h1 {
  font-size: 2.2em;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.post-header .post-meta {
  font-size: 0.95em;
  color: #999;
  margin: 0;
}

.post-category {
  font-weight: 600;
}

/* Post Content */
.post-content {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}

.post-intro {
  font-size: 1.15em;
  color: #555;
  font-style: italic;
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 4px solid var(--gold);
}

.post-content h2 {
  font-size: 1.6em;
  margin: 40px 0 20px 0;
  padding-left: 15px;
}

.post-content h3 {
  font-size: 1.3em;
  color: #333;
  margin: 30px 0 15px 0;
}

.post-content p {
  margin-bottom: 1.2em;
}

/* Post Images */
.post-image {
  margin: 40px 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: 0;
  border-radius: 6px;
  /*box-shadow: 0 2px 8px rgba(0,0,0,.1);*/
}

.post-image figcaption {
  margin-top: 12px;
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

/* Post Footer */
.post-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

.back-link {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #2D3748;
  text-decoration: underline;
}

/* ================================================= */
/* ACCENT OVERRIDES (FINAL, WINS CASCADE)            */
/* ================================================= */

/* Top accent bar — gradient handled above in html::before */

/* Main nav */
.top-bar .nav-menu > li > a,
.top-bar .nav-menu > li > button {
  color: var(--accent);
  transition: color 0.2s ease;
}

.top-bar .nav-menu > li > a:hover,
.top-bar .nav-menu > li > button:hover {
  color: var(--gold);
}

/* Submenu links */
.submenu li a {
  color: var(--accent);
}

.submenu li a:hover {
  color: var(--gold);
  background: var(--surface-2);
}

/* Headers & section accents */
.page-header,
h2,
.blog-sidebar h3 {
  border-left-color: var(--gold);
}

/* Category cards */
.category-card:hover {
  border-color: var(--accent);
}

/* Blog category header */
.category-header h1 {
  color: var(--accent);
}

/* Sidebar navigation */
.category-nav-link:hover {
  color: var(--accent);
  background: var(--gold-light);
}

.category-nav-link.active {
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Links used as accents */
a.back-link,
.blog-post-item h2 a {
  color: var(--accent);
}

a.back-link:hover,
.blog-post-item h2 a:hover {
  color: var(--gold);
}

/* Post intro left border */
.post-intro {
  border-left: 4px solid var(--gold);
}

/* Blog sidebar accent border */
.blog-sidebar {
  border-color: var(--accent);
  background: var(--surface-2);
}

/* Highlight special category */
.category-card-highlight {
  background: var(--surface-3);
  border-left: 3px solid var(--gold);
}

/* Post content h2 left border */
.post-content h2 {
  border-left: 3px solid var(--gold);
}

/* Education items - subtle gold accent on current */
.education-item:first-child {
  border-left: 3px solid var(--gold);
}

/* Status text */
.status-text {
  color: var(--text-secondary);
}

/* Post category badge */
.post-category {
  color: var(--accent);
}

/* ========================================= */
/* MOBILE RESPONSIVE */
/* ========================================= */
@media (max-width: 768px) {

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-logo {
    height: 40px;
  }

  .main-nav {
    position: static;
    transform: none;
    width: 100%;
  }

/* Keep main nav horizontal */
.nav-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.nav-menu > li {
  width: auto;
}

.nav-menu > li > a,
  .nav-menu > li > button {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.1em; /* replaces 4vw */
    white-space: nowrap;
    padding: 6px 0;
  }

.submenu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    padding-left: 15px;
    margin-top: 5px;
  }

  .has-submenu.open .submenu {
    display: block;
  }

  .submenu li a {
    display: block;
    padding: 8px 0;
    font-size: 1em;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .profiles {
    flex-direction: column;
  }

  .profile-button {
    width: 100%;
    padding: 10px 5px;
    white-space: nowrap;
    font-size: 0.9em;
  }

  .container {
    padding: 20px;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  /* Blog sidebar moves below content on mobile */
  .blog-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-sidebar {
    position: static;
    order: 2;
  }

  .category-intro {
    margin-left: 0;
  }

  /* Blog post responsive */
  .blog-post-container {
    padding: 20px;
  }

  .post-header h1 {
    font-size: 1.8em;
  }

  .post-content {
    font-size: 1em;
  }

  .post-intro {
    font-size: 1.05em;
    padding-left: 15px;
  }
}

/* Small screens */
@media (max-width: 600px) {
  .media-header {
    flex-direction: column;
  }
}
/* ================================================= */
/* HERO HOOK (NEW)                                   */
/* ================================================= */

.hero-hook {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent-light);
  background: rgba(123, 167, 200, 0.06);
  border-radius: 0 6px 6px 0;
  max-width: 780px;
}

/* Make hero feel more "executive" without redesign */
.page-header .tagline {
  font-size: 1.15em;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Subtle hierarchy boost for H1 */
.page-header h1 {
  letter-spacing: -0.02em;
}

/* ================================================= */
/* CORE FOCUS (NEW SECTION UPGRADE)                  */
/* ================================================= */

#core-focus p strong {
  display: block;
  font-size: 1.05em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Give Core Focus a slightly more "anchor" feel */
#core-focus {
  position: relative;
}

/* subtle visual anchor bar */
#core-focus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--gold);
  opacity: 0.6;
}

/* ================================================= */
/* ACHIEVEMENTS — EXECUTIVE READABILITY UPGRADE     */
/* ================================================= */

/* tighten spacing slightly for case-study feel */
.achievement p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* stronger visual separation between achievements */
.achievement {
  margin-bottom: 20px;
}

/* make achievement headers feel more “headline-like” */
.achievement h3 {
  font-size: 1.15em;
  color: var(--accent);
}

/* ================================================= */
/* PAGE HEADER — SUBTLE HERO ENHANCEMENT            */
/* ================================================= */

/* adds slight depth so hero stands apart from sections */
.page-header {
  box-shadow: 0 2px 10px rgba(43, 80, 120, 0.06);
}

/* ================================================= */
/* BRAND TEXT EMPHASIS (AI YYC LINE)                */
/* ================================================= */

.page-header h1 span {
  color: var(--accent-mid);
  font-weight: 500;
}

/* ================================================= */
/* OPTIONAL: IMPROVE SECTION FLOW (EXECUTIVE FEEL)  */
/* ================================================= */

/* slightly tighter vertical rhythm between sections */
section {
  padding: 42px 20px;
}

/* reduce visual “grid heaviness” on first impression */
.roles-grid {
  gap: 26px;
}