/* =========================
   Base + Reset
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

body {
  min-height: 100vh;
  background: url('bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #eee;
  line-height: 1.6;
  position: relative;
}

/* Dark blur overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28,28,28,0.75);
  backdrop-filter: blur(6px);
  z-index: -1;
}

/* =========================
   Top Bar
========================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(28,28,28,0.95);
  border-bottom: 1px solid #daab5c;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar h1 {
  color: #daab5c;
  font-weight: bold;
}

.top-right-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  text-decoration: none;
  color: #daab5c;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: 0.2s;
}

.nav-btn:hover {
  background-color: rgba(218, 171, 92, 0.2);
}

#top-right {
  color: #daab5c;
  margin-left: 10px;
}

#auth-buttons button,
#logout-btn {
  background-color: #daab5c;
  color: #1c1c1c;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#auth-buttons button:hover,
#logout-btn:hover {
  background-color: #b9934b;
}

/* =========================
   Hero Section
========================= */
.hero {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #daab5c;
  min-height: 450px;
  perspective: 1000px; /* optional for smoother parallax */
}

/* Background div for cycling images + parallax */
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: transform; /* crucial for smooth animations */
}

/* Gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(270deg, #1c1c1c, #2a2420, #3b3128, #1c1c1c);
  background-size: 600% 600%;
  animation: aurumShift 12s ease infinite;
  z-index: 1;
  opacity: 0.6;
}

/* Hero text above everything */
.hero > h1,
.hero > p {
  position: relative;
  z-index: 2;
  color: #daab5c;
  text-shadow: 0 0 8px rgba(218,171,92,0.4);
  animation: glowPulse 4s ease-in-out infinite alternate;
}

.hero h1 {
  font-size: 128px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.hero p.sub {
  font-size: 20px;
  font-style: italic;
  color: #f0d98f;
}

/* =========================
   Animations
========================= */
@keyframes aurumShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 6px rgba(218,171,92,0.4), 0 0 12px rgba(218,171,92,0.2);
  }
  50% {
    text-shadow: 0 0 12px rgba(218,171,92,0.6), 0 0 24px rgba(218,171,92,0.3);
  }
  100% {
    text-shadow: 0 0 6px rgba(218,171,92,0.4), 0 0 12px rgba(218,171,92,0.2);
  }
}
/* =========================
   ABOUT SECTION
========================= */
.about {
  text-align: center;
  padding: 40px;
  font-size: 2.0rem;
}

.about h2 {
  color: #daab5c;
  margin-bottom: 20px;
}

.about-box {
  margin: 20px auto;
  width: 70%;
  font-size: 1.5rem;
  border: 1px solid #daab5c;
  padding: 20px;
  background: rgba(28,28,28,0.85);
  border-radius: 8px;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 30px;
}

.endorsers {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.box {
  width: 80px;
  height: 40px;
  border: 1px solid #daab5c;
}

/* =========================
   New Post / Toggle
========================= */
.new-post-toggle,
.new-post {
  background: rgba(28,28,28,0.85);
  border: 1px solid #daab5c;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
}

.new-post-toggle button,
.new-post button {
  background-color: #daab5c;
  color: #1c1c1c;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.new-post-toggle button:hover,
.new-post button:hover {
  background-color: #b9934b;
}

.new-post input,
.new-post textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #daab5c;
  border-radius: 4px;
  background-color: rgba(28,28,28,0.9);
  color: #eee;
  resize: vertical;
}

/* =========================
   Posts List
========================= */
.posts-list .post {
  background: rgba(28,28,28,0.85);
  border: 1px solid #daab5c;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.posts-list .post h3 {
  font-size: 1.5rem;
  color: #daab5c;
  margin-bottom: 8px;
}

.posts-list .post p {
  font-size: 0.95rem;
  color: #eee;
  max-height: 2.5em;
  overflow: hidden;
}

.posts-list .post .post-meta {
  font-size: 0.8rem;
  color: #daab5c;
  margin-bottom: 8px;
}

.posts-list .post button {
  margin-top: 10px;
  margin-right: 10px;
  background-color: #daab5c;
  color: #1c1c1c;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
}

.posts-list .post button:hover {
  background-color: #b9934b;
}

/* =========================
   Single Post (Organized + Animated)
========================= */
.single-post {
  background: rgba(28,28,28,0.9);
  border: 1px solid #daab5c;
  border-radius: 12px;
  padding: 25px 30px;
  max-width: 850px;
  margin: 30px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.6s ease forwards;
}

.single-post h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #daab5c;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.single-post #post-meta {
  font-size: 0.9rem;
  color: #f0d98f;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.single-post #post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #eee;
}

/* =========================
   Posts List (Forum Page)
========================= */
.posts-list .post {
  background: rgba(28,28,28,0.9);
  border: 1px solid #daab5c;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.posts-list .post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.posts-list .post h3 {
  font-size: 1.7rem;
  color: #daab5c;
  margin-bottom: 6px;
  font-weight: 700;
}

.posts-list .post p {
  font-size: 1rem;
  color: #eee;
  margin-bottom: 10px;
  max-height: 3em;
  overflow: hidden;
}

.posts-list .post .post-meta {
  font-size: 0.85rem;
  color: #f0d98f;
  margin-bottom: 8px;
}

.posts-list .post button {
  background-color: #daab5c;
  color: #1c1c1c;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.posts-list .post button:hover {
  background-color: #b9934b;
}

/* =========================
   Comments Section
========================= */
.comments {
  max-width: 850px;
  margin: 20px auto 40px;
  padding: 20px 30px;
  background: rgba(28,28,28,0.9);
  border: 1px solid #daab5c;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  animation: fadeInUp 0.6s ease forwards;
}

.comments h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.8rem;
  color: #daab5c;
}

/* New Comment Form */
.new-comment-form {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.new-comment-form textarea {
  width: 100%;
  height: 90px;
  background: rgba(28,28,28,0.85);
  border: 1px solid #daab5c;
  color: #eee;
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
  margin-bottom: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.new-comment-form textarea:focus {
  outline: none;
  border-color: #f0d98f;
}

.new-comment-form button {
  align-self: flex-end;
  background-color: #daab5c;
  color: #1c1c1c;
}

.new-comment-form button:hover {
  background-color: #b9934b;
}

/* Individual Comment */
.comment {
  padding: 12px 16px;
  border-top: 1px solid #daab5c;
  position: relative;
  background: rgba(28,28,28,0.8);
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.2s, background 0.2s;
}

.comment:hover {
  transform: translateY(-2px);
  background: rgba(28,28,28,1);
}

.comment b {
  display: block;
  font-size: 1rem;
  color: #f0d98f;
  margin-bottom: 4px;
}

.comment p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
  margin: 0;
}

/* Optional: small timestamp */
.comment small {
  font-size: 0.75rem;
  color: #daab5c;
  position: absolute;
  top: 8px;
  right: 12px;
}

/* =========================
   Animations
========================= */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Hidden helper
========================= */
.hidden {
  display: none;
}
/* =========================
   CONTACT PAGE (ISOLATED)
========================= */

.contact-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.2rem;
  color: #daab5c;
  margin-bottom: 30px;
}

/* WhatsApp box */
.contact-box {
  background: rgba(28,28,28,0.85);
  border: 1px solid #daab5c;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
}

.contact-box h3 {
  color: #daab5c;
  margin-bottom: 10px;
}

.contact-box p {
  margin-bottom: 20px;
}

/* Button (reuses your style safely) */
.view-btn {
  display: inline-block;
  background-color: #daab5c;
  color: #1c1c1c;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.view-btn:hover {
  background-color: #b9934b;
}

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.staff-card {
  background: rgba(28,28,28,0.85);
  border: 1px solid #daab5c;
  border-radius: 8px;
  padding: 15px;
  transition: 0.2s;
}

.staff-card:hover {
  transform: translateY(-3px);
}

.staff-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.staff-card h3 {
  color: #daab5c;
  margin-bottom: 5px;
}

.staff-card p {
  color: #ccc;
}

.endorsers {
  display: flex;
  justify-content: center;
  gap: 40px; /* space between logos */
  margin-top: 15px;
  flex-wrap: wrap; /* responsive on small screens */
}

.endorser-card {
  background: rgba(28,28,28,0.85);
  border: 1px solid #daab5c;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.endorser-card img {
  max-width: 150px; /* scale logos nicely */
  height: auto;
  display: block;
}

.endorser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(218,171,92,0.5);
}