/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- BODY --- */
body {
  font-family: 'Arial', sans-serif;
  background-image: url("../images/deseretcenter.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* Overlay para readable kahit may bright bg */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 60, 120, 0.65);
  z-index: 0;
}

/* Lahat ng content sa ibabaw ng overlay */
.home-content,
.vm-section,
.modal {
  position: relative;
  z-index: 1;
}

/* --- HOME CONTENT --- */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 40px 40px; /* spacing below fixed header */
}

.home-content h2 {
  font-size: 34px;
  color: white;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.home-content p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

/* --- BOOK BUTTON --- */
.book-btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #28a745;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: pulse 2s infinite; /* 🟢 Added animation */
}

.book-btn:hover {
  background: #218838;
  transform: translateY(-3px);
  color: #000;
}

/* --- PULSE ANIMATION --- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* --- VISION & MISSION SECTION --- */
.vm-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 50px auto;
  max-width: 900px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.vm-section .card {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  color: #000;
}

.vm-section .card h3 {
  font-size: 24px;
  color: #0066cc;
  margin-bottom: 12px;
  text-align: center;
}

.vm-section .card p {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
  text-align: justify;
}

.vm-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- MODAL STYLE --- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #0066cc;
}

.modal-content p {
  font-size: 15px;
  margin-bottom: 15px;
  color: #444;
  line-height: 1.5;
}

.modal-content label {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#continueBtn {
  background: #28a745;
  color: white;
}

#continueBtn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

#closeBtn {
  background: #dc3545;
  color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .home-content {
    padding: 120px 20px;
  }
  .home-content h2 {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  .book-btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .home-content h2 {
    font-size: 22px;
  }
  .home-content p {
    font-size: 15px;
  }
}
/* --- RESPONSIVE SPACING FIX --- */
@media (max-width: 768px) {
  .home-content {
    padding-bottom: 40px; /* bawasan space sa ilalim ng button */
  }

  .vm-section {
    margin-top: 15px; /* bawasan pagitan ng button at VM section */
  }
}

@media (max-width: 480px) {
  .home-content {
    padding-bottom: 20px;
  }

  .vm-section {
    margin-top: 5px;
  }
}
