/* ============================= */
/* RESET & GLOBAL STYLING */
/* ============================= */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #FFFDD0;
  color: #ff33a2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

p {
  text-align: center;
}

/* Global Image Styling */
img {
  border: 3px solid #ff33a2;
  border-radius: 5px;
  box-shadow: 5px 5px 5px #ff33a2;
}

/* ============================= */
/* GLOBAL H4 STYLING */
/* ============================= */

h4 {
  font-size: 1.5em; /* Scales h4 text 1.5 times larger */
  font-weight: bold; /* Ensures it stands out */
  margin-bottom: 15px; /* Adds spacing below */
  text-align: center; /* Centers the text */
  color: #e60073; /* Ensures consistent text color */
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  background-color: #FFFDD0;
}

.logo img {
  max-width: 150px;
  height: auto;
  margin-right: 20px;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  text-align: center;
  margin-left: -150px;
}

.header-text h1 {
  font-size: 4em;
  margin-bottom: 5px;
}

.header-text h2 {
  font-size: 2.4em;
  color: #ff33a2;
  margin-top: 15px;
}

/* ============================= */
/* NAVIGATION */
/* ============================= */

nav {
  background-color: #ff33a2;
  text-align: center;
  padding: 10px 0;
  border-top: 2px solid #FFFDD0;
  border-bottom: 2px solid #FFFDD0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #FFFDD0;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 5px 10px;
  display: inline-block;
}

nav ul li a:hover,
nav ul li a:focus {
  background-color: #e60073;
  border-radius: 5px;
}

nav ul li a.current {
  text-decoration: underline;
  font-weight: bold;
  text-underline-offset: 5px;
  text-decoration-color: #FFFDD0;
}

/* ============================= */
/* MAIN CONTENT */
/* ============================= */

main {
  padding: 20px;
  background-color: #FFFDD0;
  color: #ff33a2;
}

main h3 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

/* Article Styling */
article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Image Styling */
.image_left,
.image_right {
  width: 30%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

/* Paragraph Styling */
.blurb {
  flex: 1;
  text-align: justify;
  line-height: 1.6;
  font-size: 1em;
}

.blurb a,
p a {
  color: #e60073;
  font-weight: bold;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
  background-color: #ff33a2;
  color: #FFFDD0;
  text-align: center;
  padding: 20px 0;
  border-top: 2px solid #FFFDD0;
}

footer h4 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

footer ul li {
  font-size: 1.1em;
  font-weight: bold;
  padding: 5px 10px;
}

footer ul li a,
footer ul li span {
  color: inherit;
  text-decoration: none;
}

footer ul li a:hover {
  color: #ffffff;
}

/* ============================= */
/* TABLE STYLING */
/* ============================= */

.class-schedule {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
  background-color: #FFFDD0;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #ff33a2;
  border-radius: 5px;
}

.class-schedule thead th {
  background-color: #ff33a2;
  color: #FFFDD0;
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
}

.class-schedule tbody tr:nth-child(even) {
  background-color: #ffeef7;
}

.class-schedule tbody td {
  padding: 10px;
  text-align: center;
}

/* ============================= */
/* CONTACT FORM */
/* ============================= */

#contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #ff33a2;
  border-radius: 5px;
  background-color: #FFFDD0;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #e60073;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ff33a2;
  border-radius: 5px;
  margin-top: 5px;
}
/* ============================= */
/* FORM SUBMIT BUTTON */
/* ============================= */

.form-group button {
  display: inline-block;
  background-color: #e60073; /* Match primary theme color */
  color: #FFFDD0; /* Match text color for contrast */
  font-size: 1.1em;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

.form-group button:hover {
  background-color: #ff33a2; /* Slightly lighter shade on hover */
  transform: scale(1.05); /* Subtle hover effect */
}

/* ============================= */
/* GALLERY NAVIGATION */
/* ============================= */

.gallery-nav {
  background-color: #FFFDD0; /* Matches page background */
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.gallery-nav ul li a {
  display: inline-block;
  background-color: #FFFDD0; /* Cream background */
  color: #e60073; /* Pink text */
  font-weight: bold;
  font-size: 1em;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery-nav ul li a:hover {
  background-color: #e60073; /* Pink background */
  color: #FFFDD0; /* Cream text */
}

/* ============================= */
/* GALLERY GRID */
/* ============================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 300px;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #ff33a2; /* Pink border */
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  z-index: 10;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================= */
/* MODAL */
/* ============================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFFDD0;
  border-radius: 5px;
  border: 3px solid #ff33a2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.modal-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensure full visibility */
  object-position: center;
  display: block;
  margin: auto;
  border-radius: 5px;
}

.modal .close-button {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 2em;
  color: #FFFDD0;
  background: #e60073;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal .close-button:hover {
  background: #ff33a2;
}

/* ============================= */
/* GALLERY SECTION HEADINGS (h4) */
/* ============================= */

.gallery-event h4 {
  font-size: 1.8em; /* Keep the updated font size */
  margin-top: 30px; /* Add more space below the h4 */
  text-align: center;
  color: #e60073;
}

/* RETURN TO TOP BUTTON */
.return-top {
  text-align: center;
  margin-top: 20px; /* Adjusted to prevent too much distance from the images */
}

.return-top a {
  display: inline-block;
  background-color: #e60073;
  color: #FFFDD0;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.return-top a:hover {
  background-color: #ff33a2;
  transform: scale(1.05);
}


/* ============================= */
/* RESPONSIVE ADJUSTMENTS */
/* ============================= */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
  }

  .gallery-grid img:hover {
    transform: scale(1.05);
  }

  .gallery-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-nav ul li a {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  .return-top a {
    font-size: 0.9em;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-grid img:hover {
    transform: scale(1.03);
  }

  .gallery-nav ul li a {
    font-size: 0.8em;
    padding: 5px 8px;
  }

  .return-top a {
    font-size: 0.8em;
    padding: 5px 8px;
  }
}
/* ============================= */
/* RESPONSIVE HEADER & NAVIGATION */
/* ============================= */

/* General Mobile Adjustments */
@media (max-width: 768px) {
  /* Header Styling */
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .logo img {
    max-width: 120px; /* Slightly smaller logo for mobile */
    margin: 0 0 10px 0; /* Add space below the logo */
  }

  .header-text {
    margin-left: 0; /* Remove negative margin */
    text-align: center;
  }

  .header-text h1 {
    font-size: 2.5em; /* Smaller font size for title */
  }

  .header-text h2 {
    font-size: 1.5em; /* Smaller font size for subtitle */
    margin-top: 5px;
  }

  /* Navigation Styling */
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 1em;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  /* Header Text Adjustments */
  .header-text h1 {
    font-size: 2em;
  }

  .header-text h2 {
    font-size: 1.2em;
  }

  /* Logo Adjustments */
  .logo img {
    max-width: 100px; /* Further reduce logo size */
  }

  /* Navigation Adjustments */
  nav ul {
    gap: 5px;
  }

  nav ul li a {
    font-size: 0.9em;
    padding: 6px 8px;
  }
}
/* ============================= */
/* ARTICLE RESPONSIVE STYLING */
/* ============================= */

/* Default Article Styling */
article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* Image Styling */
.image_left,
.image_right {
  width: 30%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

/* Text Styling */
.blurb {
  flex: 1;
  text-align: justify;
  line-height: 1.6;
  font-size: 1em;
  margin: 0 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  article {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image_left,
  .image_right {
    width: 60%; /* Larger images on mobile */
    max-width: 300px;
    margin-bottom: 10px;
  }

  .blurb {
    text-align: center;
    font-size: 0.95em;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .image_left,
  .image_right {
    width: 80%; /* Larger images on smaller screens */
    max-width: 250px;
  }

  .blurb {
    font-size: 0.9em;
    margin: 5px 0;
  }
}
