/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #020f88;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 60px;
  height: auto;
  border-radius: 50%;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #65d6ff;
}


.update-btn {
  position: fixed;         /* stays in place when scrolling */
  top: 50%;                /* vertically middle */
  right: 20px;              /* small offset from the left edge */
  transform: translateY(-50%);
  
  background-color: #020f88; /* transparent background */
  color: #fff;             /* white text (change to match theme) */
  border: 2px solid #fff;  /* white border */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;   /* remove underline */
  transition: all 0.3s ease;
  z-index: 1000;           /* ensures it appears above content */
}

.update-btn:hover {
  background: #fff;
  color: #333;             /* text color changes on hover */
}


.gallery-btn {
  position: fixed;         /* stays in place when scrolling */
  top: 50%;                /* vertically middle */
  left: 20px;              /* small offset from the left edge */
  transform: translateY(-50%);
  
  background-color: #020f88; /* transparent background */
  color: #fff;             /* white text (change to match theme) */
  border: 2px solid #fff;  /* white border */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;   /* remove underline */
  transition: all 0.3s ease;
  z-index: 1000;           /* ensures it appears above content */
}

.gallery-btn:hover {
  background: #fff;
  color: #333;             /* text color changes on hover */
}

h1 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 10px;
}

.info {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

.announcement {
  background: #fff;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.announcement h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
}

.announcement p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}
/* Menu button */
.menu-btn {
  background: #eee;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.menu-btn:hover {
  background: #ddd;
}
/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0b12d5;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #d22;
}


/* Side navigation (hidden by default) */
.side-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  z-index: 999;
}

.side-nav.open {
  right: 0;
}

.side-nav ul {
  list-style: none;
  padding: 80px 20px;
  margin: 0;
}

.side-nav li {
  margin: 20px 0;
}

.side-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.side-nav a:hover {
  color: #d22;
}


.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  background: #fafafa;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .info {
    font-size: 1rem;
  }
}
.voice-note {
  margin: 20px auto;   /* centers horizontally */
  padding: 15px;
  background: #f0f8ff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;   /* centers text and audio */
  max-width: 500px;     /* keep it neat */
}

.voice-note p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}



/* Back Home button */
.back-home {
  position: fixed;      /* stays at the bottom */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #063679;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgb(255, 255, 255);
  transition: all 0.3s ease;
}

.back-home a {
  text-decoration: none;
  font-size: 1rem;
  color: #ffffff;
  font-weight: bold;
}

.back-home:hover {
  background: #2b7fd8;
  transform: translateX(-50%) scale(1.05);
}

/* Footer */
footer {
  background-color: #020f88;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9rem;
}