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

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff; /* Changed all text to white */
  background: linear-gradient(90deg, rgba(0, 87, 183, 0.7), rgba(214, 40, 40, 0.7));
  background-attachment: fixed;
}

/* Hamburger Button */
#sidebarToggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0.5rem;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Sidebar */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: rgba(0, 87, 183, 0.95);
  color: #fff;
  padding: 2rem 1rem;
  transform: translateX(-260px);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#sidebar.sidebar-open,
#sidebar.active {
  transform: translateX(0);
}

/* Sidebar header */
.sidebar-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar-header img {
  width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
}

.sidebar-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-header .tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: #eee; /* lighter white */
  margin-top: 0.3rem;
}

/* Sidebar nav */
#sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-left: 0;
}

#sidebar nav ul li a {
  color: #fff !important; /* Force white color */
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

#sidebar nav ul li a:hover,
#sidebar nav ul li a:focus {
  color: #ffcc00;
  outline: none;
}

/* Main Content */
main {
  margin-left: 0;
  padding: 2rem;
  transition: margin-left 0.3s ease;
  color: #fff; /* white text */
}

/* When sidebar is open */
main.sidebar-open {
  margin-left: 250px;
}

/* Hero Section */
.hero {
  text-align: center;
  background: rgba(0, 0, 0, 0.7); /* dark transparent background for contrast */
  max-width: 900px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  color: #fff; /* white text */
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #ddd; /* softer white */
}

/* Recent Posts */
.recent-posts {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.recent-posts h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffcc00; /* gold */
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
}

.recent-posts .post {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
}

.recent-posts .post h3 {
  font-size: 1.3rem;
  color: #ff4444; /* red */
}

.recent-posts .post p {
  font-size: 1rem;
  color: #ddd;
}

.recent-posts .post a {
  display: inline-block;
  margin-top: 0.5rem;
  background: #0057b7;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.recent-posts .post a:hover {
  background: #222;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  main.sidebar-open {
    margin-left: 0;
  }
  #sidebarToggle {
    display: flex;
  }
  #sidebar {
    transform: translateX(-260px);
  }
  #sidebar.sidebar-open {
    transform: translateX(0);
  }
}

@media (min-width: 769px) {
  #sidebarToggle {
    display: none;
  }
  #sidebar {
    transform: translateX(0);
  }
  main {
    margin-left: 250px;
  }
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  color: #fff;
}

.faq-container h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ffcc00;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffcc00;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.faq-question:hover,
.faq-question:focus {
  color: #ffaa00;
  outline: none;
}

.faq-answer {
  margin-top: 0.5rem;
  color: #ddd;
  line-height: 1.5;
  font-size: 1rem;
  padding-left: 1rem;
}