/* RESET */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  background: linear-gradient(to right, #a8c8d8, #e0e6ed, #ffffff, #e0e6ed, #a8c8d8);
  font-family: Trebuchet MS, sans-serif;
}

/* ---------------------HEADER----------------------------- */
header {
  background-color: #000000;
  color: #fff;
  padding: 10px 0;
  top: 0;
  width: 100%;
  z-index: 2000; /* increased for mobile layering */
  position: fixed;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative; /* for absolute positioning of menu-toggle */
}

.logo-left, .logo-right {
  width: 200px; 
  margin: 0; 
  padding-right: 20px;
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 60px;
  font-weight: 600;
  font-family: Trebuchet MS, sans-serif;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #4dc1e7;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2100; /* ensures it's above all other content */
}

/* ---------------------ACM EVENTS TITLE----------------------------- */
.member-img {
  text-align: center;
  margin-top: 80px;
}

.member-img h1 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #000000;
  margin: 0 auto 20px;
  display: inline-block;
  text-transform: none;
  text-align: center;
}

.member-img h1 span {
  color: #004aad;
}

/* ------------------ CLEAN GRADIENT SHINE HEADINGS ------------------ */
.event_heading {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 60px auto 40px;
  background: linear-gradient(270deg, #1d8cf8, #25b4e8, #64fff9, #25b4e8, #1d8cf8);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: movingGradient 6s ease infinite;
  transition: transform 0.3s ease;
}

.event_heading:hover {
  transform: scale(1.03);
}

.event_heading.past {
  background: linear-gradient(270deg, #7d2181, #b14bb6, #ff6bd5, #b14bb6, #7d2181);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: movingGradient 6s ease infinite;
}

@keyframes movingGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------------SLIDESHOW----------------------------- */
.slideshow-container {
  position: relative;
  max-width: 65%;
  margin: 0 auto;
  background: #f3f3f3;
  padding: 10px;
  box-shadow: 0 4px 10px rgb(117, 185, 227);
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  display: none;
  height: 600px;
  padding: 20px;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
}

.image-column {
  flex: 1;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  position: relative;
}

.image-column img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0px;
}

.image-column .image_com {
  width: 100%;
  height: 80vh;
  object-fit: contain;
  border-radius: 0px;
}

.details-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  color: white;
}

.details {
  text-align: left;
  animation: slideInFromRight 1.5s ease-in-out;
}

.details h2 {
  margin-top: 0;
  color: white;
  font-size: 42px;
  padding-bottom: 30px;
  line-height: 50px;
}

.details p {
  font-size: 18px;
  margin-bottom: 8px;
  color: white;
  line-height: 29px;
}

.details p i {
  color: white;
  margin-right: 10px;
}

.prev, .next, .past_next, .past_prev {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 3px;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.prev, .past_prev { left: 0; }
.next, .past_next { right: 0; }

.prev:hover, .next:hover, .past_next:hover, .past_prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.numbertext {
  color: #000000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Gradient backgrounds */
.gradient2 {
  background: linear-gradient(to bottom, #1c0578,#630f58, #df4141);
}
.gradient2p {
  background: linear-gradient(to bottom, #071562, #1b0bc9, #FF7E5F);
}

.coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: block;
  animation: moveInOut 3s infinite;
}

@keyframes moveInOut {
  0%, 100% {
    transform: translate(-70%, -50%);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%);
    opacity: 0.7;
  }
}

/* ---------------------MORE DETAILS BUTTON----------------------------- */
.more_details {
  background: linear-gradient(135deg, #f5f5f5, #eae7e0);
  color: #3513df;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 24px;
  text-align: center;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.more_details:hover {
  color: #e74b08;
}

/* ---------------------FOOTER----------------------------- */
footer {
  background-color: #020202;
  color: white;
  text-align: center;
}

.icons {
  background-color: #181616;
  padding: 5px 0;
  align-items: center;
}

.icons a {
  margin: 10px 10px;
}

.text {
  display: flex;
  justify-content: space-around;
  padding: 30px 0;
  align-items: justify;
}

.column {
  width: 30%;
  text-align: left;
  line-height: 30px;
  font-size: 15px;
  font-family: Trebuchet MS, sans-serif;
}

.top {
  position: fixed;
  bottom: 2.1rem;
  right: 2.1rem;
}

.top i {
  color: #25b4e8;
  background: #25b4e8;
  font-size: 35px;
  padding: 7px;
  border-radius: 2rem;
}

/* ---------------------RESPONSIVENESS----------------------------- */
/* ---------------------RESPONSIVENESS----------------------------- */
@media (max-width: 768px) {
  main {
    padding-top: 140px;
  }

  header {
    padding: 5px 0;
    background-color: black;
  }

  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 30px;
  }

  .logo-left, .logo-right {
    width: 120px;
    margin-bottom: 5px;
  }

  /* ✅ Mobile menu toggle */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: white;
    background: none;
    border: none;
    z-index: 2100;
    cursor: pointer;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    background-color: #000;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 20px;
    gap: 20px;
    z-index: 2050;
  }

  .show-menu {
    display: flex !important;
  }

  .menu li {
    width: 100%;
    border-top: 1px solid #fff;
    text-align: left;
    padding: 20px 0 0 150px;
  }

  /* ---------- Event Page Layout Fix ---------- */
  .member-img h1 {
    font-size: 28px;
    line-height: 36px;
    margin-top: 40px;
  }

  .event_heading {
    font-size: 22px;
    letter-spacing: 1px;
    margin: 30px 0 20px 0;
  }

  .slide .content {
    flex-direction: column;
    align-items: center;
    height: auto;
    border-radius: 10px;
  }

  .image-column {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .image-column img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
  }

  .details-column {
    width: 100%;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    text-align: left;
  }

  .details h2 {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 12px;
  }

  .details p {
    font-size: 14px;
    line-height: 20px;
  }

  .slideshow-container {
    max-width: 90%;
    padding: 10px;
    margin-bottom: 40px;
    position: relative;
    overflow: visible; /* ✅ makes arrows visible */
  }

  /* ---------- Arrows Fix (left + right visible) ---------- */
  .prev, .next, .past_prev, .past_next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff !important;
    background-color: rgba(0, 123, 255, 0.95) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    border: none;
    z-index: 2200;
    cursor: pointer;
    opacity: 0.98;
  }

  /* half outside the card */
  .prev, .past_prev {
    left: -22px;
  }
  .next, .past_next {
    right: -22px;
  }

  .prev:hover, .next:hover, .past_prev:hover, .past_next:hover {
    transform: translateY(-50%) scale(1.06);
    background-color: rgba(0, 90, 200, 1) !important;
  }

  /* small phones */
  @media (max-width: 420px) {
    .prev, .next, .past_prev, .past_next {
      width: 50px;
      height: 50px;
      left: -25px;
      right: -25px;
      font-size: 24px;
    }
  }

  /* Footer responsiveness */
  footer .text {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .column {
    width: 80%;
    font-size: 11px;
    line-height: 20px;
  }

  footer .icons img {
    width: 25px;
    margin: 5px;
  }
}
/* ---------- Robust mobile arrow placement (replace previous arrow rules) ---------- */
@media (max-width: 768px) {
  /* ensure the slideshow is the positioning context */
  .slideshow-container {
    position: relative; /* must be relative so arrows are positioned correctly */
    overflow: visible;  /* allow arrows to be visible */
  }

  .prev, .next, .past_prev, .past_next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff !important;
    background: rgba(0,123,255,0.95) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 3000;
    cursor: pointer;
    opacity: 0.98;
  }

  /* Left arrow: 12px from left edge of slideshow */
  .prev, .past_prev {
    left: 12px !important;
  }

  /* Right arrow: calc from left so it's always inside the slideshow box */
  /* 56px = arrow width (44) + safe margin (12) */
  .next, .past_next {
    left: calc(100% - 56px) !important;
  }

  /* tiny phones: slightly larger and closer in */
  @media (max-width: 420px) {
    .prev, .next, .past_prev, .past_next {
      width: 50px;
      height: 50px;
      font-size: 22px;
    }
    .prev, .past_prev { left: 8px !important; }
    .next, .past_next { left: calc(100% - 58px) !important; }
  }

  .prev:hover, .next:hover, .past_prev:hover, .past_next:hover {
    transform: translateY(-50%) scale(1.06) !important;
    background-color: rgba(0,90,200,1) !important;
  }
}
/* ---------- Mobile Fix: Arrows inside box + content containment ---------- */
@media (max-width: 768px) {

  /* Keep each slide as a proper container */
  .slide {
    position: relative;
    overflow: hidden; /* Keeps content + arrows inside */
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* Make sure image + details stack perfectly */
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .image-column {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
  }

  .image-column img {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
  }

  .details-column {
    width: 100%;
    padding: 20px;
    border-radius: 0 0 12px 12px;
  }

  /* Arrows stay *inside* each card */
  .prev, .next, .past_prev, .past_next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff !important;
    background: rgba(0,123,255,0.95) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 10;
    opacity: 0.98;
  }

  .prev, .past_prev { left: 8px !important; }
  .next, .past_next { right: 8px !important; }

  .prev:hover, .next:hover, .past_prev:hover, .past_next:hover {
    transform: translateY(-50%) scale(1.06);
    background-color: rgba(0,90,200,1) !important;
  }

  /* Small phones */
  @media (max-width: 420px) {
    .prev, .next, .past_prev, .past_next {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  }
}
