/* Educational.css */

/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1b2a;
  color: #fff;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background-color: #0d1b2a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-left: 0px;
  text-align: left;
  letter-spacing: 2px;
}

.white-text {
  color: #ffffff;
}

.red-text {
  color: #ff4d4d;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding-left: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
  color: #00b4d8;
}

/* Hero Section */
.hero {
  padding: 40px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 40px;
}

.my-word {
  color: #fff;
  font-weight: bold;
}

.journey-word {
  color: #00b4d8;
  font-weight: bold;
}

/* Journey Layout */
.journey-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.journey-column {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  position: relative;
}

.journey-column h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #00b4d8;
  text-align: left;
}

/* Journey Box */
.journey-box {
  background-color: transparent;
  border: 2px solid #00b4d8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
  text-align: left;
  color: #ccc;
}

/* Vertical Line */
.timeline-line {
  position: absolute;
  top: 95px;
  bottom: 40px;
  left: -20px;
  width: 2px;
  height: calc(100% - 100px);
  background-color: #00b4d8;
  z-index: 0;
}

/* Timeline Dot (outside left) */
.journey-box::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #00b4d8;
  border-radius: 50%;
}

/* Inner dot next to year */
.year-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.inner-dot {
  width: 10px;
  height: 10px;
  background-color: #00b4d8;
  border-radius: 50%;
}

.year {
  font-weight: bold;
  color: #00b4d8;
}

h4 {
  margin: 5px 0;
  color: #fff;
}

p {
  font-size: 14px;
  line-height: 1.6;
}

/* ----------------- Responsive Design ----------------- */

@media (max-width: 1024px) {
  header {
    padding: 25px 30px;
  }

  .logo {
    font-size: 24px;
  }

  nav ul {
    gap: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .journey-container {
    gap: 40px;
    padding: 0 15px;
  }

  .journey-column h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 25px;
  }

  .logo {
    font-size: 22px;
    margin-bottom: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .hero {
    padding: 25px 15px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .journey-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .journey-column {
    max-width: 100%;
  }

  .timeline-line {
    left: -15px;
  }

  .journey-box::before {
    left: -22px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 22px;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    padding-left: 0;
    margin: 0;
  }

  nav ul li {
    text-align: left;
  }

  nav ul li a {
    font-size: 14px;
  }

  .hero {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 22px;
  }

  .journey-column h3 {
    font-size: 20px;
    text-align: center;
  }

  .journey-box {
    padding: 15px;
  }

  .year-row {
    flex-direction: row;
    justify-content: center;
  }

  h4 {
    text-align: center;
  }

  p {
    text-align: center;
    font-size: 13.5px;
  }

  /* Show vertical line and dot in mobile */
  .timeline-line {
    display: block;
    position: absolute;
    top: 90px;
    bottom: 60px;
    left: -15px;
    width: 2px;
    height: calc(100% - 90px);
    background-color: #00b4d8;
    z-index: 0;
  }

  .journey-box::before {
    display: block;
    content: '';
    position: absolute;
    left: -22px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #00b4d8;
    border-radius: 50%;
  }
}
