/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: system-ui, sans-serif;
  background-color: #f8f9fa;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.main-content {
  flex: 1;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, #1a1c1e, #2c2f33);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
   padding: 0.8rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.navbar a {
  color: inherit;
  text-decoration: none;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hamburger */
.menu-icon {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  z-index: 11;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #0077b6;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #ced4da;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Blog Posts Section */
.blog-posts {
  padding: 4rem 1rem 2rem;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.blog-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.75rem;
  font-weight: 800;
  color: #212529;
}

.post {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.07);
}

.post img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #dee2e6;
}

.post-content h3 {
  font-size: 1.5rem;
  color: #212529;
}

.post-content h3 a {
  color: #0077b6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-content h3 a:hover {
  color: #0096c7;
  text-decoration: underline;
}

.post-content p {
  margin-top: 0.5rem;
  color: #495057;
}

.timestamp {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.4rem;
}

/* Load More Button */
.load-more {
  display: block;
  margin: 3rem auto 0;
  padding: 0.85rem 2.25rem;
  background: linear-gradient(to right, #005f73, #0077b6);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.3s;
}

.load-more:hover {
  background: linear-gradient(to right, #0077b6, #48cae4);
  transform: translateY(-2px);
}

/* Survey Results */
.survey-results {
  padding: 4rem 1rem;
  background-color: #f1f3f5;
}

.survey-results h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  color: #212529;
}

.results-list {
  max-width: 750px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.results-list li {
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border-left: 6px solid #0077b6;
  border-radius: 10px;
  color: #212529;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: background 0.2s ease;
}

.results-list li:hover {
  background-color: #f8f9fa;
}

/* Footer */
.footer {
  background-color: #1a1c1e;
  color: #dee2e6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.footer .discord-icon {
  color: #73DDF7;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.footer .discord-icon:hover {
  color: #006073;
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1a1c1e;
    width: 100%;
    padding: 1rem 2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .post {
    flex-direction: column;
    text-align: center;
  }

  .post img {
    width: 90%;
    height: auto;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Error Section */
.error-section {
  text-align: center;
  padding: 100px 20px;
}

.error-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.error-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.error-section .btn {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

/* Announcement Banner */
body.nav-open .announcement-banner {
  display: none;
}

.announcement-banner {
  width: 100%;
  background-color: #1a1a1a;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #dc3545;
  z-index: 999;
  position: relative;
  padding: 10px 0;
}

.announcement-banner .marquee {
  display: inline-block;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
  animation: scroll-left 15s linear infinite;
}

.announcement-banner a {
  color: #4dabf7;
  text-decoration: underline;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Certs */
/* Certificate input field */
#certificate-code {
  padding: 12px;
  width: 80%;
  max-width: 400px;
  font-size: 1em;
  border: 2px solid #444;
  border-radius: 6px;
  background: #222;
  color: #fff;
  margin: 20px 0;
}

/* Verify button */
button {
  padding: 10px 20px;
  font-size: 1em;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #388e3c;
}

/* Verification message */
#verify-message {
  margin-top: 10px;
  font-weight: bold;
  color: #f44336;
}

/* Certificate display box */
#certificate-container {
  display: none;
  background: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  margin: 30px auto;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Certificate image */
#certificate-image {
  width: 50%;
  max-width: 500px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Certificate name and ID */
#certificate-name,
#certificate-id {
  margin: 10px 0;
  font-size: 1.1em;
  color: #ccc;
}

/* Certificate */
/* Certificate Page Styling */
.certificate-page {
  background-color: #111;
  color: #eee;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.certificate-page h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.certificate-page p {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 25px;
}

/* Input + Button */
#certificate-code {
  padding: 12px 16px;
  font-size: 1rem;
  width: 90%;
  max-width: 400px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  border-radius: 6px;
}

button {
  padding: 10px 22px;
  background: #28a745;
  color: white;
  border: none;
  margin-top: 15px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #000000;
}

/* Message */
#verify-message {
  margin-top: 12px;
  color: #f33;
  font-weight: bold;
}

/* Certificate Container */
#certificate-container {
  display: none;
  background: #1c1c1c;
  margin-top: 30px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Certificate Details */
#certificate-container p {
  margin: 10px 0;
  font-size: 1.1rem;
}

/* Certificate Image */
#certificate-image {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
/* Hide certificate details initially */
#certificate-body {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-top: 20px;
}

/* Input field styling */
#code-input {
  padding: 12px 16px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #fff;
  box-sizing: border-box;
}

/* Button styling - optional improvement */
.verify-section button {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.verify-section button:hover {
  background-color: #005317;
}

/* Optional: center the verify section */
.verify-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

/* Confetti styling (if not added yet) */
.confetti-piece {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  animation: fall 3s linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}
.certificate-image-frame {
  display: inline-block;       /* Shrinkwrap to content */
  padding: 15px;               /* Space between image and frame border */
  border: 5px solid #444;      /* Frame border */
  border-radius: 12px;         /* Rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.6); /* Subtle shadow */
  max-width: 100%;             /* Responsive container max width */
  margin: 20px auto;           /* Center horizontally with vertical spacing */
  background-color: #111;      /* Background inside frame */
  box-sizing: border-box;
  text-align: center;          /* Center image inside the frame */
}

.certificate-image-frame img {
  max-width: 100%;             /* Make image scale responsively */
  height: auto;
  border-radius: 8px;          /* Optional rounded corners on image */
  display: inline-block;
}

#certificate-body {
  outline: 3px solid #f1f1f1; /* Green outline */
  outline-offset: 6px;        /* Space between content and outline */
  padding: 20px;
  border-radius: 12px;
  background-color: #222;     /* Slight dark background inside */
  max-width: 600px;
  margin: 30px auto;
  color: #eee;
  box-sizing: border-box;
}

.post-content h2 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222; /* or your preferred color */
}
/* Staff Section Styling */
.staff-page {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.staff-page h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Responsive Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Staff Card Layout */
.staff-card {
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease;
}

.staff-card:hover {
  transform: scale(1.05);
}

/* Staff Image Styling */
.staff-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;

  /* Border */
  border: 2px solid #ccc;
  padding: 4px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

/* Hover Effect */
.staff-card:hover img {
  border-color: #000000;
}

/* Name Below Image */
.staff-card p {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Staff Profile Section - FUN STYLE */
.staff-profile {
  padding: 3rem 1.5rem;
  background: whitesmoke;
  display: flex;
  justify-content: center;
  font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;
}

.staff-card-wrapper {
  background: #ffffff;
  border: 4px dashed #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease;
}

.staff-card-wrapper:hover {
  transform: rotate(-1deg) scale(1.02);
}

/* Centered, Playful Heading */
.heading_staff {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ff1493;
  text-shadow: 1px 1px #fff;
}

/* Staff Image Styling */
.staff-image-small {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  display: block;            /* Ensures it's treated as a block element */
  margin-left: auto;         /* Center horizontally */
  margin-right: auto;
  margin-bottom: 10px;
}

/* Profile Info Box */
.staff-box {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  border: 2px solid #ffeb3b;
}

.staff-box p {
  margin: 10px 0;
  font-weight: 500;
}

/* Social Links */
.staff-links {
  margin-top: 1rem;
}

.staff-links a {
  display: inline-block;
  background-color: #00bcd4;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.staff-links a:hover {
  background-color: #0097a7;
  transform: scale(1.1);
}
