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

body {
  font-family: "Noto Sans JP", "Quicksand", sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fafafa;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  border-bottom: 1px solid #ddd;
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  height: 80px;
  width: auto;
}

@media (max-width: 480px) {
  .logo {
    height: 60px;
  }
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-size: 1.1rem;
  padding: 5px 10px;
  transition: 0.2s;
  font-weight: 600;
}

.nav a:hover,
.nav a.active {
  color: #4a2f75;
}

/* --------------------------------------------------
   HEADINGS
-------------------------------------------------- */
h1,
h2 {
  font-family: "Quicksand", "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: #4a2f75;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-align: center;
}

/* --------------------------------------------------
   CAROUSEL (FULL WIDTH)
-------------------------------------------------- */
.carousel {
  width: 100%;
  max-width: none;
  overflow: hidden;
  margin: 20px 0;
  padding: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease;
  width: 100%;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .carousel img {
    height: 160px;
  }
}

/* --------------------------------------------------
   SECTIONS (900px centered)
-------------------------------------------------- */
section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.about p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

/* --------------------------------------------------
   PAGE LINKS (Courses / Fees top links)
-------------------------------------------------- */
.page-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 30px;
}

.page-links a {
  text-decoration: none;
  font-weight: 700;
  color: #4a2f75;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.page-links a:hover {
  background: #f1e9ff;
  color: #6a45a0;
}

/* --------------------------------------------------
   CLASS NAVIGATION (Courses page)
-------------------------------------------------- */
.class-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
  list-style: none;
}

.class-nav a {
  text-decoration: none;
  font-weight: 700;
  color: #4a2f75;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.class-nav a:hover {
  background: #f1e9ff;
  color: #6a45a0;
}

/* --------------------------------------------------
   TABLES (Courses & Fees)
-------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 1rem;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
}

table th {
  background: #f7f2ff;
  color: #4a2f75;
  font-weight: 700;
}

table tr:nth-child(even) {
  background: #faf7ff;
}

/* --------------------------------------------------
   MAP
-------------------------------------------------- */
.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

.social-links a {
  text-decoration: none;
  background: #4a2f75;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  transition: 0.2s;
}

.social-links a:hover {
  background: #6a45a0;
}

/* --------------------------------------------------
   CONTACT FORM
-------------------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background: #4a2f75;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
}

.contact-form button:hover {
  background: #6a45a0;
}

/* --------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #4a2f75;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;
}

#back-to-top:hover {
  background: #6a45a0;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer.dark {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* --------------------------------------------------
   RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 768px) {
  .nav {
    gap: 15px;
  }

  .nav a {
    font-size: 1rem;
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .nav a {
    padding: 4px 6px;
  }
}