/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  padding: 0;
}
header{
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: black;
}
.app-logo {
    height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  height: 90px;
  min-height: 90px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem 4rem;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Roboto', Arial, sans-serif;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.2s;
  padding: 1.5rem 0.5rem;
}

.nav-links a:hover {
  color: #2563eb;
}

.search-bar-btn {
  padding: 0.7rem 2rem;
  border-radius: 28px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
  letter-spacing: 0.03em;
  outline: none;
}

.search-bar-btn:hover, .search-bar-btn:focus {
  background: #1741a6;
  box-shadow: 0 4px 16px rgba(37,99,235,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* Remove old search-bar input styles */
.search-bar, .search-bar input[type="text"] {
  display: none !important;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background: #222 url("images/LibraryBanner.JPG") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'Kanit', Arial, sans-serif;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Quote Styling */
.hero-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-quote p {
  font-size: 1.8rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 400;

}

.quote-author {
  display: block;
  font-size: 1.2rem;
  color: #ffd700;
  font-style: normal;
  font-weight: 500;
}

html {
  scroll-behavior: smooth;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1rem 0 1rem;
}

.how-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
  font-family: 'Kanit', Arial, sans-serif;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2.5rem;
  justify-items: center;
  margin-bottom: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  width: 100%;
  max-width: 400px;
  min-height: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  font-family: 'PT Sans', Arial, sans-serif;
  border: 1px solid #eee;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  transform: translateY(-6px) scale(1.04);
}

.card-icon {
  font-size: 1.6rem;
  color: #fff;
  background: #111;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #111;
  font-family: 'Kanit', Arial, sans-serif;
}

.card p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.7;
  font-family: 'PT Sans', Arial, sans-serif;
}

footer {
  background: #111;
  padding: 2rem 0 1rem 0;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #222;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  font-family: 'Edu SA Hand', cursive;
}

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

.footer-content a:hover {
  color: #ccc;
}

.timeline {
  position: relative;
  margin: 2rem auto 1.5rem auto;
  max-width: 500px;
  padding-left: 2.5rem;
  border-left: 2px solid #111;
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -1.6rem;
  top: 0.1rem;
  background: #111;
  color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1;
}

.timeline-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1.2rem 1.5rem;
  margin-left: 1.5rem;
  min-width: 0;
  flex: 1;
  border: 1px solid #eee;
}

.timeline-content h3 {
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #111;
}

.timeline-content p {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 1.5rem;
    max-width: 98vw;
  }
  .timeline-content {
    padding: 1rem 0.7rem;
    margin-left: 1.2rem;
  }
  .timeline-icon {
    left: -1.2rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
  }
  
  /* Mobile responsive styles for hero quote */
  .hero-quote {
    max-width: 95%;
    margin: 0 auto;
  }
  
  .hero-quote p {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .quote-author {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .card-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card {
    max-width: 95%;
    min-height: 200px;
    padding: 2rem 1rem 1.5rem 1rem;
  }
  .card-icon {
    font-size: 1.2rem;
    width: 1.6rem;
    height: 1.6rem;
  }
  .navbar {
    flex-direction: column;
    height: auto;
    min-height: 70px;
    padding: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .hero {
    min-height: 350px;
    height: 80vh;
  }
  
  /* Tablet responsive styles for hero quote */
  .hero-quote {
    max-width: 90%;
  }
  
  .hero-quote p {
    font-size: 1.5rem;
    line-height: 1.5;
  }
  
  .quote-author {
    font-size: 1.1rem;
  }
  
  .how-section {
    min-height: 80vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.zigzag-timeline {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 3rem auto 2rem auto;
  min-height: 340px;
}

.wavy-line {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 320px;
  pointer-events: none;
}

.rocket-anim {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  z-index: 2;
  animation: rocket-fly 6s linear infinite;
}

@keyframes rocket-fly {
  0%   { transform: translate(30px, 30px) rotate(-10deg); }
  20%  { transform: translate(200px, 30px) rotate(10deg); }
  30%  { transform: translate(370px, 30px) rotate(20deg); }
  40%  { transform: translate(370px, 130px) rotate(40deg); }
  50%  { transform: translate(200px, 130px) rotate(60deg); }
  60%  { transform: translate(30px, 130px) rotate(80deg); }
  70%  { transform: translate(30px, 230px) rotate(100deg); }
  80%  { transform: translate(200px, 230px) rotate(120deg); }
  90%  { transform: translate(370px, 230px) rotate(140deg); }
  100% { transform: translate(30px, 30px) rotate(-10deg); }
}

.zigzag-step {
  position: relative;
  width: 75%;
  min-width: 320px;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  z-index: 1;
}

.step-left {
  left: -80px;
  flex-direction: row;
  margin-left: 0;
  margin-right: auto;
  justify-content: flex-start;
}

.step-right {
  left: 80px;
  flex-direction: row-reverse;
  margin-right: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.step-number {
  background: #111;
  color: #fff;
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.zigzag-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 2.2rem 2.5rem;
  min-width: 0;
  flex: 1;
  border: 1px solid #eee;
}

.zigzag-content h3 {
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #111;
}

.zigzag-content p {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 1.15rem;
  color: #333;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .zigzag-step {
    width: 98%;
    min-width: 0;
    margin-bottom: 2rem;
  }
  .zigzag-content {
    padding: 1.2rem 0.7rem;
  }
  .zigzag-content h3 {
    font-size: 1.1rem;
  }
  .zigzag-content p {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .zigzag-timeline {
    max-width: 98vw;
    min-height: 400px;
  }
  .zigzag-step, .step-left, .step-right {
    width: 100%;
    left: 0 !important;
    flex-direction: row;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }
  .wavy-line {
    height: 400px;
  }
}

@media (max-width: 900px) {
  .step-left, .step-right {
    left: 0 !important;
    flex-direction: row;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }
}

#how-to-return.how-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin-left: 60px;
}

@media (max-width: 900px) {
  #how-to-return.how-section {
    margin-left: 0;
  }
}
