/* ============================
  GLOBAL / BASE STYLES
============================ */
:root {
  --mhs-pink:    #d3948f;
  --mhs-navy:    #2c4c6d;  
  --mhs-blue-soft: #aec1d4; 
  --mhs-blue-mid:  #5e84aa; 
  --mhs-bg-soft: #fbf7f5;  
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

.events-header h1,
.about-inner h1,
.about-inner h3,
.home h2,
.home h1,
.gallery h1,
.contact h1,
.gallery-section h2 {
  letter-spacing: 0.04em;
  color: var(--mhs-navy);
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body,
html {
  line-height: 1.8;
}

.w3-bar .w3-button {
  padding: 16px;
}

/* Generic section padding */
.section {
  padding: 25px 16px 55px;
}

.section-soft-blue {
  background-color: var(--mhs-blue-soft);
}

.section-light-blue {
  background-color: #f3f6fa;
}

/* Shared page container */
.pageContainer {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Shared Tally form wrapper */
.form {
  padding: 20px 0;
  min-width: 250px;
  max-width: 700px;
  height: 300px;
  margin: auto;
}

iframe {
  width: 100%;
}

/* Navbar brand + links */
#myNavbar {
  border-bottom: 2px solid var(--mhs-blue-soft);
  position: relative;
  z-index: 20;
}

#myNavbar .w3-bar-item.w3-button {
  color: var(--mhs-navy);
}

#myNavbar .w3-bar-item.w3-button:hover {
  color: var(--mhs-pink);
}

/* Mobile sidebar */
#mySidebar {
  background-color: var(--mhs-navy);
  z-index: 9999 !important;
}

#mySidebar .w3-bar-item.w3-button {
  color: #fff;
}

#mySidebar .w3-bar-item.w3-button:hover {
  background-color: var(--mhs-blue-mid);
}

/* Social buttons — replace "black" with navy + pink hover */
.w3-button.w3-black {
  background-color: var(--mhs-navy) !important;
  color: #fff !important;
  border-radius: 999px;
}

.w3-button.w3-black:hover {
  background-color: var(--mhs-pink) !important;
}

/* Light-grey buttons (like "To the top", gallery show-more) */
.w3-button.w3-light-grey {
  background-color: var(--mhs-blue-soft) !important;
  color: var(--mhs-navy) !important;
  border-radius: 999px;
}

.w3-button.w3-light-grey:hover {
  background-color: var(--mhs-pink) !important;
  color: #fff !important;
}

/* ============================
  HOMEPAGE
============================ */

/* Hero image on index.html */
.bgimg-1 {
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("public/logo.jpg");
  min-height: 350px;
  margin-bottom: 0;
  margin-top: 20px;
  padding-top: 400px;
}

.home #work {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.home #work .w3-row-padding {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.story-image {
  text-align: right;
}

.story-image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
}

#about-image {
  max-height: 450px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Upcoming events cards on homepage */
/* .event-card {
  max-width: 400px;
  margin: 0 auto 22px auto;
  float: none;
} */
.home #work .event-card {
  max-width: none;
  margin: 0;
}
.event-card img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  background: #f3f3f3;
  border-radius: 8px;
}

.card-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid var(--mhs-blue-mid);
}

.card-box:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.event-card-content {
  padding: 10px 12px 12px;
  color: var(--mhs-navy);
}

.event-title {
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--mhs-navy);
}

.event-meta {
  font-size: 14px;
  color: #555;
  margin: 2px 0;
}

.event-meta i {
  width: 16px;
}

.events-carousel {
  position: relative;
  width: 100%;
}

.events-track {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ✅ 3 per row on big screens */
}

.events-arrow {
  display: none;
}

/* ============================
  CONTACT PAGE
============================ */

.contact {
  padding-top: 30px;
}

.contact-heading {
  text-align: center;
  margin-bottom: 10px;
}

.contact-subtitle {
  text-align: center;
  color: var(--mhs-blue-mid);
  margin-top: 4px;
  font-size: 1rem;
}

.callout-list p {
  margin-bottom: 6px;
  font-weight: 600;
}

.callout-list ul {
  margin-top: 0;
  margin-bottom: 14px;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.callout-list li {
  margin-bottom: 4px;
}

.callout-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--mhs-blue-mid);
  color: var(--mhs-navy);
}

.callout-list a:hover {
  border-bottom-color: var(--mhs-pink);
  color: var(--mhs-pink);
}

#contact p a {
  color: var(--mhs-navy);
}

/* ============================
  ABOUT PAGE
============================ */

.about-first-section {
  padding: 90px 20px 25px;
  background-color: #fff;
}

.about-section {
  padding: 25px 16px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  margin-top: 12px;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.value-card {
  background: var(--mhs-pink);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-size: 1rem;
  line-height: 1.5;
}

/* Stack values on small screens */
@media (max-width: 700px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
  EVENTS PAGE
============================ */

.events-header {
  text-align: center;
  margin-bottom: 32px;
}

.events-header h1 {
  margin-bottom: 8px;
}

.events-header p {
  margin: 0;
  color: var(--mhs-blue-mid);
}

.events-divider {
  height: 1px;
  background: #eee;
  margin: 24px 0;
}

/* Full event details cards */
.event-card-events {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 36px;
  overflow: hidden;
  background-color: #fff;
}

.event-card-image {
  margin-bottom: 8px;
}

/* Horizontal image slider inside event card */
.event-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 12px;
}

.event-slider::-webkit-scrollbar {
  display: none;
}

.event-slider img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  background: #f1f1f1; /* light backdrop for portrait images */
}

/* Slider dots */
.event-slider-nav {
  display: flex;
  justify-content: center;
  column-gap: 0.6rem;
  margin-top: 0.6rem;
}

.event-slider-nav a {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  opacity: 0.85;
  border: 2px solid var(--mhs-blue-soft);
  box-shadow: 0 0 4px rgba(0,0,0,0.35);
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  background-color: var(--mhs-pink);
}

.event-slider-nav a:hover {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  background-color: var(--mhs-navy);
}

/* Event text content */
.event-card-body {
  padding: 18px 20px 22px;
}

.event-title-events {
  font-size: 1.4rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.event-meta {
  font-size: 0.98rem;
  margin: 4px 0;
  color: var(--mhs-blue-mid);
}

.event-meta b {
  font-weight: 600;
}

.event-description {
  margin-top: 14px;
  line-height: 1.6;
  font-size: 1rem;
}

.bullet-points {
  margin: 10px 0 0 20px;
  padding: 0;
  line-height: 1.6;
}

.event-links {
  margin-top: 16px;
  font-size: 0.98rem;
}

.event-links a {
  text-decoration: none;
  border-bottom: 1px solid #333;
  color: var(--mhs-navy);
  border-bottom-color: var(--mhs-blue-mid);
}

.event-links a:hover {
  border-bottom-color: var(--mhs-pink);
  color: var(--mhs-pink);
}

/* ============================
  GALLERY PAGE
============================ */

/* Page container for gallery */
.gallery-page #work {
  max-width: 1100px;
  margin: 80px auto 48px;
  padding: 0 16px;
}

/* Featured swiper */
.swiper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 32px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.swiper-slide img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.gallery-section {
  margin-bottom: 56px;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 16px;
}

/* Responsive image grid */
.gallery-grid {
  display: grid !important;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(44, 76, 109, 0.18); /* navy-tinted shadow */

}

.gallery-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(44, 76, 109, 0.25);
}

/* Extra gallery images: hidden by default */
.gallery-grid .extra-image {
  display: none;
}

/* When the grid has .show-all, show them */
.gallery-grid.show-all .extra-image {
  display: block;
}

.gallery-show-more-btn,
#fashion-show-more-btn {
  min-width: 180px;
}

.swiper-pagination-bullet {
  background: var(--mhs-blue-mid);
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: var(--mhs-pink);
  opacity: 1;
}

/* ============================
  GLOBAL ACTION BAR
============================ */

.global-action-bar {
  position: sticky;
  top: 62px; /* height of navbar */
  z-index: 10;
  /*   background: var(--mhs-blue-soft); */
  background: linear-gradient(
    90deg,
    var(--mhs-blue-soft),
    var(--mhs-bg-soft),
    var(--mhs-blue-soft)
  );
  border-bottom: 2px solid var(--mhs-pink);
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  box-shadow: 0 6px 12px rgba(44, 76, 109, 0.18);
}

.action-text {
  white-space: nowrap;
}

.global-action-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  color: var(--mhs-navy);
  gap: 12px;
}

.global-action-inner span {
  font-weight: 500;
}

.global-action-inner .action-link {
  font-weight: 700;
  /* text-decoration: none;
  color: #fff;
  background: var(--mhs-pink);
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--mhs-pink);
  transition: all 0.2s ease; */
  text-decoration: none;
  color: var(--mhs-navy);
  border-bottom: 2px solid var(--mhs-pink);
  padding-bottom: 2px;
}

.global-action-inner .action-link:hover {
  /* background: #fff;
  color: var(--mhs-pink);
  border-color: var(--mhs-pink);
  transform: translateY(-1px); */
  color: var(--mhs-pink);
  border-bottom-color: var(--mhs-navy);
}

/* ============================
  Shop Page
============================ */

.center {
  height: 100vh;
  position: relative;
  font-size: 24px;
}

/* center the whole block (text + button) */
.center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(520px, 90%);
}

.center-content p {
  margin: 0 0 16px;
  position: static;
  transform: none;
}

.shop-cta {
  font-size: 1rem;
  padding: 12px 24px;
}

/* ============================
  RESPONSIVE BREAKPOINTS
============================ */

/* Tablet */
@media (max-width: 1024px) {
  #work {
    margin-top: 72px;
    padding: 0 14px;
  }

  .gallery-section {
    margin: 40px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .gallery-grid img {
    height: 180px;
  }

  .swiper-slide img {
    height: 420px;
  }

  /* Upcoming Events Home Page */
  .events-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .events-track::-webkit-scrollbar {
    display: none;
  }

  .events-track .event-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .events-arrow {
    display: inline-flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid var(--mhs-blue-soft);
    background: #fff;
    color: var(--mhs-navy);
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(44, 76, 109, 0.18);
    cursor: pointer;
  }

  .events-arrow:hover {
    border-color: var(--mhs-pink);
    color: var(--mhs-pink);
  }

  .events-arrow.prev { left: -6px; }
  .events-arrow.next { right: -6px; }

}

/* Phones / small screens */
@media (max-width: 700px) {
  #work {
    margin-top: 72px;
    padding: 0 10px;
  }

  .gallery-section {
    margin: 32px 0 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-grid img {
    height: 150px;
  }

  .swiper-slide img {
    height: 260px;
  }

  .story-image {
    text-align: center;
    margin-bottom: 24px;
  }

  .event-card {
    margin-bottom: 24px;
  }

  .event-card-image img {
    height: 220px;
  }

  .action-text {
    white-space: normal;
    text-align: center;
  }

  .global-action-inner {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Upcoming Events Home Page */
  .events-track .event-card {
    flex-basis: 92%;
  }
}

/* Tiny phones: stack gallery to one column */
@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 200px;
  }
}
