* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f2f2f2;
}

header {
  background: #008080;
  color: white;
  padding: 1rem;
  text-align: center;
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.flex-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.form-container,
.analytics {
  flex: 1;
  min-width: 300px;
}

form {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button {
  background: #008080;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.tick {
  color: green;
  margin-top: 10px;
  display: none;
}

.analytics {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analytics h3 {
  margin-top: 0;
}

.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease-in-out;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card .hashtag {
  color: #008080;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 5px;
}

.btn-group {
  display: flex;
  justify-content: start;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.like-btn {
  background-color: #ffeaea;
  color: #d23b3b;
}

.like-btn:hover {
  background-color: #ffd6d6;
}

.share-btn {
  background-color: #e8f4fc;
  color: #2d6da3;
}

.share-btn:hover {
  background-color: #d0eafc;
}

.hidden-meta {
  display: none;
}
/* Responsive Banner Section */
.banner-section {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 15px;
}

.banner-images {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
}

.banner-images img {
  width: 100%;
  min-width: 280px;
  border-radius: 10px;
  height: auto;
  object-fit: cover;
}

/* Responsive Search Field */
.search-container {
  text-align: center;
  padding: 0 15px;
  margin-bottom: 30px;
}

.search-container input {
  width: 100%;
  max-width: 600px;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}


@media screen and (max-width: 768px) {
  .grid-posts {
    grid-template-columns: 1fr;
  }
}
