/* ================================================= Global setup  ================================================*/
/* ----------------------------------------- font ----------------------------------------------- */
.raleway-uniquifier {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    }

body {
  font-family: 'Raleway', sans-serif;
}
/* --------------------------------------------- logo -------------------------------------- */

.logo img {
  height: 50px;   /* adjust this */
  width: auto;
  display: block;
}
/* ------------------------------------ common layout ----------------------------------------------*/

.text-container{
  max-width: 800px;        /* controls width */
  margin: 60px auto;       /* center + vertical spacing */
  padding: 0 20px;         /* space on small screens */

  font-size: 1.1rem;
  line-height: 1.7;

  color: #333;
  text-align: left;
}

/* ------------------------------------------- navbar -------------------------------------------- */

body {
      margin: 0; 
      font-family: 'Raleway', sans-serif;
      height: 2000px;
      /*this is the dist btwn the icon to the top edge of the web*/
    } /* this is the font of the bars*/

    /* Top bar, the region that lies the hamburger icon */
    

    .navbar {
      position: sticky;
      top: 0;
      display: flex;
      align-items: center;
      gap: 24px;
      padding: 10px 20px;
      background: white;
      border-bottom: 1px solid #ddd;
      z-index: 1000;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    .logo {
      display: flex;
      align-items: center;
      text-decoration: none;
    }

    .logo img {
      height: 60px;
      width: auto;
      display: block;
    }

    .pill-nav {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pill-nav a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: black;
      text-align: center;
      padding: 12px 18px;
      text-decoration: none;
      font-size: 17px;
      border-radius: 999px;
    }

    .pill-nav a:hover {
      background-color: #ddd;
      color: black;
    }

    .menu-btn {
      width: 40px;
      height: 40px;
      border: none;
      background: none;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 7px;
      padding: 0;
      flex-shrink: 0;
    }

    .menu-btn span {
      display: block;
      height: 3px;
      width: 24px;
      background: black;
      border-radius: 2px;
    }

    .menu-btn:hover span {
      background: #1e88e5;
    }

    .nav-links {
      display: none;
      flex-direction: column;
      background: white;
      position: absolute;
      top: 80px;
      left: 20px;
      width: 180px;
      border: 1px solid #ddd;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links a {
      padding: 12px 16px;
      text-decoration: none;
      color: black;
      border-bottom: 1px solid #eee;
    }

    .nav-links a:hover {
      background: #f5f5f5;
    }

    .nav-links.show {
      display: flex;
    }

    .search-box {
      margin-left: auto;
      display: flex;
      align-items: center;
    }

    .search-box input[type="text"] {
      padding: 8px 14px;
      border: none;
      outline: none;
      font-size: 17px;
      background: transparent;
    }

/* ============================================ Home page 1 =========================================== */

/* hero part! */

/* ------------ Animation -----------------*/

.hero-title,
.hero-subtitle,
.hero-text-p,
.hero-image {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.hero-subtitle {
  animation-delay: 0.35s;
}

.hero-text-p{
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ------------------------ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 8%;
  background: linear-gradient(135deg, rgba(219,234,254,0.95), rgba(96,165,250,0.9));
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  font-family: 'Raleway', sans-serif;
  padding-left: 120px;
  width: 50%;
  flex: 1;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #1e3a8a;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-text p {
  font-size: 18px;
}


.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

.hero-wave path {
  fill: white; /* same as page 2 background */
}
/* ----------------------------------- intro img slide show ---------------------------------------------*/
/* below can be used to test space in between sections */
/* * {
  outline: 1px solid red;
} */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* General 2-column section */
.two-column-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;   /* top-align both sides */
  gap: 60px;
  padding: 80px;
  background: white;
}

/* Shared column behavior */
.column {
  flex: 1;
  min-width: 0;
}

/* Left slideshow column */
.slideshow-column {
  flex: 1;
  min-width: 0;
}

/* Right text column */
.text-column {
  flex:1;
  min-width: 0;
  max-width: 520px;
  text-align: left;
  margin: 0;
}

.text-column h1,
.text-column h2,
.text-column p {
  text-align: left;
}
.text-column h1,
.text-column h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.text-column p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-top: 0;
  margin-bottom: 16px;
}

/* Sample image column */
.image-column {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.image-column img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  display: block;
}

.slideshow-container {
  width: 100%;
  max-width: 680px;
}

/* each slide */
.slide {
  display: none;
  width: 100%;
}

/* image */
.slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* caption under image */
.caption {
  text-align: center;
  margin-top: 14px;
  font-size: 1.1rem;
  color: #333;
}

/* dots area */
.dots-container {
  text-align: center;
  margin-top: 18px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #c7c7c7;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #555;
}

/* fade effect */
.fade {
  animation: fadeEffect 1.2s ease;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* mobile */
@media (max-width: 900px) {
  .intro-section {
    flex-direction: column;
    padding: 50px 24px;
    gap: 40px;
  }

  .intro-right {
    max-width: 100%;
    text-align: center;
  }

  .slide img {
    height: 260px;
  }
}

/* --------------------------------- hero slogan ------------------------------------- */
.quote-box-bg {
  position: absolute;
  max-height: 250px;
  background: linear-gradient(135deg, rgba(219,234,254,0.95), rgba(96,165,250,0.9));
}
/* above: wish to but not complete*/

.quote-box {
  quotes: "“" "”";
  position:relative;
  font-size: 1.2rem;
  margin: 80px auto;
  color: #333333;
  max-width: 800px;
  padding: 40px 60px;
}

.quote-box::before {
  content: open-quote;
  top: -20px;
  left: 10px;
}

.quote-box::after {
  content: close-quote;
  bottom: -20px;
  right: 10px;
}

.quote-box::before,
.quote-box::after {
  position: absolute;
  font-size: 120px;
  color: rgba(0, 0, 0, 1);
}

.quote-box p {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 1.8rem;
  color: #444;
}

.quote-author {
  margin-top: -10px;
  text-align: right;
  padding-right: 150px;
  font-size: 1.5rem;
  color: #333;
}

/* --------------------------------- here are the three shortcuts to diff page ---------------------------------------*/

.column {
  flex:none;
  text-align: center;
}
    
.row {
  display: flex;
  justify-content: center;   /* ⭐ centers horizontally */
  align-items: center;       /* optional: vertical alignment */
  gap: 170px;
  }

.shortcut {
  padding:20px 40px;
}
  

/* ======================================== end of home page 1 ============================================== */

/* ================================================= id home page =================================================== */
/* ---------------------------------- intro course selection menu -------------------------------- */
.course-menu {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 40px;
  background-color:#ffffff 
}

.course-menu h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: #111;
}

.course-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 2px solid #ddd;
  text-decoration: none;
  color: #111;
  transition: all 0.3s ease;
}

.course-menu-item:hover {
  transform: translateX(6px);
}

.menu-text h3 {
  font-size: 2rem;
  margin: 0 0 8px 0;
}

.menu-text p {
  margin: 0;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.arrow {
  font-size: 2rem;
  color: #111;
  transition: transform 0.3s ease;
}

.course-menu-item:hover .arrow {
  transform: translateX(8px);
}
/* =========================================== college math page ======================================== */

.ocw-disclaimer {
  font-size: 0.9rem;
  color: #666;
  background: #f5f7fa;
  padding: 12px 16px;
  border-left: 4px solid #4a90e2;
  border-radius: 8px;
}

/* ------------------------------------------- course box -------------------------------------------------- */

.center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.courses-section {
  padding: 60px 40px;
  text-align: center;
}

.courses-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.course-box {
  display: block;
  text-decoration: none;
  color: black;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.course-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.course-content {
  padding: 20px;
  text-align: left;
}

.course-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.course-content p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #444;
}

/* ---------------------------------------------------------------------------------------------------------- */








