:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #2563eb;
    --ring: rgba(37, 99, 235, 0.25);
}

:root.dark {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --brand: #ffffff;
    --ring: rgba(59, 130, 246, 0.4);
}

* {
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
     line-height: 1.6;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);


    margin-bottom: 12px;
}

.nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    position: relative;


    
  justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.3px;
    color: var(--brand);
    text-decoration: none;
}

.logo span {
    opacity: 0.7;
}

/* Search Box */
.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef2ff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 12px;
    min-width: 260px;
    height: 44px;
    z-index: 15;
}

.dark .search {
    background: #1e293b;
    border-color: #334155;
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
}

.search:focus-within {
    box-shadow: 0 0 0 4px var(--ring);
}

/* Theme Button */
.themeToggle {
    cursor: pointer;
    margin-left: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid #e5e7eb;
    font-size: 1rem;
}

.dark .themeToggle {
    border-color: #334155;
}

/* Hero Section */
.hero {
    max-width: 1100px;
    margin: 18px auto 6px;
    display: grid;
    grid-template-columns: 1.2fr;
    gap: 16px;
    padding: 0 16px;
}

.heroCard {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px 22px;
    min-height: 140px;
}

.dark .heroCard {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.pill {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--brand);
}

.wrap {
    max-width: 1100px;
    margin: 8px auto 40px;
    padding: 0 16px;
    display: block;
}

/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid #eef0f4;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(28, 32, 38, 0.06);
    transition: .22s transform, .22s box-shadow;
    min-height: 120px;
}

.dark .card {
    border-color: #334155;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(28, 32, 38, 0.1);
}

.dark .card:hover {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.emoji {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    border-radius: 10px;
}

.title {
    font-weight: 600;
    text-align: center;
}

.subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    min-height: 28px;
}

.seo-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
    line-height: 1.7;
}

.seo-section h2 {
    font-size: 1.6rem;
    margin: 16px 0 10px;
}

.seo-section h3 {
    margin: 14px 0 8px;
    font-size: 1.1rem;
}

.seo-section ul {
    list-style: disc;
    margin-left: none;
}

/* FAQ */
.faq {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.dark .faq-item {
  border-bottom: 1px solid #334155;
}

.faq-item h3 {
  margin-bottom: 10px;
  color: var(--brand);
}

.faq-item p {
  margin-bottom: 0;
}

/* Mobile Search */
.search-container {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-close {
    display: none;
    cursor: pointer;
    margin-left: 8px;
}


/* Mobile / Tablet */
@media (max-width: 768px) {
    .search {
        display: none;
        position: absolute;
        top: 5;
        right: 0;
        width: 80%;
        min-width: 300;
        z-index: 20;
    }

    .search.active {
        display: flex;
    }

    .search-icon {
        display: block;
    }

    .search-close {
        display: block;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .nav-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
    .wrap {
    flex-direction: column;
  }

}



/* Focus state (Accessibility)
.themeToggle:focus,
.hamburger:focus,
.closeBtn:focus {
  outline: 2px solid var(--brand);
}
 */


/* Small utility */
a.card:focus {
    outline: 3px solid var(--ring);
    border-radius: 12px;
}


/* Dark Mode Content Links 

.content a {
  color: #2563eb;
  text-decoration: none;
}

.content a:hover {
  color: lightgray;
}

.dark .content a {
  color: #2563eb;
  text-decoration: none;
}

.dark .content a:hover {
  color: lightgray;
}
*/

/* Footer */
footer {
  margin-top: 30px;
  border-top: 1px solid #e9edf3;
  background: var(--card);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.dark footer {
  border-color: #334155;
}

footer a {
  color: var(--text);
  text-decoration: none;
  margin: 0 4px;
}

footer a:hover {
  text-decoration: none;
    color: var(--brand);
}