/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --sky-blue-crayola: hsl(188, 64%, 60%);
  --raisin-black_90: hsla(240, 8%, 12%, 0.9);
  --raisin-black-1: hsl(240, 8%, 17%);
  --raisin-black-2: hsl(240, 8%, 12%);
  --light-red: hsl(350, 86%, 52%);
  --blue-ryb_80: hsla(241, 88%, 60%, 0.8);
  --bittersweet: hsl(0, 100%, 69%);
  --eerie-black: hsl(0, 0%, 13%);
  --ghost-white: hsl(230, 60%, 98%);
  --light-gray: hsl(0, 0%, 80%);
  --slate-gray: hsl(225, 8%, 48%);
  --cool-gray: hsl(225, 11%, 59%);
  --gainsboro: hsl(217, 16%, 90%);
 
  --lightgreen: #d0f0d9;
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --onyx: hsl(240, 5%, 26%);
  --jet: hsl(0, 0%, 21%);

  /**
   * gradient
   */

  --gradient: radial-gradient(ellipse at center, hsla(0, 0%, 0%, 0.25), transparent 80%);

  /**
   * typography
   */

  --ff-dm-sans: 'DM Sans', sans-serif;

  --fs-1: 4rem;
  --fs-2: 3.5rem;
  --fs-3: 2.4rem;
  --fs-4: 2.2rem;
  --fs-5: 2rem;
  --fs-6: 1.8rem;
  --fs-7: 1.7rem;
  --fs-8: 1.5rem;
  --fs-9: 1.4rem;

  --fw-500: 500;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 100px;

  /**
   * shadow
   */

  --shadow-1: 0px 2px 50px hsla(223, 40%, 76%, 0.3);
  --shadow-2: 0px -2px 12px hsl(252, 29%, 93%);
  --shadow-3: 0px 4px 4px hsla(231, 20%, 49%, 0.06);
  --shadow-4: 0px 15px 30px hsla(210, 30%, 32%, 0.05);
  --shadow-5: 0px 15px hsla(241, 62%, 34%, 0.04);

  /**
   * radius
   */

  --radius-8: 8px;
  --radius-10: 10px;
  --radius-15: 15px;
  --radius-20: 20px;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a,
img,
span,
input,
button,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-dm-sans);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--slate-gray);
  font-size: 1.6rem;
  line-height: 1.75;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 98%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

.section { padding-block: var(--section-padding); }

.h1,
.h2 { letter-spacing: -2px; }

.h1 {
  color: var(--black);
  font-size: var(--fs-1);
  line-height: 1.1;
}

.h2,
.h3 { color: var(--raisin-black-1); }

.h2 {
  font-size: 3.7rem;
  line-height: 1.2;
}

.h3 {
  font-size: var(--fs-3);
  line-height: 1.3;
  font-weight: var(--fw-500);
}

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  content: "";
  position: absolute;
}

:is(.h1, .h2) .has-before { display: inline-block; }

:is(.h1, .h2) .has-before::before {
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--lightgreen);
  z-index: -1;
}

.btn {
  max-width: max-content;
  font-weight: var(--fw-700);
  height: 55px;
  display: flex;
  align-items: center;
  padding-inline: 50px;
  border-radius: var(--radius-10);
  overflow: hidden;
  transition: var(--transition-2);
}

.btn::before,
.btn::after {
  right: 0;
  width: 100%;
  height: 50%;
  transform: scaleX(0);
  background-color: var(--lightgreen);
  z-index: -1;
  transition: transform var(--transition-1);
}

.btn::before {
  top: 0;
  transform-origin: left;
}

.btn::after {
  top: 50%;
  transform-origin: right;
}

.btn:is(:hover, :focus)::before,
.btn:is(:hover, :focus)::after { transform: scaleX(1); }

.btn:is(:hover, :focus)::before { transform-origin: right; }

.btn:is(:hover, :focus)::after { transform-origin: left; }

.btn-primary {
  background-color: var(--light-red);
  color: var(--white);
}

.btn-primary:is(:hover, :focus) { color: var(--raisin-black-1); }

.btn-secondary {
  background-color: var(--lightgreen);
  color: var(--raisin-black-1);
  gap: 15px;
}

.btn-secondary::before,
.btn-secondary::after { background-color: var(--sky-blue-crayola); }

.btn-secondary:is(:hover, :focus) { color: var(--white); }

.social-list { display: flex; }

.w-100 { width: 100%; }

.section-subtitle {
  color: var(--cool-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  line-height: 1.2;
}

.section-subtitle::before {
  position: static;
  width: 12px;
  height: 12px;
  background-color: var(--lightgreen);
  display: inline-block;
  border-radius: 50%;
  margin-inline-end: 10px;
}

.text-center { text-align: center; }

.section-title { margin-block: 30px 50px; }

.grid-list {
  display: grid;
  gap: 30px;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header .btn { display: none; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 25px;
  transition: padding var(--transition-1), background-color var(--transition-1);
  z-index: 4;
}

.header.active {
  background-color: var(--white);
  padding-block: 15px;
  box-shadow: var(--shadow-1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  color: var(--raisin-black-1);
  font-size: 2rem;
  font-weight: var(--fw-700);
  transition: var(--transition-1);
}

/* New Back to Events link styles with Glassmorphism */
.back-to-events-link {
  display: none; /* Hidden by default */
  align-items: center;
  gap: 8px;
  color: var(--raisin-black-1);
  font-weight: var(--fw-700);
  font-size: var(--fs-6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-events-link:hover {
  color: var(--light-red);
  transform: translateY(-2px);
}

.back-to-events-link:active {
  transform: translateY(0);
}

.back-to-events-link ion-icon {
  font-size: 2.2rem;
  transition: transform 0.3s ease;
}

.back-to-events-link:hover ion-icon {
  transform: translateX(-3px);
}

/* Logic to show the back button and hide other elements */
body.event-page-active .header .back-to-events-link {
  display: flex;
}

body.event-page-active .header .logo,
body.event-page-active .header .navbar,
body.event-page-active .header .nav-open-btn,
body.event-page-active .header .btn {
  display: none; /* Hide original nav items */
}

/* Enhanced header styling for event pages with glassmorphism support */
body.event-page-active .header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-open-btn {
  background-color: var(--white);
  color: var(--eerie-black);
  font-size: 35px;
  padding: 10px;
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-10);
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--raisin-black-2);
  color: var(--white);
  max-width: 300px;
  width: 100%;
  height: 100%;
  padding: 30px;
  z-index: 1;
  transform: translateX(100%);
  visibility: hidden;
  transition: 0.25s var(--cubic-in);
}

.navbar.active {
  transform: translateX(0);
  visibility: visible;
  transition: 0.5s var(--cubic-out);
}

.navbar .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 60px;
}

.navbar .logo { color: var(--white); }

.nav-close-btn {
  color: var(--white);
  font-size: 30px;
  transition: var(--transition-1);
}

.nav-close-btn:is(:hover, :focus) { color: var(--bittersweet); }

.navbar-item:not(:last-child) { border-block-end: 1px solid var(--jet); }

.navbar-link {
  font-size: var(--fs-9);
  font-weight: var(--fw-700);
  padding-block: 15px;
  text-transform: uppercase;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus) { color: var(--lightgreen); }

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--raisin-black_90);
  transition: var(--transition-2);
  opacity: 0;
  pointer-events: none;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}






/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero { padding-block-start: calc(var(--section-padding) + 60px); }

.hero .container {
  display: grid;
  gap: 70px;
}

.hero-text {
  font-size: var(--fs-7);
  margin-block: 30px 35px;
}

.hero-content :is(.wrapper, .hero-btn) {
  display: flex;
  align-items: center;
}

.hero-content .wrapper {
  flex-wrap: wrap;
  gap: 30px;
  margin-block-end: 30px;
}

.hero-btn {
  gap: 15px;
  color: var(--raisin-black-1);
  transition: var(--transition-1);
}

.hero-btn:is(:hover, :focus) { color: var(--light-red); }

.hero-btn ion-icon { font-size: 24px; }

.hero-btn .span {
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
}

.hero .social-link .span { display: none; }

.hero .social-list { gap: 12px; }

.hero .social-link {
  background-color: var(--white);
  color: var(--color);
  padding: 12px;
  box-shadow: var(--shadow-1);
  border-radius: var(--radius-8);
  transition: var(--transition-2);
}

.hero .social-link:is(:hover, :focus) {
  background-color: var(--color);
  color: var(--white);
}

/*-----------------------------------*\
  #FEATURE
\*-----------------------------------*/

.feature .container,
.feature-list {
  display: grid;
  gap: 60px;
}

.feature-card .card-icon {
  background-color: hsla(var(--color), 0.15);
  font-size: 24px;
  max-width: max-content;
  padding: 18px;
  border-radius: 50%;
  margin-block-end: 20px;
  transition: var(--transition-2);
}

.feature-card .card-icon ion-icon {
  color: hsl(var(--color));
  transition: var(--transition-1);
}

.feature-card .card-text {
  color: var(--cool-gray);
  font-size: var(--fs-7);
  margin-block-start: 10px;
}

.feature-card:is(:hover, :focus) .card-icon {
  box-shadow: inset 0 0 0 30px hsla(var(--color), 0.9);
}

.feature-card:is(:hover, :focus) .card-icon ion-icon { color: var(--white); }

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--raisin-black-1);
  color: var(--cool-gray);
}

.footer-top {
  padding-block-end: 60px;
  display: grid;
  gap: 50px;
}

.footer-list-title {
  color: var(--white);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  margin-block-end: 20px;
}

.footer-text { margin-block-end: 30px; }

.footer .social-list { gap: 12px; }

.footer .social-link {
  background-color: var(--onyx);
  padding: 14px;
  border-radius: 50%;
  transition: var(--transition-1);
}

.footer .social-link:is(:hover, :focus) {
  background-color: var(--light-red);
  color: var(--white);
}

.footer-link {
  font-size: var(--fs-8);
  margin-block-start: 15px;
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus) { color: var(--lightgreen); }

.insta-post {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.insta-card {
  position: relative;
  border-radius: var(--radius-10);
  overflow: hidden;
}

.insta-card .card-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background-color: var(--blue-ryb_80);
  color: var(--white);
  font-size: 25px;
  opacity: 0;
  transition: var(--transition-1);
}

.insta-card:is(:hover, :focus-within) .card-content { opacity: 1; }

.footer-bottom {
  color: var(--white);
  font-size: var(--fs-8);
  padding-block: 40px;
  border-block-start: 1px solid var(--onyx);
}

.copyright { margin-block-end: 15px; }

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}

.footer-bottom-link { transition: var(--transition-1); }

.footer-bottom-link:is(:hover, :focus) { color: var(--lightgreen); }





/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  background-color: var(--light-red);
  color: var(--white);
  font-size: 18px;
  padding: 16px;
  border-radius: var(--radius-8);
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-1);
}

.back-top-btn.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(-10px);
}

.back-top-btn::after {
  bottom: -12px;
  right: 0;
  width: 100%;
  height: 10px;
  background-image: var(--gradient);
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  /**
   * REUSED STYLE
   */

  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }



  /**
   * HEADER
   */

  .header .container { max-width: unset; }

}

/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 5.5rem;
    --fs-2: 3.8rem;
    --fs-7: 1.8rem;

    /**
     * spacing
     */

    --section-padding: 120px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

  .btn { height: 60px; }

  .grid-list { grid-template-columns: 1fr 1fr; }



  /**
   * HERO
   */

  .hero .container { gap: 120px; }

  .hero .wrapper {
    gap: 50px;
    margin-block-end: 60px;
  }

  .hero .social-link .span {
    display: block;
    font-size: var(--fs-9);
    color: var(--raisin-black-1);
    font-weight: var(--fw-700);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-2);
  }

  .hero .social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    box-shadow: none;
  }

  .hero .social-link:is(:hover, :focus) {
    background: unset;
    color: var(--color);
  }

  .hero .social-link:is(:hover, :focus) .span { color: var(--color); }



  /**
   * FEATURE
   */

  .feature-banner { max-width: max-content; }

  .feature-list { gap: 30px; }

  .feature-card {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 25px;
  }

  .feature-card .card-icon { margin-block-end: 0; }

  .feature-card .card-text { max-width: 32ch; }

  /**
   * FOOTER
   */

  .footer-top { grid-template-columns: 1fr 1fr; }

  .copyright { text-align: center; }

  .footer-bottom-list { justify-content: center; }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 960px; }

  .btn { height: 70px; }

  .grid-list { grid-template-columns: repeat(3, 1fr); }

  .logo {
   
    font-size: 3.5rem;
  
  }



  /**
   * HEADER
   */

  .header { padding-block-start: 47px; }

  .nav-open-btn,
  .overlay,
  .navbar .wrapper { display: none; }

  .navbar,
  .navbar.active { all: unset; }

  .navbar-item:not(:last-child) { border: none; }

  .navbar-list {
    display: flex;
    gap: 30px;
  }

  .navbar-link {
    position: relative;
    color: var(--cool-gray);
    text-transform: capitalize;
    font-size: unset;
    font-weight: var(--fw-500);
  }

  .navbar-link:is(:hover, :focus) { color: var(--raisin-black-1); }

  .navbar-link::before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 4px;
    border-radius: 5px;
    background-color: var(--light-red);
    transition: var(--transition-1);
  }

  .navbar-link:is(:hover, :focus)::before { width: 100%; }

  .header .btn { display: inline-flex; }

  .header .btn::before,
  .header .btn::after { background-color: var(--raisin-black-1); }

  .header .btn:is(:hover, :focus) { color: var(--white); }



  /**
   * HERO
   */

  .hero {
    background-image: linear-gradient(to right, var(--white) 79%, var(--lightgreen) 79%);
    overflow: hidden;
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero .wrapper { flex-wrap: nowrap; }

  .hero .btn,
  .hero-btn .span { flex-shrink: 0; }

  .hero-banner { margin-inline-end: -140px; }



  /**
   * FEATURE
   */

  .feature .container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /**
   * FOOTER
   */

  .footer-top {
    grid-template-columns: 1fr 0.5fr 0.5fr 0.9fr;
    padding-block: 120px;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .copyright { margin-block-end: 0; }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 5.5rem;
    --fs-2: 4.5rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1140px; }

  .section-title.text-center {
    max-width: 20ch;
    margin-inline: auto;
  }



  /**
   * HEADER
   */

  .header .container { padding-inline: 30px; }

  .navbar-list { gap: 50px; }



  /**
   * HERO
   */

  .hero-content {
    display: flex;
    flex-direction: column;
    margin-block-start: 50px;
  }

  .hero-text { margin-block: 40px 45px; }

  .hero .wrapper { margin-block-end: auto; }

  .hero-banner {
    margin-inline-end: -250px;
    min-width: max-content;
  }

}


/*-----------------------------------*\
  #EVENTS SECTION
\*-----------------------------------*/

.events { 
  background-color: var(--white); 
  padding-block: var(--section-padding);
}

.events .section-title { 
  margin-block-end: 50px; 
}

/* Tab Navigation */
.event-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-block-end: 60px;
}

.tab-btn {
  color: var(--cool-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-700);
  padding: 15px 30px;
  border-radius: var(--radius-10);
  background-color: transparent;
  transition: all var(--transition-1);
  position: relative;
  overflow: hidden;
}

.tab-btn:is(:hover, :focus) {
  color: var(--raisin-black-1);
}

.tab-btn.active {
  background-color: var(--lightgreen);
  color: var(--raisin-black-1);
  box-shadow: var(--shadow-3);
}

.tab-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background-color: var(--light-red);
  transition: transform var(--transition-1);
}

.tab-btn.active::before {
  transform: translateX(-50%) scaleX(1);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: tabFadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Date Headers */
.date-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 40px 0 35px;
  position: relative;
}

.date-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gainsboro), transparent);
  margin-left: 20px;
}

.month {
  font-size: 2.4rem;
  font-weight: var(--fw-700);
  color: var(--raisin-black-1);
}

.days {
  font-size: 1.8rem;
  color: var(--cool-gray);
  font-weight: var(--fw-500);
}

/* Events Grid */
.events-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Event Card */
.event-card {
  position: relative;
  border-radius: var(--radius-20);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  animation: cardFadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-poster {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-2);
}

.event-card:hover .event-poster {
  transform: scale(1.05);
}

/* Hover Overlay */
.hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .hover-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--white);
  padding: 30px;
}

/* Countdown Timer */
.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-block-end: 30px;
  flex-wrap: wrap;
}

.countdown > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.count-number {
  font-size: 2.8rem;
  font-weight: var(--fw-700);
  color: var(--lightgreen);
  line-height: 1;
}

.count-label {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Past Event Date */
.event-date {
  font-size: 2.4rem;
  font-weight: var(--fw-700);
  color: var(--lightgreen);
  margin-block-end: 30px;
}

/* Hover Buttons */
.hover-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hover-buttons .btn {
  padding-inline: 25px;
  height: 50px;
  font-size: var(--fs-9);
  min-width: 120px;
  flex: 1;
  max-width: 180px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .event-tabs {
    gap: 10px;
  }
  
  .tab-btn {
    padding: 12px 20px;
    font-size: var(--fs-9);
  }
  
  .month {
    font-size: 2rem;
  }
  
  .days {
    font-size: 1.6rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .event-poster {
    height: 300px;
  }
  
  .countdown {
    gap: 15px;
  }
  
  .count-number {
    font-size: 2.2rem;
  }
  
  .hover-buttons {
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }
  
  .hover-buttons .btn {
    flex: 1;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  
  /* Mobile tap behavior */
  .event-card:active .hover-overlay {
    opacity: 1;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hover-buttons {
    gap: 15px;
  }
  
  .hover-buttons .btn {
    flex: 1;
  }
}

@media (min-width: 992px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tab-btn {
    padding: 18px 40px;
  }
}
/*-----------------------------------*\
  #EVENT DETAIL PAGE
\*-----------------------------------*/

.page-container {
  display: none;
  animation: pageFadeIn 0.6s ease-out forwards;
}

.page-container.active {
  display: block;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-detail-page {
  padding-top: 100px;
}

.event-detail-hero {
  position: relative;
  /* Enforcing the panoramic aspect ratio */
  aspect-ratio: 2560 / 1067;
  overflow: hidden;
  background-color: var(--gainsboro); /* Fallback color */
  perspective: 1000px;
}

.event-detail-hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* This will cover the container, cropping if necessary */
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.event-detail-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.info-bar {
  background-color: var(--white);
  padding-block: 30px;
  border-bottom: 1px solid var(--gainsboro);
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.info-bar-title {
  display: none; /* Hide title on desktop */
  font-size: 3.7rem;
  font-weight: var(--fw-700);
  color: var(--raisin-black-1);
  margin-bottom: 25px;
  padding-bottom: 15px;
  padding-left: 12px;
  line-height: 1.2;
}

/* Hide Event Details titles on desktop */
@media (min-width: 992px) {
#event-details-title {
  display: none;
}
}

.info-bar .container {
  display: flex;
  flex-direction: row; /* Horizontal layout for desktop */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 1200px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  padding-left: 0;
  margin-left: 0;
  transition: transform 0.3s ease;
  flex: 1;
  justify-content: center;
}

.info-item:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.info-item ion-icon {
  font-size: 2.8rem;
  color: var(--slate-gray);
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item:hover ion-icon {
  background-color: transparent;
  color: var(--slate-gray);
  transform: none;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 0;
  text-align: center;
}

.info-title {
  font-weight: var(--fw-700);
  color: var(--raisin-black-1);
  line-height: 1.2;
  font-size: var(--fs-5);
}

.info-subtitle {
  color: var(--cool-gray);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
}

.event-content {
  padding-block-start: 60px;
  padding-block-end: var(--section-padding);
}

.content-section {
  margin-block-end: 40px;
  animation: contentFadeInUp 0.7s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes contentFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section:last-child {
  margin-block-end: 0;
}

.content-section .section-title {
  text-align: left;
  margin-block-end: 30px;
}

.content-section .section-text {
  font-size: var(--fs-6);
  line-height: 1.8;
  max-width: 65ch;
}

.placeholder-content {
  background-color: var(--ghost-white);
  border: 2px dashed var(--gainsboro);
  border-radius: var(--radius-15);
  padding: 50px;
  text-align: center;
  color: var(--cool-gray);
}

.placeholder-content ion-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.placeholder-content p {
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
}

.rsvp-section {
  text-align: center;
  background-color: var(--ghost-white);
  padding: 60px;
  border-radius: var(--radius-20);
}

.rsvp-section .btn {
  margin-inline: auto;
  margin-block: 20px 15px;
}

.rsvp-section .sub-text {
  font-size: var(--fs-9);
}

.countdown-detail {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-block-start: 20px;
  margin-block-end: 40px;
}

.countdown-detail > div {
  background-color: var(--white);
  padding: 20px 25px;
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-4);
  min-width: 100px;
}

.countdown-detail .count-number {
  font-size: 3rem;
  font-weight: var(--fw-700);
  color: var(--light-red);
  display: block;
}

.countdown-detail .count-label {
  font-size: var(--fs-9);
  color: var(--slate-gray);
  text-transform: uppercase;
}


/* --- Carousel Styles --- */

.testimonial-carousel-wrapper,
.mentor-carousel-wrapper {
  position: relative;
}

/* Default Grid layout for Testimonials on Desktop */
.testimonial-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-15);
  border-left: 5px solid var(--lightgreen);
  box-shadow: var(--shadow-4);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.testimonial-card ion-icon {
  font-size: 3rem;
  color: var(--lightgreen);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: var(--fs-6);
  color: var(--raisin-black-1);
  line-height: 1.6;
}

/* --- Mentor Carousel (Always Active) --- */

.mentor-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  gap: 20px;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mentor-grid::-webkit-scrollbar {
  display: none;
}

.mentor-card {
  border-radius: var(--radius-15);
  overflow: hidden;
  box-shadow: var(--shadow-4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
}

/* Desktop: 4 cards visible */
.mentor-card {
  flex-basis: calc(25% - (20px * 3 / 4));
}

.mentor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px hsla(210, 30%, 32%, 0.15);
}

.mentor-card img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

/* Buttons are always visible for mentor carousel */
.mentor-carousel-wrapper .carousel-btn {
  display: flex;
}

.carousel-btn {
  display: none; /* Hidden by default */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: hsla(0, 0%, 100%, 0.9);
  color: var(--raisin-black-1);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: var(--shadow-3);
  z-index: 2;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.carousel-btn.prev {
  left: -25px;
}
.carousel-btn.next {
  right: -25px;
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Responsive Overrides for Carousels --- */
@media (max-width: 992px) {
  /* Activate testimonial carousel */
  .testimonial-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    gap: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex: 0 0 90%;
  }
  .testimonial-carousel-wrapper .carousel-btn {
    display: flex;
  }

  /* Adjust mentor carousel to show 2 cards */
  .mentor-grid {
    gap: 15px;
  }
  .mentor-card {
    flex-basis: calc(50% - 7.5px);
  }
}

@media (max-width: 575px) {
  .testimonial-card {
    flex-basis: 100%;
  }

  .carousel-btn.prev {
    left: -15px;
  }
  .carousel-btn.next {
    right: -15px;
  }
}
/* --- Mobile Responsive Adjustments --- */
@media (max-width: 992px) {
  .event-detail-hero {
    margin-bottom: 0;
  }
  
  .info-bar {
    background-color: var(--white);
    border-bottom: none;
    padding-block: 20px 4px;
    margin-bottom: 0;
  }
  
  .info-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    margin-top: 0;
    position: static;
    z-index: 1;
    box-shadow: none;
    max-width: none;
  }

  .info-bar-title {
    display: block;
    font-size: 3.7rem;
    font-weight: var(--fw-700);
    color: var(--raisin-black-1);
    margin-bottom: 25px;
    padding-bottom: 15px;
    line-height: 1.2;
  }
  
  .info-item {
    padding: 0;
    padding-left: 15px; /* Move icons more to the right to align with Event Details */
    margin-left: 0;
    gap: 20px;
    font-size: var(--fs-7);
    background-color: transparent;
    border: none;
    box-shadow: none;
    justify-content: flex-start;
    align-items: flex-start;
    flex: none;
  }

  .info-item:hover {
    transform: none;
    box-shadow: none;
  }
  
  .info-item ion-icon {
    font-size: 4.8rem;
    color: var(--slate-gray);
    background-color: transparent;
    padding: 0;
    margin-top: 3px;
  }
  
  .info-item:hover ion-icon {
    background-color: transparent;
    color: var(--slate-gray);
    transform: none;
  }
  
  .info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .info-title {
    font-weight: var(--fw-500);
    color: var(--raisin-black-1);
    line-height: 1.4;
    font-size: var(--fs-6);
  }

  .info-subtitle {
    color: var(--cool-gray);
    font-size: var(--fs-8);
    font-weight: normal;
  }
  
  /* Reduce gap to next section */
  .event-content {
    padding-block-start: 10px;
  }
}

/* --- Tablet Only Adjustments --- */
@media (min-width: 769px) and (max-width: 992px) {
  .info-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .info-bar-title {
    padding-left: 15px; /* Align with mobile padding for consistency */
  }
  
  .info-item {
    justify-content: flex-start;
    align-items: flex-start;
    flex: none;
    padding-left: 15px; /* Align with the Event Details text */
  }
  
  .info-item ion-icon {
    font-size: 2.8rem;
    background-color: transparent;
    padding: 0;
    color: var(--slate-gray);
  }
  
  .info-item:hover ion-icon {
    background-color: transparent;
    color: var(--slate-gray);
    transform: none;
  }
  
  .info-text {
    text-align: left;
  }

  .info-title {
    font-size: var(--fs-5);
    font-weight: var(--fw-500);
  }

  .info-subtitle {
    font-size: var(--fs-7);
    font-weight: normal;
  }
}

@media (max-width: 768px) {
  .event-detail-page {
    padding-top: 80px;
  }

  .event-detail-hero {
    margin-bottom: 50px;
  }
  
  .info-bar .container {
    margin-top: -60px;
    padding: 20px 15px;
  }
  
  .info-item {
    padding: 16px 20px;
    font-size: var(--fs-7);
  }
  
  .info-item ion-icon {
    font-size: 2.4rem;
    background-color: transparent;
    padding: 0;
    color: var(--slate-gray);
  }
  
  .info-item:hover ion-icon {
    background-color: transparent;
    color: var(--slate-gray);
    transform: none;
  }
  
  .rsvp-section {
    padding: 40px 20px;
  }

  .countdown-detail {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* Animation for info items on mobile */
@media (max-width: 992px) {
  .info-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.5s ease forwards;
  }
  
  .info-item:nth-child(1) { animation-delay: 0.1s; }
  .info-item:nth-child(2) { animation-delay: 0.2s; }
  .info-item:nth-child(3) { animation-delay: 0.3s; }
  
  @keyframes slideUpFade {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobile adjustments for glassmorphism back button */
  .back-to-events-link {
    padding: 10px 16px;
    gap: 8px;
    font-size: var(--fs-8);
  }
  
  .back-to-events-link ion-icon {
    font-size: 2rem;
  }
}

/* Desktop refinements */
@media (min-width: 993px) {
  .info-bar {
    background: linear-gradient(to bottom, var(--white), rgba(248, 249, 251, 0.8));
    border-bottom: 1px solid var(--gainsboro);
    padding-block: 35px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  .info-bar .container {
    max-width: 1200px;
  }
  
  .info-item {
    padding: 20px;
    border-radius: var(--radius-15);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }
  
  .info-item:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
  }
  
  /* Make icons bigger on desktop to match the height of both text lines */
  .info-item ion-icon {
    font-size: 3.8rem;
  }
}

@media (max-width: 480px) {
  .countdown-detail {
    flex-direction: column;
  }
  
  /* Extra small screen adjustments for glassmorphism back button */
  .back-to-events-link {
    padding: 8px 12px;
    gap: 6px;
    font-size: var(--fs-9);
    border-radius: var(--radius-10);
  }
  
  .back-to-events-link ion-icon {
    font-size: 1.8rem;
  }
}

/* --- Video Grid Styles --- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.video-card {
  border-radius: var(--radius-15);
  overflow: hidden;
  box-shadow: var(--shadow-4);
  background-color: var(--black);
  line-height: 0; /* Prevents extra space below video */
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Agenda Styles --- */
.agenda-wrapper {
  border: 1px solid var(--gainsboro);
  border-radius: var(--radius-15);
  overflow: hidden;
}

.agenda-tabs {
  display: flex;
  background-color: var(--ghost-white);
}

.agenda-tab-btn {
  flex: 1;
  padding: 15px;
  font-size: var(--fs-7); /* Slightly larger for desktop */
  font-weight: var(--fw-700);
  color: var(--cool-gray);
  border-bottom: 3px solid transparent;
  transition: var(--transition-1);
}

.agenda-tab-btn.active {
  color: var(--raisin-black-1);
  border-color: var(--light-red);
}

.agenda-tab-content {
  display: none;
  animation: contentFadeInUp 0.5s ease;
}

.agenda-tab-content.active {
  display: block;
}

.agenda-grid {
  display: grid;
  gap: 1px;
  background-color: var(--gainsboro);
  /* The border is now on the wrapper */
}

.agenda-tab-content .agenda-grid {
  border: none;
  border-radius: 0;
}

.agenda-item {
  display: flex;
  background-color: var(--white);
  padding: 25px;
  gap: 25px;
}

.agenda-time {
  font-weight: var(--fw-700);
  color: var(--light-red);
  flex-shrink: 0;
  width: 150px;
}

.agenda-details {
  border-left: 2px solid var(--gainsboro);
  padding-left: 25px;
}

.agenda-title {
  color: var(--raisin-black-1);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  margin-block-end: 10px;
}

.agenda-speaker {
  color: var(--slate-gray);
  font-size: var(--fs-8);
}

@media (max-width: 768px) {
  .agenda-item {
    flex-direction: column;
    gap: 15px;
  }

  .agenda-time {
    width: auto;
  }

  .agenda-details {
    border-left: none;
    padding-left: 0;
  }

  .agenda-tab-btn {
    font-size: var(--fs-8);
  }
}

/* --- Lightbox Styles --- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: var(--raisin-black_90);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 5;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius-10);
  animation: lightboxFadeIn 0.4s ease forwards;
}

@keyframes lightboxFadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 3.5rem;
  color: var(--white);
  background: none;
}

/* --- Photo Gallery Styles --- */
.photo-gallery-preview {
  text-align: center;
}

/* --- Photo Gallery Preview Enhanced --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-15);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  aspect-ratio: 4 / 3;
  background-color: var(--gainsboro);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  z-index: 2;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Add icon to the center on hover */
.gallery-item {
  --icon-content: '\f030'; /* Unicode for camera icon */
}

.gallery-item:hover::after {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Loading animation for gallery preview */
.gallery-item {
  animation: galleryPreviewFloat 0.8s ease-out;
  animation-fill-mode: both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }

@keyframes galleryPreviewFloat {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Subtle floating animation on idle */
@media (min-width: 992px) {
  .gallery-item {
    animation: galleryPreviewFloat 0.8s ease-out,
               subtleFloat 6s ease-in-out infinite;
    animation-fill-mode: both, none;
    animation-delay: var(--float-delay, 0s), 1s;
  }
  
  .gallery-item:nth-child(1) { --float-delay: 0.1s; }
  .gallery-item:nth-child(2) { --float-delay: 0.5s; }
  .gallery-item:nth-child(3) { --float-delay: 0.9s; }
  .gallery-item:nth-child(4) { --float-delay: 0.3s; }
  .gallery-item:nth-child(5) { --float-delay: 0.7s; }
  .gallery-item:nth-child(6) { --float-delay: 1.1s; }
  .gallery-item:nth-child(7) { --float-delay: 0.2s; }
  .gallery-item:nth-child(8) { --float-delay: 0.6s; }
  .gallery-item:nth-child(9) { --float-delay: 1s; }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* View All Photos button enhancement */
.view-all-photos {
  margin-inline: auto;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.view-all-photos:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.view-all-photos ion-icon {
  transition: transform 0.3s ease;
}

.view-all-photos:hover ion-icon {
  transform: scale(1.1);
}

/* Gallery Viewer */
.gallery-viewer {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-viewer.active {
  visibility: visible;
  opacity: 1;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.gallery-counter {
  color: var(--white);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.gallery-close-btn {
  color: var(--white);
  font-size: 3rem;
  background: none;
  transition: transform 0.2s ease;
}

.gallery-close-btn:hover {
  transform: scale(1.1);
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

.gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-image-container {
  max-width: 90%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-current-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-10);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: galleryImageFade 0.3s ease;
}

@keyframes galleryImageFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 20px;
  overflow-x: auto;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-8);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--lightgreen);
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    gap: 20px;
  }
  
  .gallery-item {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-item:active {
    transform: scale(0.98);
  }
  
  /* Disable hover icon on mobile */
  .gallery-item::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-thumbnails {
    padding: 15px;
  }
  
  .gallery-thumb {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* --- Full Gallery Modal --- */
.gallery-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(20px);
}

.gallery-modal.active {
  visibility: visible;
  opacity: 1;
}

.gallery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.gallery-modal-title {
  color: var(--white);
  font-size: var(--fs-2);
  font-weight: var(--fw-700);
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.6s ease forwards 0.2s;
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-modal-close {
  color: var(--white);
  font-size: 3rem;
  background: none;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards 0.3s;
}

.gallery-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.gallery-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 30px 30px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--lightgreen) transparent;
}

.gallery-modal-content::-webkit-scrollbar {
  width: 8px;
}

.gallery-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-modal-content::-webkit-scrollbar-thumb {
  background-color: var(--lightgreen);
  border-radius: 4px;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding-top: 20px;
}

.gallery-full-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-15);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--gainsboro);
  opacity: 0;
  animation: galleryItemReveal 0.5s ease forwards;
  transform: translateY(30px) scale(0.9);
}

.gallery-full-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-full-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-full-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-full-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-full-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-full-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-full-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-full-item:nth-child(8) { animation-delay: 0.4s; }
.gallery-full-item:nth-child(9) { animation-delay: 0.45s; }
.gallery-full-item:nth-child(n+10) { animation-delay: 0.5s; }

@keyframes galleryItemReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-full-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-full-item:hover::before {
  opacity: 1;
}

.gallery-full-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-full-item:hover img {
  transform: scale(1.1);
}

.gallery-full-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--lightgreen);
  border-radius: var(--radius-15);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.gallery-full-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Update Gallery Viewer Header */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.gallery-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gallery-logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: var(--fw-700);
  opacity: 0.9;
}

.gallery-counter {
  color: var(--white);
  font-size: var(--fs-9);
  font-weight: var(--fw-500);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gallery-counter::before {
  content: '';
  width: 1px;
  height: 20px;
  background-color: var(--white);
  opacity: 0.3;
  margin-right: 10px;
}

/* Floating animation for gallery modal */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.gallery-modal.active .gallery-full-item {
  animation-name: galleryItemReveal, floatAnimation;
  animation-duration: 0.5s, 6s;
  animation-delay: var(--delay, 0.1s), 0s;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
  animation-timing-function: ease, ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .gallery-modal-header {
    padding: 20px;
  }
  
  .gallery-modal-title {
    font-size: var(--fs-3);
  }
  
  .gallery-modal-content {
    padding: 0 20px 20px;
  }
  
  .gallery-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .gallery-logo {
    font-size: 1.4rem;
  }
  
  .gallery-info {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Loading state for images */
.gallery-full-item.loading {
  background: linear-gradient(90deg, var(--gainsboro) 25%, #e0e0e0 50%, var(--gainsboro) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Add fade effect when closing */
.gallery-modal.closing {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
