/* ================= GALLERY ================= */

.gallery {
  padding: 100px 8%;
  background: #f5f7fa;
}

.gallery-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 50px;
  margin-top: 3%;
}

.gallery-title span {
  color: black;
    font-weight: 700;
}
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 30px;
  width: 100%;
}

.gallery-card {
  width: 100%;   /* 🔥 prevents full-width stacking */
}
/* RESPONSIVE */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.gallery-card {
  position: relative;
  margin-bottom: 20px;
  break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
}

/* IMAGE */
.gallery-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: 0.4s;
}

/* OVERLAY */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);

  color: white;
  opacity: 0;
  transition: 0.4s;
}

/* HOVER EFFECT */
.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* CARD */
.gallery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s;
}

/* IMAGE */
.gallery-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* CONTENT */
.gallery-content {
  padding: 15px;
}

.gallery-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f3c5c; /* your dark blue */
  margin-bottom: 8px;
}

.event-date,
.event-location {
  font-size: 13px;
  color: #666;
  margin: 3px 0;
}

/* BUTTON (THEME STYLE) */
.view-btn {
  margin-top: 10px;
  padding: 6px 12px;
  border: none;
  background: #C13948; /* red theme */
  color: white;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.view-btn:hover {
  background: #a52f3c;
}

/* EXPAND SECTION */
.gallery-expand {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background: #f5f7fa;
  font-size: 13px;
  transition: 0.3s;
}

/* ACTIVE STATE */
.gallery-card.active .gallery-expand {
  max-height: 100px;
  padding: 15px;
}

/* RESPONSIVE */
@media(max-width: 1000px){
  .gallery-grid {
    column-count: 2;
  }
}

@media(max-width: 600px){
  .gallery-grid {
    column-count: 1;
  }
}

/* FOOTER */
.footer{
  background:  #183152;
  color:lightgrey;
  padding-top:60px;
}

/* CONTAINER */
.footer-container{
  max-width:86%;
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr 1.2fr 1fr;
  gap:50px;
  padding:0 40px 50px;
}

/* COLUMN */
.footer-col h3{
  font-size:18px;
  margin-bottom:10px;
  color: whitesmoke;
}

.footer-col p{
  font-size:14px;
  line-height:1.5;
  color:white;
}

/* SOCIAL */
.socials {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

/* ICON CIRCLE */
.socials span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* HOVER EFFECT */
.socials span:hover {
  transform: translateY(-6px) scale(1.08);
  background: linear-gradient(135deg, #C13948, #ff6b81);
  box-shadow: 0 10px 25px rgba(193,57,72,0.4);
}

.socials a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}
/* VISITS */
.visits{
  margin-top:15px;
  font-size:14px;
}

/* MAP */
.footer-col iframe{
  width:100%;
  height: 150px;
  border-radius:6px;
  border:none;
  margin-top: 5%;
}


/* BOTTOM */
.footer-bottom{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 35px 0;
  margin: 0;

  border-top: 1px solid rgba(255,255,255,0.2);

  font-size: 14px;
  color: white;
}

.footer{
  background: #183152;
  color: lightgrey;
  padding-top: 60px;
  width: 100%;
}



/* RESPONSIVE */
@media(max-width:900px){
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
  }

  .socials{
    justify-content:center;
  }
}


/*second nav-bar*/

/* ================= TOP BAR ================= */
.top-bar {
  display: flex;
  justify-content: space-between; /* 🔥 left & right */
  align-items: center;
  padding:5px 5px;
  background:rgb(238, 240, 250);
  border-bottom: 1px solid #eee;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

/* LEFT SIDE LOGOS */
.top-left {
  display: flex;
  align-items: center;
  gap:10px;
  margin-left: 10px;
}

/* LOGOS */
.top-left img {
  height: 45px;
  transition: transform 0.5s ease;
}

.top-left img:hover {
  transform: scale(1.08);
}

.apply-alert-btn{

  background: #C13948;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  margin-left: -7%;

  animation: pulse 1.5s infinite;
  transition: 0.3s;
}

/* hover effect */
.apply-alert-btn:hover{
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255,90,60,0.4);
}

/* PULSE ANIMATION */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,90,60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255,90,60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,90,60, 0);
  }
}

.top-bar {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*second nav-bar*/

/* ===== NAVBAR ===== */
.navbar {
  height: 60px;
  background: #183152;
  display: flex;
  align-items: center;
   position: fixed;
  top: 55px;
  width: 100%;
  z-index: 1000;
}

/* LOGO LEFT */
.logo {
 display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.logo img {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  transition: transform 0.5s ease;
  margin-top: 5px;
}

/* CENTER MENU */
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* LINKS */
.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 15px;
  margin-top: 10px;
}

.nav-links a.active,
.nav-links a:hover {
  color: #C13948;
}


/* MOBILE */
@media (max-width:768px){

  .menu-toggle{
    display: block;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    color: black;
  }

  .mobile-menu{
    position: fixed;
    top: 60px;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: #C13948;

    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    transition: 0.3s;
    z-index: 10000;
  }

  .mobile-menu.active{
    right: 0;
  }

  .mobile-menu a{
    color: white;
    font-size: 18px;
    text-decoration: none;
  }
}

.mobile-menu li{
  list-style: none;
}


/* ===== SCROLL TO TOP BUTTON ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 50px;
  height: 50px;
  border: none;
  border-radius: 12px;

  background: #C13948;
  color: white;
  font-size: 22px;

  cursor: pointer;
  display: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: 0.3s;
  z-index: 9999;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  background: #a72f3b;
}

/* ==========================================
   MOBILE RESPONSIVE ONLY
========================================== */
@media screen and (max-width:768px){

  html,
  body{
    width:100%;
    overflow-x:hidden !important;
  }

  *{
    box-sizing:border-box;
  }

  img,
  video{
    max-width:100%;
    height:auto;
    display:block;
  }

  /* ================= TOP BAR ================= */

  .top-bar{
    padding:8px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
  }

  .top-left{
    gap:6px;
    margin-left:0;
  }

  .top-left img{
    height:30px;
  }

  .top-marquee,
  .apply-alert-btn,
  .navbar{
    display:none !important;
  }

  /* ================= MOBILE MENU ================= */

  .menu-toggle{
    display:block !important;
    position:absolute;
    top:10px;
    right:15px;
    z-index:10001;
    font-size:24px;
    cursor:pointer;
  }

  .mobile-menu{
    width:75%;
    top:48px;
    padding:25px 20px;
    overflow-y:auto;
  }

  .mobile-menu a{
    font-size:18px;
  }

  /* ================= GALLERY ================= */

  .gallery{
    padding:80px 16px 50px;
    width:100%;
  }

  .gallery-title{
    font-size:30px;
    text-align:center;
    margin-bottom:25px;
  }

  .gallery-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:20px;
    width:100%;
  }

  .gallery-card{
    width:100% !important;
    margin:0 !important;
  }

  .gallery-img{
    width:100%;
    overflow:hidden;
  }

  .gallery-img img{
    width:100%;
    height:auto;
    object-fit:cover;
  }

  .gallery-content{
    padding:16px;
  }

  .gallery-content h3{
    font-size:20px;
    line-height:1.4;
  }

  .event-date,
  .event-location{
    font-size:14px;
  }

  .gallery-expand{
    width:100%;
    padding:16px;
  }

  /* ================= FOOTER ================= */

  .footer{
    padding-top:50px;
  }

  .footer-container{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:30px;
    text-align:center;
    padding:0 16px 40px;
    max-width:100%;
  }

  .footer-col{
    width:100%;
  }

  .footer-col iframe{
    width:100%;
    height:220px;
    margin-top:15px;
  }

  .socials{
    justify-content:center;
    flex-wrap:wrap;
  }

  .footer-bottom{
    padding:20px;
    font-size:13px;
    text-align:center;
  }

  /* ================= SCROLL BUTTON ================= */

  #scrollTopBtn{
    width:45px;
    height:45px;
    right:15px;
    bottom:15px;
    font-size:20px;
  }
}
