@import url('https://fonts.googleapis.com/css2?family=Oranienbaum&display=swap');

/* Reset and base styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Oranienbaum', serif;
  font-weight: 400;
  font-style: normal;
}



/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;  /* fixed height: adjust if different */
  background: #222;
  padding: 10px 0;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;  /* vertically center the ul */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}


.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  color: #f39c12;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: #222;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
}

.typing-container {
  font-size: 5rem;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 10px;
}

.cursor {
  display: inline-block;
  background-color: white;
  width: 3px;
  animation: blink 0.7s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%, 100% {opacity: 1;}
  50% {opacity: 0;}
}

/* Timeline Section */
.timeline {
  max-width: 700px;
  margin: 50px auto;
  padding: 0 20px;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  margin: 20px 0;
  background: #eee;
  padding: 15px 20px;
  border-radius: 8px;
}

/* Timeline item visible class */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  .typing-container {
    font-size: 1.5rem;
    padding: 15px 20px;
  }
  .navbar ul {
    gap: 15px;
  }
}

/* Blog Section */
.blog-section {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 20px;
  font-family: 'Oranienbaum', serif;
}

.blog-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.blog-post {
  margin-bottom: 40px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.feature-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.blog-post h2 {
  margin-top: 15px;
  font-size: 1.8rem;
}

.blog-post p {
  margin: 10px 0 15px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.read-more {
  color: #f39c12;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
  color: #363636;  /* Make sure icons inherit this color */
}

.social-links a:hover {
  transform: scale(1.2);
  color: #555; /* Slightly lighter on hover */
}

/* Timeline Section with S shape */
.timeline-section {
  margin-top: 60px;
}

.timeline-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 8px;
  color: #f39c12;
  text-align: center;
}

.timeline-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Central vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #363636;
  z-index: 0;
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.timeline-node {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 100px;
  background: #363636;
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #f5f5f5;
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  z-index: 2;
  transform: translateY(-50%);
  left: 50%;
  transform-origin: center;
  line-height: 1.1;
  white-space: nowrap;
}

/* Card styling */
.timeline-card {
  background: #363636;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 18px 24px;
  max-width: 320px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  color: #f5f5f5;
}

/* Alternate left/right positioning */
.timeline-event.left {
  left: 0;
  flex-direction: row-reverse;
  justify-content: flex-end;
  text-align: right;
}

.timeline-event.left .timeline-card {
  margin-right: 40px;
}

.timeline-event.left .timeline-node {
  left: 100%;
  transform: translate(-50%, -50%) rotate(-15deg);
}

.timeline-event.right {
  left: 50%;
  justify-content: flex-start;
  text-align: left;
}

.timeline-event.right .timeline-node {
  left: 0;
  transform: translate(-50%, -50%) rotate(15deg);
}

.timeline-event.right .timeline-card {
  margin-left: 40px;
}

/* Responsive for small screens */
@media (max-width: 700px) {
  .timeline-container::before {
    left: 20px;
  }
  .timeline-event,
  .timeline-event.left,
  .timeline-event.right {
    width: 100%;
    left: 0 !important;
    flex-direction: row !important;
    text-align: left !important;
    padding-left: 60px;
  }
  .timeline-event .timeline-node {
    left: 20px !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
  }
  .timeline-event .timeline-card {
    margin: 0 0 20px 20px !important;
    max-width: none;
  }
}

/* Courses Section */
.courses-section {
  max-width: 840px;
  margin: 40px auto;
  padding: 0 30px;
}

.courses-category {
  background: #fafafa;
  border-radius: 2px;
  padding: 40px 30px 30px 30px;
  margin-bottom: 32px;
  box-shadow: 0 2px 2px rgba(0,0,0,0.06);
}

.courses-category h2 {
  font-size: 2rem;
  font-family: serif;
  margin: 0 0 8px 0;
}

.lesson-count {
  color: #666;
  font-size: 1rem;
  margin-bottom: 16px;
  display: block;
}

.course-list {
  margin-top: 18px;
}

.course-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  margin-right: 16px;
  border-radius: 6px;
  box-shadow: 0 0 2px #ccc;
}

.course-info {
  flex: 1;
}

.course-title {
  font-size: 1.18rem;
  font-weight: bold;
  font-family: serif;
  display: block;
  margin-bottom: 2px;
}

.course-desc {
  color: #888;
  font-size: 0.96rem;
  margin-bottom: 8px;
  display: block;
}


.course-item {
  display: flex;
  align-items: center;  /* This will vertically center items */
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 16px 18px;
  margin-bottom: 18px;
  gap: 16px; /* space between items */
}


.course-info {
  flex: 1; /* take all available space */
}

.complete-btn {
  margin-left: auto; /* push button to the right */
  background-color: #33cc99;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.complete-btn:hover {
  background-color: #28a178;
}


.course-done-btn {
  margin-left: auto;              /* push to right */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px dashed #aaa;        /* dashed border */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: white;              /* circle background */
  transition: border-color 0.2s, background 0.25s;
  position: relative;
  box-sizing: border-box;
}
.course-done-btn:after {
  /* Checkmark SVG, hidden by default */
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s;
}
.course-done-btn.done {
  border: 2px solid #33cc99;     /* filled and colored */
  background: #33cc99;
  animation: pop .17s ease;
}
.course-done-btn.done:after {
  /* SVG checkmark, shown when completed */
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='13' viewBox='0 0 18 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7L7 12L16 2' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@keyframes pop {
  0%   { transform: scale(1);}
  80%  { transform: scale(1.18);}
  100% { transform: scale(1);}
}
.course-done-btn:focus {
  outline: 2px solid #33cc99;
  outline-offset: 2px;
}



a {
  text-decoration: none; /* Remove underline from all links */
  color: inherit; /* Inherit text color */
}

a:hover .course-item {
  background-color: #f0f0f0; /* Or any highlight color you want */
  cursor: pointer; /* show pointer on hover */
  transition: background-color 0.3s ease;
}


@font-face {
  font-family: 'AmpersandForest';
  src: url('/fonts/The Ampersand Forest - Carollo Playscript Medium.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

.blog-post-container blockquote {
  font-style: normal;        /* if you want to remove italic */
  font-size: 0.85rem;
  margin: 20px 0 30px;
  padding-left: 0;           /* remove left padding */
  border-left: none;         /* remove the left border */
  color: #333;               /* adjust text color */
  background: none;          /* remove background */
  font-family: 'AmpersandForest', cursive;
}

code {
  font-style: normal;        /* if you want to remove italic */
  font-size: 1rem;
  margin: 20px 0 30px;
  padding-left: 0;           /* remove left padding */
  border-left: none;         /* remove the left border */
  color: #333;               /* adjust text color */
  background: none;          /* remove background */
  font-family: 'AmpersandForest', cursive;
}

.video-box iframe{
  border: solid 3px #eeeeee;
  margin-top: 5%;
}

.video-caption {
  margin-top: 0px;
  display: block;
  justify-content: space-between;
  align-items: center;
  background: hsl(0,0%,13.2%);
  color: #eeeeee;
  font-family: 'Oranienbaum', serif;
  font-size: 15px;
  padding: 6px 14px;
  letter-spacing: 0.08em;
}


.typing-hero {
  /* place it lower on the page */
  margin-top: 5%;      /* adjust as needed */
  text-align: center;
}

.typing-container {
  font-size: 1.5rem;      /* example */
}


.blog-section {
  padding: 2rem;
}

/* Flex container */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Card as a flex item */
.blog-card {
  display: block;              /* make the whole box clickable */
  flex: 1 1 min(320px, 100%);
  padding: 1.5rem;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Typography inside cards */
.blog-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.blog-card p {
  margin: 0;
  line-height: 1.5;
}

/* Hover / focus states */
.blog-card:hover,
.blog-card:focus-visible {
  background: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* Responsive tweak */
@media (max-width: 640px) {
  .blog-grid {
    flex-direction: column;
  }
}
pre code {
  display: block;
  padding: 1rem;
  background: #0b1120;
  color: #e5e7eb;
  border-radius: 6px;
  font-family: "Fira Code", "JetBrains Mono", monospace;
  font-size: 0.8rem;
  overflow-x: auto;
}
