@font-face {
  font-family: 'SF Pro Display';
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/sf-pro-display/files/sf-pro-display-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --color-primary: #2d6cdf;
  --color-secondary: #6c7a89; /* replaced yellow with a neutral blue-gray */
  --color-bg: #fff;
  --color-text: #222;
  --color-muted: #f7f7f7;
  --color-border: #eaeaea;
  --font-main: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: #f6f7fb;
  color: var(--color-text);
  line-height: 1.6;
}

.pane {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1.5px 4px rgba(0,0,0,0.03);
  margin: 2.5rem 0;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.2s;
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pane-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}
.pane-row > .pane {
  flex: 1 1 300px;
  min-width: 220px;
  margin: 0;
}
@media (max-width: 900px) {
  .pane-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.nav__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav__links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--color-primary);
}
.nav__logo {
  height: 32px;
  width: 32px;
  vertical-align: middle;
  margin-right: 0.5rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.hero {
  text-align: center;
  padding: 4rem 2rem 2rem 2rem;
  background: var(--color-muted);
}
.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #555;
}
.hero__brand-attribute {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: #1a4fa3;
}
.btn--secondary {
  background: var(--color-secondary);
  color: #fff;
}
.btn--secondary:hover {
  background: #49525c;
}

.main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.section {
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section--featured .cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  flex: 1 1 300px;
  min-width: 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 340px;
}
.card__actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  transition: margin-top 0.3s cubic-bezier(0.4,0.2,0.2,1), justify-content 0.3s cubic-bezier(0.4,0.2,0.2,1);
}
.card .btn {
  margin-top: 0.5rem;
  margin-bottom: 0;
  transition: margin-top 0.3s cubic-bezier(0.4,0.2,0.2,1), margin-bottom 0.3s cubic-bezier(0.4,0.2,0.2,1);
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.card__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary);
  text-decoration: underline;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
}
.newsletter-form button {
  min-width: 120px;
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-muted);
  color: #888;
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}

.categories {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 1rem 0 2rem 0;
  padding: 0;
}
.categories a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.categories a:hover {
  color: var(--color-secondary);
}

.about__profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.about__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 2px solid var(--color-primary);
}
.about__bio {
  flex: 1;
}
.about__bio h2 {
  margin-bottom: 0.5rem;
}
.about__socials {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}
.about__socials a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.about__socials a:hover {
  color: var(--color-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-main);
}
.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-form button {
  align-self: flex-end;
}

.section p,
.section h2,
.section h3 {
  margin-bottom: 1.75rem;
}
.btn,
.card__link,
.section a.btn {
  margin-top: 1rem;
}
.section--courses .card h3 {
  margin-bottom: 0.08rem;
}
.section--courses .card p {
  margin-bottom: 0.08rem;
}
.section--courses .card__actions {
  margin-top: 0.08rem;
}
.section--featured .card h3 {
  min-height: 2.5em;
  margin-bottom: 0.5rem;
}
.section--featured .card p {
  min-height: 3.5em;
  margin-bottom: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.4,0.2,0.2,1) 0.1s forwards;
}
.main, .pane, .card {
  will-change: opacity, transform;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  background: var(--color-primary);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 800px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--color-bg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    flex-direction: column;
    width: 200px;
    padding: 1rem 0.5rem;
    border-radius: 0 0 12px 12px;
    z-index: 1000;
  }
  .nav__links.open {
    display: flex;
  }
}

@media (max-width: 1200px) {
  .main {
    max-width: 98vw;
  }
  .pane {
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  .main {
    max-width: 100vw;
    padding: 0 0.1rem;
  }
  .pane, .pane.fade-in {
    max-width: 100vw;
    padding: 0.7rem 0.2rem;
    border-radius: 10px;
  }
  .card {
    min-width: 0;
    padding: 1rem 0.5rem;
  }
  .hero__brand-attribute {
    max-width: 90px;
  }
}
@media (max-width: 400px) {
  .main, .pane, .pane.fade-in {
    padding: 0 0.05rem;
  }
  .hero__brand-attribute {
    max-width: 60px;
  }
}
@media (min-aspect-ratio: 3/2) {
  .main, .pane {
    max-width: 80vw;
  }
  .hero__brand-attribute {
    max-width: 12vw;
  }
}
@media (max-aspect-ratio: 1/2) {
  .main, .pane {
    max-width: 98vw;
  }
  .hero__brand-attribute {
    max-width: 20vw;
  }
}
img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
.pane, .pane.fade-in {
  box-sizing: border-box;
}
.card {
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .section--featured .cards {
    flex-direction: column;
    gap: 1.5rem;
  }
  .main {
    padding: 0 0.5rem;
  }
  .nav__links {
    gap: 1rem;
  }
  .hero {
    padding: 2.5rem 1rem 1.5rem 1rem;
  }
}
@media (max-width: 700px) {
  .about__profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .about__avatar {
    width: 90px;
    height: 90px;
  }
  .pane {
    padding: 1.2rem 0.5rem;
    border-radius: 14px;
  }
}
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem;
  }
  .nav__brand {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .nav__links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
  }
  .nav__links a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
  .hero__brand-attribute {
    max-width: 90px;
  }
  .btn, .card .btn {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .pane, .pane.fade-in {
    padding: 0.7rem 0.2rem;
    border-radius: 10px;
    max-width: 100vw;
  }
  .card {
    min-width: 0;
    padding: 1rem 0.5rem;
  }
  .about__profile {
    flex-direction: column;
    gap: 1rem;
  }
  .about__bio {
    width: 100%;
  }
  .about__profile img {
    width: 80px !important;
    height: 80px !important;
  }
  .footer {
    padding: 1rem 0.2rem;
    font-size: 0.9rem;
  }
  .main {
    padding: 0 0.1rem;
  }
  .section h2, .section h3 {
    font-size: 1.2rem;
  }
  .section p {
    font-size: 1rem;
  }
} 

.pane__corner-image {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 2;
  pointer-events: none;
}

.pane__corner-image--large {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  max-width: 340px;
  min-width: 180px;
  height: auto;
  border-bottom-right-radius: 24px;
  border-top-left-radius: 32px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
}

.pane--courses {
  overflow: hidden;
  border-radius: 24px;
  position: relative;
} 

.pane--courses .section--courses {
  padding-right: 200px;
  padding-bottom: 60px;
}

@media (max-width: 700px) {
  .pane--courses .section--courses {
    padding-right: 20vw;
    padding-bottom: 20vw;
  }
} 

.cards--row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cards--row .card {
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 220px;
  min-height: 340px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 2rem 1rem;
  overflow: hidden;
}
.cards--row .card p {
  margin-bottom: 1rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  display: block;
  white-space: normal;
}
.cards--row .card img {
  margin-top: auto;
  margin-bottom: 0;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 900px) {
  .cards--row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .cards--row .card {
    max-width: 100%;
    min-width: 0;
  }
} 

/* Blog post card thumbnail styling */
.post-thumbnail {
  margin-top: 1.2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  height: 120px;
  object-fit: cover;
  align-self: center;
  background: #f7f7f7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: block;
}

.post-card {
  min-width: 250px;
  max-width: 400px;
  margin: 0 1rem 2rem 1rem;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1.5px solid #e0e7ef;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 380px;
  transition: box-shadow 0.2s;
}

.post-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  max-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card p {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 0;
  line-height: 1.4;
  max-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .post-card {
    min-width: 180px;
    max-width: 100%;
    padding: 1.2rem 0.7rem;
    height: 320px;
  }
  .post-thumbnail {
    max-width: 100%;
    height: 60px;
    border-radius: 5px;
  }
} 

.pane--post {
  max-width: 1200px;
  padding: 3rem 2.5rem;
  line-height: 1.7;
  font-size: 1.125rem;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);

/* Enhanced Blog Post Styling */
#post-content {
  line-height: 1.75;
  font-size: 1.15rem;
  color: #222;
  max-width: 100%;
  margin-top: 1.5rem;
}

#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: #1e293b;
}

#post-content h1 { font-size: 2rem; }
#post-content h2 { font-size: 1.75rem; }
#post-content h3 { font-size: 1.5rem; }
#post-content h4 { font-size: 1.25rem; }

#post-content p {
  margin-bottom: 1.5rem;
  color: #333;
}

#post-content ul,
#post-content ol {
  margin: 1.25rem 0;
  padding-left: 2rem;
}

#post-content li {
  margin-bottom: 0.75rem;
}

#post-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  font-style: italic;
  color: #555;
  border-radius: 8px;
}

#post-content code {
  background: #f4f4f4;
  font-family: monospace;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

#post-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 0.95rem;
}

#post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s;
}
#post-content a:hover {
  color: var(--color-secondary);
}
/* ========================================= */
/* Blog Post Content Styles          */
/* ========================================= */

/* General content container for better readability */
#post-content {
  font-size: 1.125rem; /* Slightly larger font for long-form reading */
  line-height: 1.75;
  color: #333; /* Softer than pure black */
}

/* --- Headings --- */
#post-content h2,
#post-content h3,
#post-content h4 {
  line-height: 1.4;
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-weight: 700;
  color: var(--color-text);
}

#post-content h2 {
  font-size: 1.9rem;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--color-border);
}

#post-content h3 {
  font-size: 1.6rem;
}

#post-content h4 {
  font-size: 1.3rem;
  color: var(--color-secondary);
}

/* --- Paragraphs and Links --- */
#post-content p {
  margin-bottom: 1.5em;
}

#post-content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid rgba(45, 108, 223, 0.2);
  transition: border-color 0.2s, background-color 0.2s;
}

#post-content a:hover {
  background-color: rgba(45, 108, 223, 0.08);
  border-bottom-color: var(--color-primary);
}

/* --- Lists (Unordered & Ordered) --- */
#post-content ul,
#post-content ol {
  margin: 0 0 1.5em 1.5em;
  padding-left: 1.2em;
}

#post-content li {
  margin-bottom: 0.6em;
  padding-left: 0.4em;
}

/* --- Blockquotes --- */
#post-content blockquote {
  margin: 2em 0;
  padding: 1em 1.8em;
  background-color: var(--color-muted);
  border-left: 5px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

#post-content blockquote p {
  margin-bottom: 0;
}

/* --- Code Blocks (Inline & Fenced) --- */
/* For inline code snippets */
#post-content :not(pre) > code {
  background: rgba(45, 108, 223, 0.1);
  color: var(--color-primary);
  padding: 0.25em 0.5em;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: "SF Mono", "Fira Code", monospace;
}

/* For larger, pre-formatted code blocks */
#post-content pre {
  background-color: #2a2a2e; /* Dark theme for code blocks */
  color: #f0f0f0;
  padding: 1.5rem;
  margin: 2em 0;
  border-radius: 12px;
  overflow-x: auto; /* Allow horizontal scrolling for long lines */
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

#post-content pre code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Images and Horizontal Rules --- */
#post-content img {
  margin: 2.5em auto;
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

#post-content hr {
  border: none;
  height: 2px;
  background-color: var(--color-border);
  margin: 3.5em auto;
}
  /* Add more custom styles for blog post panes here if needed */
} 
