/* =============================
   GLOBAL RESET & VARIABLES
============================= */
:root {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --card-bg: #f7faff;
  --primary: #4f46e5;
  --secondary: #6366f1;
}

body.dark {
  --bg-color: #0f172a;
  --text-color: #e5e7eb;
  --card-bg: #1e293b;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* =============================
   HEADER & NAV
============================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav a {
  margin: 0 0.8rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

#themeToggle {
  background: var(--primary);
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
}

/* =============================
   HERO SECTION
============================= */
.hero {
  padding: 4rem 2rem;
  text-align: center;
}

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

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: auto;
}

/* =============================
   CARDS SECTION
============================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 3rem 2rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* =============================
   FOOTER
============================= */
.footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  margin-top: 3rem;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav {
    display: none;
  }
}

/* =============================
   CONTACT + FOOTER ADDITIONS
============================= */
/* Contact Form Styling */
.contact-section {
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.btn-submit {
  background: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #0056b3;
}

/* Footer & Social Icons */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #555;
  font-size: 24px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #007bff; /* Change to your brand color */
  transform: translateY(-3px);
}

/* =============================
   SEARCH BAR STYLING
============================= */
/* Search Section Container */
.search-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--bg-color, #f9f9f9); /* Uses your theme variable if available */
}

/* The Search Input Field */
#questionSearch {
  width: 100%;
  max-width: 600px;
  padding: 15px 25px;
  font-size: 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px; /* Rounded pill shape */
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: white;
}

/* Hover and Focus States */
#questionSearch:hover {
  border-color: #007bff;
}

#questionSearch:focus {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  width: 105%; /* Subtle expansion effect */
}

/* Placeholder Styling */
#questionSearch::placeholder {
  color: #999;
  font-style: italic;
}

/* Smooth transition for card filtering */
.card {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #questionSearch {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

/* =============================
   UPDATE SECTION STYLING
============================= */
.update-section {
  max-width:fit-content;
  margin: 20px auto;
  padding: 30px;
  /* Dark Glassmorphism Effect */
  background: linear-gradient(145deg, #1e1e26, #141419);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid #33333f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.update-section h2 {
  color: #ffcc00;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.update-section p {
  color: #00c8ff;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.update-section button {
    background-color: #6200ee; /* Deep Purple */
    border: none;
    border-radius: 8px;
    padding: 0; /* Important: Remove padding so the link fills the space */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.update-section button a {
    display: inline-block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.update-section button:hover {
  background-color: #3700b3;
}

.update-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-section li {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
  padding: 15px 20px;
  border-left: 4px solid #ffcc00; /* Accent strip */
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

/* Hover Interactivity from Option 1 */
.update-section li:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(8px);
  border-left-color: #ffffff;
  color: #fff;
}

/* Subtle Glow on Hover */
.update-section li:hover {
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Optional: Custom bullet icon using the "🔥" logic */
.update-section li::before {
  content: "✦";
  margin-right: 12px;
  color: #ffcc00;
  font-weight: bold;
}