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

body {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #0F0C29 0%, #302B63 25%, #24243e 50%, #0F3460 75%, #0E4B99 100%);
  min-height: 100vh;
}

/* Fixed Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1ps solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.navbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Content */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 2rem 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 300;
}

/* Form Styling */
form {
  background: rgba(15, 12, 41, 0.8);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 3rem;
  transition: all .3s ease;
}

form:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Form Label Styling */
form label {
  display: block;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: .5rem;
  margin-top: 1rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

form label:first-child {
  margin-top: 0;
}

/* Form Input & Textarea Styling */
form input[type="text"],
form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(59, 130, 246, .3);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Fredoka', sans-serif;
  background: rgba(15, 12, 41, .6);
  color: #e2e8f0;
  transition: all .3s ease;
  /* For textarea */
  resize: vertical;
}

form input[type="text"]:focus,
form textarea:focus {
  outline: none;
  border-color: #3B82F6;
  background: rgba(15, 12, 41, .8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
  transform: translateY(-1px);
}

form input[type="text"]::placeholder,
form textarea::placeholder {
  color: #94a3b8;
}

/* Textarea Specific */
form textarea {
  height: clamp(120px, 15vh, 300px);
}

/* Button Styling */
form button {
  background: linear-gradient(135deg, #0F3460 0%, #3B82F6 50%, #8B5CF6 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all .3s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, .3);
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  filter: brightness(1.1);
}

form button:active {
  transform: translateY(0);
}

/* Blog Posts */
#blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post {
  background: rgba(15, 12, 41, .8);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  border-color: rgba(59, 130, 246, .3);
}

.post h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1rem;
  text-transform: capitalize;
  line-height: 1.3;
}

.post p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

.post-number {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.loading {
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: 1.2rem;
  padding: 3rem;
}

@media (max-width: 768px) {
  form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  form input[type="text"],
  form textarea {
    padding: .8rem;
  }

  form button {
    width: 100%;
    padding: 1rem;
  }
}