/* Force gallery images visible for testing */
.gallery-image {
  opacity: 1 !important;
}
/* --- Restored Gallery Layout Styles --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0;
}

.gallery-card {
  background: var(--card-bg);
  border-radius: 12px;
    box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
    box-shadow: none !important;
}

.gallery-image-container {
  width: 100%;
  position: relative;
  background: #f5f6fa;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* .gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  border-radius: 0px 0px 0 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
} */

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 10px 10px 0 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}


.gallery-card:hover .gallery-image {
  filter: brightness(1.05);
  transform: scale(1.03);
}

/* .gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  border-radius: 10px 10px 0 0;
}

.gallery-card:hover .gallery-hover-overlay {
  opacity: 1;
} */


.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.45) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
}

.gallery-card:hover .gallery-hover-overlay {
  opacity: 1;
}


.gallery-content {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
}

.gallery-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* --- End Gallery Layout Styles --- */
/* Redevelopment Contact Card Styling */
.redevelopment-contact-item {
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 24px 12px;
  margin: 0 0 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
}
 
@media (max-width: 600px) {
  .redevelopment-contact-item {
    padding: 12px 4px;
    min-width: 160px;
    max-width: 100%;
  }
}
/* Redevelopment Map Styling */
.redevelopment-map {
  margin-top: 32px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 24px 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
/* More compact map for desktop */
.redevelopment-map iframe {
  width: 350px;
  max-width: 100%;
  height: 220px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
  .redevelopment-map iframe {
    width: 100%;
    height: 160px;
  }
}
@media (max-width: 600px) {
  .redevelopment-map {
    padding: 12px 2px;
  }
  .redevelopment-map iframe {
    height: 250px;
  }
}
* { box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
  scroll-behavior: smooth;
  touch-action: manipulation; /* Improve scrolling performance on touch devices */
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure images don't overflow their containers */
}

iframe {
  touch-action: none; /* Prevent iframes from interfering with page scroll */
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  background: var(--nav-bg);
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 10px;
  flex-wrap: nowrap;
}

.nav-brand {
  display: flex;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 180px;
}

.nav-brand.has-logo {
  padding: 6px 10px;
  background: #b91c1c;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-brand.has-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.nav-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: none;
}

.nav-brand.has-logo .nav-logo {
  display: block;
}

.nav-brand.has-logo i {
  display: none;
}

.nav-brand h2 {
  margin: 0;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.25;
  white-space: normal;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s;
  font-size: 0.9rem;
}

#nav-login-item a {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  gap: 8px;
}

#nav-login-item a:hover {
  background: rgba(255,255,255,0.28);
  color: white;
}

@media (max-width: 991px) {
  nav .container {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .nav-brand {
    flex: 0 1 auto;
    min-width: 120px;
  }
  /* Hide regular nav links on smaller screens until hamburger is toggled */
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 10px;
    gap: 8px;
    z-index: 1200;
  }
  .nav-links.active li { justify-content: center; }
  .hamburger {
    display: flex;
    margin-left: 12px;
  }
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent-color);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 8px 6px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-role-pill {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.35);
}

.user-role-pill i {
  font-size: 1rem;
}

.user-role-text {
  display: inline-block;
}

.user-menu-dropdown .logout-pill {
  background: #fff;
  color: var(--nav-bg, #222);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.06);
}

.user-menu-dropdown .logout-pill:hover {
  background: #f5f5f5;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 0;
  transform: translate(50%, -50%);
  background: #e74c3c;
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  line-height: 18px;
  text-align: center;
  display: none;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--card-bg, #ffffff);
  color: var(--text-color);
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
  padding: 8px 0;
  display: none;
  z-index: 1200;
  border: 1px solid rgba(0,0,0,0.06);
}

.user-menu-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--card-bg, #ffffff);
  transform: rotate(45deg);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-dropdown .user-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--nav-bg) !important;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.user-menu-dropdown .user-menu-item i { color: var(--nav-bg); }

.user-menu-dropdown .user-menu-item:hover {
  background: rgba(0,123,255,0.08);
  color: var(--nav-bg);
}

.user-menu-dropdown .user-menu-item:focus,
.user-menu-dropdown .user-menu-item:active {
  color: var(--nav-bg);
  background: rgba(0,123,255,0.12);
  outline: none;
}

body.dark-mode .user-menu-dropdown {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12);
}

body.dark-mode .user-menu-dropdown::before {
  background: #0f172a;
  border-left: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
}

body.dark-mode .user-menu-item {
  color: #8ab6ff !important;
}

body.dark-mode .user-menu-item i {
  color: #8ab6ff;
}

body.dark-mode .user-menu-item:focus,
body.dark-mode .user-menu-item:active {
  color: #8ab6ff;
  background: rgba(138,182,255,0.15);
  outline: none;
}

body.dark-mode .user-menu-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}


.btn-primary {
  background: var(--button-bg);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--accent-color);
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.features {
  padding: 60px 0;
  background: var(--bg-color);
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: var(--text-color);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 3rem;
  color: var(--nav-bg);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.events {
  padding: 60px 0;
  background: rgba(0,123,255,0.05);
}

.events h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-left: 5px solid var(--accent-color);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--nav-bg);
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.about-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card i {
  font-size: 3rem;
  color: var(--nav-bg);
  margin-bottom: 20px;
}

.members {
  padding: 60px 0;
  background: var(--bg-color);
}

.members h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.members-subtitle {
  text-align: center;
  margin: -20px 0 30px;
  color: var(--text-muted);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  text-align: left;
}

@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.member-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.member-group {
  margin-bottom: 30px;
}

.member-type-title {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  font-size: 1.2rem;
}

.member-card p {
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

.social-links {
  padding: 15px;
  border-top: 1px solid #eee;
}

.social-links a {
  color: var(--text-color);
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

.about-preview {
  padding: 60px 0;
  background: rgba(0,123,255,0.05);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-image {
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-size: cover;
  background-position: center;
}

.redevelopment-preview {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,123,255,0.03) 0%, rgba(255,255,255,0.98) 50%, rgba(0,123,255,0.03) 100%);
  position: relative;
}

.redevelopment-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000000" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23000000" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23000000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.redevelopment-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.redevelopment-text h2 {
  margin-bottom: 15px;
  font-size: 2.2rem;
  font-weight: 600;
  color: #4B0082;
  letter-spacing: -0.5px;
}

.redevelopment-text h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  font-style: italic;
}

.redevelopment-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #555;
  font-size: 1rem;
}

.redevelopment-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.redevelopment-contact-item {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.redevelopment-contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--nav-bg);
}

.redevelopment-contact-item i {
  font-size: 1.3rem;
  color: var(--nav-bg);
  margin-bottom: 6px;
}

.redevelopment-contact-item h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.redevelopment-contact-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.redevelopment-image img {
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 2px solid #f0f0f0;
}

.btn-secondary {
  background: transparent;
  color: var(--nav-bg);
  border: 2px solid var(--nav-bg);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--nav-bg);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.home-stats-section {
  padding: 60px 0;
  background: #f8fafc;
}

.home-stats-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.home-stats-header h2 {
  margin-bottom: 12px;
  font-size: 2.3rem;
  color: var(--nav-bg);
}

.home-stats-header p {
  margin: 0;
  color: var(--text-muted);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.home-stats-grid .stat-card {
  margin: 0;
  border-left-width: 6px;
}

.gallery-preview {
  padding: 60px 0;
  background: var(--bg-color);
}

.gallery-preview h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.contact-preview {
  padding: 60px 0;
  background: rgba(0,123,255,0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-container {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container h3 {
  margin: 0;
  padding: 15px;
  background: var(--card-bg);
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-color);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.contact-form h2, .contact-info h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.5;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--nav-bg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-list .info-item,
.contact-dynamic .info-item {
  margin-bottom: 30px;
}

.contact-phone {
  color: var(--nav-bg);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.notifications-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.notifications-overlay.show { display: flex; }

.notifications-modal {
  background: var(--card-bg, #fff);
  color: var(--text-color, #222);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.notifications-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.notifications-list {
  padding: 12px 18px;
  overflow-y: auto;
}

.notification-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.notification-item:last-child { border-bottom: none; }

.notification-title {
  margin: 0 0 4px 0;
  font-weight: 600;
}

.notification-meta {
  margin: 4px 0 0 0;
  color: var(--text-muted, #666);
  font-size: 0.9rem;
}

.contact-phone:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--nav-bg);
  margin-top: 5px;
}

.info-item h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.info-item p {
  margin: 0;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
}

.map-section {
  text-align: center;
}

.map-section h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-center {
  text-align: center;
}

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
}

.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.login-box {
  background: var(--card-bg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-top: 5px solid var(--button-bg);
  text-align: center;
}

.login-header i {
  font-size: 3rem;
  color: var(--nav-bg);
  margin-bottom: 15px;
}

.login-header h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.login-header p {
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
  opacity: 0.5;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--nav-bg);
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--button-bg);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--accent-color);
}

.login-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.login-footer p {
  margin-bottom: 10px;
  color: var(--text-color);
  opacity: 0.8;
}

.login-footer a {
  color: var(--nav-bg);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
}

input, textarea, button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
}

button {
  background: var(--button-bg);
  color: white;
  border: none;
  border-radius: 8px;
}

.dashboard {
  display: flex;
  min-height: 100vh;
  gap: 20px;
}

aside {
  width: 220px;
  background: var(--nav-bg);
  color: white;
  padding: 20px;
  border-radius: 12px;
  align-self: flex-start;
}

main { 
  flex: 1; 
  padding: 20px; 
  overflow-x: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.gallery-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
}

.gallery-carousel-section {
  margin: 20px 0 30px;
}

.gallery-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-carousel-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.gallery-carousel-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-carousel {
  position: relative;
}

.gallery-swiper {
  padding: 10px 10px 32px;
  overflow: hidden;
}

.gallery-swiper .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: linear !important;
}

.gallery-swiper .swiper-slide {
  height: auto;
  width: clamp(220px, 26vw, 300px);
}

.gallery-swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  background: #f5f6fa;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.gallery-swiper-slide img {
  width: 100%;
  max-height: 340px;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  animation: gallery-rail 14s linear infinite;
}


.gallery-swiper-slide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.home-gallery-swiper .home-carousel-caption {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-gallery-swiper .swiper-slide:hover .home-carousel-caption {
  opacity: 1;
}

.gallery-swiper .swiper-slide:focus-visible .gallery-swiper-slide,
.gallery-swiper .swiper-slide:hover .gallery-swiper-slide {
  transform: translateY(-4px);
}

.gallery-swiper .swiper-slide:hover img {
  transform: scale(1.04);
  animation-play-state: paused;
}

.gallery-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.gallery-swiper .swiper-slide-active img,
.gallery-swiper .swiper-slide-duplicate-active img {
  animation-play-state: running;
}

@keyframes gallery-rail {
  0% { transform: scale(1.04) translate3d(14px, 0, 0); }
  25% { transform: scale(1.05) translate3d(7px, 0, 0); }
  50% { transform: scale(1.06) translate3d(0, 0, 0); }
  75% { transform: scale(1.05) translate3d(-7px, 0, 0); }
  100% { transform: scale(1.04) translate3d(-14px, 0, 0); }
}

.carousel-placeholder-slide .gallery-loading {
  padding: 36px 12px;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.14);
  transform: scale(1.05);
}

.gallery-swiper .swiper-button-next:after,
.gallery-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

.gallery-swiper .swiper-pagination-bullet {
  background: var(--border-color);
  opacity: 1;
}

.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--primary-color);
}

.carousel-empty-slide .gallery-empty {
  box-shadow: none;
  padding: 30px 16px;
  margin: 0;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0;
}

.gallery-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image-container {
  width: 100%;
  position: relative;
  background: #f5f6fa;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* .gallery-image {
  width: 100%;
  width: 100%;
  aspect-ratio: 16/6;
  min-height: 0;
  max-width: 800px;
  max-height: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background: none;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  border-radius: 10px 10px 0 0;
} */

.gallery-card:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-content {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
}

.gallery-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Gallery States */
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gallery-empty,
.gallery-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color);
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-icon,
.error-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.gallery-empty h3,
.gallery-error h3 {
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-size: 1.5rem;
}

.gallery-empty p,
.gallery-error p {
  margin: 0;
  color: var(--text-muted);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  overflow: hidden;
}

.modal-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1001;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}

.close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  border: none;
}

.close:hover {
  background: rgba(0,0,0,0.9);
}

#caption {
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  padding: 0 20px;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.slideshow-controls button {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.slideshow-controls button:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.slideshow-controls button.playing {
  background: rgba(255,0,0,0.3);
  border-color: rgba(255,0,0,0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}


  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }
  
  .close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .modal-footer {
    padding: 15px 10px;
  }
  
  #caption {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .slideshow-controls button {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  #slideNumber {
    font-size: 13px;
  }


/* Gallery Header */
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.gallery-header h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.gallery-header h1 i {
  color: var(--primary-color);
  margin-right: 10px;
}

.gallery-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

footer {
  background: var(--footer-bg);
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-section h3, .footer-section h4 {
  margin-bottom: 15px;
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-developer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.developer-card {
  width: 100%;
  max-width: 480px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,249,255,0.9)),
    radial-gradient(circle at 18% 20%, rgba(79,70,229,0.08), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(16,185,129,0.08), transparent 46%);
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}

.developer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none;
}

.developer-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(79,70,229,0.6), rgba(16,185,129,0.5), rgba(59,130,246,0.55));
}

.developer-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.developer-card__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.developer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(16,185,129,0.2));
  display: grid;
  place-items: center;
  color: #0b1220;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 10px 18px rgba(0,0,0,0.08);
  border: 1px solid rgba(79,70,229,0.18);
}

.developer-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--nav-bg, #4f46e5);
  text-transform: uppercase;
  font-size: 0.78rem;
  background: rgba(79,70,229,0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.developer-badge {
  background: rgba(0,0,0,0.05);
  color: #0f172a;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}


.developer-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 2px;
  letter-spacing: 0.01em;
  color: #0b1220;
}

.developer-card__role {
  color: #475569;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.developer-card__tagline {
  margin: 0 0 4px;
  color: #61708c;
  font-size: 0.86rem;
  font-weight: 500;
}

.developer-card__contacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.03);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid rgba(79,70,229,0.2);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.developer-link:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0,0,0,0.1);
  border-color: rgba(16,185,129,0.35);
}

.developer-link i {
  color: var(--nav-bg, #4f46e5);
}

#dark-mode-toggle {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#dark-mode-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .nav-links li { width: 100%; }
  .nav-links a { width: 100%; }
  .user-menu { width: 100%; }
  .user-menu-dropdown { position: static; box-shadow: none; display: none; }
  .user-menu-dropdown.show { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  }
  .banner h1 { font-size: 2rem; }
  .banner p { font-size: 1rem; }
  .features { padding: 40px 0; }
  .events { padding: 40px 0; }
  .feature-grid, .event-grid, .members-grid, .about-grid, .gallery-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .map-container iframe {
    height: 300px;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .dashboard { flex-direction: column; }
  aside { width: 100%; }
  .gallery-header h1 {
    font-size: 2rem;
  }
  .gallery-header p {
    font-size: 1rem;
  }
  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
    margin: 30px 0;
  }
  .redevelopment-content { gap: 20px; }
  .redevelopment-image img { max-width: 100%; }
  .redevelopment-text h2 { font-size: 2rem; }
  .redevelopment-text h3 { font-size: 1.3rem; }
  .redevelopment-contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
}


@media (max-width: 480px) {

  /* ✅ FINAL mobile banner */
 
  /* Everything else stays SAME */
  .about-image { height: 250px; }
  .redevelopment-preview { padding: 40px 0; }
  .redevelopment-content { gap: 15px; }
  .redevelopment-image img { max-width: 100%; }
  .redevelopment-text h2 { font-size: 1.8rem; }
  .redevelopment-text h3 { font-size: 1.2rem; }

  .redevelopment-contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .redevelopment-contact-item {
    padding: 10px;
  }

  .gallery-preview { padding: 40px 0; }
  .contact-preview { padding: 40px 0; }
  .login-box { padding: 20px; margin: 20px; }
  nav { padding: 10px; }
  .container { padding: 0 15px; }

  .gallery-header {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .gallery-header h1 { font-size: 1.8rem; }
  .gallery-header p { font-size: 0.95rem; }

  .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px;
    margin: 20px 0;
  }
}


/* Dark Mode */
:root {
  --bg-color: #ffffff; /* White */
  --text-color: #333333; /* Dark */
  --text-muted: #666666; /* Gray */
  --nav-bg: #B9714B; /* Blue */
  --card-bg: #ffffff; /* White */
  --button-bg: #ffc107; /* Yellow */
  --footer-bg: #B9714B; /* Red */
  --accent-color: #ffc107; /* Yellow */
  --primary-color: #B9714B; /* Blue */
  --border-color: #e0e0e0; /* Light Gray */
}

.dark-mode {
  --bg-color: #001f3f; /* Dark Blue */
  --text-color: #ffffff; /* White */
  --text-muted: #cccccc; /* Light Gray */
  --nav-bg: #B9714B; /* Darker Blue */
  --card-bg: #1e3a5f; /* Dark Blue Gray */
  --button-bg: #dc3545; /* Red for better contrast */
  --footer-bg: #B9714B; /* Darker Red */
  --accent-color: #ffc107; /* Yellow */
  --primary-color: #B9714B; /* Light Blue */
  --border-color: #2c5282; /* Dark Blue Gray */
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}

a { color: var(--nav-bg); text-decoration: none; }

a:hover { color: var(--accent-color); }

.card {
  background: var(--card-bg);
  padding: 20px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-left: 5px solid var(--accent-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--nav-bg); padding: 10px; }
}

/* Admin Dashboard Styles */
.admin-sidebar {
  width: 250px;
  background: var(--nav-bg);
  color: white;
  padding: 30px 20px;
  min-height: 100vh;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar ul {
  list-style: none;
  padding: 0;
}

.admin-sidebar li {
  margin-bottom: 10px;
}

.tab-link {
  width: 100%;
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  transition: background 0.3s, transform 0.1s;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.tab-link:hover { background: rgba(255,255,255,0.1); }
.tab-link.active { background: rgba(255,255,255,0.2); transform: translateX(4px); }
.tab-link { font-size: 0.95rem; }

.tab-section .btn-primary {
  width: 100%;
  max-width: 240px;
}

.gallery-card#banner-preview-card {
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-section {
  padding: 30px;
  background: var(--card-bg);
  margin: 0 0 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h2 {
  margin-bottom: 20px;
  color: var(--nav-bg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.admin-analytics-card {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,246,250,0.95));
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.admin-analytics-card .metric-label {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-analytics-card .metric-value {
  margin: 6px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--nav-bg);
}

.admin-analytics-card .metric-value.pending {
  color: #b91c1c;
}

.admin-analytics-card.is-link {
  cursor: pointer;
  border: 1px solid rgba(185,28,28,0.18);
}

.admin-analytics-card.is-link:hover {
  box-shadow: 0 14px 36px rgba(185,28,28,0.18);
}

@media (max-width: 1100px) {
  .admin-analytics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.profile-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.profile-photo .photo-thumb {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo .photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo .upload-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  background: #e5e7eb;
  color: #111827;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-actions {
  display: inline-flex;
  gap: 6px;
}

.tag-action-btn {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.tag-action-btn:hover { background: #bfdbfe; }
.tag-action-btn.danger { background: #fee2e2; border-color: #fecdd3; color: #b91c1c; }
.tag-action-btn.danger:hover { background: #fecdd3; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.pagination .pagination-info {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pagination .pagination-actions {
  display: inline-flex;
  gap: 8px;
}

.pagination .page-btn {
  background: #e2e8f0;
  color: #1f2937;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.pagination .page-btn:hover { background: #cbd5e1; }
.pagination .page-btn:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

.tab-section { display: none; }
.tab-section.active { display: block; }

.table-wrapper {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-table th, .admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.admin-table th {
  background: rgba(0,123,255,0.07);
  color: var(--text-color);
  font-weight: 600;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: capitalize;
  font-weight: 600;
}
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-pending { background: #fef9c3; color: #92400e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* Member committee role chips */
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  min-width: 220px;
}

.role-chip__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.15);
  color: var(--nav-bg, #4f46e5);
  font-size: 1rem;
}

.role-chip__body { line-height: 1.3; }

.role-chip__title {
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.2px;
}

.role-chip__meta {
  color: var(--text-muted, #6b7280);
  font-size: 0.92rem;
}

.role-chip.role-chip-sm {
  padding: 8px 10px;
  gap: 8px;
  min-width: 0;
  margin: 4px 0;
}

.role-chip.role-chip-sm .role-chip__icon {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

.role-chip.role-chip-sm .role-chip__title {
  font-size: 0.95rem;
}

.role-chip.role-chip-sm .role-chip__meta {
  font-size: 0.85rem;
}

/* Redevelopment document groups */
.rd-doc-groups {
  display: grid;
  gap: 14px;
}

.rd-doc-group {
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.rd-doc-group::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.rd-doc-group::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), rgba(59, 130, 246, 0.28), rgba(16, 185, 129, 0.25));
}

.rd-doc-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rd-doc-group__title {
  margin: 0;
  font-size: 1.05rem;
}

.rd-doc-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
  justify-content: space-between;
}

.rd-doc-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.rd-doc-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--nav-bg, #4f46e5);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.rd-doc-row__meta {
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
  margin: 4px 0 0;
}

.rd-doc-row__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pill-muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: var(--text-color, #1f2937);
  font-size: 0.9rem;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--nav-bg, #4f46e5);
  font-size: 0.9rem;
}

/* Redevelopment committee directory */
.rd-committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rd-committee-card {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.04), rgba(59, 130, 246, 0.06)), var(--card-bg, #ffffff);
  border-radius: 16px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.rd-committee-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.rd-committee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.6), rgba(59, 130, 246, 0.55), rgba(16, 185, 129, 0.5));
}

.rd-committee-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rd-committee-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rd-committee-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 44%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.6), rgba(59, 130, 246, 0.65), rgba(16, 185, 129, 0.6));
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.28);
}

.rd-committee-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.16);
  color: var(--nav-bg, #4f46e5);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.rd-committee-members {
  display: grid;
  gap: 12px;
}

.rd-committee-member {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 18px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rd-committee-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.06);
}

/* Contact modal */
#contact-modal.modal-overlay,
#about-contact-modal.modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

#contact-modal .modal-content,
#about-contact-modal .modal-content {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

#contact-modal .modal-header,
#about-contact-modal .modal-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

#contact-modal .modal-header h3,
#about-contact-modal .modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

#contact-modal .modal-close,
#about-contact-modal .modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

#contact-modal .modal-close:hover,
#about-contact-modal .modal-close:hover {
  background: rgba(79,70,229,0.12);
  color: var(--nav-bg, #4f46e5);
  transform: translateY(-1px);
}

#contact-modal-body,
#about-contact-modal-body {
  padding: 4px 0 2px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

#contact-modal-photo,
#about-contact-modal-photo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(79, 70, 229, 0.22);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}

#contact-modal-name,
#about-contact-modal-name {
  margin: 0 0 4px;
}

#contact-modal-meta,
#about-contact-modal-meta {
  margin: 0 0 8px;
  font-weight: 600;
  color: #334155;
}

#contact-modal-phone,
#contact-modal-email,
#about-contact-modal-phone,
#about-contact-modal-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--text-muted, #6b7280);
}

#contact-modal-phone i,
#contact-modal-email i,
#about-contact-modal-phone i,
#about-contact-modal-email i {
  color: var(--nav-bg, #4f46e5);
}

.rd-committee-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f4f6;
  border: 2px solid rgba(79, 70, 229, 0.2);
}

.rd-committee-name {
  font-weight: 700;
  margin: 0;
}

.rd-committee-meta {
  margin: 2px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 0.93rem;
}

.table-btn {
  background: #e2e8f0;
  color: #1f2937;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-btn:hover { background: #cbd5e1; }
.table-btn.danger { background: #fecdd3; color: #991b1b; }
.table-btn.danger:hover { background: #fca5a5; }

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary {
  background: var(--button-bg);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--accent-color);
  color: var(--text-color);
}

/* Shilp Associate Page Styles */
.shilp-associate-hero {
  /* background: linear-gradient(rgba(0,123,255,0.8), rgba(0,123,255,0.8)), url('../assets/banners/banner.jpg') center/cover;
  color: white; */
  padding: 80px 0;
  text-align: center;
}

.shilp-associate-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.shilp-associate-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.about-builder-section {
  padding: 80px 0;
  background: var(--bg-color);
}

.about-builder-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--nav-bg);
}

.builder-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.builder-info h3 {
  margin-bottom: 20px;
  color: var(--nav-bg);
}

.builder-info ul {
  list-style: none;
  padding: 0;
}

.builder-info li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-info li i {
  color: var(--accent-color);
}

.builder-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--card-bg);
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-left: 5px solid var(--accent-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-color);
  opacity: 0.8;
  font-weight: 500;
}

.projects-section {
  padding: 80px 0;
  background: rgba(0,123,255,0.05);
}

.projects-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--nav-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  margin-bottom: 15px;
  color: var(--nav-bg);
}

.project-info p {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
}

.project-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.services-section {
  padding: 80px 0;
  background: var(--bg-color);
}

.services-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--nav-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid var(--accent-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card i {
  font-size: 3rem;
  color: var(--nav-bg);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--nav-bg);
}

.service-card p {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
}

.contact-form h3 {
  margin-bottom: 30px;
  color: var(--nav-bg);
}

.contact-form form {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .builder-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-image { height: 300px; }
  .redevelopment-text h2 { font-size: 2rem; }
  .redevelopment-text h3 { font-size: 1.3rem; }
  .redevelopment-contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  .shilp-associate-hero h1 {
    font-size: 2rem;
  }
  .about-builder-section h2,
  .services-section h2,
  .projects-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }
}

.delete-btn {
  margin-top: 8px;
  background: #dc2626;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.delete-btn:hover {
  background: #b91c1c;
}

/* Utility Classes */
.center { text-align: center; }
.error { color: #dc3545; }

/* Notice modal */
#notice-modal.modal-overlay,
#admin-notice-modal.modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

#notice-modal .modal-content,
#admin-notice-modal .modal-content {
  position: center;
  width: 100%;
  max-width: 540px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 20px 22px 20px;
  color: #0f172a;
  margin: 0 auto;
  align-self: center;
  max-height: 82vh;
  overflow: auto;
}

#notice-modal .modal-content::before,
#admin-notice-modal .modal-content::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 22px;
  right: 22px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #3b82f6);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.22);
}

#notice-modal .modal-content::after,
#admin-notice-modal .modal-content::after {
  content: none;
}

#notice-modal .modal-header,
#admin-notice-modal .modal-header {
  padding-top: 14px;
  margin-bottom: 12px;
  align-items: center;
}

#notice-modal .notice-modal-title,
#admin-notice-modal .admin-notice-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
}

#notice-modal .modal-close,
#admin-notice-modal .modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  color: #111827;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

#notice-modal .modal-close:hover,
#admin-notice-modal .modal-close:hover {
  background: rgba(79,70,229,0.12);
  transform: translateY(-1px);
}

.notice-modal-meta,
.admin-notice-meta {
  margin: 0 0 10px;
  color: #6b7280;
  font-weight: 600;
}

.notice-modal-body,
.admin-notice-body {
  margin: 0;
  color: #1f2937;
  line-height: 1.6;
  white-space: pre-line;
}

.modal-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-carousel .carousel-frame {
  width: 100%;
}

.modal-carousel img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 420px;
  display: block;
}

.modal-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.modal-carousel .carousel-btn:hover {
  background: rgba(79, 70, 229, 0.9);
  transform: translateY(-50%) scale(1.02);
}

.modal-carousel .carousel-btn.prev { left: 10px; }
.modal-carousel .carousel-btn.next { right: 10px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}



/* ===========================
   ✅ BANNER – DESKTOP FIXED, MOBILE AUTO (WITH EFFECTS)
=========================== */

.banner {
  width: 100%;
  background: #f3f6fb;
  text-align: center;
  overflow: hidden;
  position: relative;

  /* subtle separation */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== Optional soft overlay ===== */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}

/* ===========================
   🖥️ DESKTOP / TABLET IMAGE
=========================== */
.banner img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;

  /* hide alt / filename */
  font-size: 0;
  color: transparent;

  /* 🎯 effects */
  animation: bannerFadeZoom 1.2s ease-out forwards;
  transform: scale(1.04);
  opacity: 0;
}

/* ===========================
   📱 MOBILE – AUTO ADJUST
=========================== */
@media (max-width: 480px) {
  .banner img {
    height: 100px;     /* your chosen mobile height */
    width: 100%;
    transform: scale(1);
  }
}

/* ===========================
   🎬 ANIMATION
=========================== */
@keyframes bannerFadeZoom {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ===========================
   📎 Notice Attachments – File Types
=========================== */

.notice-documents {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-documents h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  transition: all 0.2s ease;
}

.notice-doc i {
  font-size: 1.2rem;
}

/* Hover */
.notice-doc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* ===== File type colors ===== */

.file-pdf {
  color: #b91c1c;
}

.file-excel {
  color: #166534;
}

.file-word {
  color: #1d4ed8;
}

.file-image {
  color: #7c3aed;
}

.file-default {
  color: #374151;
}

/* Dark mode */
body.dark-mode .notice-doc {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.clear-notifications-btn {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.clear-notifications-btn:hover {
  background: #fee2e2;
}

body.dark-mode .clear-notifications-btn {
  border-color: #f87171;
  color: #f87171;
}

/* container controls alignment */
.danger-actions {
  margin-top: 12px;
  display: flex;
  right: 20px;
  justify-content: flex-end; /* ✅ RIGHT aligned */
}

/* pill-style small danger button */
.btn-danger {
  width: auto !important;
  padding: 6px 14px;
  border-radius: 999px;      /* pill */
  font-size: 13px;
  font-weight: 500;
  background: #dc2626;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-danger:hover {
  background: #f47405;
  color: #0b0b0b;
}


/* ===============================
   Committee Members – Form Styling
================================ */

/* Whole form row */
#committee-members .form-group {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

/* Grid layout for inputs */
#committee-members .form-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* Labels */
#committee-members label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}

/* Inputs & selects */
#committee-members input,
#committee-members select {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect */
#committee-members input:focus,
#committee-members select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Button row */
#committee-members .form-group + div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

/* Assign button */
#committee-members .btn-primary {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
}

/* Cancel button */
#committee-members .btn-secondary {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* ===============================
   Committee Positions – Form Styling
================================ */

#committee-positions .form-group {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  max-width: 380px; /* keeps it compact */
}

/* Labels */
#committee-positions label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}

/* Input & select */
#committee-positions input,
#committee-positions select {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
#committee-positions input:focus,
#committee-positions select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
