/* ===== HOME PAGE STYLES ===== */
.hero {
  text-align: center;
  margin: 2rem auto;
  max-width: 95%;
  border: 3px solid #3f6cbf;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  background: white;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.hero-text-section {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-top: 2px solid #e0e6ff;
}

.hero h2 {
  margin: 0;
  color: #183389;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: none;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* ===== GRID SECTION ===== */
.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 2rem 2rem 2rem;
  max-width: 1400px;
  margin: -1rem auto 0 auto;
}

.grid-item {
  background: #fff;
  font-family: 'Playfair Display', serif;
  color: #183389;
  padding: 4.5rem;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  height: 200px;
  box-shadow: 0 4px 10px #1F2BAC;
  transition: transform 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.grid-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.grid-item h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.animated-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.grid-item:hover .animated-icon {
  transform: scale(1.1);
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== HOME PAGE (INDEX) ===== */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

.home-page .main-content {
  flex: 1;
}

.home-page .hero {
  background: url('../../../image/cainta.png') center/cover;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  margin: 2rem auto 3rem;
  margin-bottom: 3rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 46, 138, 0.2);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  border: none;
  max-width: 1400px;
  width: calc(100% - 4rem);
}

.home-page .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  z-index: 1;
}

.home-page .hero > * {
  position: relative;
  z-index: 2;
}

.home-page .hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: white;
}

.home-page .hero h2::before,
.home-page .hero h2::after {
  content: '';
  flex: 1;
  height: 3px;
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.home-page .hero p {
  font-size: 1.15rem;
  opacity: 0.98;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.home-page .hero p::before,
.home-page .hero p::after {
  content: '';
  flex: 0 0 60px;
  height: 2px;
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.home-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  margin: 0 auto 3rem;
  width: 100%;
  max-width: 1450px;
}

.home-page .grid-item {
  background: white;
  border: 3px solid #002e8a;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: #002e8a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 46, 138, 0.08);
  min-height: 220px;
  width: auto;
  height: auto;
  opacity: 1;
  animation: none;
}

.home-page .grid-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 40px rgba(0, 46, 138, 0.25);
  border-color: #0040a0;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.home-page .grid-item i {
  font-size: 3rem;
  color: #002e8a;
  transition: transform 0.3s ease;
}

.home-page .grid-item:hover i {
  transform: scale(1.15) rotate(5deg);
}

.home-page .grid-item h2 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
}

.home-page .feature-section {
  background: white;
  padding: 4rem 2rem;
  margin: 0 2rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 46, 138, 0.08);
}

.home-page .feature-section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #002e8a;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

.home-page .feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.home-page .feature-card {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid #e0e6ff;
  box-shadow: 0 4px 15px rgba(0, 46, 138, 0.08);
  transition: all 0.3s ease;
}

.home-page .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 46, 138, 0.15);
  border-color: #002e8a;
}

.home-page .feature-card h3 {
  color: #002e8a;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.home-page .feature-card h3 i {
  font-size: 1.5rem;
}

.home-page .feature-card p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .home-page .hero {
    padding: 2.5rem 1rem;
    margin: 1rem;
    border-radius: 12px;
    min-height: 220px;
  }

  .home-page .hero h2 {
    font-size: 1.6rem !important;
    gap: 1rem;
  }

  .home-page .hero h2::before,
  .home-page .hero h2::after {
    flex: 0 0 40px !important;
  }

  .home-page .hero p {
    font-size: 0.95rem;
    gap: 0.75rem;
  }

  .home-page .hero p::before,
  .home-page .hero p::after {
    flex: 0 0 30px !important;
  }

  .home-page .grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .home-page .grid-item {
    min-height: 140px;
    padding: 1.75rem 1.25rem;
    border-width: 2px;
  }

  .home-page .grid-item i {
    font-size: 2.5rem;
  }

  .home-page .grid-item h2 {
    font-size: 1rem;
  }

  .home-page .feature-section {
    padding: 2rem 1rem;
    margin: 0 1rem 1rem;
  }

  .home-page .feature-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .home-page .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ABOUT PAGE STYLES ===== */
.hero-text {
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f9ff 100%);
  padding: 2.5rem;
  position: relative;
  top: -30px;
  margin: 0 auto;
  max-width: 1100px;
  border: 3px solid #002060;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 32, 96, 0.2);
  backdrop-filter: blur(10px);
  animation: fadeInScale 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
  overflow: hidden;
}

.hero-text::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 32, 96, 0.03) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.hero-text h2 {
  background: linear-gradient(135deg, #002060 0%, #0040a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.hero-text h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #002060, #0040a0);
  border-radius: 2px;
}

.history-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  border-left: 5px solid #002060;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(0, 32, 96, 0.1);
  transition: all 0.3s ease;
  position: relative;
  animation: slideInLeft 0.5s ease-out forwards;
  opacity: 0;
}

.history-box:nth-child(2) { animation-delay: 0.3s; }
.history-box:nth-child(4) { animation-delay: 0.5s; }

.history-box:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0, 32, 96, 0.18);
  border-left-width: 7px;
}

.history-box p {
  text-align: justify;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.history-box p strong {
  color: #002060;
  font-weight: 700;
  display: inline-block;
  margin-right: 0.3rem;
}

.history-box p:last-child {
  margin-bottom: 0;
}

.history-highlight {
  background: linear-gradient(135deg, #e8f2ff 0%, #f0f8ff 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #0040a0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #002060;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 64, 160, 0.12);
  animation: fadeInScale 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.history-highlight::before {
  content: '💡';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  animation: pulse 2s ease-in-out infinite;
}

.about-page .hero {
  width: min(1200px, 95%);
  max-width: 1200px;
  margin: 2rem auto 0;
}

.about-page .hero-text {
  width: 100%;
  max-width: 100%;
  top: 0;
  margin-left: auto;
  margin-right: auto;
}

.about-page .about-section {
  width: min(1200px, 95%);
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.about-page .announcement-section {
  width: min(1200px, 95%);
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2rem;
}

.about-page .announcement-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-how-it-works {
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  width: min(1200px, 95%);
  max-width: 1200px;
  margin: 3rem auto;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  position: relative;
  overflow: hidden;
}

.about-how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #002060, #0040a0, #002060);
}

.about-how-it-works h2 {
  text-align: center;
  background: linear-gradient(135deg, #002060 0%, #0040a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Playfair Display', serif;
  margin-bottom: 3rem;
  font-size: 2.3rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.about-how-it-works h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #0040a0, transparent);
  border-radius: 2px;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.about-step {
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 32, 96, 0.14);
  border: 2px solid #e2e8ff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.about-step:nth-child(1) { animation-delay: 0.1s; }
.about-step:nth-child(2) { animation-delay: 0.2s; }
.about-step:nth-child(3) { animation-delay: 0.3s; }
.about-step:nth-child(4) { animation-delay: 0.4s; }

.about-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #002060, #0040a0, #002060);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.about-step:hover::before {
  transform: scaleX(1);
}

.about-step:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 32, 96, 0.25);
  border-color: #0040a0;
}

.about-step h3 {
  color: #002e8a;
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  transition: color 0.3s ease;
}

.about-step:hover h3 {
  color: #0040a0;
}

.about-step p {
  color: #444;
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-step-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  animation: bounce 1s ease-in-out;
  transition: transform 0.4s ease;
}

.about-step:hover .about-step-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Announcement Section */
.announcement-section {
  background: linear-gradient(135deg, #002060 0%, #0040a0 100%);
  color: white;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 95%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 32, 96, 0.3);
  position: relative;
  overflow: hidden;
}

.announcement-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.announcement-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: float 8s ease-in-out infinite reverse;
}

.announcement-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  font-weight: 700;
}

.announcement-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.announcement-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.announcement-card:hover::before {
  left: 100%;
}

.announcement-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.card-slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 4rem;
  animation: bounce 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
  animation: none;
}

.card-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-slide.active {
  opacity: 1;
}

.card-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.announcement-card:hover .card-slide.active img {
  transform: scale(1.02);
}

.slide-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-dot:hover,
.slide-dot.active {
  background: white;
  transform: scale(1.2);
}

.slide-dot:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.card-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.announcement-card:hover .card-content h3 {
  transform: translateX(4px);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.card-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.announcement-date {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
  font-weight: 500;
  color: #e8f2ff;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 3rem 2rem;
  gap: 5rem;
  background: url('../image/cainta.png') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.login-section > * {
  pointer-events: auto;
}

.login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 46, 138, 0.88) 0%, rgba(0, 26, 92, 0.90) 100%);
  pointer-events: none;
  z-index: 1;
}

.login-section::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.login-section > * {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.content {
  width: 100%;
  max-width: 600px;
  height: auto;
  color: white;
  position: relative;
  margin-left: 0;
  margin-top: 0;
  padding: 1.5rem 2.5rem 2.5rem;
  flex: 1.2;
  text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.3);
}

.content .par {
  padding-left: 0;
  padding-bottom: 30px;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.8;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.97);
  text-align: justify;
  max-width: 540px;
}

.content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 2rem;
  letter-spacing: 1.2px;
  line-height: 1.1;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.elements {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 410px;
  max-width: 410px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 24px 48px rgba(0, 0, 0, 0.15);
  margin-left: auto;
  margin-right: 0;
  flex: 0 0 auto;
  position: relative;
  margin-top: 0;
  isolation: isolate;
}

.elements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 16px 16px 0 0;
}

.elements h1 {
  color: white;
  font-size: clamp(1.6rem, 4vw, 2rem);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1.8rem;
  letter-spacing: 0.8px;
}

.elements .input-box {
  position: relative;
  width: 100%;
  min-height: 44px;
  margin: 1rem 0 0 0;
}

.elements .input-box label {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.input-box input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  outline: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-size: 0.95rem;
  color: white;
  padding: 0 40px 0 0.875rem;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
  line-height: 44px;
}

.input-box input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.input-box i {
  position: absolute;
  right: 0.875rem;
  top: calc(1.5rem + 22px);
  transform: none;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  cursor: pointer;
}

.input-box input:focus + i {
  color: white;
  transform: scale(1.1);
}

.elements .remember-forgot {
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.85rem, 1.7vw, 0.95rem);
  width: 100%;
  gap: 1rem;
}

.remember-forgot label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.remember-forgot label input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  margin-right: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.remember-forgot label input:checked {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.remember-forgot label input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #002e8a;
  font-size: 14px;
  font-weight: bold;
}

.remember-forgot label input:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
}

.remember-forgot a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  letter-spacing: 0.3px;
}

.remember-forgot a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.remember-forgot a:hover {
  color: white;
}

.remember-forgot a:hover::after {
  width: 100%;
}

.elements .btn {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.18) 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: white;
  font-weight: 800;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.elements .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.elements .btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.28) 100%);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.elements .btn:hover::before {
  left: 100%;
}

.elements .btn:active {
  transform: translateY(-1px);
}

.elements .register-link,
.elements .login-link {
  font-size: clamp(0.85rem, 1.7vw, 0.95rem);
  text-align: center;
  margin-top: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.register-link p,
.login-link p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.register-link a,
.login-link a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  z-index: 30;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  padding: 0.25rem 0.5rem;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

/* Login Responsive Styles */
@media (max-width: 968px) {
  .login-section {
    gap: 3rem;
    padding: 2rem 1.5rem;
  }

  .content {
    max-width: 500px;
    padding: 2rem;
  }

  .content h1 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .elements {
    width: 380px;
    max-width: 380px;
    padding: 2.25rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .login-section {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 1rem;
    justify-content: center;
  }

  .content {
    max-width: 100%;
    text-align: center;
    padding: 1.5rem;
    margin: 0;
  }

  .content h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .content .par {
    text-align: center;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  }

  .elements {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2.25rem 1.75rem;
  }

  .input-box input {
    height: 44px;
    line-height: 44px;
    font-size: 0.95rem;
  }

  .input-box i {
    top: calc(1.5rem + 22px);
  }
}

@media (max-width: 480px) {
  .login-section {
    padding: 1.5rem 0.75rem;
    gap: 2rem;
  }

  .content {
    padding: 1rem;
  }

  .content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .content .par {
    font-size: 0.9rem;
    padding-bottom: 20px;
  }

  .elements {
    max-width: 100%;
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .elements h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .input-box input {
    height: 42px;
    line-height: 42px;
    padding: 0 36px 0 0.75rem;
    font-size: 0.9rem;
  }

  .input-box i {
    right: 0.75rem;
    top: calc(1.5rem + 21px);
    font-size: 1.05rem;
  }

  .elements .btn {
    height: 48px;
    font-size: 0.95rem;
  }

  .remember-forgot {
    font-size: 0.8rem;
  }

  .register-link,
  .login-link {
    font-size: 0.85rem;
  }
}


/* ===== OFFICIALS PAGE STYLES ===== */
.section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  margin: 2rem auto;
  max-width: 80%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 46, 138, 0.1);
  position: relative;
  border: 3px solid #3f6cbf;
  overflow: hidden;
}

.seccontainertion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #002e8a 0%, #3f6cbf 50%, #002e8a 100%);
}

.section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #183389;
  margin-top: 10px;
  margin-bottom: 3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0 1rem 1.5rem 1rem;
  border-bottom: 3px solid #183389;
  text-shadow: none;
  line-height: 1.3;
}

/* ===== SERVICES PAGE STYLES ===== */
.services- {
  max-width: 1000px;
  padding: 5rem;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(16, 6, 194, 0.1);
}

.services-container h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #183389;
  margin-top: 10px;
  margin-bottom: 3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0 1rem 1.5rem 1rem;
  border-bottom: 3px solid #183389;
  text-shadow: none;
  line-height: 1.3;
}

.services-boxes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.service-card {
  background: #fff;
  padding: 2rem;
  color: #183389;
  border-radius: 10px;
  width: 250px;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 10px #1F2BAC;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card img {
  width: 80px;
  margin-bottom: 1rem;
}

.service-card p {
  font-weight: bold;
  color: #183389;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

/* ===== MAP PAGE STYLES ===== */
.map-page .map-page-content {
  max-width: 95%;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.map-page .section {
  max-width: 100%;
  margin: 1.5rem 0;
  padding: 2.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  background: #003399;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  font-size: 1.2rem;
  border-radius: 4px;
  margin-bottom: 15px;
}

.map-page .section-title {
  margin-bottom: 1.25rem;
}

.map-section {
  margin: 2rem auto 2.5rem auto;
}

.map-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-weight: 600;
  color: #0c2f7a;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.legend-municipal { background: #0d47a1; }
.legend-health { background: #00897b; }
.legend-police { background: #6a1b9a; }
.legend-fire { background: #e65100; }
.legend-culture { background: #ad1457; }
.legend-barangay { background: #2e7d32; }

.map-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.location-button {
  border: 2px solid #0c2f7a;
  background: #ffffff;
  color: #0c2f7a;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-button:hover,
.location-button.is-active {
  background: #0c2f7a;
  color: #ffffff;
}

.location-button--municipal { border-color: #0d47a1; color: #0d47a1; }
.location-button--health { border-color: #00897b; color: #00897b; }
.location-button--police { border-color: #6a1b9a; color: #6a1b9a; }
.location-button--fire { border-color: #e65100; color: #e65100; }
.location-button--culture { border-color: #ad1457; color: #ad1457; }
.location-button--barangay { border-color: #2e7d32; color: #2e7d32; }

.location-button--municipal:hover,
.location-button--municipal.is-active { background: #0d47a1; color: #ffffff; }
.location-button--health:hover,
.location-button--health.is-active { background: #00897b; color: #ffffff; }
.location-button--police:hover,
.location-button--police.is-active { background: #6a1b9a; color: #ffffff; }
.location-button--fire:hover,
.location-button--fire.is-active { background: #e65100; color: #ffffff; }
.location-button--culture:hover,
.location-button--culture.is-active { background: #ad1457; color: #ffffff; }
.location-button--barangay:hover,
.location-button--barangay.is-active { background: #2e7d32; color: #ffffff; }

#cainta-map {
  width: 100%;
  height: 520px;
  border: 3px solid #003399;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 46, 138, 0.2);
}

.map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker .marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.map-marker--municipal .marker-dot { background: #0d47a1; }
.map-marker--health .marker-dot { background: #00897b; }
.map-marker--police .marker-dot { background: #6a1b9a; }
.map-marker--fire .marker-dot { background: #e65100; }
.map-marker--culture .marker-dot { background: #ad1457; }
.map-marker--barangay .marker-dot { background: #2e7d32; }

.map-marker.is-highlighted .marker-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 10px rgba(0, 51, 153, 0.15);
}

.marker-label {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5f2;
  color: #0c2f7a;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .map-page .map-page-content {
    padding: 1.5rem 1rem 2rem;
  }

  .map-page .section {
    padding: 1.75rem;
  }

  .map-controls {
    gap: 0.75rem;
  }

  .map-legend {
    gap: 0.5rem 1rem;
  }

  #cainta-map {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .map-page .section {
    padding: 1.5rem;
  }

  .location-button {
    width: 100%;
    justify-content: center;
  }

  #cainta-map {
    height: 300px;
  }
}

.card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.map-page .card-container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 2px solid #e0e6ff;
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  box-shadow: 0 3px 12px rgba(0, 46, 138, 0.15);
  transition: all 0.3s ease;
  margin: 0;
}

.map-page .card {
  text-align: left;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 46, 138, 0.25);
  border-color: #3f6cbf;
}

.card h3 {
  margin: 0 0 1rem 0;
  color: #002e8a;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid #e0e6ff;
  padding-bottom: 0.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.map-page .section-box {
  border: none;
  padding: 0;
  background: transparent;
}

.btn-group button,
.btn-group a {
  background: white;
  color: #002e8a;
  border: 2px solid #002e8a;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 12px rgba(0, 46, 138, 0.25);
  min-width: 100px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.btn-group button:hover,
.btn-group a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 46, 138, 0.4);
  background: #002e8a;
  color: white;
}

.btn-group button:active,
.btn-group a:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 46, 138, 0.3);
}

/* ===== HOTLINES PAGE STYLES ===== */
.card-grid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  border: 1.5px solid #003399;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  flex: 1 1 30%;
  background: white;
}

.card img {
  height: 100px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-weight: bold;
}

.card small {
  font-size: 0.75rem;
  color: #555;
}

.section-box {
  border: 1.5px solid #ccc;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 6px;
  margin-bottom: 20px;
}

.barangay-row {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  background: white;
}

.barangay-row img.logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  margin-right: 10px;
}

.barangay-row span.name {
  flex: 1;
  font-weight: bold;
}

.barangay-row span.contact {
  flex: 3;
  background: #eee;
  text-align: center;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 4px;
}

.barangay-row a {
  margin-left: 10px;
}

.barangay-row a img {
  height: 24px;
}

/* ===== ABOUT PAGE FORMAL STYLES ===== */
/* About Page Container - Unified Pattern */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: #f8f9ff;
}

/* About Section Title */
.about-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  background: #1e3a8a;
  text-align: center;
  padding: 1rem 2rem;
  margin: 2rem auto -1.5rem;
  border: 3px solid #1e3a8a;
  max-width: 800px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
  position: relative;
  z-index: 3;
  transform: translateY(25%);
}

/* What is E-Barangay Section */
.about-info-section {
  background: #f8f9ff;
  padding: 4rem 2rem 3rem;
  margin-bottom: 3rem;
  border-top: 3px solid #1e3a8a;
  border-bottom: 3px solid #1e3a8a;
}

.about-info-box {
  border: none;
  padding: 0;
  background: transparent;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin: 0;
  text-align: left;
  font-family: 'Roboto', sans-serif;
}

.about-content p strong {
  color: #1e3a8a;
  font-weight: 600;
}

/* Key Features Section */
.about-features-section {
  background: white;
  border: 3px solid #1e3a8a;
  border-radius: 8px;
  padding: 4rem 2rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.12);
}

.about-features-box {
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  background: white;
  border: 2px solid #1e3a8a;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item:hover {
  border-color: #0f2365;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-icon-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}   

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.75rem 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.4;
}

.feature-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

.developer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.developer-left,
.developer-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.developer-subsection {
  background: white;
  border: 3px solid #3f6cbf;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 46, 138, 0.1);
}

.developer-subsection h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #002e8a;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.developer-subsection p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  text-align: center;
}

.developer-image-placeholder {
  width: 100%;
  height: 250px;
  background: #f0f4ff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.developer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-container {
  width: 100%;
  height: 250px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-section-title {
    font-size: 1.5rem;
    padding: 0.8rem 1.5rem;
    margin: 1.5rem auto -1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-info-section,
  .about-features-section {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .feature-item {
    padding: 1.25rem;
  }

  .feature-item h3 {
    font-size: 1rem;
  }

  .feature-item p {
    font-size: 0.85rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-icon-img {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 1rem;
  }

  .about-section-title {
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    margin: 1rem auto -1rem;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-info-section,
  .about-features-section {
    padding: 2rem 1rem 1rem;
  }

  .about-features-section {
    border-radius: 6px;
  }

  .feature-item {
    padding: 1rem;
    border-radius: 6px;
  }

  .feature-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .feature-item p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .feature-icon {
    font-size: 1.8rem;
  }

  .feature-icon-img {
    width: 30px;
    height: 30px;
  }

  .about-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ===== RESPONSIVE DESIGN FOR ALL PAGES ===== */
@media (max-width: 768px) {
  .about-hero {
    padding: 4rem 2rem;
    margin: 1rem auto 2rem;
    width: calc(100% - 2rem);
  }

  .about-hero h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .about-hero h2::before,
  .about-hero h2::after {
    flex: 0;
    display: none;
  }

  .about-hero p::before,
  .about-hero p::after {
    flex: 0;
    display: none;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .grid {
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
  
  .grid-item {
    width: 250px;
    height: 180px;
    padding: 1.5rem;
  }
  
  .grid-item img {
    width: 60px;
    height: 60px;
  }
  
  .grid-item h2 {
    font-size: 1.2rem;
  }
  
  .hero-image-container {
    height: 250px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .section {
    max-width: 90%;
  }
  
  .services-boxes {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding: 3rem 1rem;
    margin: 1rem auto;
    width: calc(100% - 2rem);
  }

  .about-hero h2 {
    font-size: 1.5rem;
  }

  .about-hero p {
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .about-grid-item {
    padding: 2rem 1.5rem;
  }

  .grid {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
  }
  
  .grid-item {
    width: 90%;
    max-width: 300px;
  }
  
  .login-section {
    flex-direction: column;
    min-height: auto;
    gap: 2rem;
  }
  
  .elements {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .content {
    max-width: 100%;
    margin: 0;
    padding: 1.5rem;
  }
  
  .announcement-grid {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    flex-direction: column;
  }
  
  .barangay-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .barangay-row span.contact {
    width: 90%;
    margin-top: 6px;
  }
  
  .section {
    max-width: 100%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
  }
}

/* ===== FOOTER SECTION (Pages) ===== */
footer, .main-footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    pointer-events: none;
}

footer *, .main-footer * {
    pointer-events: auto;
}

footer::before, .main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.main-footer {
    position: relative;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    color: #fff;
    font-weight: 400;
}

.attribution {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Ensure body uses flexbox for sticky footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make main content grow to push footer down */
.page-wrapper,
.main-content,
.login-section {
    flex: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SERVICES PAGE ===== */
.services-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.services-container .services-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  background: #1e3a8a;
  text-align: center;
  padding: 1rem 2rem;
  margin: 1.6rem auto -1.4rem;
  border-bottom: none;
  text-shadow: none;
  border: 3px solid #1e3a8a;
  max-width: 600px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
  position: relative;
  z-index: 2;
  transform: translateY(25%);
  box-sizing: border-box;
}

/* Services Header */
.services-header {
  background: #1e3a8a;
  color: white;
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.services-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* Services Section */
.services-section {
  margin: 0 auto 4rem auto;
  width: 100%;
  max-width: 950px;
  box-sizing: border-box;
}

.services-section:last-of-type {
  margin-bottom: 2rem;
}

.services-section-content {
  background: white;
  border: 3px solid #1e3a8a;
  border-radius: 8px;
  padding: 4.8rem 2.5rem 3rem;
  margin-bottom: 0;
  margin-top: 0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.12);
  width: 100%;
  box-sizing: border-box;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  row-gap: 1.8rem;
  width: 100%;
  box-sizing: border-box;
}

/* Service Card */
.service-card {
  background: white;
  border: 2px solid #1e3a8a;
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  animation: fadeUp 0.6s ease forwards;
  min-height: 320px;
  justify-content: flex-start;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.1s; }
.service-card:nth-child(5) { animation-delay: 0.2s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
  border-color: #0f2365;
}

.service-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin: 0.2rem 0;
  text-align: center;
}

.service-card p strong {
  color: #1e3a8a;
  font-weight: 600;
  display: block;
  margin-top: 0.6rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  background: white;
  border: 1.5px solid #1e3a8a;
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease forwards;
  margin-bottom: 1.2rem;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(3) { animation-delay: 0.2s; }
.process-step:nth-child(5) { animation-delay: 0.3s; }
.process-step:nth-child(7) { animation-delay: 0.4s; }
.process-step:nth-child(9) { animation-delay: 0.5s; }

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.12);
  border-color: #1e3a8a;
}

.step-number {
  width: 44px;
  height: 44px;
  background: #1e3a8a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 0.8rem;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
  flex-shrink: 0;
}

.process-step h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #1e3a8a;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

.step-connector {
  width: 2px;
  height: 1rem;
  background: #0075fc;
  margin: -1rem auto 0 auto;
  position: relative;
  z-index: 0;
}

.step-connector:last-of-type {
  display: none;
}



@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Services */
@media (max-width: 768px) {
  .services-container {
    padding: 1.5rem;
  }

  .services-header {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .services-header h1 {
    font-size: 1.6rem;
  }

  .services-section {
    margin-bottom: 3rem;
  }

  .services-container .services-section-title {
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
    margin: 1.1rem auto -1.05rem;
    max-width: 100%;
    transform: translateY(50%);
  }

  .services-section-content {
    padding: 3.6rem 1.5rem 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    row-gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
    min-height: 320px;
  }

  .service-icon {
    font-size: 2.2rem;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.8rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin: 0 auto 0.6rem;
  }

  .process-step {
    padding: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .process-step h3 {
    font-size: 0.95rem;
  }

  .process-step p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .services-container {
    padding: 1rem;
  }

  .services-header {
    padding: 1.8rem 1rem;
    margin-bottom: 2rem;
  }

  .services-header h1 {
    font-size: 1.4rem;
  }

  .services-section {
    margin-bottom: 2.5rem;
  }

  .services-container .services-section-title {
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
    margin: 0.8rem auto -0.8rem;
    max-width: 100%;
    letter-spacing: 0.5px;
    transform: translateY(50%);
  }

  .services-section-content {
    padding: 2.9rem 1rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    row-gap: 1.2rem;
  }

  .service-card {
    padding: 1.3rem;
    min-height: auto;
    gap: 0.3rem;
  }

  .service-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
  }

  .service-card h3 {
    font-size: 0.9rem;
    margin: 0.2rem 0 0.3rem 0;
  }

  .service-card p {
    font-size: 0.8rem;
    margin: 0.15rem 0;
  }

  .step-number {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
  }

  .process-step {
    padding: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .process-step h3 {
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
  }

  .process-step p {
    font-size: 0.75rem;
  }
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.1); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* ===== CITIZEN REGISTER PAGE ===== */
.register-page {
  --register-primary: #0f3d87;
  --register-accent: #17a2b8;
  --register-bg: #eef4ff;
  --register-card: #ffffff;
  --register-border: #d8e4ff;
  --register-text: #1f2a37;
  --register-muted: #5b6472;
  min-height: 100vh;
  color: var(--register-text);
  background:
    radial-gradient(circle at 15% 15%, rgba(23, 162, 184, 0.12) 0, rgba(23, 162, 184, 0) 42%),
    radial-gradient(circle at 85% 10%, rgba(15, 61, 135, 0.12) 0, rgba(15, 61, 135, 0) 45%),
    linear-gradient(180deg, #f6f9ff 0%, var(--register-bg) 100%);
}

.register-page header a {
  text-decoration: none;
  color: inherit;
}

.register-page .public-wrapper {
  min-height: calc(100vh - 170px);
  padding: 112px 1rem 2rem;
}

.register-page .public-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.register-page .register-card {
  width: min(760px, 100%);
  border: 1px solid var(--register-border);
  border-radius: 20px;
  background: var(--register-card);
  box-shadow: 0 20px 48px rgba(15, 61, 135, 0.14);
  overflow: hidden;
}

.register-page .register-header {
  padding: 1.4rem 1.5rem;
  background: linear-gradient(120deg, var(--register-primary) 0%, #1455b4 65%, var(--register-accent) 100%);
  color: #fff;
}

.register-page .register-header h4 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

.register-page .register-body {
  padding: 1.35rem;
}

.register-page .register-form {
  display: grid;
  gap: 0.85rem;
}

.register-page .form-group {
  margin: 0;
}

.register-page .form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--register-primary);
}

.register-page .form-control,
.register-page .form-select {
  border: 1px solid #c8d5f2;
  border-radius: 10px;
  min-height: 44px;
  background: #fff;
  color: var(--register-text);
  padding: 0.65rem 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-page .form-control:focus,
.register-page .form-select:focus {
  border-color: var(--register-accent);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.register-page .register-btn {
  margin-top: 0.3rem;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  width: 100%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--register-primary) 0%, #1455b4 55%, var(--register-accent) 100%);
  box-shadow: 0 10px 22px rgba(15, 61, 135, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.register-page .register-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 26px rgba(15, 61, 135, 0.26);
}

.register-page .register-alert {
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.9rem;
}

.register-page .alert-error {
  border: 1px solid #f4b7ba;
  background: #fff3f3;
  color: #8a1c24;
}

.register-page .register-footer {
  margin-top: 0.95rem;
  text-align: center;
  color: var(--register-muted);
}

.register-page .register-footer a {
  color: var(--register-primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .register-page .public-wrapper {
    padding-top: 102px;
  }

  .register-page .register-card {
    border-radius: 14px;
  }

  .register-page .register-header {
    padding: 1rem 1.1rem;
  }

  .register-page .register-body {
    padding: 1rem;
  }
}
