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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

nav {
  width: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,212,255,0.2);
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav a { color: #a0c4ff; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.3s; }
nav a:hover { color: #00d4ff; }

header { text-align: center; padding: 60px 20px 20px; }
header h1 { font-size: 3.5rem; font-weight: 800; color: #00d4ff; text-shadow: 0 0 20px rgba(0,212,255,0.5); }
header p.tagline { font-size: 1.1rem; color: #a0c4ff; margin-top: 8px; }
.nas-icon { font-size: 4rem; margin-bottom: 16px; }

.divider { width: 80px; height: 4px; background: linear-gradient(90deg, #00d4ff, #7b2ff7); border-radius: 2px; margin: 20px auto; }

section { width: 90%; max-width: 960px; margin: 40px auto; }
section h2 { font-size: 1.8rem; color: #00d4ff; margin-bottom: 24px; text-align: center; }

.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 16px;
  width: 90%; max-width: 720px;
  padding: 40px; text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  margin: 10px auto 20px;
}
.card h2 { font-size: 1.6rem; color: #00d4ff; margin-bottom: 16px; }
.card p { font-size: 1.05rem; line-height: 1.8; color: #d0e8ff; margin-bottom: 16px; }

.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.topic-badge {
  background: linear-gradient(135deg, #00d4ff22, #7b2ff722);
  border: 1px solid #00d4ff55;
  color: #00d4ff; padding: 8px 18px;
  border-radius: 50px; font-size: 0.9rem; font-weight: 600;
}

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.blog-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 14px; padding: 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,212,255,0.15); }
.blog-card .badge {
  display: inline-block; background: rgba(0,212,255,0.15);
  color: #00d4ff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
  text-transform: uppercase;
}
.blog-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; line-height: 1.5; }
.blog-card p { font-size: 0.9rem; color: #a0b4cc; line-height: 1.6; margin-bottom: 14px; }
.blog-card .meta { font-size: 0.8rem; color: #556070; }
.read-more { display: inline-block; margin-top: 12px; color: #00d4ff; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: letter-spacing 0.2s; }
.read-more:hover { letter-spacing: 1px; }

.tutorial-list { display: flex; flex-direction: column; gap: 16px; }
.tutorial-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(123,47,247,0.25);
  border-left: 4px solid #7b2ff7;
  border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.2s;
}
.tutorial-item:hover { background: rgba(123,47,247,0.12); transform: translateX(4px); }
.tutorial-item .icon { font-size: 2rem; min-width: 48px; text-align: center; }
.tutorial-item .info h3 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.tutorial-item .info p { font-size: 0.85rem; color: #8a9ab5; }
.tutorial-item .arrow { margin-left: auto; color: #7b2ff7; font-size: 1.2rem; font-weight: bold; }

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 16px; padding: 40px;
  backdrop-filter: blur(10px);
}
.contact-card p.intro { color: #a0b4cc; text-align: center; margin-bottom: 28px; font-size: 0.95rem; line-height: 1.7; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: #00d4ff; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 8px; padding: 12px 16px;
  color: #fff; font-size: 0.95rem; font-family: inherit; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #00d4ff; box-shadow: 0 0 10px rgba(0,212,255,0.2);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: #1a1a2e; color: #fff; }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  border: none; border-radius: 8px;
  color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.3s, transform 0.2s; margin-top: 8px;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); }
.success-msg { display: none; text-align: center; color: #00d4ff; margin-top: 16px; font-size: 0.95rem; font-weight: 600; }

footer { color: #555f7a; font-size: 0.85rem; padding: 30px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); width: 100%; margin-top: 20px; }
footer a { color: #00d4ff; text-decoration: none; }

/* ── POST & PAGE LAYOUT ── */
.post-container {
  width: 90%;
  max-width: 780px;
  margin: 40px auto 60px;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-header .badge {
  display: inline-block;
  background: rgba(0,212,255,0.15);
  color: #00d4ff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.post-meta {
  font-size: 0.9rem;
  color: #556070;
  margin-bottom: 24px;
}

.post-feature-image {
  width: 100%;
  border-radius: 14px;
  margin-top: 20px;
  border: 1px solid rgba(0,212,255,0.15);
}

/* ── POST CONTENT BODY ── */
.post-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(8px);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #d0e8ff;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: #00d4ff;
  margin: 28px 0 12px;
}

.post-content p {
  margin-bottom: 18px;
}

.post-content a {
  color: #00d4ff;
  text-decoration: underline;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: #d0e8ff;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 4px solid #7b2ff7;
  padding: 12px 20px;
  background: rgba(123,47,247,0.1);
  border-radius: 0 8px 8px 0;
  color: #a0b4cc;
  font-style: italic;
  margin: 20px 0;
}

.post-content code {
  background: rgba(0,212,255,0.1);
  color: #00d4ff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

.post-content pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: #a0ffcc;
}

.post-content img {
  width: 100%;
  border-radius: 10px;
  margin: 16px 0;
}

/* ── POST FOOTER ── */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn-back {
  display: inline-block;
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(0,212,255,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  transition: background 0.3s;
}

.btn-back:hover {
  background: rgba(0,212,255,0.1);
}

.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RELATED POSTS ── */
.related-posts {
  margin-top: 60px;
}

.related-posts h2 {
  font-size: 1.5rem;
  color: #00d4ff;
  margin-bottom: 24px;
  text-align: center;
}

/* ── GHOST EDITOR CARD WIDTHS (required) ── */
.kg-width-wide {
  width: 85vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.kg-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.kg-gallery-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

