/* ==== GLOBAL ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  background: url("assets/background.jpg") center center / cover fixed no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==== NAVBAR ==== */
.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #8B0000;
  padding: 0.6rem 1.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  border-bottom: 2px solid gold;
  height: 70px;
}

.logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #FFD700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 10px #FFD700;
}

/* ==== HOME ==== */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.logo-photo {
  width: 260px;
  height: 260px;
  background-image: url("assets/main-icon.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 3px solid #FFD700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
}

.logo-photo.small {
  width: 50px;
  height: 50px;
  border-width: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

h1 {
  font-family: 'Kaushan Script', cursive;
  font-size: 2.6rem;
  margin: 0.8rem 0 0.4rem;
  color: #fff;
  text-shadow: 0 0 8px #FFD700;
}

.tagline {
  color: #FFD700;
  font-size: 1.2rem;
}

/* ==== CONTENT (USED BY OTHER PAGES) ==== */
.content {
  flex: 1;
  padding-top: 11rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 6rem;
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.section-box {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.section-box h2 {
  font-family: 'Kaushan Script', cursive;
  color: #FFD700;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 10px #b96a00;
}

/* ==== CALENDAR ==== */
.calendar-wrapper {
  overflow-x: auto;
  text-align: center;
}

.calendar-embed {
  width: 900px;
  min-width: 900px;
  height: 600px;
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  display: inline-block;
}

@media (max-width: 900px) {
  .calendar-embed {
    width: 100%;
    min-width: unset;
    height: 500px;
  }
}

/* ==== OFFICERS ==== */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.officer-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.officer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.officer-photo {
  width: 100px;
  height: 100px;
  background-color: rgba(255, 215, 0, 0.1);
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  border: 2px solid #FFD700;
}

.officer-card h3 {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
  color: #FFD700;
}

.officer-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==== CONTACT PAGE GOLD LINKS ==== */
.contact-page .section-box a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-page .section-box a:hover {
  color: #FFFFFF;
  text-shadow: 0 0 10px #FFD700;
}

/* ==== GALLERY / COLLAGE AROUND LOGO ==== */
.logo-frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 3rem;
  padding-bottom: 6rem;
}

.logo-frame img {
  object-fit: cover;
  border: 2px solid #FFD700;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease, box-shadow 0.3s ease;
}

.logo-frame img.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-frame img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #FFD700;
  background: #8B0000;
  border-top: 2px solid gold;
  margin: 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

/* ==== ANIMATIONS ==== */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 12px #FFD700; }
  50% { text-shadow: 0 0 25px #FFD700; }
}

.fade-in {
  animation: fadeIn 1.3s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .content {
    padding-top: 13rem;
    padding-bottom: 7rem;
  }

  .logo-frame img {
    width: 90%;
    height: auto;
  }

  .home {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}
