* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: poppins;
}

body {
  font-family: poppins;
  line-height: 1.6;
  color: #222;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;  /* pushes footer down */
}

.footer {
  margin-top: auto;  /* ensures footer sticks to bottom */
}


/* Top Banner */
.top-banner {
  background: #f4b400; /* yellow */
  text-align: center;
  padding: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  border-bottom: 1px solid #ddd;
}

.navbar .logo img {
  height: 60px;
  padding-left: 1px;
  margin-top: 100px;
}
.navbar .logo img {
  position: fixed;   /* makes it stick to viewport */
  top: 10px;         /* distance from top */
  left: 20px;        /* margin from left */
  z-index: 1000;}

.navbar ul {
  display:flex;
  gap:26px;
  list-style:none;
  margin:0;
  padding:0px 60px;
  align-items:center;
}

.navbar ul li a {
  text-decoration:none;
  color: black;
  font-weight:600;
  padding:6px 8px;
  transition: color .22s ease, transform .18s ease;
  position:relative;
}
.navbar ul li a::after{
content:'';
  height:2px;
  background:#f4b400;
  width:0%;
  position:absolute;
  left:0;
  bottom:-8px;
  transition: width .22s ease;
}

.navbar li a:hover{ color:#f4b400; transform:translateY(-1px)}
.navbar li a:hover::after{ width:100%}
.navbar li a.active{ color:#f4b400; }
.navbar.open{ display:flex}
.gallery {
  text-align: center;
  padding: 40px 20px;
}

.gallery h1 {
  font-size: 35px;
  border-bottom: 2px solid #f4b400;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.subtitle {
  margin-bottom: 25px;
  font-size: 14px;
  color: #555;
}

/* Filter Buttons */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filters button {
  padding: 8px 18px;
  border: 1.5px solid #7b5cb7;
  background: #fff;
  color: #7b5cb7;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.filters button.active,
.filters button:hover {
  background: #7b5cb7;
  color: #fff;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  margin-top: 30px;
}

/* Gallery Card */
.gallery-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-footer {
  background: #7b5cb7;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
/* ---------- Navbar Base ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links ul li a:hover {
  color: #f4b400;
}

/* ---------- Hamburger Icon ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.4s;
}
.footer {
  width: 100%;
  background:#f4b400 ;
  color: #000000;
  padding: 40px 0px;
  font-family: poppins;
  margin-top: 40px;
  
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}
.footer-section {
  flex: 1 1 250px;
  margin: 15px;
}
.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #000000;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin: 8px 0;
}
.footer-section ul li a {
  color: #000000;
  text-decoration: none;
  transition: 0.3s;
}


.footer-section ul li a:hover {
  color: #ffffff;
}
.social-links li {
  display: inline-block;
  margin-right: 15px;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  border-top: 1px solid #333;
  padding-top: 15px;
  color: #000000;
}
/* ---------- Mobile Menu Styles ---------- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 65px;
    right: 0;
    width: 220px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(110%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links ul {
    flex-direction: column;
    gap: 15px;
  }
  @media (max-width: 700px) {
  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;   /* align to left */
    text-align: left;
    width: 100%;
    margin: 0;                 /* remove extra margins */
    padding: 0;                /* reset padding */
  }

  .nav-links ul li {
    width: 100%;
    margin: 4px 0;             /* smaller space between items */
  }

  .nav-links ul li a {
    display: block;
    width: 100%;
    padding: 6px 8px;          /* tighter padding (top/bottom, left/right) */
    white-space: nowrap;       /* no text wrapping */
  }
}


  .nav-toggle {
    display: flex;
  }

  /* Hamburger animation when active */
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ---------- Responsive Fixes ---------- */

/* Tablet View */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 20px;
  }
  .navbar .logo img {
    height: 45px;
    padding-left: 20px;
  }
  .gallery h1 {
    font-size: 28px;
  }
  .subtitle {
    font-size: 13px;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 10px 15px;
  }
  .navbar .logo img {
    height: 42px;
    margin-top: 0;
    position: static; /* no overlap */
  }

  /* Filters */
  .filters {
    flex-direction: column;
    gap: 10px;
  }
  .filters button {
    width: 100%;
    font-size: 13px;
    padding: 8px;
  }

  /* Gallery */
  .gallery {
    padding: 25px 15px;
  }
  .gallery h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-card img {
    height: 160px;
  }
  .card-footer {
    font-size: 13px;
    padding: 10px;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-section {
    margin: 10px 0;
  }
}

/* Small Mobile View */
@media (max-width: 480px) {
  .gallery h1 {
    font-size: 26px;
  }
  .subtitle {
    font-size: 11px;
  }
  .gallery-card img {
    height: 140px;
  }
  .card-footer {
    font-size: 12px;
  }
  .filters button {
    font-size: 12px;
    padding: 6px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-section {
    margin: 10px 0;
  }
}
/* ===== Prevent horizontal scroll and make mobile nav fully off-screen ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;   /* still keep this */
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* ensure media elements never overflow */
img, video, iframe, embed, svg {
  max-width: 100%;
  height: auto;
}

/* Mobile-only: keep nav fully off canvas (no overflow) */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;      /* remove it from normal flow */
    top: 70px;
    right: -260px;        /* fully off-screen (hidden) */
    width: 220px;
    height: calc(100vh - 80px);
    padding: 18px;
    background: #fff;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: right .28s ease-in-out, transform .28s ease-in-out;
    transform: none !important; /* ensure no transform causes issues */
    overflow-y: auto;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
  }

  /* When open, bring it into view (exact 0 aligns to screen edge) */
  .nav-links.open {
    right: 0;
  }

  /* when the nav is open prevent body from shifting or scrolling horizontally */
  body.nav-open {
    overflow: hidden;
    touch-action: none; /* prevents weird swipe pans while nav open */
  }
}
@media (max-width: 768px) {
  .navbar {
    position: relative;  /* no more sticky/fixed */
    top: auto;
    z-index: auto;
    padding: 10px 15px;
  }
}
/* === Fix for Gallery Images === */
.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #f4b400;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100% !important;
  height: auto !important;         /* keep natural aspect ratio */
  object-fit: contain !important;  /* no cropping */
  max-width: 100%;
}

.gallery-card .card-footer {
  margin-top: auto;
  background: #7b5cb7;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid #f4b400;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
/* === Remove bottom part from gallery cards === */
.gallery-card .card-footer {
  display: none !important;
}
