* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #1f2937;
}

/* Header */
.header {
  background: #0f766e;
  color: white;
  padding: 15px;
  text-align: center;
}

/* Slider */
.slider {
  height: 400px;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 300%;
  animation: slide 15s infinite;
}

.slides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@keyframes slide {
  0% { margin-left: 0; }
  33% { margin-left: -100%; }
  66% { margin-left: -200%; }
}

/* Layout */
.container {
  display: flex;
  margin: 20px;
}

.toc {
  width: 20%;
  background: #fef3c7;
  padding: 15px;
  position: sticky;
  top: 20px;
}

.toc a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #0f766e;
}

.blog {
  width: 60%;
  column-count: 2;
  column-gap: 15px;
}

.post {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  break-inside: avoid;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post h3 {
  color: #fb7185;
}

.readmore {
  color: #0f766e;
  text-decoration: none;
  font-weight: bold;
}

/* Pages */
.page {
  padding: 30px;
}

blockquote {
  border-left: 5px solid #fb7185;
  padding-left: 15px;
  background: #fff7ed;
  font-style: italic;
}

.back {
  display: inline-block;
  margin-top: 20px;
  color: #0f766e;
  text-decoration: none;
}

/* Social */
.social {
  position: fixed;
  right: 10px;
  top: 40%;
}

.social a {
  display: block;
  padding: 12px;
  color: white;
  border-radius: 50%;
  margin-bottom: 5px;
}

.fb { background: #1877f2; }
.tw { background: #1da1f2; }
.ig { background: #e1306c; }

/* Footer */
/* ---------- Footer ---------- */
footer {
  background: #0f766e;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

footer h3 {
  margin-bottom: 15px;
  font-weight: normal;
}

/* Footer Form */
footer form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

/* Email Input */
footer input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border-radius: 30px;
  border: 2px solid transparent;
  outline: none;
  font-size: 15px;
}

/* Button */
footer button {
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  background: #fb7185;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
footer button:hover {
  background: #f43f5e;
  transform: scale(1.05);
}

/* Validation using CSS only */
footer input:valid {
  border-color: #22c55e;
}

footer input:invalid {
  border-color: #f87171;
}

/* Responsive Footer Form */
@media (max-width: 500px) {
  footer form {
    flex-direction: column;
  }

  footer button {
    width: 100%;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .container { flex-direction: column; }
  .toc, .blog { width: 100%; }
  .blog { column-count: 1; }
  .social { display: none; }
}
