/* =========================
   VARIABLES
========================= */
:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #1f2937;
  --line: #e5e7eb;
  --primary: #2563eb;

  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.06);
}

/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 56px 0 18px;
  text-align: center;
  font-weight: 700;
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #6366f1;
  margin: 8px auto 0;
  border-radius: 2px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  margin: 0;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  position: relative;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

#nav-menu a,
.dropdown-toggle {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

#nav-menu a:hover,
.dropdown-toggle:hover {
  color: var(--text);
}

#nav-menu a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.25s;
}

#nav-menu a:hover::after,
.dropdown-toggle:hover::after {
  width: 100%;
}
/* =========================
   ABOUT PAGE
========================= */

.about-card {
  padding: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-content p {
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 22px;
}

@media (max-width: 900px) {

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 320px;
    margin: 0 auto;
  }
}
/* =========================
   DROPDOWN
========================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 180px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: 0.2s ease;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
}

.dropdown-menu a:hover {
  background: #f3f4f6;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   HAMBURGER
========================= */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   LAYOUT
========================= */
.main-content {
  padding: 48px 0;
}

.card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 24px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero {
  background: linear-gradient(135deg, #fff, #f3f4f6);
  padding: 40px;
  text-align: center;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-tags {
  width: 100%;
  text-align: center;
  margin: 0 auto 24px;
  font-weight: 600;
}

.hero-meta p {
  text-align: center;
}
/* =========================
   BUTTONS
========================= */
.btn,
.btn-secondary {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}

.btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 18px rgba(37,99,235,0.18);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
}

/* =========================
   BLOG
========================= */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-hero {
  text-align: center;
}

.blog-subtitle {
  max-width: 620px;
  margin: 10px auto 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  border-radius: 18px;
  padding: 2rem;
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-title a {
  color: var(--accent);
}

.post-summary {
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   CHIPS
========================= */
.chips,
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: white;
  font-size: 14px;
  color: #374151;
}

.chip:hover {
  background: #f3f4f6;
}

.chip.is-active {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

/* =========================
   FILTER BAR
========================= */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* =========================
   RESOURCES
========================= */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* =========================
   COURSES
========================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.course-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}

/* =========================
   ADMIN
========================= */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

/* =========================
   FOOTER
========================= */
.footer {
  border-top: 1px solid var(--line);
  background: white;
  padding: 30px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   REVEAL ANIMATIONS
========================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
   CONTACT FORM
========================= */

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.form-group textarea {
  min-height: 220px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.contact-form .btn {
  align-self: flex-start;
  min-width: 180px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
  }

  #nav-menu.open {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .posts-grid,
  .resource-grid,
  .course-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-direction: column;
    gap: 12px;
  }

  .filter-bar {
    flex-direction: column;
  }
}

@media (min-width: 768px) {

  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 700px) {

  .hero {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .skip-link {
    display: none;
  }
}