@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.7/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/core@5.13.4/index.css');

html, body {
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05rem;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1; /* pushes footer down */
}

/* header */
.med-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #010101;
  color: #E8F9FD;
  font-family: 'Montserrat', sans-serif;
  z-index: 1000;
  transform: translateY(0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.med-container.hide {
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.med-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-height: 18rem;
  background: #1A1A1A;
  display: none;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 5%;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.med-overlay.show {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.med-overlay-left {
  width: 50%;
  text-align: left;
}

.med-overlay-left ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 0.5rem 5rem;
  justify-content: start;
}

.med-overlay-left li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.med-overlay-left a {
  font-size: 0.9rem;
  text-decoration: none !important;
  color: #E8F9FD !important;
  font-weight: 500;
  display: inline-block;
  transition: color 0.2s ease;
}

.med-overlay-left a:hover {
  color: #3a8bb5 !important;
}

.submenu-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.med-overlay-left li.submenu-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.med-overlay-left li.submenu-child a {
  padding-left: 2rem;
  color: rgba(232, 249, 253, 0.8) !important;
  font-size: 0.8rem;
}

.med-overlay-right {
  width: 50%;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  box-sizing: border-box;
}

.med-featured-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding-right: 3rem;
}

.med-featured-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  box-sizing: border-box;
}

.med-featured-item img {
  width: 100%;
  height: 25vh;
  object-fit: cover;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-bottom: 0.2rem;
}

.med-featured-item .btn-outline-dark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #E8F9FD;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.med-featured-item .btn-outline-dark i {
  margin-left: 0.5rem;
  transition: transform 0.3s;
  font-size: 0.9rem;
}

.med-featured-item .btn-outline-dark:hover i {
  transform: translateX(5px);
}

.med-overlay-close {
  position: absolute;
  top: 5%;
  right: 5%;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.med-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

#med-overlay-explore .med-overlay-close,
#med-search-overlay .med-overlay-close {
  display: block;
}

.med-whatsnew a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.med-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-height: 7.5rem;
  background: #1A1A1A;
  justify-content: center;
  align-items: center;
  padding: 1rem 5%;
  display: none;
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.med-search-overlay.show {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.med-search-box {
  display: flex;
  gap: 1rem;
  width: 90%;
  max-width: 50rem;
}

.med-search-box input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  font-size: 0.9rem;
}

.med-search-box button {
  padding: 0.7rem 1.5rem;
  background-color: transparent;
  color: #E8F9FD;
  border: 2px solid #E8F9FD;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.med-search-box button:hover {
  background: blue;
}

.med-whatsnew {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
}

.med-whatsnew .divider {
  width: 0.1rem;
  height: 1em;
  background-color: #E8F9FD;
}

.med-logo-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  cursor: pointer;
  transition: border 0.4s ease, padding 0.3s ease, gap 0.3s ease;
}

.med-logo-text.active {
  border: 2px dashed rgba(232, 249, 253, 0.2);
}

.med-logo-left {
  height: 9vh;
  width: auto;
}

.med-text-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: left;
}

.med-row-1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 0.5rem 0;
}

.med-row-1 .med-col:first-child {
  padding-left: 10%;
}

.med-row-1 .med-col:last-child {
  padding-right: 10%;
}

.med-row-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(232, 249, 253, 0.2);
  width: 90%;
  margin: 0 auto;
  font-weight: 600;
}

.med-row-2 .med-col {
  position: relative;
  cursor: pointer;
}

.med-row-2 .med-col::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 0.1rem;
  background-color: currentColor;
  transition: transform 0.2s ease, height 0.2s ease;
}

.med-row-2 .med-col:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.med-row-2 .med-col.active::after,
.med-row-2 .med-col:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.med-col {
  padding: 0.5rem 0;
  text-align: center;
  cursor: pointer;
}

.med-col-3 .med-col3-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  height: 100%;
}

.med-search {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  color: #E8F9FD;
}

.med-search i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.med-explore-hamburger {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: blue;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  color: #E8F9FD;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
}

.med-explore-hamburger i {
  font-size: 1.3rem;
}

/* Mobile Responsive Styles - 768px and below */
/* NO CHANGES TO DESKTOP - ONLY MOBILE OVERRIDES */

@media (max-width: 768px) {
  
  /* ROW 1 ADJUSTMENTS - Logo left, Hamburger right */
  .med-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
  }

  .med-row-1 .med-col:first-child {
    padding-left: 0;
    order: 2; /* What's New - hidden */
  }

  .med-row-1 .med-col:nth-child(2) {
    order: 1; /* Logo on left */
    flex: 0 0 auto;
  }

  .med-row-1 .med-col:last-child {
    padding-right: 0;
    order: 3; /* Hamburger on right */
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* Hide What's New section on mobile */
  .med-whatsnew {
    display: none !important;
  }

  /* Logo adjustments - align left */
  .med-logo-text {
    justify-content: flex-start;
    padding: 0.5rem 0;
    gap: 1rem;
  }

  .med-logo-left {
    height: 7vh;
  }

  .med-text-stack {
    font-size: 0.95rem;
  }

  /* Hide search on mobile */
  .med-search {
    display: none !important;
  }

  .med-col-3 .med-col3-inner {
    justify-content: center;
  }

  /* Adjust explore button for mobile */
  .med-explore-hamburger {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .med-explore-hamburger i {
    font-size: 1.1rem;
  }

  /* ROW 2 - MOBILE ACCORDION MENU */
  .med-row-2 {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1A1A1A;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    border-top: none;
    display: none;
    z-index: 35;
    max-height: 80vh;
    overflow-y: auto;
  }

  .med-row-2.show {
    display: flex !important;
  }

  .med-row-2 .med-col {
    width: 100%;
    padding: 0;
    text-align: left;
    border-bottom: 1px solid rgba(232, 249, 253, 0.1);
    position: relative;
  }

  .med-row-2 .med-col:last-child {
    border-bottom: none;
  }

  .med-row-2 .med-col::after {
    display: none;
  }

  /* Main nav item clickable area */
  .med-row-2 .med-col > a {
    display: block;
    padding: 1rem 1.5rem;
    position: relative;
  }

  /* Arrow indicator for items with submenus */
  .med-row-2 .med-col.has-submenu > a::after {
    content: "\F285"; /* Bootstrap icon chevron-down */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }

  .med-row-2 .med-col.has-submenu.active > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Submenu container */
  .med-mobile-submenu {
    display: none;
    background: #0d0d0d;
    padding: 0;
  }

  .med-mobile-submenu.show {
    display: block;
  }

  .med-mobile-submenu a {
    display: block;
    padding: 0.9rem 1.5rem 0.9rem 3rem;
    font-size: 0.85rem;
    color: rgba(232, 249, 253, 0.85) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 249, 253, 0.05);
    text-transform: none;
    font-weight: 400;
  }

  .med-mobile-submenu a:last-child {
    border-bottom: none;
  }

  .med-mobile-submenu a:hover {
    background: rgba(75, 169, 217, 0.1);
    color: #3a8bb5 !important;
  }

  /* OVERLAY MODIFICATIONS FOR MOBILE */
  /* On mobile, we should probably HIDE the overlay and just use direct navigation */
  /* But if you want to keep it, here's the responsive version: */
  
  .med-overlay {
    flex-direction: column;
    padding: 1rem;
    min-height: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .med-overlay-left {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .med-overlay-left ul {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.6rem;
  }

  .med-overlay-left a {
    font-size: 0.9rem;
  }

  .med-overlay-left li.submenu-child a {
    padding-left: 1.5rem;
    font-size: 0.85rem;
  }

  .med-overlay-right {
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(232, 249, 253, 0.1);
    padding-top: 1.5rem;
  }

  .med-featured-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-right: 0;
  }

  .med-featured-item img {
    height: 25vh;
  }

  .med-overlay-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
  }

  /* SEARCH OVERLAY MOBILE */
  .med-search-overlay {
    padding: 1.5rem 1rem;
    min-height: auto;
  }

  .med-search-box {
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
  }

  .med-search-box input,
  .med-search-box button {
    width: 100%;
  }

  .med-search-box button {
    padding: 0.8rem 1rem;
  }
}

/* Extra small devices (480px and below) */
@media (max-width: 480px) {
  .med-logo-left {
    height: 5vh;
  }

  .med-text-stack {
    font-size: 0.85rem;
  }

  .med-explore-hamburger {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .med-featured-item img {
    height: 25vh;
  }

  .med-row-2 .med-col {
    padding: 0.9rem 1.2rem;
    font-size: 0.8rem;
  }
}
/* hero section */
.med-hero {
    width: 100%;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.med-hero-row,
.med-hero-col {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.med-hero-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(80%) contrast(105%);
}

.hero-overlay {
    position: absolute;
    top: 60%;
    left: 5%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    width: 24%;
    background-color: #E8F9FD;
    color: #010101;
    box-sizing: border-box;
    padding: 2rem 2rem;
    gap: 1.3rem;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.hero-welcome {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    position: absolute;
    bottom: 2.7rem;
    left: 0rem;
    background-color: #010101;
    color: #E8F9FD;
    padding: 0.6rem 1rem;
    z-index: 2;
    text-transform: uppercase;
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    position: relative;
}

.hero-right {
    display: flex;
    flex-direction: column;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.hero-buttons a {
    text-decoration: none;
    width: 100%;
}

.btn-virtual {
    background-color: blue;
    color: #E8F9FD;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
}

.hero-after-info {
    width: 100%;
    padding: 1rem 5% 5rem 5%;
    color: #010101;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(2, auto);
    width: 100%;
}

.hero-feature-item {
    border-radius: 0;
    padding: 0;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start; 
    padding-top: 1rem;
}

.hero-feature-item:first-child .hero-btn {
    margin-right: 5.5rem;
}

.hero-btn {
    position: relative;
    overflow: hidden;
    background-color: blue;
    color: #E8F9FD;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    z-index: 1;
    transition: color 0.3s ease;
}

.hero-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #4BA9D9;
    z-index: -1;
    transition: height 0.15s ease-out;
}

.hero-btn:hover::before {
    height: 100%;
}



.hero-info-block {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem 1rem 1rem;
}

.hero-info-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #010101;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-info-block .contact-section {
  margin-top: 1.5rem;
}

.hero-info-block p {
    display: block;
    font-size: 0.8rem;
    color: rgba(1, 1, 1, 0.7);
    line-height: 1.5;
    margin: 0.5rem 0;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-info-block i {
    margin-right: 0.5rem;
    color: #010101;
}

.hero-info-note {
  justify-self: end;
  padding: 1rem 0 1rem 1rem;
}

.hero-info-note blockquote {
  font-size: 0.7rem;
  font-style: italic;
  color: #010101;
  border-left: 3px solid blue; /* bar stays on the left */
  font-weight: 400;
  margin: 0;
  margin-left: 2.5rem; /* control spacing from the bar */
  padding-left: 0; /* remove extra padding */
  text-align: right; /* keep text aligned to the right */
}

.info-exhibits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.info-exhibits-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-exhibits-box {
  display: flex;
  width: 100%; /* ✅ force full width */
  border: 1px solid rgba(1, 1, 1, 0.2);
  text-decoration: none;
}


.info-exhibits-left {
  flex: 0 0 90px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: blue;
}

.info-exhibits-right {
  flex: 1;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
}

.info-exhibits-icon i {
  font-size: 1.3rem;
  color: blue;
}

.info-exhibits-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-exhibits-date {
  font-weight: 600;
  font-size: 0.8rem;
  color: #ffffff;
  text-transform: uppercase;
}

.info-exhibits-title-text {
  font-weight: 600;
  font-size: 1rem;
  color: #010101;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-exhibits {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #010101;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.chevron-exhibits {
  font-size: 0.8rem;
  color: #010101;
}







.info-admission,
.info-education {
  display: block;
  width: 100%;
}

.info-admission {
  text-align: left;
  padding-left: 7.8rem;
}

.info-education {
  text-align: left;
  padding-left: 7.8rem;
}

.info-admission h2,
.info-education h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-admission img,
.info-education img {
  width: 20rem;
  height: 10rem;
  object-fit: cover;
  margin: 0.5rem 0;
}

.info-admission p,
.info-education p {
  font-size: 0.8rem;
  line-height: 1.3;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  max-width: 20rem;
}

.info-admission .btn,
.info-education .btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #010101;
  cursor: pointer;
  font-weight: 600;
}

.chevron-admission,
.chevron-education {
  font-size: 0.8rem;
  color: #010101;
}


@media (max-width: 768px) {
    /* Hero Section */
    .med-hero {
        height: 50vh;
    }

    .med-hero-col img {
        filter: brightness(75%) contrast(105%);
    }

    .hero-overlay {
        top: 50%;
        left: 5%;
        width: 90%;
        padding: 1.5rem 1.5rem;
        gap: 1rem;
    }

    .hero-left {
        gap: 0.8rem;
    }

    .hero-welcome {
        font-size: 0.7rem;
        bottom: 2.3rem;
        padding: 0.5rem 0.8rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.25;
        margin-bottom: 0.4rem;
    }

    .btn-virtual {
        font-size: 0.9rem;
        padding: 0.45rem 0.7rem;
    }

    /* Hero After Info */
    .hero-after-info {
        padding: 1rem 5% 3rem 5%;
    }

    .hero-feature-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
    }

    .hero-feature-item {
        padding-top: 0;
    }

    .hero-feature-item:first-child .hero-btn {
        margin-right: 0;
    }

    .hero-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }

    /* Info Blocks */
    .hero-info-block {
        padding: 1rem 1rem 1rem 0.8rem;
    }

    .hero-info-block h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .hero-info-block .contact-section {
        margin-top: 1rem;
    }

    .hero-info-block p {
        font-size: 0.75rem;
        margin: 0.4rem 0;
    }

    .hero-info-block i {
        margin-right: 0.4rem;
    }

    .hero-info-note {
        padding: 1rem 0 1rem 0.8rem;
    }

    .hero-info-note blockquote {
        font-size: 0.65rem;
        margin-left: 1.5rem;
    }

    /* Info Exhibits */
    .info-exhibits {
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .info-exhibits-title {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .info-exhibits-left {
        flex: 0 0 70px;
        padding: 0.8rem;
    }

    .info-exhibits-right {
        padding: 0.6rem 0.8rem;
    }

    .info-exhibits-icon i {
        font-size: 1.1rem;
    }

    .info-exhibits-label {
        margin-bottom: 0.4rem;
    }

    .info-exhibits-date {
        font-size: 0.7rem;
    }

    .info-exhibits-title-text {
        font-size: 0.9rem;
    }

    .btn-exhibits {
        font-size: 0.9rem;
    }

    .chevron-exhibits {
        font-size: 0.75rem;
    }

    /* Info Admission & Education */
    .info-admission,
    .info-education {
        padding-left: 0.8rem;
    }

    .info-admission h2,
    .info-education h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .info-admission img,
    .info-education img {
        width: 100%;
        max-width: 20rem;
        height: 12rem;
        margin: 0.4rem 0;
    }

    .info-admission p,
    .info-education p {
        font-size: 0.75rem;
        line-height: 1.25;
        margin-top: 0.4rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .info-admission .btn,
    .info-education .btn {
        font-size: 0.9rem;
    }

    .chevron-admission,
    .chevron-education {
        font-size: 0.75rem;
    }
}

















/* Parallax Section */
.med-parallax-container {
  background-image: url('../med-assets/parallax-1.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 250vh;
  display: flex;
  flex-direction: column;
  position: relative;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: grayscale(0.25) brightness(1.08) contrast(1.05) saturate(1.08);
}

.med-parallax-overlay {
  width: 100%;
  text-align: center;
  color: #E8F9FD;
  padding: 2rem 0;
}

.med-overlay-top {
  height: 192vh;
  background-color: #010101;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px -10px rgba(1, 1, 1, 0.5);
}

/* Masonry Gallery */
.med-masonry-wrapper {
  width: 100%;
  padding: 5% 5% 0 5%;
  max-height: 145vh;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.med-masonry-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 15%,
    rgba(10, 10, 10, 0.85) 35%,
    rgba(25, 25, 25, 0.6) 50%,
    rgba(40, 40, 40, 0.4) 70%,
    rgba(60, 60, 60, 0.2) 80%,
    rgba(80, 80, 80, 0.1) 90%,
    rgba(100, 100, 100, 0) 100%
  );
  pointer-events: none;
  z-index: 5;
}

.med-collection-title {
  position: absolute;
  top: 0;
  left: 5%;
  font-size: 2.5rem;
  font-weight: 700;
  padding-top: 1rem;
  z-index: 10;
  backdrop-filter: blur(6px);
}


.med-masonry-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 23vh;
}

.med-masonry-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.med-masonry-column.med-middle {
  margin-top: -10vh;
}

.med-masonry-column img {
  width: 100%;
  object-fit: cover;
  image-rendering: auto;
  filter: brightness(1.15) contrast(1.08) saturate(1.2) drop-shadow(0 6px 10px rgba(0,0,0,0.1));
}

/* Masonry Image Heights */
.med-img-1 { height: 30vh; }
.med-img-2 { height: 45vh; }
.med-img-3 { height: 35vh; }
.med-img-4 { height: 35vh; }
.med-img-5 { height: 70vh; }
.med-img-6 { height: 45vh; }
.med-img-7 { height: 25vh; }
.med-img-8 { height: 50vh; }
.med-img-9 { height: 60vh; }
.med-img-10 { height: 35vh; }
.med-img-11 { height: 40vh; }
.med-img-12 { height: 35vh; }

/* Masonry Footer */
.med-masonry-footer-floating {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.med-footer-title-discovery {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: #E8F9FD;
  margin-bottom: 1.5rem;
}

.med-footer-btn {
    text-decoration: none; /* removes underline */
}

.med-footer-btn {
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #E8F9FD;
  background-color: #010101;
  border: 2px solid #E8F9FD;
  border-radius: 999px;
  cursor: default;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, color 0.3s ease;
  pointer-events: none;
}

.med-masonry-hover-area:hover .med-footer-btn {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  cursor: pointer;
}

.med-masonry-hover-area:hover .med-footer-btn:hover {
  background-color: #E8F9FD;
  color: #010101;
}

/* Newsletter Section */
.med-newsletter-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-auto-rows: min-content;
  padding: 2rem 5%;
  width: 100%;
  margin: 0 auto;
}

.med-newsletter-title {
  font-size: 3rem;
  padding-top: 3.5rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  color: #E8F9FD;
  margin: 0;
}

.med-newsletter-description {
  font-size: 1rem;
  padding-top: 3.8rem;
  color: #E8F9FD;
  text-align: left;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

.med-newsletter-cell {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-weight: bold;
  box-sizing: border-box;
}

.med-newsletter-cell.med-cell-1,
.med-newsletter-cell.med-cell-2 {
  border-top: 1px solid rgba(255, 255, 240, 0.2);
  padding-top: 0;
}

.med-newsletter-cell i {
  font-size: 2rem;
  padding-top: 1.5rem;
}

.med-newsletter-input-wrapper {
  position: relative;
  width: 100%;
  padding-top: 1rem;
}

.med-input-with-icon {
  position: relative;
  width: 100%;
}

.med-input-with-icon input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.5rem;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #E8F9FD;
  background: transparent;
  color: #E8F9FD;
  outline: none;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.med-input-with-icon input::placeholder {
  color: #E8F9FD;
  opacity: 1;
  transition: color 0.3s ease;
}

.med-input-with-icon input:focus,
.med-input-with-icon input:valid {
  color: #010101;
}

.med-input-with-icon input:focus::placeholder,
.med-input-with-icon input:valid::placeholder {
  color: #010101;
}

.med-input-with-icon i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-70%);
  font-size: 1.5rem;
  color: #E8F9FD;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.med-input-with-icon input:focus ~ i,
.med-input-with-icon input:valid ~ i {
  color: #010101;
  opacity: 1;
}

.med-input-with-icon .input-shade {
  position: absolute;
  right: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: #E8F9FD;
  z-index: 1;
  pointer-events: none;
  transition: width 0.4s cubic-bezier(0.42, 0, 0.58, 1);
}

.med-input-with-icon input:focus ~ .input-shade,
.med-input-with-icon input:valid ~ .input-shade {
  width: 100%;
}

@media (max-width: 768px) {
    /* Parallax Section */
    .med-parallax-container {
        background-attachment: scroll;
        min-height: auto;
    }

    .med-parallax-overlay {
        padding: 1.5rem 0;
    }

    .med-overlay-top {
        height: auto;
    }

    /* Masonry Gallery */
    .med-masonry-wrapper {
        padding: 5% 5% 0 5%;
        max-height: none;
    }

    .med-masonry-wrapper::after {
        height: 50vh;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.9) 20%,
            rgba(10, 10, 10, 0.7) 40%,
            rgba(25, 25, 25, 0.5) 60%,
            rgba(40, 40, 40, 0.3) 80%,
            rgba(60, 60, 60, 0) 100%
        );
    }

    .med-collection-title {
        font-size: 2rem;
        padding-top: 0.8rem;
    }

    .med-masonry-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 15vh;
    }

    .med-masonry-column {
        gap: 0.8rem;
    }

    .med-masonry-column.med-middle {
        margin-top: -5vh;
    }

    .med-masonry-column:nth-child(3) {
        display: none;
    }

    .med-masonry-column img {
        filter: brightness(1.1) contrast(1.05) saturate(1.15) drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    }

    /* Adjust Masonry Image Heights for Mobile */
    .med-img-1 { height: 35vh; }
    .med-img-2 { height: 40vh; }
    .med-img-3 { height: 35vh; }
    .med-img-4 { height: 40vh; }
    .med-img-5 { height: 50vh; }
    .med-img-6 { height: 40vh; }
    .med-img-7 { height: 30vh; }
    .med-img-8 { height: 45vh; }
    .med-img-9 { height: 50vh; }
    .med-img-10 { height: 35vh; }
    .med-img-11 { height: 40vh; }
    .med-img-12 { height: 35vh; }

    /* Masonry Footer */
    .med-masonry-footer-floating {
        bottom: 4rem;
        padding: 0 5%;
    }

    .med-footer-title-discovery {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .med-footer-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .med-masonry-hover-area:hover .med-footer-btn {
        opacity: 1;
        transform: translateX(0);
    }

    /* Newsletter Section */
    .med-newsletter-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 5%;
        gap: 0;
    }

    .med-newsletter-title {
        font-size: 2rem;
        padding-top: 2rem;
    }

    .med-newsletter-description {
        font-size: 0.9rem;
        padding-top: 2.5rem;
        line-height: 1.4;
    }

    .med-newsletter-cell {
        border-top: 1px solid rgba(255, 255, 240, 0.2);
    }

    .med-newsletter-cell.med-cell-1 {
        order: 1;
    }

    .med-newsletter-cell.med-cell-2 {
        order: 3;
    }

    .med-newsletter-cell i {
        font-size: 1.8rem;
        padding-top: 1.2rem;
    }

    .med-newsletter-input-wrapper {
        padding-top: 0.8rem;
    }

    .med-input-with-icon input {
        padding: 0.6rem 2.5rem 0.6rem 0.4rem;
        font-size: 0.9rem;
    }

    .med-input-with-icon i {
        right: 0.8rem;
        font-size: 1.3rem;
        transform: translateY(-60%);
    }
}
.med-overlay-middle {
    height: 142vh;
    background-color: #010101;
    position: relative;
    padding-left: 5%;
    padding-right: 5%;
}

.exhibit-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ongoing-exhibit-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.exhibit-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    padding: 2rem 0 3rem 0;
}

.med-exhibit .exhibit-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    display: inline-flex;        
    align-items: center;           
}

.exhibit-title i {
    font-size: 3rem;           
    margin-left: 0.5rem;
    line-height: 1;
    color: #E8F9FD;
}

.browse-link {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #E8F9FD;
    display: flex;
    align-items: center;           /* vertically center chevron with text */
    gap: 0.5rem;
}


.browse-link i {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    color: #E8F9FD;
}



.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.exhibit-item {
    width: 100%;
}

.exhibit-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.exhibit-box img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.exhibit-bottom {
    height: 2rem;
    background-color: #010101;
    transition: transform 0.15s ease;
}

.exhibit-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #010101;
    padding: 1.5rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem; /* fixed height */
}

.exhibit-box:hover img,
.exhibit-box:hover .exhibit-bottom {
    transform: translateY(-5px);
}

.exhibit-box:hover .exhibit-corner-box {
    transform: translateY(-10px);
}




.exhibit-corner-box .exhibit-type {
  position: absolute;
  bottom: 100%;
  left: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #010101;
  background-color: #E8F9FD;
  padding: 0.4rem 0.6rem;
  transform: translateY(0.6rem);
  text-transform: uppercase;
}

.exhibit-corner-box .exhibit-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #E8F9FD;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.exhibit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(232, 249, 253, 0.3);
}

.exhibit-footer .footer-left {
    font-weight: 500;
    font-size: 0.7rem;
    color: #E8F9FD;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(232, 249, 253, 1);
    display: inline-block;
    cursor: default;
}


.exhibit-footer .footer-right {
    font-weight: 600;
    font-size: 1rem;
    color: #E8F9FD;
    text-decoration: none;
}

.exhibit-footer .footer-right i {
    font-size: 0.8rem;
}

.ongoing-exhibit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ongoing-exhibit-item {
    width: 100%;
}

.ongoing-exhibit-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.ongoing-exhibit-box img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.ongoing-exhibit-bottom {
    height: 4rem;
    background-color: #010101;
    transition: transform 0.15s ease;
}

.ongoing-exhibit-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #010101;
    padding: 1.5rem 1rem 1rem 1rem;
    display: block;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 8rem; /* fixed height */
}

.ongoing-exhibit-box:hover img,
.ongoing-exhibit-box:hover .ongoing-exhibit-bottom {
    transform: translateY(-5px);
}

.ongoing-exhibit-box:hover .ongoing-exhibit-corner-box {
    transform: translateY(-15px);
}


.ongoing-exhibit-corner-box .ongoing-exhibit-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #010101;
    background-color: #E8F9FD;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.8rem);
    text-transform: uppercase;
}

.ongoing-exhibit-corner-box .ongoing-exhibit-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #E8F9FD;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.ongoing-exhibit-end-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #E8F9FD;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-top: 1px solid rgba(232, 249, 253, 0.2); /* simple top border */
    padding-top: 0.5rem;
    max-width: 15rem; /* optional: limit the width of the border */
}

.ongoing-exhibit-end-date i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #E8F9FD;
}

@media (max-width: 768px) {
    .med-overlay-middle {
        height: auto;
        padding-left: 5%;
        padding-right: 5%;
    }

    .exhibit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 0 2rem 0;
    }

    .med-exhibit .exhibit-title {
        font-size: 2rem;
    }

    .exhibit-title i {
        font-size: 2.5rem;
        margin-left: 0.4rem;
    }

    .browse-link {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .browse-link i {
        font-size: 0.75rem;
    }

    /* Exhibit Grid */
    .exhibit-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .exhibit-box img {
        height: 40vh;
    }

    .exhibit-bottom {
        height: 1.5rem;
    }

    .exhibit-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 5.5rem;
    }

    .exhibit-corner-box .exhibit-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        transform: translateY(0.5rem);
    }

    .exhibit-corner-box .exhibit-title {
        font-size: 1.1rem;
    }

    /* Exhibit Footer */
    .exhibit-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 3rem;
        padding-bottom: 1.2rem;
    }

    .exhibit-footer .footer-left {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .exhibit-footer .footer-right {
        font-size: 0.9rem;
        align-self: flex-start;
    }

    .exhibit-footer .footer-right i {
        font-size: 0.75rem;
    }

    /* Ongoing Exhibit Grid */
    .ongoing-exhibit-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .ongoing-exhibit-box img {
        height: 40vh;
    }

    .ongoing-exhibit-bottom {
        height: 3rem;
    }

    .ongoing-exhibit-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 7rem;
    }

    .ongoing-exhibit-corner-box .ongoing-exhibit-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        transform: translateY(0.7rem);
    }

    .ongoing-exhibit-corner-box .ongoing-exhibit-title {
        font-size: 1.1rem;
    }

    .ongoing-exhibit-end-date {
        margin-top: 0.8rem;
        font-size: 0.75rem;
        max-width: 100%;
    }

    .ongoing-exhibit-end-date i {
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }
}

.med-overlay-bottom {
    height: 147vh;
    background-color: #010101;
    position: relative;
    padding-left: 5%;
    padding-right: 5%;
}

.walkin-event-link {
  display: block;
  text-decoration: none;
  color: inherit;
}


.event-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    padding: 2rem 0 3rem 0;
}

.med-event .event-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    display: inline-flex;        
    align-items: center;  
    color: #E8F9FD;         
}


.browse-link {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #E8F9FD;
    display: flex;
    align-items: center;           
    gap: 0.5rem;
}

.browse-link i {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    color: #E8F9FD;
}

.walkin-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.walkin-event-item {
    width: 100%;
}

.walkin-event-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.walkin-event-box img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.walkin-event-bottom {
    height: 4rem;
    background-color: #010101;
    transition: transform 0.15s ease;
}

.walkin-event-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #010101;
    padding: 1.5rem 1rem 1rem 1rem;
    display: block;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 8rem; /* fixed height */
}


.walkin-event-box:hover img,
.walkin-event-box:hover .walkin-event-bottom {
    transform: translateY(-5px);
}

.walkin-event-box:hover .walkin-event-corner-box {
    transform: translateY(-15px);
}

.walkin-event-corner-box .walkin-event-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #010101;
    background-color: #E8F9FD;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.8rem);
    text-transform: uppercase;
}

.walkin-event-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.walkin-event-corner-box .walkin-event-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #E8F9FD;
    line-height: 1.3;
    word-break: break-word;
    margin: 0;
    text-align: left !important;
    flex: 1;
}

.walkin-event-participants {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    color: #E8F9FD; /* gold users icon */
    margin-right: 0.5rem;
}

.walkin-event-participants .badge-capacity {
    position: absolute;
    transform: translate(15px, -8px);
    background: blue; /* red for contrastFFD700 */
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 500;
    border-radius: 50%;
    padding: 5px 5px;
    line-height: 1;
}


.walkin-event-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #E8F9FD;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-top: 1px solid rgba(232, 249, 253, 0.2);
    padding-top: 0.5rem;
    max-width: 15rem;
}

.walkin-event-date i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #E8F9FD;
}






.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(232, 249, 253, 0.3);
}

.event-footer .footer-left {
    font-weight: 500;
    font-size: 0.7rem;
    color: #E8F9FD;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(232, 249, 253, 1);
    display: inline-block;
    cursor: default;
}

.event-footer .footer-right {
    font-weight: 400;
    font-size: 0.8rem;
    color: #E8F9FD;
    cursor: default;
    align-self: flex-end;
}



.workshop2-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.workshop2-event-item {
    width: 100%;
}

.workshop2-event-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.workshop2-event-box img {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.workshop2-event-bottom {
    height: 4rem;
    background-color: #010101;
    transition: transform 0.15s ease;
}

.workshop2-event-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #010101;
    padding: 1.5rem 1rem 1rem 1rem;
    display: block;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 8rem;
    pointer-events: none; /* ✅ fixes unclickable issue */
}

.workshop2-event-box:hover img,
.workshop2-event-box:hover .workshop2-event-bottom {
    transform: translateY(-5px);
}

.workshop2-event-box:hover .workshop2-event-corner-box {
    transform: translateY(-15px);
}

.workshop2-event-corner-box .workshop2-event-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #010101;
    background-color: #E8F9FD;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.8rem);
    text-transform: uppercase;
}

.workshop2-event-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.workshop2-event-corner-box .workshop2-event-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #E8F9FD;
    line-height: 1.3;
    word-break: break-word;
    margin: 0;
    text-align: left !important;
    flex: 1;
}

.workshop2-event-participants {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    color: #E8F9FD;
    margin-right: 0.5rem;
}

.workshop2-event-participants .badge-capacity {
    position: absolute;
    transform: translate(15px, -8px);
    background: blue;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 500;
    border-radius: 50%;
    padding: 5px 5px;
    line-height: 1;
}

.workshop2-event-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #E8F9FD;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-top: 1px solid rgba(232, 249, 253, 0.2);
    padding-top: 0.5rem;
    max-width: 15rem;
}

.workshop2-event-date i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #E8F9FD;
}

.workshop2-event-date span {
  margin-left: 4px;
}

@media (max-width: 768px) {
    .med-overlay-bottom {
        height: auto;
        padding-left: 5%;
        padding-right: 5%;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 0 2rem 0;
    }

    .med-event .event-title {
        font-size: 2rem;
    }

    .browse-link {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .browse-link i {
        font-size: 0.75rem;
    }

    /* Walk-in Events Grid */
    .walkin-event-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .walkin-event-box img {
        height: 40vh;
    }

    .walkin-event-bottom {
        height: 3rem;
    }

    .walkin-event-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 7rem;
    }

    .walkin-event-corner-box .walkin-event-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        transform: translateY(0.7rem);
    }

    .walkin-event-title-wrap {
        gap: 0.4rem;
    }

    .walkin-event-corner-box .walkin-event-title {
        font-size: 1.1rem;
    }

    .walkin-event-participants {
        font-size: 1rem;
        margin-right: 0.4rem;
    }

    .walkin-event-participants .badge-capacity {
        transform: translate(12px, -7px);
        font-size: 0.55rem;
        padding: 4px 4px;
    }

    .walkin-event-date {
        margin-top: 0.8rem;
        font-size: 0.75rem;
        max-width: 100%;
    }

    .walkin-event-date i {
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }

    /* Event Footer */
    .event-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 3rem;
        padding-bottom: 1.2rem;
    }

    .event-footer .footer-left {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .event-footer .footer-right {
        font-size: 0.75rem;
        align-self: flex-start;
    }

    /* Workshop2 Events Grid */
    .workshop2-event-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .workshop2-event-box img {
        height: 40vh;
    }

    .workshop2-event-bottom {
        height: 3rem;
    }

    .workshop2-event-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 7rem;
    }

    .workshop2-event-corner-box .workshop2-event-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        transform: translateY(0.7rem);
    }

    .workshop2-event-title-wrap {
        gap: 0.4rem;
    }

    .workshop2-event-corner-box .workshop2-event-title {
        font-size: 1.1rem;
    }

    .workshop2-event-participants {
        font-size: 1rem;
        margin-right: 0.4rem;
    }

    .workshop2-event-participants .badge-capacity {
        transform: translate(12px, -7px);
        font-size: 0.55rem;
        padding: 4px 4px;
    }

    .workshop2-event-date {
        margin-top: 0.8rem;
        font-size: 0.75rem;
        max-width: 100%;
    }

    .workshop2-event-date i {
        margin-right: 0.4rem;
        font-size: 0.9rem;
    }
}


/* news section */

.section-banner {
    background-color: #010101;
    width: 100%;
    padding: 5rem 5% 3rem 5%;
}

.section-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-type-label {
    font-size: 2rem;
    margin-left: -5rem;
    padding: 1rem 5rem;
    color: #ffffff;
    font-weight: 700;
    background-color: blue;
    display: inline-block;
    border-bottom: 0.3rem solid #C0C0C0;
}


.news-section {
    width: 100%;
    padding: 3rem 5% 8rem 5%;
}

.news-header {
    width: 100%;
    text-align: left;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 2.5rem;
    color: #010101;
    font-weight: 700;
    position: relative; /* needed for pseudo-element */
    display: inline-block; /* make underline width controllable */
}

.news-header h2::after {
    content: "";
    display: block;
    width: 70%;          /* underline spans 90% of h2 */
    height: 0.3rem;          /* thickness of underline */
    background-color: blue; /* yellow color, adjust as needed */
    margin-top: 0.5rem;
    border-radius: 1rem;  /* space between text and underline */
}


.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    width: 100%;
}

.news-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    line-height: 0;
    font-size: 0;
}

.news-col-1 .news-box img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
    margin: 0;
    padding: 0;
    border: 0;
}

.news-col-1 .news-box,
.news-col-2,
.news-col-3,
.news-col-4 {
    height: calc(60vh + 2rem);
}

/* col 2 and col 3 */
.news-col-2 .news-box img,
.news-col-3 .news-box img {
    width: 100%;
    height: calc((60vh + 2rem - 2rem) / 2 - 2rem);
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
    margin: 0;
    padding: 0;
    border: 0;
}

.news-col-2 .news-corner-box .news-title,
.news-col-3 .news-corner-box .news-title {
    font-size: 1rem;
    font-weight: 700;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.news-col-2 .news-corner-box, 
.news-col-3 .news-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.3rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem;
    font-size: 1rem;
}

.news-bottom {
    height: 2rem;
    background-color: #ffffff;
    transition: transform 0.15s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.news-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.5rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem;
    font-size: 1rem;
}

.news-box:hover img,
.news-box:hover .news-bottom {
    transform: translateY(-5px);
}

.news-box:hover .news-corner-box {
    transform: translateY(-10px);
}

.news-corner-box .news-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #010101;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.6rem);
    text-transform: uppercase;
}

.news-corner-box .news-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.news-link {
    text-decoration: none;
    display: block;
}

.news-col-4 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #010101;
    margin: 0;
}

.announcement-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.announcement-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    border-bottom: 1px solid blue; 
    padding-bottom: 2rem; 
    display: inline-block; 
}

@media (max-width: 768px) {
    .news-section {
        padding: 2rem 5% 5rem 5%;
    }

    .news-header {
        margin-bottom: 2rem;
    }

    .news-header h2 {
        font-size: 2rem;
    }

    .news-header h2::after {
        width: 80%;
        height: 0.25rem;
        margin-top: 0.4rem;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .news-column {
        gap: 1.5rem;
    }

    .news-col-1 .news-box img {
        height: 60vh;
    }

    .news-col-1 .news-box,
    .news-col-2,
    .news-col-3,
    .news-col-4 {
        height: calc(60vh + 2rem);
    }

    .news-col-2 .news-box img,
    .news-col-3 .news-box img {
        height: calc((60vh + 2rem - 2rem) / 2 - 1.5rem);
    }

    .news-col-2 .news-corner-box .news-title,
    .news-col-3 .news-corner-box .news-title {
        font-size: 0.9rem;
    }

    .news-col-2 .news-corner-box, 
    .news-col-3 .news-corner-box {
        padding: 1rem 0.8rem 0.8rem 0.8rem;
        height: 5.5rem;
        font-size: 0.9rem;
    }

    .news-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 5.5rem;
        font-size: 0.9rem;
    }

    .news-corner-box .news-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
    }

    .news-corner-box .news-title {
        font-size: 1.1rem;
    }

    .news-col-4 {
        gap: 1.2rem;
    }

    .announcement-title {
        font-size: 1.3rem;
    }

    .announcement-item h4 {
        font-size: 0.95rem;
        padding-bottom: 1.5rem;
    }
}

/* p2 news */
.med2-section {
    width: 100%;
    padding: 3rem 5% 8rem 5%;
}

.med2-header {
    width: 100%;
    text-align: left;
    margin-bottom: 3rem;
}

.med2-header h2 {
    font-size: 2.5rem;
    color: #010101;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.med2-header h2::after {
    content: "";
    display: block;
    width: 70%;
    height: 0.3rem;
    background-color: blue;
    margin-top: 0.5rem;
    border-radius: 1rem;
}

.med2-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* first column wider, col-2 removed */
    gap: 2rem;
    align-items: start;
}

.med2-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.med2-item {
    width: 100%;
}

.med2-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    line-height: 0;
    font-size: 0;
}

.med2-col-1 .med2-box img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
    margin: 0;
    padding: 0;
    border: 0;
}

.med2-col-1 .med2-box,
.med2-col-3,
.med2-col-4 {
    height: calc(70vh + 2rem);
}

.med2-col-3 .med2-box img {
    width: 100%;
    height: calc((70vh + 2rem - 2rem) / 2 - 2rem);
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
    margin: 0;
    padding: 0;
    border: 0;
}

.med2-col-3 .med2-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.3rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem;
    font-size: 2rem;
}

.med2-col-3 .med2-corner-box .med2-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.med2-bottom {
    height: 2rem;
    background-color: #ffffff;
    transition: transform 0.15s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.med2-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.5rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem;
    font-size: 1rem;
}

.med2-box:hover img,
.med2-box:hover .med2-bottom {
    transform: translateY(-5px);
}

.med2-box:hover .med2-corner-box {
    transform: translateY(-10px);
}

.med2-corner-box .med2-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #010101;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.6rem);
    text-transform: uppercase;
}

.med2-col-1 .med2-corner-box .med2-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #010101;
    padding: 0.6rem 0.8rem;
    transform: translateY(1rem);
    text-transform: uppercase;
}

.med2-corner-box .med2-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.med2-link {
    text-decoration: none;
    display: block;
}

.med2-col-4 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%; /* column spans full parent height */
}

.med2-announcement-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: blue;
    border: none;
    flex: 1; 
    padding: 1.5rem 1.2rem 1.5rem 1.2rem;
    color: #ffffff;
}

.med2-header {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 0.3rem;
}

.med2-header .highlight {
    display: block;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: 1.3rem;
}

.med2-description {
    font-size: 1rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.med2-middle {
    flex-grow: 1;
}

.med2-link {
    text-decoration: none; /* removes underline */
    display: block; /* ensures the link wraps the button fully */
}

.med2-btn {
    background-color: #ffffff;
    color: #010101;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    width: 100%;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-circle {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background-color: blue;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

/* All-News Grid */
.all-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 2rem;
    margin-top: 4rem;
}

.all-news-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.all-news-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    line-height: 0;
    font-size: 0;
    height: calc(30vh + 2rem); /* add bottom height */
}

.all-news-box img {
    width: 100%;
    height: 30vh; /* image only */
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.all-news-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.5rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem;
    font-size: 1rem;
}

.all-news-bottom {
    height: 2rem;
    background-color: #ffffff; /* or whatever color you want */
    display: block;
    margin: 0;
    padding: 0;
    transition: transform 0.15s ease;
}

.all-news-box:hover img,
.all-news-box:hover .all-news-bottom {
    transform: translateY(-5px);
}

.all-news-box:hover .all-news-corner-box {
    transform: translateY(-10px);
}

.all-news-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #010101;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.6rem);
    text-transform: uppercase;
}

.all-news-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

/* filters */
.all-news-filters {
    background: transparent;
    padding-top: 3rem;
}

.all-news-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.all-news-filter-group {
    flex: 1;
    min-width: 15rem;
    position: relative;
}

.all-news-filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #010101;
    font-size: 1rem;
}

.all-news-filter-group input,
.all-news-filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #3a8bb5;
    font-size: 1rem;
    background-color: #fff;
    color: #010101;
    height: 2.5rem;
    box-sizing: border-box;
}

.all-news-filter-group select {
    padding: 0.55rem 2rem 0.55rem 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.all-news-filter-group .bi-chevron-down {
    position: absolute;
    right: 0.7rem;
    top: 75%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #010101;
    font-size: 1rem;
}

.all-news-filter-group input:focus,
.all-news-filter-group select:focus {
    outline: none;
    border-color: blue;
}

/* Fix button vertical alignment */
.all-news-filter-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    height: 2.5rem;
}

.all-news-btn-filter,
.all-news-btn-reset {
    height: 2.5rem;
    padding: 0 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-weight: 600;
    background: transparent;
    color: #010101;
}

.all-news-btn-reset {
    background: blue;
    color: #ffffff;
}

.all-news-btn-reset:hover {
    background: #4BA9D9;
}

.all-news-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(1, 1, 1, 0.7);
    font-size: 1rem;
}

.all-news-date {
    position: absolute;
    top: 0;
    left: 0;
    background: #010101;
    color: #ffffff;
    padding: 1rem; /* increased from 3px 8px */
    font-size: 0.7rem;
    font-weight: 600;
}

.all-news-box {
    position: relative; /* ensure the date positions correctly */
}

@media (max-width: 768px) {
    /* P2 News Section */
    .med2-section {
        padding: 2rem 5% 5rem 5%;
    }

    .med2-header {
        margin-bottom: 2rem;
    }

    .med2-header h2 {
        font-size: 2rem;
    }

    .med2-header h2::after {
        width: 80%;
        height: 0.25rem;
        margin-top: 0.4rem;
    }

    /* Main Grid - 2 Columns, Hide 3rd */
    .med2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .med2-col-3 {
        display: none;
    }

    .med2-column {
        gap: 1.5rem;
    }

    /* Column 1 */
    .med2-col-1 .med2-box img {
        height: 50vh;
    }

    .med2-col-1 .med2-box,
    .med2-col-3,
    .med2-col-4 {
        height: calc(50vh + 2rem);
    }

    .med2-col-1 .med2-corner-box .med2-type {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
        transform: translateY(0.8rem);
    }

    /* Column 3 */
    .med2-col-3 .med2-box img {
        height: 40vh;
    }

    .med2-col-3 .med2-corner-box {
        padding: 1rem 0.8rem 0.8rem 0.8rem;
        height: 5.5rem;
    }

    .med2-col-3 .med2-corner-box .med2-title {
        font-size: 1rem;
    }

    /* Corner Box */
    .med2-bottom {
        height: 1.5rem;
    }

    .med2-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 5.5rem;
    }

    .med2-corner-box .med2-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        transform: translateY(0.5rem);
    }

    .med2-corner-box .med2-title {
        font-size: 1.2rem;
    }

    /* Column 4 - Announcement Box */
    .med2-col-4 {
        gap: 1.2rem;
        height: auto;
    }

    .med2-announcement-box {
        padding: 1.2rem 1rem 1.2rem 1rem;
    }

    .med2-header {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .med2-header .highlight {
        font-size: 1.7rem;
        margin-top: 0.15rem;
        margin-bottom: 1rem;
    }

    .med2-description {
        font-size: 0.9rem;
    }

    .med2-btn {
        font-size: 0.9rem;
        padding: 0.45rem 0.7rem;
    }

    .btn-circle {
        width: 1rem;
        height: 1rem;
        font-size: 0.55rem;
    }

    /* All-News Grid - 2 Columns */
    .all-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .all-news-item {
        gap: 1.5rem;
    }

    .all-news-box {
        height: calc(35vh + 2rem);
    }

    .all-news-box img {
        height: 35vh;
    }

    .all-news-corner-box {
        padding: 1.2rem 0.8rem 0.8rem 0.8rem;
        height: 5.5rem;
    }

    .all-news-bottom {
        height: 1.5rem;
    }

    .all-news-type {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        transform: translateY(0.5rem);
    }

    .all-news-title {
        font-size: 1rem;
    }

    .all-news-date {
        padding: 0.8rem;
        font-size: 0.65rem;
    }

    /* Filters - 2 Per Row */
    .all-news-filters {
        padding-top: 2rem;
    }

    .all-news-filter-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .all-news-filter-group {
        min-width: auto;
    }

    .all-news-filter-group label {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    .all-news-filter-group input,
    .all-news-filter-group select {
        font-size: 0.9rem;
        height: 2.3rem;
        padding: 0.45rem;
    }

    .all-news-filter-group select {
        padding: 0.5rem 2rem 0.5rem 0.45rem;
    }

    .all-news-filter-group .bi-chevron-down {
        font-size: 0.9rem;
        right: 0.6rem;
    }

    .all-news-filter-actions {
        grid-column: 1 / -1;
        height: 2.3rem;
        gap: 0.8rem;
        width: 100%;
    }

    .all-news-btn-filter,
    .all-news-btn-reset {
        height: 2.3rem;
        padding: 0 1.2rem;
        font-size: 0.9rem;
        flex: 1;
    }

    .all-news-no-results {
        padding: 2rem;
        font-size: 0.9rem;
    }
}
.med-spacer {
  flex-grow: 1;
}


.med-footer {
  padding: 1rem 5%;
  background-color: #0B1625;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.footer-col {
  padding: 1rem;
  background: transparent;
}

.footer-col-wide {
  grid-column: span 2;
  margin-left: 1rem;
}

.footer-col-wide .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #E8F9FD;
  margin: 2rem 0 0.5rem 1rem;
}

.footer-links {
  list-style: none;
  margin: 2rem 0 0 1rem;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #E8F9FD;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col-wide .input-wrapper {
  position: relative;
  width: calc(100% - 1rem);
  margin-left: 1rem;
}

.footer-col-wide .form-control {
  width: 100%;
  height: 2.5rem;
  border: none;
  background-color: #E8F9FD;
  color: #010101;
  border-radius: 0.2rem;
  padding: 0 2.5rem 0 0.75rem;
  font-size: 1rem;
}

.footer-col-wide .form-control:focus {
  outline: none;
  box-shadow: none;
}

.footer-col-wide .input-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: #1B6FA0;
  pointer-events: none;
  font-size: 1.5rem;
}

.footer-col-wide .btn {
  margin-top: 1rem;
  border: 1px solid #E8F9FD;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  width: 8rem;
  border-radius: 0;
  margin-left: 1rem;
  display: inline-block;
}

.footer-title {
  margin: 2rem 0 1rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #E8F9FD;
  cursor: default;
}

.footer-brand {
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: flex-start;  /* horizontal left alignment */
  gap: 0.5rem;
  margin-top: 2rem;
}


.footer-logo {
  max-width: 7rem;
  height: 7rem;
}

.footer-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #E8F9FD;
  line-height: 1.2;
  font-family: 'Cormorant Garamond', serif;
}

.footer-socmed {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-socmed a {
  color: #E8F9FD;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-socmed i {
  color: #E8F9FD;
}

.footer-bottom {
    border-top: 1px solid rgba(232, 249, 253, 0.3);
    margin-top: 2rem; /* add spacing from footer columns */
    padding: 1rem 5%;  /* use same padding as footer-columns for alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allow stacking on smaller screens */
    font-size: 0.9rem;
    color: #E8F9FD;
    width: 100%; /* make sure it spans full width */
    box-sizing: border-box; /* includes padding in width */
}

.footer-bottom a {
  color: #E8F9FD;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .footer-col-wide {
    grid-column: span 2;
    margin-left: 0;
  }

  .footer-col-wide .form-label,
  .footer-title {
    margin-left: 0.5rem;
  }

  .footer-links {
    margin-left: 0.5rem;
  }

  .footer-col-wide .input-wrapper {
    width: 100%;
    margin-left: 0;
  }

  .footer-col-wide .btn {
    margin-left: 0;
    width: 100%;
  }

  .footer-socmed {
    justify-content: flex-start;
  }

  .footer-brand {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .footer-col-wide {
    grid-column: span 2;
    margin-left: 0;
  }

  .footer-col-wide .form-label,
  .footer-title {
    margin-left: 0.5rem;
  }

  .footer-links {
    margin-left: 0.5rem;
  }

  .footer-col-wide .input-wrapper {
    width: 100%;
    margin-left: 0;
  }

  .footer-col-wide .btn {
    margin-left: 0;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-socmed {
    justify-content: flex-start;
  }

  .footer-brand {
    justify-content: flex-start;
  }
}


/* event-exhibit */
.event-exhibit-detail {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: 80vh;
    box-sizing: border-box;
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: brightness(0.85) saturate(0.85) contrast(0.9);
}

.event-exhibit-detail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(
        to top,
        #010101 15%,
        rgba(1,1,1,0.7) 50%,
        rgba(1,1,1,0.4) 70%,
        rgba(1,1,1,0.1) 90%,
        rgba(0,0,0,0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.event-exhibit-title-wrapper {
    position: relative;
    margin-top: 35vh;
    margin-bottom: 0;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    border-top: 1px solid #ffffff;
    padding-top: 0.5rem;
    z-index: 2;
}

.event-exhibit-subtitle {
    position: absolute;
    transform: translateY(-4rem);
    left: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 0.2rem 0.5rem;
}

.event-exhibit-subtitle a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.event-exhibit-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.2;
    max-width: 90%;
    cursor: default;
}

.event-exhibit-intro {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.2;
    max-width: 90%;
    color: #ffffff;
    font-weight: 600;
}

.linked-event-item,
.linked-exhibit-item {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 1);
    margin-top: 1.5rem;
    margin-right: 0.5rem;
}

.linked-events a,
.linked-exhibit a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.more-events {
    display: inline-block;
    margin-left: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
}

.info-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 5%;
    margin: 0 0;
}

.info-grid-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: transparent;
    box-shadow: 0 4px 10px rgba(1, 1, 1, 0.1);
}

.info-grid-col:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 30%;
    bottom: 30%;
    width: 1px;
    background: rgba(1, 1, 1, 0.5);
    left: 0;
}

.info-grid-col p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    color: #010101;
    font-weight: 600;
}

.info-grid-link {
    cursor: pointer;
    background-color: blue;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.info-grid-link p {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-grid-link a {
    text-decoration: none;
}

.exhibit-icon,
.event-icon {
    color: blue;
    font-size: 1.3rem;
    margin-right: 0.2rem;
}

.event-exhibit-description {
    margin-top: 5rem;
    margin-bottom: 2rem;
    padding: 0 5%;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(1, 1, 1, 0.7);
    font-family: 'Cormorant', serif;
}

/* ============================================
   POPUP STYLES
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    border-radius: 0;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-left: 5px solid #4BA9D9;
    animation: slideUp 0.4s ease;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4BA9D9 0%, #3a8bb5 100%);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(75, 169, 217, 0.1);
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #4BA9D9;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.popup-close:hover {
    background: #4BA9D9;
    color: #ffffff;
    transform: rotate(90deg);
}

.popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #010101;
    margin-bottom: 1.2rem;
    margin-top: 0;
    position: relative;
    padding-bottom: 1rem;
}

.popup-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4BA9D9 0%, transparent 100%);
}

.popup-message {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   MODAL STYLES (REGISTRATION)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #010101;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #4BA9D9;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #010101;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.modal-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 1rem 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #010101;
    margin-bottom: 0.4rem;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4BA9D9;
}

.slots-info {
    margin: 1rem 0;
    padding: 1rem;
    background: #e8f5fa;
    border-left: 4px solid #4BA9D9;
}

.slots-available {
    margin: 0;
    font-size: 1rem;
    color: #010101;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background-color: #4BA9D9;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #3a8bb5;
}

.success-message,
.error-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon,
.error-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.success-icon {
    background-color: #27ae60;
    color: #ffffff;
}

.error-icon {
    background-color: #e74c3c;
    color: #ffffff;
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */
.artifact-carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #010101;
    padding-top: 5rem;
    text-align: center;
    display: block;
}

.artifact-carousel-title span {
    position: relative;
    display: inline-block;
}

.artifact-carousel-title span::after {
    content: '';
    display: block;
    width: 70%; 
    height: 2px; 
    background-color: #4BA9D9;
    margin: 2rem auto 0 auto;
}

.artifact-carousel {
    position: relative;
    padding: 3rem 5% 0;
}

.linked-artifacts-wrapper {
    overflow: hidden;
}

.linked-artifacts {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
}

.linked-artifact-item {
    flex: 0 0 calc(33.333% - 0.666rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
}

.linked-artifact-item img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.carousel-buttons-below {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-buttons-below .carousel-btn {
    background: none;
    border: 1px solid blue;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

.carousel-buttons-below .carousel-btn i {
    font-size: 1rem;
    color: #010101;
    line-height: 1;
}

.carousel-pagination {
    font-size: 1.2rem;
    font-weight: 500;
    color: #010101;
}

.linked-events-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #010101;
    padding-top: 2.5rem;
    text-align: center;
    display: block;
}

.linked-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0 5% 3rem 5%;
}

.linked-events-grid .linked-event-item {
    border: 1px solid blue;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    background-color: transparent;
}

.linked-events-grid .linked-event-item a {
    text-decoration: none;
    color: #010101;
    font-weight: 500;
    font-size: 0.9rem;
}

.eve-n-exhi-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #010101;
    padding-top: 3rem;
    text-align: center;
    display: block;
}

.eve-n-exhi-title span {
    position: relative;
    display: inline-block;
}

.eve-n-exhi-title span::after {
    content: '';
    display: block;
    width: 70%; 
    height: 2px; 
    background-color: blue;
    margin: 2rem auto 0 auto;
}

.eve-n-exhi-track {
    position: relative;
    padding: 3rem 5% 10rem 5%;
}

.eve-n-exhi-items-wrapper {
    overflow: hidden;
}

.eve-n-exhi-items {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
}

.eve-n-exhi-item {
    flex: 0 0 calc(33.333% - 0.666rem);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.eve-exhi-bottom {
    height: 3rem;
    background-color: #ffffff;
    transition: transform 0.15s ease;
    position: absolute;
    bottom: -1px;
    width: 101%;
    left: 0;
}

.corner-eve-exhi-box {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 90%;
    background-color: #ffffff;
    padding: 1.3rem 1rem 1rem 1.5rem;
    display: block;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 7rem;
}

.corner-eve-exhi-box span {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    margin: 0;
    text-align: left;
}

.eve-n-exhi-item:hover img,
.eve-n-exhi-item:hover .eve-exhi-bottom {
    transform: translateY(-3px);
}

.eve-n-exhi-item:hover .corner-eve-exhi-box {
    transform: translateY(-13px);
}

.eve-n-exhi-item img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    transition: transform 0.15s ease;
    display: block;
}

.eve-n-exhi-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.eve-n-exhi-btn {
    background: none;
    border: 1px solid blue;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

.eve-n-exhi-btn i {
    font-size: 1rem;
    color: #010101;
    line-height: 1;
}

.eve-n-exhi-pagination {
    font-size: 1.2rem;
    font-weight: 500;
    color: #010101;
}

.main-menu-title-container {
    width: 100%;
    height: 65vh;
    background-color: #010101;
    position: relative !important;
    z-index: 1 !important;
}



/* ============================================
   MEDIA QUERY - 768px
   ============================================ */
@media (max-width: 768px) {
    /* Event Exhibit Detail Header */
    .event-exhibit-detail {
        min-height: 60vh;
        padding-bottom: 3rem;
    }
    .main-menu-title-container {
    width: 100%;
    height: 25vh;
    background-color: #010101;
    position: relative !important;
    z-index: 1 !important;
}

    .event-exhibit-title-wrapper {
        margin-top: 25vh;
        margin-left: 3%;
        margin-right: 3%;
        width: 94%;
    }

    .event-exhibit-subtitle {
        font-size: 0.85rem;
        transform: translateY(-3rem);
    }

    .event-exhibit-title {
        font-size: 2rem;
        max-width: 100%;
    }

    .event-exhibit-intro {
        font-size: 1rem;
        max-width: 100%;
        margin-top: 1rem;
    }

    /* Info Grid */
    .info-grid-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 3%;
    }

    .info-grid-col {
        padding: 1rem 0.5rem;
    }

    .info-grid-col:nth-child(2)::before {
        display: none;
    }

    .info-grid-col p {
        font-size: 0.9rem;
    }

    .info-grid-link p {
        font-size: 1rem;
    }

    /* Description */
    .event-exhibit-description {
        margin-top: 3rem;
        padding: 0 3%;
        font-size: 0.95rem;
    }

    /* Artifact Carousel - Show 2 items */
    .artifact-carousel-title {
        font-size: 2rem;
        padding-top: 3rem;
    }

    .artifact-carousel {
        padding: 2rem 3% 0;
    }

    .linked-artifact-item {
        flex: 0 0 calc(50% - 0.5rem);
    }

    /* Linked Events Grid - Show 2 columns */
    .linked-events-title {
        font-size: 2rem;
        padding-top: 2rem;
    }

    .linked-events-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 3% 2rem 3%;
        gap: 0.4rem;
    }

    .linked-events-grid .linked-event-item {
        padding: 0.8rem;
    }

    .linked-events-grid .linked-event-item a {
        font-size: 0.85rem;
    }

    /* Related Events/Exhibits - Show 2 items */
    .eve-n-exhi-title {
        font-size: 2rem;
        padding-top: 2rem;
    }

    .eve-n-exhi-track {
        padding: 2rem 3% 5rem 3%;
    }

    .eve-n-exhi-item {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .corner-eve-exhi-box {
        height: 6rem;
        padding: 1rem 0.8rem 0.8rem 1rem;
    }

    .corner-eve-exhi-box span {
        font-size: 1.1rem;
    }

    /* Popup & Modal */
    .popup-content,
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .popup-title,
    .modal-title {
        font-size: 1.5rem;
    }

    .popup-message,
    .modal-message {
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Carousel Controls */
    .carousel-pagination,
    .eve-n-exhi-pagination {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .info-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.main-menu-container {
    margin: -23% 5% 5% 5%;
    padding: 3rem 5rem;
    text-align: left;
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.main-menu-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-left: -5rem;
    padding: 1rem 5rem 1rem 5rem;
    color: #ffffff;
    font-weight: 700;
    background-color: blue;
    display: inline-block;
    border-bottom: 0.3rem solid #C0C0C0;
}

.main-menu-container .note-description {
    font-size: 1.1rem;
    color: rgba(1, 1, 1, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.main-menu-container img {
    width: 100%;
    max-width: 100%;
    height: 80vh;
    margin-bottom: 0;
    display: block;
}

.main-menu-container .note-title {
    font-size: 1.5rem;
    color: #010101;
    font-weight: 700;
    padding-top: 3rem;
}

.main-menu-container .add-note-title {
    font-size: 1.5rem;
    color: #010101;
    font-weight: 700;
    padding-top: 5rem;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* submenu four */
.submenu-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.submenu-grid-four .submenu-box img {
    height: 25vh;
}

/* submenu two */
.submenu-grid-two {
    grid-template-columns: repeat(2, 1fr);
}

.submenu-grid-two .submenu-box img {
    height: 45vh;
}


.submenu-item {
    width: 100%;
}

.submenu-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    line-height: 0;
    font-size: 0;
}

.submenu-box img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
    margin: 0;
    padding: 0;
    border: 0;
}

.submenu-bottom {
    height: 2rem;
    background-color: #ffffff;
    transition: transform 0.15s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.submenu-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.3rem 1rem 1rem 1.5rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 6rem;
    font-size: 1rem;
}

.submenu-box:hover img,
.submenu-box:hover .submenu-bottom {
    transform: translateY(-5px);
}

.submenu-box:hover .submenu-corner-box {
    transform: translateY(-10px);
}

.submenu-corner-box .submenu-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.submenu-link {
    text-decoration: none;
    display: block;
}

@media (max-width: 768px) {
    /* Main Menu Container */
    .main-menu-container {
        margin: -15% 5% 5% 5%;
        padding: 2rem 1.5rem;
    }

    .main-menu-container h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        margin-left: 0;
        padding: 0.8rem 2rem 0.8rem 2rem;
        border-bottom: 0.25rem solid #C0C0C0;
    }

    .main-menu-container .note-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .main-menu-container img {
        height: 50vh;
        margin-bottom: 0;
    }

    .main-menu-container .note-title {
        font-size: 1.3rem;
        padding-top: 2rem;
    }

    .main-menu-container .add-note-title {
        font-size: 1.3rem;
        padding-top: 3rem;
    }

    /* Submenu Grid - Default 3 columns to 2 */
    .submenu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Submenu Four - 4 columns to 2 */
    .submenu-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .submenu-grid-four .submenu-box img {
        height: 30vh;
    }

    /* Submenu Two - Keep 2 columns */
    .submenu-grid-two {
        grid-template-columns: repeat(2, 1fr);
    }

    .submenu-grid-two .submenu-box img {
        height: 40vh;
    }

    /* Submenu Box */
    .submenu-box img {
        height: 35vh;
    }

    .submenu-bottom {
        height: 1.5rem;
    }

    .submenu-corner-box {
        padding: 1.1rem 0.8rem 0.8rem 1.2rem;
        height: 5.5rem;
    }

    .submenu-corner-box .submenu-title {
        font-size: 1.1rem;
    }
}

/* event */
.events-header-container {
    background-color: #010101;
    width: 100%;
    padding: 5rem 5% 3rem 5%;
}

.events-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-page-title {
    font-size: 2rem;
    margin-left: -5rem;
    padding: 1rem 5rem 1rem 5rem;
    color: #ffffff;
    font-weight: 700;
    background-color: blue;
    display: inline-block;
    border-bottom: 0.3rem solid #C0C0C0;
}

.events-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}

.breadcrumb-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: blue;
}

.breadcrumb-separator {
    color: #ffffff;
}

.submenu-section {
    padding: 0 5%;
}

@media (max-width: 768px) {
    /* Events Header */
    .events-header-container {
        padding: 3rem 1% 2rem 0%;
    }

    .events-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .events-page-title {
        font-size: 1.5rem;
        margin-left: 0;
        padding: 0.8rem 1rem 0.8rem 2rem;
        border-bottom: 0.25rem solid #C0C0C0;
    }

    .events-breadcrumb {
        gap: 0.4rem;
        font-size: 0.9rem;
        margin-left: 2rem
    }

    .breadcrumb-separator {
        font-size: 0.8rem;
    }
}
.events-content-wrapper {
    position: relative;
    padding-bottom: 5rem;
}

.events-main-container {
    display: flex;
    max-width: 100%;
    margin: 1.2rem 0;
    gap: 1.8rem;
    position: relative;
}

.events-list-column {
    flex: 2;
}

.events-filter-container {
    background-color: transparent;
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.events-filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 10rem;
}

.select-wrapper {
    position: relative;
    display: block; /* not flex */
}

.select-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(1, 1, 1, 0.7);
    font-size: 1rem;
    transition: color 0.3s;
}

.filter-select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid blue;
    border-radius: 0;
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: blue;
}


.filter-select:focus + .select-icon {
    color: blue;
}


.filter-apply-btn {
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    color: #010101;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: none;
}

.events-list-wrapper {
    display: flex;
    flex-direction: column;
}

.no-events-message {
    text-align: center;
    padding: 2rem;
    color: rgba(1,1,1,0.7);
}

.event-card {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.event-card:first-child {
    padding-top: 0;
}

.event-card.highlight-event {
    background-color: #E8F9FD;
    border-left: 4px solid blue;
    padding-left: 1rem;
}

.event-day-date {
    font-size: 0.85rem;
    color: blue;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.event-day-date::after {
    content: "";
    display: block;
    width: 95%;
    border-bottom: 0.125rem solid rgba(0, 0, 255, 0.2);
    margin-top: 0.75rem;
}

.event-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.event-title-link:hover {
    color: blue;
}

.event-title {
    font-size: 2.5rem;
    color: #010101;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.event-time-info {
    font-size: 0.95rem;
    color: rgba(1,1,1,0.7);
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-registration-deadline {
    color: red;
    font-weight: 500;
}

.event-intro {
    color: rgba(1,1,1,0.7);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

.event-exhibition-info {
    font-size: 1rem;
    color: rgba(1,1,1,0.7);
    margin-top: 1.5rem;
}

.exhibition-name {
    font-weight: 600;
    color: rgba(1, 1, 1, 0.7);
}

.exhibition-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.exhibition-name-link:hover {
    color: blue;
}

.events-calendar-column {
    flex: 1.5;
    position: -webkit-sticky;
    position: sticky;
    top: 10rem;
    align-self: flex-start;
    background-color: #ffffff;
    overflow: hidden;
    height: fit-content;
    max-height: calc(100vh - 11rem);
}

.events-calendar-column-mobile {
    display: none;
}

.calendar-header-bar {
    background-color: blue;
    padding: 0.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem 0.7rem;
    transition: opacity 0.3s;
}

.calendar-nav-btn:hover {
    opacity: 0.7;
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-month-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-grid-container {
    padding: 1rem;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day-header {
    font-weight: bold;
    padding: 0.6rem 0;
    color: #010101;
    font-size: 1rem;
}

.calendar-day-cell {
    padding: 0.6rem;
    cursor: pointer;
    transition: none;
    font-size: 0.9rem;
}

.calendar-day-today {
    background-color: blue;
    color: #ffffff;
    font-weight: 700;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

@media (max-width: 768px) {
    .events-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .events-page-title {
        font-size: 1.8rem;
        padding: 0.8rem 2rem;
    }

    .events-main-container {
        flex-direction: column;
    }

    .events-calendar-column {
        display: none;
    }

    .events-calendar-column-mobile {
        display: block;
        background-color: #ffffff;
        margin: 2rem auto;
        max-width: 500px;
    }

    .events-filter-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-apply-btn {
        width: 100%;
    }

    .events-filter-container {
        padding-bottom: 2rem;
    }
}

.learning-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.learning-entry {
    text-align: left;
}

.learning-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #010101;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}


.learning-date {
    font-size: 0.9rem;
    color: rgba(1, 1, 1, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.learning-content {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(1, 1, 1, 0.7);
    max-width: 70rem;
    font-weight: 500;
    font-family: 'Cormorant', serif;
}

.attention-section {
    background: none;
}

.attention-container {
    position: relative;
    display: inline-block;
    padding-left: 1.5rem;
    margin-left: 2rem;
    max-width: 50rem;
}

.attention-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 4rem;
    background-color: blue;
    border-radius: 2rem;
}

.attention-text {
    display: flex;
    flex-direction: column;
}

.attention-title {
    font-size: 1rem;
    font-weight: 600;
    color: #010101;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.attention-content {
    color: rgba(1, 1, 1, 0.7);
    font-size: 0.8rem;
    line-height: 1.5;
}

.attention-title i.bi-info-circle {
    color: #010101;
}


.learning-grid-section {
    padding: 4rem 5%;
}

.learning-grid-container {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3rem;
    align-items: start;
}

.learning-grid-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.plan-visit-col {
    background-color: transparent; /* or your preferred color */
    padding: 3rem;
    min-height: 20rem;
    border: 1px solid rgba(1, 1, 1, 0.3);
    /* Center content */
    display: flex;
    flex-direction: column;
    align-items: center;   /* horizontally center */
    justify-content: center; /* vertically center */
    text-align: center;     /* center the text */
    gap: 1rem;
}

.plan-visit-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: blue;
    margin-bottom: 1rem; /* or your theme color */
}

.plan-visit-text {
    font-size: 0.95rem;
    color: rgba(1, 1, 1, 0.7);
    line-height: 1.5;
    max-width: 30rem; /* keeps the paragraph readable */
    margin-bottom: 3rem;
}


.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: blue;
    color: #ffffff;
    width: 25rem; /* adjust as needed */
    padding: 0.5rem 0.8rem;
    border-radius: 0; /* removes the curve */
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
}

.chevron-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: blue;
    border-radius: 50%;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 8px;
    font-size: 0.5rem;
}


.video-section-full {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.video-section-inner {
    padding: 3rem 5% 8rem 5%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.sub-exhibit-section {
    padding: 5rem 0;
}

.sub-exhibit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sub-exhibit-link {
    text-decoration: none;
    display: block;
}

.sub-exhibit-item {
    width: 100%;
}

.sub-exhibit-box {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.sub-exhibit-box img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.sub-exhibit-bottom {
    height: 4rem;
    background-color: #ffffff;
    transition: transform 0.15s ease;
}

.sub-exhibit-corner-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90%;
    background-color: #ffffff;
    padding: 1.5rem 1rem 1rem 1rem;
    line-height: normal;
    text-align: left;
    transition: transform 0.15s ease;
    z-index: 2;
    height: 8rem;
}

.sub-exhibit-box:hover img,
.sub-exhibit-box:hover .sub-exhibit-bottom {
    transform: translateY(-5px);
}

.sub-exhibit-box:hover .sub-exhibit-corner-box {
    transform: translateY(-10px);
}

.sub-exhibit-corner-box .sub-exhibit-type {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #E8F9FD;
    background-color: #010101;
    padding: 0.4rem 0.6rem;
    transform: translateY(0.8rem);
    text-transform: uppercase;
}

.sub-exhibit-corner-box .sub-exhibit-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #010101;
    line-height: 1.3;
    word-break: break-word;
    display: block;
    margin: 0;
    text-align: left !important;
}

.no-exhibits-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(1, 1, 1, 0.5);
    font-size: 1.1rem;
}

/* Media Query for screens 768px and below */
@media (max-width: 768px) {
    
    .learning-grid-section {
        padding: 2rem 5%;
    }

    .learning-grid-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .plan-visit-col {
        padding: 2rem;
        min-height: auto;
        width: 100%;
    }

    .small-btn {
        width: 100%; /* make button full width on mobile */
    }

    .video-section-inner {
        padding: 2rem 5% 4rem 5%;
    }

    .sub-exhibit-grid {
        grid-template-columns: repeat(2, 1fr); /* two columns instead of four */
        gap: 1rem;
        padding: 0 1rem;
    }

    .sub-exhibit-box img {
        height: 25vh; /* slightly smaller for mobile */
    }

    .sub-exhibit-corner-box {
        height: auto; /* adjust height for smaller screens */
        padding: 1rem 0.8rem;
    }

    .sub-exhibit-corner-box .sub-exhibit-title {
        font-size: 1rem;
    }

    .sub-exhibit-corner-box .sub-exhibit-type {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }

    /* Optional: adjust spacing for video wrapper */
    .video-wrapper {
        aspect-ratio: 16/9; /* keeps same ratio, width is 100% */
    }
}


@media (max-width: 768px) {
    .sub-exhibit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .sub-exhibit-corner-box .sub-exhibit-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sub-exhibit-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sub-exhibit-box img {
        height: 30vh;
    }
}

/* FAQs */
.faq-section {
    padding: 3rem 5% 5rem 5%;
    width: 100%;
}

.faq-group {
    margin-bottom: 3rem;
}

.faq-group-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a1a1a;
    text-align: center;
}

.faq-item {
    border: 1px solid rgba(1, 1, 1, 0.5);
    margin: 0;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0 !important;
}

.accordion-button {
    font-weight: 600;
    color: #010101;
    border-radius: 0 !important;
    box-shadow: none;
    font-size: 1.2rem;
}

.accordion-button:focus,
.accordion-button:not(.collapsed) {
    background-color: blue;
    box-shadow: none;
    color: #ffffff;
}

.accordion-button:focus .toggle-icon,
.accordion-button:not(.collapsed) .toggle-icon {
    color: #ffffff;
}

.accordion-button::after {
    display: none;
}

.accordion-collapse {
    border-radius: 0 !important;
}

.accordion-body {
    background-color: transparent;
    padding: 1.5rem 2rem;
    color: rgba(1, 1, 1, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Cormorant', serif;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #007bff;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.faq-description-top {
    text-align: left;
    color: #010101;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.faq-image-wrapper {
    text-align: center;
    margin-bottom: 5rem;
}

.faq-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .faq-section {
        padding: 2rem 5% 3rem 5%;
    }

    .faq-group-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .accordion-button {
        font-size: 1rem;
    }

    .toggle-icon {
        font-size: 1.25rem;
    }

    .faq-description-top {
        font-size: 1.1rem;
    }

    .faq-image-wrapper {
        margin-bottom: 3rem;
    }
}

/* Sitemap */
.museum-location-section {
    padding: 3rem 5% 5rem 5%;
    width: 100%;
}

.museum-description-top {
    text-align: left;
    color: #010101;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.museum-map-wrapper {
    width: 100%;
    height: 40rem; /* desktop height */
    margin-bottom: 2rem;
}

.museum-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.text-center.mt-3 {
    text-align: center;
    margin-top: 1rem;
}

.museum-location-section .btn {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    border-radius: 0;       /* remove rounded corners */
    background-color: blue;
    font-weight: 600;
}


@media (max-width: 768px) {
    .museum-location-section {
        padding: 2rem 5% 3rem 5%;
    }
    .museum-map-wrapper {
        height: 25rem; /* mobile height */
    }
    .museum-description-top {
        font-size: 1.1rem;
    }
}


/* history */
.history-section {
    padding: 3rem 5% 5rem 5%;
}

.history-item {
    padding-bottom: 0;
}

.history-image-wrapper {
    width: 100%;
    padding-bottom: 2rem; 
    padding-top: 2rem;/* spacing below image */
}

.history-image-wrapper img {
    width: 100%;
    height: 40rem;
    display: block;
}

.history-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
}

.history-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(1, 1, 1, 0.7);
    font-weight: 500;
    font-family: 'Cormorant', serif;
}

@media (max-width: 768px) {
    .history-section {
        padding: 2rem 5% 3rem 5%;
    }
    .history-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    .history-description {
        font-size: 1rem;
    }
    .history-image-wrapper {
        margin-bottom: 1.5rem;
    }
}

/* visitor */
.snav-section {
    padding: 5rem 5% 5rem 5%;
}

.snav-image-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 5rem;
}

.snav-image-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.snav-grid {
    display: flex;        /* make children sit in a row */
    gap: 2rem;
    align-items: flex-start;
}

.welcome-text {
    flex: 1;                 /* 1 portion of space */
    text-align: right;
    border-right: 2px solid blue;
    padding-right: 1.5rem;
}

.welcome-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.visitor-info {
    flex: 1;                 /* 2 portions, wider */
}

.visitor-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.7rem;
    color: rgba(1, 1, 1, 0.7);
    font-weight: 500;
    font-family: 'Cormorant', serif;
}

.action-buttons {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-buttons .btn {
    max-width: 20rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0;
    background-color: blue; 
    color: #ffffff;              
    border: none;
    padding: 0.5rem 1rem;
}

.action-buttons .btn:hover,
.action-buttons .btn:focus {
    background-color: blue; 
    color: #ffffff;
}

.action-buttons .btn i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.4rem;
    height: 1.4rem;
    color: blue;
    border-radius: 50%;
    font-size: 0.7rem;
    background-color: #ffffff; 
}

.visitor-tips-section {
    width: 100%;
    margin-top: 3rem;
}

.visitor-tips-title-wrapper {
    text-align: center; /* center the title container */
}

.visitor-tips-title {
    font-size: 2.5rem;
    font-weight: 700;
    padding-top: 3rem;
    padding-bottom: 2rem;
    display: inline-block;  /* shrink container to text width */
    position: relative;
}

.visitor-tips-title::after {
    content: "";
    display: block;
    width: 60%;            /* underline width relative to title */
    height: 2px;
    background-color: blue;
    margin: 2rem auto 0 auto; /* center underline under title */
}


.visitor-tips-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.visitor-tip-box {
    flex: 1 1 calc(20% - 1rem);
    border: 1px solid blue;
    background-color: transparent;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    min-width: 15rem;
}

@media (max-width: 768px) {
    .snav-section {
        padding: 3rem 5% 3rem 5%;
    }

    .snav-image-wrapper {
        margin-bottom: 3rem;
    }

    .snav-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .welcome-text {
        text-align: left;
        border-right: none;
        padding-right: 0;
        text-transform: uppercase;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    .visitor-info p {
        font-size: 1rem;
    }

    .action-buttons {
        flex: 1 1 100%;          /* make the column full width */
        width: 100%;
    }

    .action-buttons .btn {
        flex: 1 1 100%;          /* button takes full width of parent */
        max-width: 100%;
    }

    .action-buttons .btn i {
        margin-left: 0.5rem;
    }

    .visitor-tip-box {
      flex: 1 1 calc(50% - 1rem);
      font-size: 0.9rem;
    }
}

/* news detail */
.news-banner {
    background-color: #010101;
    width: 100%;
    padding: 5rem 5% 3rem 5%;
}

.news-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-banner-title {
    font-size: 2rem;
    margin-left: -5rem;
    padding: 1rem 5rem;
    color: #ffffff;
    font-weight: 700;
    background-color: blue;
    display: inline-block;
    border-bottom: 0.3rem solid #C0C0C0;
}

.news-banner-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.news-banner-link i {
    margin-right: 0.4rem; /* space between icon and text */
    font-size: 1.1rem;
    vertical-align: middle;
}

.news-body-date {
    font-size: 1rem; 
    color: #010101;   
    display: flex;   
    align-items: center;
    gap: 0.7rem; 
    font-weight: 600;     
}

.news-body-date i {
    color: blue;   
    font-size: 1rem;  
}


.news-body-container {
    display: flex;
    gap: 2rem;
    padding: 5rem 5%;
    height: 50rem; 
    align-items: stretch; 
}

.news-body-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.news-body-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-body-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-body-content {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
    font-family: 'Cormorant', serif;
    font-weight: 500;
    color: rgba(1, 1, 1, 0.7);
}

.pagination-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.pagination-buttons a {
    display: flex;
    align-items: center;
    gap: 0.7rem; 
    text-decoration: none;
    font-size: 1rem;
    color: #010101;
    font-weight: 600;
}

.pagination-buttons .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid blue;
    background: transparent;
}

.pagination-buttons .circle i {
    font-size: 1rem;
}

.news-body-category {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content;
    background-color: #007BFF;
    color: #ffffff;
    padding: 0.7rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}


@media (max-width: 768px) {
    .news-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .news-banner-title {
        margin-left: 0;
    }

    .news-body-container {
        flex-direction: column;
        height: auto; /* allow variable height on mobile */
    }

    .news-body-image {
        width: 100%;
        height: 20rem; /* smaller fixed height on mobile */
    }

    .news-body-text {
        margin-top: 1.5rem;
        justify-content: flex-start;
    }

    .pagination-buttons {
        justify-content: left;
        gap: 1rem;
    }
}



/* --- Form Type Switcher (Tabs) --- */
.stud-org-form-switcher {
    max-width: 700px;
    margin: 20px auto 30px auto;
    display: flex;
    gap: 40px;
    justify-content: center;
    border-bottom: 1px solid #ddd;
}

.section-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-banner-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.section-banner-right .section-banner-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.section-banner-right i {
    font-size: 1rem;
    color: #ffffff;
}

.stud-org-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: rgba(1, 1, 1, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.stud-org-btn:hover {
    color: #010101;
}

.stud-org-btn.active {
    color: blue;
    border-bottom: 2px solid blue;
}

/* --- Multi-Step Forms --- */
.stud-form,
.org-form {
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 30px 0;
}

.stud-form h3,
.org-form h3 {
    text-align: right;
    margin-bottom: 3rem;
    color: blue;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Form Steps */
.stud-form-step,
.org-form-step {
    display: none;
}

.stud-form-step.active,
.org-form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Groups & Rows */
.stud-form-group,
.org-form-group {
    margin-bottom: 1rem;
}

.stud-form-row,
.org-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stud-form-row-triple {
    gap: 1rem;
}

.stud-form-col,
.org-form-col {
    flex: 1;
}

/* Labels */
.stud-form-group label,
.stud-form-col label,
.org-form-group label,
.org-form-col label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #010101;
}

/* Inputs & Selects */
.stud-form-group input,
.stud-form-group select,
.stud-form-col input,
.stud-form-col select,
.org-form-group input,
.org-form-group select,
.org-form-col input,
.org-form-col select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.stud-form-group input:focus,
.stud-form-group select:focus,
.stud-form-col input:focus,
.stud-form-col select:focus,
.org-form-group input:focus,
.org-form-group select:focus,
.org-form-col input:focus,
.org-form-col select:focus {
    outline: none;
    border-color: blue;
}

/* Checkbox Wrappers */
.stud-checkbox-wrapper,
.org-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.stud-checkbox-wrapper input[type="checkbox"],
.org-checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-left: 0;
    margin-right: 0.5rem;
    cursor: pointer;
}


.stud-checkbox-wrapper label,
.org-checkbox-wrapper label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

/* Middle Name Container */
.stud-middle-name-container,
.org-middle-name-container {
    margin-bottom: 1rem;
}

.stud-middle-name-field,
.org-middle-name-field {
    margin-top: 15px;
}

/* Organization Type Other Field */
.org-type-other-field {
    margin-top: 15px;
}

/* Navigation Buttons */
.stud-nav-buttons,
.org-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.stud-btn-next,
.stud-btn-back,
.org-btn-next,
.org-btn-back {
    background: transparent;
    border: none;
    color: #010101;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: color 0.3s;
}

.stud-btn-next:hover,
.stud-btn-back:hover,
.org-btn-next:hover,
.org-btn-back:hover {
    color: blue;
}

.stud-btn-next i,
.stud-btn-back i,
.org-btn-next i,
.org-btn-back i {
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;      
    height: 1.2rem;     
    border-radius: 50%; 
    transition: all 0.3s ease;
    background-color: #010101;
    color: #ffffff
}

.stud-btn-next:hover i,
.stud-btn-back:hover i,
.org-btn-next:hover i,
.org-btn-back:hover i {
    background-color: blue; /* fill on hover */
    color: #ffffff;               /* arrow color on hover */
    transform: scale(1.1);     /* slight pop effect */
}


/* Submit Button */
.stud-btn-submit,
.org-btn-submit {
    padding: 12px 30px;
    background-color: #010101;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.stud-btn-submit:hover,
.org-btn-submit:hover {
    background-color: blue;
}

/* When only submit button exists */
.stud-nav-buttons .stud-btn-submit:only-child,
.org-nav-buttons .org-btn-submit:only-child {
    margin-left: auto;
}

.gettinghere-image {
    display: block;
    width: 100%;
    padding: 3rem 5%; /* 2rem top/bottom, 5% left/right */
    box-sizing: border-box; /* ensures padding doesn’t make it overflow */
    height: 30rem;
    object-fit: cover;
}


/* Responsive */
@media (max-width: 768px) {
    .stud-form,
    .org-form {
        padding: 2rem 5%;
    }

    .stud-org-form-switcher {
        gap: 20px;
        padding: 0 15px;
    }

    .stud-org-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .stud-form-row,
    .org-form-row {
        flex-direction: column;
        gap: 0;
    }

    .stud-form-row-triple {
        flex-direction: column;
    }

    .stud-nav-buttons,
    .org-nav-buttons {
        flex-direction: row;
        justify-content: space-between;
    }

    .stud-btn-next,
    .stud-btn-back,
    .org-btn-next,
    .org-btn-back {
        font-size: 0.9rem;
    }
}


/* Featured Collection Section */
.featured-collection-section {
    padding: 60px 5% 80px 5%;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Filter Control Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
}

/* Masonry Grid */
.gallery-masonry-grid {
    column-count: 4;
    column-gap: 25px;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 25px;
    display: inline-block;
    width: 100%;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    overflow: hidden;
}

.gallery-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.gallery-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

/* Overlay on Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: #ffffff;
}

.overlay-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.overlay-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e9ecef;
}

/* Gallery Info */
.gallery-info {
    padding: 20px;
}

.artifact-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.artifact-preview {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design - Tablet (768px) */
@media (max-width: 768px) {
    .featured-collection-section {
        padding: 40px 5% 60px 5%;
    }

    .gallery-main-title {
        font-size: 2rem;
    }

    .gallery-filters {
        gap: 10px;
        margin-bottom: 40px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    /* Two columns for tablet */
    .gallery-masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }

    .gallery-item {
        margin-bottom: 20px;
    }

    .gallery-info {
        padding: 15px;
    }

    .artifact-name {
        font-size: 1rem;
    }

    .artifact-preview {
        font-size: 0.85rem;
    }

    .overlay-title {
        font-size: 1.1rem;
    }

    .overlay-description {
        font-size: 0.85rem;
    }
}

/* Responsive Design - Mobile (below 768px) */
@media (max-width: 480px) {
    .featured-collection-section {
        padding: 30px 5% 50px 5%;
    }

    .gallery-main-title {
        font-size: 1.75rem;
    }

    .gallery-filters {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Single column for mobile */
    .gallery-masonry-grid {
        column-count: 1;
        column-gap: 0;
    }

    .gallery-item {
        margin-bottom: 20px;
    }

    .gallery-info {
        padding: 15px;
    }

    .artifact-name {
        font-size: 0.95rem;
    }

    .artifact-preview {
        font-size: 0.8rem;
    }

    .overlay-title {
        font-size: 1rem;
    }

    .overlay-description {
        font-size: 0.8rem;
    }
}

