/* Main Format - General*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/*Welcome Section*/
.welcome-section {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 2em auto;
  gap: 2em;
  padding: 0 1em;
}

/*Teacher Picture*/
.welcome-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Text on Welcome Page */
.welcome-text {
  flex: 1;
  text-align: right;
  line-height: 1.5;
  font-size: 1.1rem;
}

/*Format for the paragraph spacing*/
.welcome-text p {
  margin-bottom: 1.2em;
}


/* Header styles */
header {
  background-color: #75d2ad;
  padding: 1em;
  text-align: center;
}

.contact-info {
  font-size: 0.9em;
  margin-top: 0.5em;
}

/* Nav bar styles */
nav {
  background-color: #0c3b2e;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 1em;
  margin: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
}

nav ul li a:hover {
  background-color: #146c54;
  border-radius: 5px;
}

/* Main content */
main {
  padding: 1em;
  max-width: 900px;
  margin: auto;
}

/* Footer Style */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 1em 0;
  margin-top: 2em;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.2rem;
}

/*Services Page*/
main h2 {
  text-align: center;
  margin-bottom: 1.5em;
}

.lesson {
  background-color: #e6f0f3;
  border-radius: 8px;
  padding: 1.5em 2em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.lesson h3 {
  margin-top: 0;
  color: #0c3b2e;
}

.lesson p {
  margin: 0.5em 0;
}

/*Services Accordion*/
.accordion {
  margin-bottom: 2em;
}

.accordion-item {
  background-color: #e6f0f3;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 1em;
  overflow: hidden;
}

.accordion-label {
  background-color: #609d6c;
  color: #0c3b2e;
  cursor: pointer;
  padding: 1.2em 1.5em;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: bold;
  position: relative;
  transition: background-color 0.3s ease;
}

.accordion-label::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.accordion-label.active::after {
  content: '-';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5em;
  background-color: #ffffff;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.accordion-content p {
  margin: 0.8em 0;
}

.accordion-label.active + .accordion-content {
  padding: 1em 1.5em;
}

/* Modal/PopUp Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2em;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0c3b2e;
  font-weight: bold;
}

#openModalBtn {
  margin: 2em auto;
  display: block;
  padding: 0.8em 1.5em;
  background-color: #0c3b2e;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

#openModalBtn:hover {
  background-color: #146c54;
}

/*Scheduling Reminder format on Services Page*/
.schedule-reminder {
  text-align: center;
  margin-top: 2em;
  font-size: 1.1rem;
}

.schedule-reminder a {
  color: #0c3b2e;
  text-decoration: underline;
  font-weight: bold;
}

.schedule-reminder a:hover {
  color: #146c54;
}

/*Scheduling Page*/
.schedule-form {
  max-width: 600px;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.schedule-form label {
  font-weight: bold;
}

.schedule-form input,
.schedule-form select,
.schedule-form textarea {
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.schedule-form button {
  padding: 0.8em;
  background-color: #0c3b2e;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.schedule-form button:hover {
  background-color: #146c54;
}

/*Gallery Page */
.gallery-form {
  max-width: 600px;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-form label {
  font-weight: bold;
}

.gallery-form input[type="text"],
.gallery-form textarea,
.gallery-form input[type="file"] {
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.gallery-form button {
  padding: 0.8em;
  background-color: #0c3b2e;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.gallery-form button:hover {
  background-color: #146c54;
}

/* Gallery Carousel */
.carousel-container {
  position: relative;
  max-width: 700px;
  margin: 1.5em auto 3em auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #061908;
  height: 400px; /* Fixed height to keep layout stable */
}

.carousel-slide {
  position: relative;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none; /* Disable clicks on hidden slides */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto; /* Enable clicks on active slide */
  position: relative;
}

.carousel-item img,
.carousel-item video {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  object-fit: contain; /* keep aspect ratio inside container */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #123617;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(12, 59, 46, 1);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}


/*Contact Page*/
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1000px;
  margin: 2em auto;
  padding: 1em;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6em;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.8em;
  background-color: #0c3b2e;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #146c54;
}

.contact-side {
  flex: 1;
  text-align: center;
}

.contact-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
}

.contact-details p {
  margin: 0.5em 0;
  font-size: 1rem;
}

