
/* Official Government Portal Design System */
:root {
  --portal-black: #1b1b1b;
  --portal-header-bg: #1b1b1b;
  --portal-hero-bg: #d0f0ed;
  --portal-hero-accent: #1d7065;
  --portal-blue: #0066cc;
  --portal-text: #1b1b1b;
  --portal-muted: #565656;
  --portal-border: #dcdcdc;
  --portal-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--portal-font);
  color: var(--portal-text);
  background-color: #ffffff;
  line-height: 1.5;
}

/* TOP HEADER NAV BAR */
header.portal-header {
  background-color: var(--portal-header-bg);
  color: #ffffff;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.portal-header-left svg {
  width: 36px;
  height: 36px;
}

.portal-site-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.portal-search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
}

.portal-search-bar input {
  border: none;
  padding: 0.5rem 0.75rem;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
}

.portal-search-bar button {
  background: white;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: #1b1b1b;
}

.portal-nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.portal-nav-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-nav-right a:hover {
  text-decoration: underline;
}

/* BREADCRUMBS */
.portal-breadcrumb {
  max-width: 1200px;
  margin: 1rem auto 0.5rem auto;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  color: var(--portal-muted);
}

.portal-breadcrumb a {
  color: var(--portal-blue);
  text-decoration: underline;
}

/* HERO SECTION MATCHING ONTARIO.CA DEMO LAYOUT */
.portal-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  max-width: 100%;
  min-height: 380px;
  background-color: var(--portal-hero-bg);
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.portal-hero-text {
  padding: 4rem 3rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--portal-black);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.portal-hero-text p {
  font-size: 1.25rem;
  color: #2d3748;
  line-height: 1.45;
}

.portal-hero-image-wrapper {
  background-size: cover;
  background-position: center;
  position: relative;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
}

.portal-hero-accent-block {
  background-color: var(--portal-hero-accent);
}

/* CONTENT GRID BELOW HERO */
.portal-grid-container {
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.portal-card-item {
  display: flex;
  flex-direction: column;
}

.portal-card-item h3 a {
  font-size: 1.35rem;
  color: var(--portal-blue);
  text-decoration: underline;
  font-weight: 700;
  line-height: 1.3;
}

.portal-card-item h3 a:hover {
  color: #004080;
}

.portal-card-item p {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  color: #333333;
  line-height: 1.45;
}

.portal-card-meta {
  font-size: 0.85rem;
  color: var(--portal-muted);
  margin-top: 0.4rem;
}

/* POST PAGE SPECIFIC STYLES */
.post-page-container {
  max-width: 800px;
  margin: 2rem auto 4rem auto;
  padding: 0 1.5rem;
}

.post-page-container h1 {
  font-size: 2.5rem;
  color: var(--portal-black);
  margin-bottom: 1rem;
}

.post-page-container .meta-info {
  font-size: 0.9rem;
  color: var(--portal-muted);
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.post-page-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-page-container h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
}

.post-page-container ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-page-container li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* FOOTER */
footer.portal-footer {
  background-color: var(--portal-black);
  color: #ffffff;
  padding: 3rem 1.5rem;
  border-top: 4px solid var(--portal-hero-accent);
}

.portal-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.portal-footer-content a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .portal-hero-container { grid-template-columns: 1fr; }
  .portal-hero-image-wrapper, .portal-hero-accent-block { display: none; }
  .portal-grid-container { grid-template-columns: 1fr; }
}
