/* Reset & basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #1E3A8A;
  color: white;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}
.logo span {
  color: #E11D48;
}

.logo img {
  width: 160px;
  height: 50px;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  flex-grow: 1;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

nav a.active,
nav a:hover {
  background-color: #E11D48;
}

#searchInput {
  padding: 6px 10px;
  border-radius: 5px;
  border: none;
  width: 180px;
  max-width: 100%;
}

/* Hero */
.hero {
  margin: 20px auto;
  width: 95%;
  max-width: 1200px;
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-shadow: inset 0 -80px 80px -40px rgba(0, 0, 0, 0.7);
}

.hero-slide h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px #000;
}

.hero-slide p {
  font-size: 1rem;
  text-shadow: 1px 1px 4px #000;
}

/* Posts grid */
.post-grid {
  max-width: 1200px;
  width: 95%;
  margin: 20px auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 20px;
}

.post {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.post:hover {
  transform: translateY(-6px);
}

.post img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-content {
  padding: 15px;
}

.post-content h3 {
  color: #1E3A8A;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.post-content p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Footer */
footer {
  background: #1E3A8A;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  #searchInput {
    width: 100%;
  }
}
