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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
  padding: 0;
}

/* ---------- NAVBAR ---------- */
.top-nav {
  background: #0f172a;
  padding: 14px;
  text-align: center;
}

.top-nav a {
  color: #e5e7eb;
  margin: 0 14px;
  text-decoration: none;
  font-weight: 600;
}

.top-nav a:hover {
  color: #22c55e;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ---------- HEADINGS ---------- */
h1, h2, h3 {
  margin-bottom: 12px;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.6rem;
  color: #1e40af;
}

h3 {
  font-size: 1.2rem;
}

/* ---------- CONTENT WRAPPER ---------- */
section {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ---------- CARD ---------- */
.card {
  background: white;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  border-left: 5px solid #2563eb;
}

.card ul {
  margin-left: 20px;
}

.card li {
  margin-bottom: 6px;
}

/* ---------- BUTTONS ---------- */
button,
.btn {
  display: inline-block;
  background: #22c55e;
  color: #022c22;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

button:hover,
.btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* ---------- INPUTS ---------- */
input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  margin: 15px 0;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
}

/* ---------- BLOG LIST ---------- */
ul#blogList li {
  background: #eef2ff;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 6px;
}

ul#blogList a {
  text-decoration: none;
  color: #1e40af;
  font-weight: 600;
}

/* ---------- MCQ ---------- */
#timer {
  font-size: 1.2rem;
  color: #dc2626;
  margin-bottom: 10px;
}

.card input {
  margin-right: 6px;
}

/* ---------- LEADERBOARD ---------- */
ul#list li {
  background: #ecfeff;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 6px;
  border-left: 4px solid #22c55e;
}

/* ---------- PRE TAG (BLOG DETAIL) ---------- */
pre {
  background: #020617;
  color: #e5e7eb;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.95rem;
}

/* ---------- FOOTER (OPTIONAL) ---------- */
footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
  margin-top: 40px;
}

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

  .top-nav a {
    display: inline-block;
    margin: 6px;
  }
}

/* ---------- SEARCH BAR (PROFESSIONAL) ---------- */

.search-wrapper {
  position: relative;
  max-width: 420px;
  margin: 30px auto;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #64748b;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: white;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.search-wrapper input::placeholder {
  color: #94a3b8;
}

.search-wrapper input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
/* ---------- BLOG ARTICLE ---------- */

.article-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.article-card {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.article-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 30px;
}

.article-content {
  font-size: 1.05rem;
  color: #0f172a;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content h3 {
  margin: 30px 0 10px;
  color: #1e40af;
}

.article-content ul,
.article-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.article-content li {
  margin-bottom: 6px;
}

.tip {
  background: #ecfeff;
  border-left: 4px solid #22c55e;
  padding: 12px;
  border-radius: 6px;
  margin-top: 20px;
  font-weight: 600;
}
/* ---------- HOME HERO ---------- */

.home-hero {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 80px 20px;
}

.hero-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 30px;
}

.hero-actions a {
  margin: 10px;
}

/* ---------- BUTTON VARIANTS ---------- */

.btn-primary {
  background: #22c55e;
  color: #022c22;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
}

/* ---------- SECTIONS ---------- */

.home-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.home-section.light {
  background: #f1f5f9;
  padding: 60px 20px;
  border-radius: 20px;
}

.home-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- FEATURES ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.feature-card h3 {
  margin-bottom: 10px;
}

/* ---------- AUDIENCE ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.audience-card {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ---------- CTA ---------- */

.home-cta {
  text-align: center;
  padding: 70px 20px;
  background: #020617;
  color: white;
}

.home-cta h2 {
  margin-bottom: 15px;
}

.home-cta p {
  margin-bottom: 25px;
  opacity: 0.85;
}

/* ---------- FOOTER ---------- */

footer {
  text-align: center;
  padding: 25px;
  color: #64748b;
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
}
