/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif, Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
  font-weight: 600;
  font-size: 14px;
}

header .logo {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

header .logo svg {
  width: 24px;
  height: 24px;
  fill: #111;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav li {
  position: relative;
}

nav li > a {
  padding: 8px 4px;
  font-weight: 600;
}

nav .dropdown:hover ul {
  display: block;
}

nav .dropdown ul {
  display: none;
  position: absolute;
  background: #fff;
  top: 100%;
  left: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 10px 0;
  z-index: 10;
}

nav .dropdown ul li a {
  display: block;
  padding: 8px 20px;
  white-space: nowrap;
}

.auth-buttons a {
  padding: 8px 16px;
  margin-left: 8px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

.auth-buttons .login {
  background: none;
  border: 1px solid #ccc;
}

.auth-buttons .signup {
  background: #000;
  color: #fff;
  border: none;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 600px;
}

.hero-text .featured {
  text-transform: uppercase;
  color: #888;
  font-size: 12px;
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: 36px;
  margin: 0 0 20px;
}

.hero-subtext {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}

.hero-arrow {
  font-size: 24px;
  color: #000;
}

.hero-image img {
  width: 500px;
  border-radius: 16px;
}

/* Blog posts */
.blog-posts {
  padding: 60px 0;
}

.blog-posts h2 {
  font-size: 28px;
  margin-bottom: 40px;
  text-align: center;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch; /* ensures all items stretch to equal height */
}

.post {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.post img {
  width: 100%;
  height: 200px; /* or any preferred fixed height */
  object-fit: cover;
  border-radius: 10px;
}

.post h3 {
  margin: 16px 0 10px;
  font-size: 18px;
}

.post p {
  color: #555;
  font-size: 14px;
}

.post footer {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

.load-more {
  display: block;
  margin: 40px auto 0;
  padding: 12px 24px;
  font-weight: bold;
  border: 1px solid #000;
  background: none;
  border-radius: 6px;
}

/* Footer */
.footer-dark {
  background: #111;
  color: #fff;
  padding: 60px 0;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
}

.footer-top h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-top p {
  color: #aaa;
}

.footer-buttons button {
  background: #fff;
  color: #000;
  margin: 10px;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 6px;
}

.footer-column a {
  color: #aaa;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #fff;
}

.badge-new {
  background: #ff5a5f;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #666;
}


  .hidden {
    display: none;
  }
