/* =============================
   GLOBAL BASE (Merged)
   - styles.css: Font Family (Poppins)
   - glass.css: Background (Navy Gradient)
============================= */
:root {
  --nav-offset: 64px; /* JS will update */
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #0b0e2e, #121743) fixed !important;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: .2rem 0 .6rem; }

.container { width: min(95%, 1200px); margin-inline: auto; }
.section-title { margin-top: 1.2rem; }
.section-title h2 { margin: 0; }

/* =============================
   GLASS / CARDS (Merged)
   - Using the definitions from styles.css as they are more complete
============================= */
.glass {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
}

.card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: .8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: .8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .48rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,0.2); }
.btn-outline {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.35);
}

/* =============================
   NAVBAR (Unified & Fixed)
   - Using one consistent style for all pages
   - Z-index is critical for mobile menu
============================= */
.navbar {
  position: sticky; top: 0;
  z-index: 10005 !important; /* Above backdrop */
  padding-top: .5rem;
  background: rgba(9,16,40,.72) !important; /* Consistent bg */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.navbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
}
.navbar .brand {
  display: flex; align-items: center; gap: .7rem;
  padding: .45rem .9rem; height: 48px; border-radius: 12px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}
.navbar .brand-logo {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}
.navbar .brand-logo > img.nss-logo {
  width: 100% !important; height: 100% !important;
  object-fit: contain; object-position: center;
  transform: scale(1); transition: transform .25s ease;
}
@media (hover:hover) {
  .navbar .brand-logo:hover > img.nss-logo { transform: scale(1.06); }
}
.navbar .brand-text {
  color: #fff; font-weight: 700; line-height: 1;
  display: flex; align-items: center;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* Desktop links */
.nav-links { display: flex; gap: 1rem; }
.nav-links a {
  padding: .4rem .8rem; border-radius: 10px; transition: background .3s ease;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.2); }

/* =============================
   MOBILE MENU & HAMBURGER (Unified & Fixed)
   - This single definition replaces all others.
   - Uses animated bars.
============================= */
#hamburger {
  position: relative !important;
  width: 28px !important;
  height: 22px !important;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 10006; /* Above everything */
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
}
#hamburger .bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.2s ease, top 0.35s ease !important;
}
#hamburger .bar:nth-child(1) { top: 4px; }
#hamburger .bar:nth-child(2) { top: 10px; }
#hamburger .bar:nth-child(3) { top: 16px; }

#hamburger.open .bar:nth-child(1) { top: 10px; transform: rotate(45deg); }
#hamburger.open .bar:nth-child(2) { opacity: 0; }
#hamburger.open .bar:nth-child(3) { top: 10px; transform: rotate(-45deg); }

#mobileMenu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-offset) !important; /* Uses CSS variable */
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.45s ease;
  background: rgba(9, 16, 40, 0.72);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}
#mobileMenu.open {
  max-height: 60vh;
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu a {
  width: 100%;
  padding: 1rem 0;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease var(--d, 0ms),
    transform 0.35s ease var(--d, 0ms);
}
#mobileMenu.open a {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile backdrop blur */
#mobileBackdrop {
  position: fixed;
  left: 0; right: 0;
  top: var(--nav-offset) !important; /* Uses CSS variable */
  bottom: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 10000; /* below menu */
}
#mobileBackdrop.show { opacity: 1; pointer-events: auto; }

/* Mobile-first: show hamburger under 900px */
@media (max-width: 900px){
  #hamburger{ display:inline-flex !important; }
  .nav-links{ display:none !important; }
  .navbar .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .navbar .brand-text { font-size: 1rem; }
}

/* Desktop: hide hamburger, show links */
@media (min-width: 901px){
  #hamburger{ display:none !important; }
  #mobileMenu{ display:none !important; }
  .nav-links{ display:flex !important; }
}

/* =============================
   HERO / HEADER
============================= */
.hero { text-align: center; margin-top: 1.2rem; }
.hero h1 { font-size: 2rem; font-weight: 700; color: #ffffff; margin-bottom: 0.3rem; }
.hero .unit-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0ca4b;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -0.2rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 10px rgba(255, 213, 72, 0.5);
}
.hero h3, .hero .hero-sub {
  margin-top: 0;
  font-weight: 500;
  opacity: 0.9;
  color: #ffffff;
}
.welcome-text {
  text-align: justify;
  line-height: 1.7;
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: #f3f3f3;
  opacity: 0.95;
}
.welcome-text em {
  color: #ffd75f;
  font-style: normal;
  font-weight: 600;
}

/* =============================
   SLIDER (ALWAYS 16:9 LANDSCAPE)
============================= */
#slider {
  position: relative; width: 100%; max-width: 1200px; margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
}
#slider .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
#slider .slide.active { opacity: 1; }
#slider .slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 16px;
}
#slider-dots {
  display: flex; gap: .4rem; justify-content: center; margin-top: .6rem;
}
#slider-dots span {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.35);
}
#slider-dots span.active { background: rgba(255,255,255,.9); }

/* =============================
   QUICK LINKS (manual via Admin)
============================= */
#quickLinks {
  display: grid;
  gap: 1rem;
  margin-top: .4rem;
  grid-template-columns: 1fr; /* phones: 1 per row */
}
@media (min-width: 700px) {
  #quickLinks {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on wider screens */
  }
}
#quickLinks .qlink {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem; border-radius: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform .2s ease, background .3s ease;
}
#quickLinks .qlink:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.18);
}
#quickLinks .qlink-icon {
  font-size: 1.6rem;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
}
#quickLinks .qlink-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
#quickLinks .qlink-text span {
  opacity: .9; font-size: .9rem;
}

/* =============================
   ACTIVITIES (1:1, NO CROP) + CLAMP
============================= */
#activitiesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
/* Card is defined globally, just need the image style */
#activitiesGrid .card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; height: auto;
  object-fit: contain; /* show whole image */
  object-position: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.08); /* soft letterbox backdrop */
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.activity-card {
  display: flex; flex-direction: column;
  text-align: center;
}
.activity-card .caption {
  margin: .4rem 0 .2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* Clamp ~3 lines by default */
.caption.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.8em;
}
.caption.expanded { -webkit-line-clamp: unset; max-height: none; }
.readMoreBtn { margin-top: .2rem; }

/* =============================
   EXECOM & PO GRIDS (from styles.css)
============================= */
#poGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 1rem;
  justify-content: center;
  margin-inline: auto;
  width: 100%; max-width: 720px;
}
#poGrid .card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px;
}
@media (max-width: 640px) {
  #poGrid { grid-template-columns: 1fr; max-width: 420px; }
}

#execom11 .card img, #fg12 .card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.centered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  place-items: center; justify-content: center; gap: 1rem;
}

/* Specific execom card styles from styles.css */
.execom-section {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.execom-card {
  position: relative;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  width: 200px;
}
.execom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}
.photo-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background: rgba(255,255,255,0.05);
}
.photo-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.role-heading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 6px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* =============================
   FOOTER
============================= */
.footer { text-align: center; padding: 1rem 0; opacity: .85; font-size: .92rem; }
.insta-link {
  display: inline-block;
  margin-top: .6rem;
  color: #f8d448;
  font-weight: 600;
  text-decoration: none;
  transition: color .3s ease, transform .2s ease;
}
.insta-link:hover {
  color: #ffcc66;
  transform: scale(1.05);
}

/* ============================================
   MODERN ANIMATION PACK (visible + polished)
============================================ */
.motion-boost .navbar.animate-in {
  animation: navDrop .6s cubic-bezier(.2,.7,.25,1) both;
  will-change: transform, opacity;
}
.navbar.scrolled .brand {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.28);
}
.navbar .brand { position: relative; overflow: hidden; }
.navbar .brand::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,.18) 50%, transparent 90%);
  transform: translateX(-120%);
  pointer-events: none;
  opacity: .0;
}
.navbar .brand:hover::after { animation: sheen 900ms ease; opacity: .9; }

/* Reveal on scroll */
.motion-boost .reveal {
  opacity: 0;
  transform: translateY(28px) scale(.96);
  filter: blur(8px) saturate(.85);
  transition:
    opacity .7s ease var(--reveal-delay, 0ms),
    transform .7s ease var(--reveal-delay, 0ms),
    filter .7s ease var(--reveal-delay, 0ms);
}
.motion-boost .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

/* Slider cinematic zoom */
#slider .slide img {
  transition: transform 4s ease, filter 1.2s ease;
}
#slider .slide.active img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* Cards & Quick links: 3D tilt */
#quickLinks .qlink, .card {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  transform-style: preserve-3d;
}
.card:hover, #quickLinks .qlink:hover {
  box-shadow: 0 18px 36px rgba(0,0,0,.34);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
}

/* Button ripple */
.btn {
  position: relative; overflow: hidden;
  transition: transform .18s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: translate(-50%, -50%);
  transition: width .35s ease, height .35s ease, opacity .45s ease;
  opacity: 0;
}
.btn:active::after {
  width: 180%; height: 180%; opacity: .15;
}

/* Caption expand */
.caption.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.9em;
  transition: max-height .35s ease;
}
.caption.expanded {
  -webkit-line-clamp: unset;
  max-height: 1000px;
}
.caption.pulse { animation: pulse .35s ease; }

/* Parallax helpers */
.hero .glass, #slider { will-change: transform; }

/* KEYFRAMES */
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sheen {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .motion-boost .navbar.animate-in,
  .motion-boost .reveal,
  #slider .slide img,
  .btn::after,
  .navbar .brand::after,
  .hero .glass, #slider {
    animation: none !important;
    transition: none !important;
  }
}

/* =============================
   ADMIN-SPECIFIC STYLES (from styles.css)
============================= */
.ql-grid{
  display:grid; gap:.5rem;
  grid-template-columns: 80px 1fr;
}
.ql-grid > div label{ display:block; font-size:.8rem; opacity:.8; margin-bottom:.15rem }
.ql-grid input{ width:100%; padding:.55rem .7rem; border-radius:10px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff }
.ql-actions{ margin-top:.5rem; display:flex; justify-content:flex-end }

.grid-row{
  display:grid; gap:.5rem; align-items:center;
  grid-template-columns: 1fr 120px minmax(220px,1fr);
}
.grid-row .uploader{ display:flex; gap:.4rem; align-items:center }
.grid-row .full{ grid-column: 1 / -1 }

.user-row{
  display:grid; gap:.6rem; grid-template-columns: 1fr 160px auto; align-items:center;
}
.user-row .role-sel{
  padding:.5rem .6rem; border-radius:10px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08); color:#fff
}

@media (max-width: 640px){
  .grid-row{ grid-template-columns: 1fr; }
  .ql-grid{ grid-template-columns: 1fr; }
  .user-row{ grid-template-columns: 1fr; }
}

/* =============================
   CONTACT PAGE STYLES
============================= */
.contact-info {
  padding: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}
.contact-info p {
  margin-bottom: 0.8rem;
}

.map-frame {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.05);
}

.contact-form {
  max-width: 700px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
}
.contact-form .form-grid {
  display: grid;
  gap: 1rem;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
}
.contact-form label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form .form-input {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form textarea.form-input {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn {
  font-size: 1.1rem;
  justify-content: center;
}
#form-status {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}
#form-status.success { color: #8eff9a; }
#form-status.error { color: #ff8e8e; }
/* =============================
   NEW: ACTIVITIES FILTER MODAL
============================= */
#filterBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10010;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#filterBackdrop.show {
  opacity: 1;
  pointer-events: auto;
}

#filterModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(90%, 450px);
  z-index: 10011;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#filterModal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}
.filter-header h2 {
  margin: 0;
}
.btn-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
}
.btn-close:hover {
  opacity: 1;
}

.filter-group {
  margin-bottom: 1rem;
}
.filter-group label {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.4rem;
  display: block;
}
.filter-group select {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box; 
}
.filter-group select option {
  background: #121743;
  color: #fff;
}

.filter-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.filter-actions .btn-primary {
  background: #d22b2b;
  border-color: #d22b2b;
}
.filter-actions .btn-primary:hover {
  background: #b82121;
}

/* Make load more button obvious */
#loadMoreContainer {
  display: none; /* Hidden by default */
}
#loadMoreBtn {
  padding: .8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}
#gallerySlider{
position:relative;
width:100%;
max-width:1200px;
margin:auto;
aspect-ratio:16/9;
border-radius:16px;
overflow:hidden;
}

#gallerySlider .slide{
position:absolute;
inset:0;
opacity:0;
transition:opacity .7s;
}

#gallerySlider .slide.active{
opacity:1;
}

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

#galleryDots{
display:flex;
gap:.4rem;
justify-content:center;
margin-top:.6rem;
}

#galleryDots span{
width:8px;
height:8px;
border-radius:50%;
background:rgba(255,255,255,.35);
}

#galleryDots span.active{
background:#fff;
}

#galleryGrid{
margin-top:2rem;
column-count:3;
column-gap:1rem;
}

#galleryGrid img{
width:100%;
margin-bottom:1rem;
border-radius:12px;
break-inside:avoid;
}

@media(max-width:900px){
#galleryGrid{
column-count:2;
}
}

@media(max-width:600px){
#galleryGrid{
column-count:1;
}
}
/* IMAGE CAPTION OVERLAY */

.img-card{
  position:relative;
  overflow:hidden;
}

.img-card img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:14px;
}

.img-caption{
  position:absolute;
  bottom:0;
  left:0;
  right:0;

  padding:18px;

  background:linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0)
  );

  color:white;
  font-size:18px;
  font-weight:500;
  text-shadow:0 2px 10px rgba(0,0,0,0.8);
}
/* slide container */

.slide-card{
  position:relative;
  overflow:hidden;
  border-radius:14px;
}

/* slider image */

.slide-card img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

/* caption tag */

.img-tag{
  position:absolute;
  top:12px;
  left:12px;

  background:#d22b2b;
  color:white;

  padding:6px 12px;

  font-size:13px;
  font-weight:600;

  border-radius:20px;

  box-shadow:0 4px 12px rgba(0,0,0,0.25);
}
/* slide container */

.slide{
  position:absolute;
  width:100%;
  opacity:0;
  transition:opacity .8s ease;
}

.slide.active{
  opacity:1;
}

/* slide image container */

.slide-card{
  position:relative;
  overflow:hidden;
  border-radius:14px;
}

/* slider image */

.slide-card img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

/* caption tag */

.img-tag{
  position:absolute;
  top:12px;
  left:12px;

  background:#d22b2b;
  color:white;

  padding:6px 12px;

  font-size:13px;
  font-weight:600;

  border-radius:20px;

  box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

/* dots */

#slider-dots{
  text-align:center;
  margin-top:12px;
}

#slider-dots span{
  display:inline-block;
  width:8px;
  height:8px;
  background:#bbb;
  border-radius:50%;
  margin:4px;
}

#slider-dots span.active{
  background:#d22b2b;
   }
.img-tag{
  position:absolute;
  top:12px;
  left:12px;

  background:#d22b2b;
  color:white;

  padding:6px 12px;
  font-size:13px;
  font-weight:600;

  border-radius:20px;

  box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

/* mobile */

@media (max-width:600px){

  .img-tag{
    font-size:10px;
    padding:3px 8px;
    top:8px;
    left:8px;
  }

}

/* =============================
   GALLERY GRID (Modern Masonry)
============================= */

#galleryGrid{
  column-count:3;
  column-gap:16px;
  margin-top:2rem;
}

/* each image card */

.gallery-card{
  position:relative;
  break-inside:avoid;
  margin-bottom:16px;
  border-radius:14px;
  overflow:hidden;
}

/* image */

.gallery-card img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
}

/* caption tag */

.gallery-card .img-tag{
  position:absolute;
  top:10px;
  left:10px;

  background:#d22b2b;
  color:white;

  padding:6px 12px;
  font-size:12px;
  font-weight:600;

  border-radius:20px;

  box-shadow:0 4px 10px rgba(0,0,0,0.35);
}

/* hover effect */

.gallery-card:hover img{
  transform:scale(1.04);
  transition:transform .4s ease;
}

/* tablet */

@media(max-width:900px){
  #galleryGrid{
    column-count:2;
  }
}

/* phone */

@media(max-width:600px){
  #galleryGrid{
    column-count:1;
  }

  .gallery-card .img-tag{
    font-size:10px;
    padding:4px 8px;
  }
}
