* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

html, body { height: 100%; }
body {
  display: flex; flex-direction: column;
  min-height: 100vh;
  background: #f9f9f9; color: #333; line-height: 1.6;
}

/* Preloader */
#preloader {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; transition: opacity 0.5s ease;
}
#preloader img { width: 100px; }

/* Header */
  /*background: url('/images/bg.png') center/cover no-repeat;*/
header {
  background-color: #fff;
  color: white; 
  padding: 15px;
  position: sticky; top: 0; z-index: 1100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex; justify-content: space-between; align-items: center;
}
header h1 {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: bold;
  text-transform: uppercase;
  background: linear-gradient(45deg, #fff, #ddd, #f0f0f0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 2px; animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}
nav a:hover { color: #ddd; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px; height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* Sidebar Drawer */
.sidebar {
  position: fixed;
  top: 0; left: -88%;
  width: 88%; height: 100%;
  background: #FFF;
  color: white;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 2000;
  display: flex; 
  flex-direction: column;
}
.sidebar.active { left: 0; }
.sidebar h2 { margin-bottom: 20px; }
.sidebar ul { list-style: none; }
.sidebar ul li { margin: 15px 0; }
.sidebar a { color: #000; text-decoration: none; font-size: 1.2rem; }
.sidebar a:hover { color: #821517; }
.sidebar h1 {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: bold;
  text-transform: uppercase;
  background: linear-gradient(45deg, #000, #000, #000);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 2px; animation: shimmer 3s infinite;
  text-align: center;
  margin: 0;
  padding: 0px 15px 15px;
  font-size: 1.38rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-icons {
  margin-top: auto; /* pushes icons to bottom */
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}
.sidebar-icons a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
}
.sidebar-icons a:hover {
  color: #821517;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 1500;
}
.overlay.active { display: block; }

/* Responsive */
@media(max-width:768px){
  nav { display: none; }
  .hamburger { display: flex; }
}

/* Main content - Masonry */
main { flex: 1; }
.main-content {
  padding: 20px;
}
.masonry {
  column-count: 4;
  column-gap: 15px;
  max-width: 1200px;
  margin: auto;
}
@media(max-width: 1024px){
  .masonry { column-count: 3; }
}
@media(max-width: 768px){
  .masonry { column-count: 3; }
}
@media(max-width: 480px){
  .masonry { column-count: 2; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 15px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s;
  display: inline-block;
  width: 100%;
}
.masonry-item:hover { transform: scale(1.03); }
.masonry-item img { width: 100%; display: block; border-radius: 8px; }

/* Footer */
footer {
  text-align: center; background: #27323F; color: white; padding: 15px;
}

/* Modal (Slider) */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000; justify-content: center; align-items: center;
  padding: 20px; overflow-y: auto;
}
.modal.active { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

.modal-content { position: relative; max-width: 90%; max-height: 90%; display: flex; align-items: center; }
.modal-content img { max-width: 100%; max-height: 85vh; border-radius: 8px; margin: auto; }

/* Controls */
.close-btn, .prev-btn, .next-btn {
  position: absolute; background: rgba(0,0,0,0.6); color: white;
  border: none; cursor: pointer; font-size: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  transition: background .3s;
}
.close-btn:hover, .prev-btn:hover, .next-btn:hover { background: rgba(0,0,0,0.9); }
.close-btn { top: 10px; right: 10px; font-size: 28px; }
.prev-btn { left: -60px; top: 50%; transform: translateY(-50%); }
.next-btn { right: -60px; top: 50%; transform: translateY(-50%); }

@media(max-width:768px){
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.pt-1 {
  padding-top: 10px;
}
.pt-2 {
  padding-top: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-full-width {
  display: block;
  width: 100%;
  text-align: center;
}
.btn-primary {
  background-color: #821517;
  color: #fff;
}
.btn-primary:hover {
  background-color: #0056b3;
}
.btn-outline-primary {
  background-color: transparent;
  color: #821517;
  border-color: #821517;
}
.btn-outline-primary:hover {
  background-color: #821517;
  color: #fff;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px;
  background-color: #E6D0D0;
}
.banner-content {
  flex: 1;
}
.banner-content h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.banner-content h4 {
  font-size: 18px;
  font-weight: 400;
  color: #555;
  margin-bottom: 20px;
}
.banner-actions {
  display: flex;
  gap: 12px;
}
.banner-image {
  flex: 1;
  text-align: right;
}
.banner-image img {
  max-width: 100%;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .banner {
    padding: 40px 20px;
    flex-direction: column;
    text-align: left;
  }
  .banner-image {
    text-align: center;
  }
  .banner-actions {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

.carousel-section {
  background-color: #eee;
  padding: 60px 30px;
}
.carousel-header {
  text-align: center;
  margin-bottom: 30px;
}
.carousel-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}
.carousel-header p {
  color: #666;
  font-size: 16px;
}
.carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 20px;
}
.carousel-slide {
  min-width: calc(100% / 4 - 14.73px); /* 3 slides per row with gap */
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}
.event-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden; /* keeps image corners rounded */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  margin: auto;
}
.event-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.event-body {
  padding: 15px;
  color: #000;
}
.event-meta {
  font-size: 14px;
  margin-bottom: 6px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 10;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
/* Mobile: 1 slide per view */
@media (max-width: 768px) {
  .carousel-section {
    padding: 40px 20px;
  }
  .carousel-slide {
    min-width: 100%;
  }
}

.gallery-section {
  background-color: #FFF;
  padding: 60px 30px;
}
@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 20px;
  }
}

.bio-timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 30px;
  max-width: 600px;
}
.bio-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-dot {
  position: absolute;
  left: -1px;
  width: 16px;
  height: 16px;
  background: #0d6efd;
  border-radius: 50%;
}
.timeline-content {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.timeline-year {
  font-weight: bold;
  color: #0d6efd;
  font-size: 14px;
}
