/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark);
  text-decoration: none;
  list-style: none;
}

:root {
  --strong-orange: #D66B31;
  --orange-light: #FF924D;
  --strong-green: #03444A;
  --medium-green: #008AA8;
  --light-green: #9AD3DA;
  --white: #FFF6F0;
  --dark: #170C07;
}

.container {
  max-width: 90vw;
}

body {
  font-family: "Inter", sans-serif, Roboto;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  width: 100vw;

}

/* Navbar */
.navbar {
  background: var(--strong-orange);
}

.navbar .container {
  margin: 0 auto;
  padding: .5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  transition: color 0.3s;
  color: var(--white);
}

.nav-link:hover {
  font-weight: bold;
}

/* Main content */
.header {
  background:
    linear-gradient(179deg, rgba(230, 179, 72, .6) 10%,
      rgba(255, 255, 255, 0) 100%,
      rgba(0, 0, 0, 1) 5%);
  width: 100vw;
  height: 25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header h3,
.header p {
  color: var(--strong-orange);
}

.header p {
  font-style: italic;
}

.header h3 {
  font-size: 2rem;
}

.header img {
  height: 20rem;
}

/* Posts grid */
.posts-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.posts-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid #e9ecef;
  border-radius: .7rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f8f9fa;
}

.post-content {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.post-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.post-date {
  color: #999;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

.post-link {
  display: inline-block;
  color: var(--orange-light);
  text-decoration: none;
  font-weight: 500;
}

.post-link:hover {
  text-decoration: underline;
}

/* Post Page */
.post-body p {
  color: var(--dark);
}

/* Footer */
.footer {
  background: var(--orange-light);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

.footer img {
  height: 2rem;
  transition: all 100ms ease-in;
}

.footer img:hover {
  transform: translateY(-4px);
}

.footer a {
  color: var(--white);
  font-size: .7rem;
}

/* ABOUT */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var();
  padding: 2rem 0;
  text-align: center;
}

.about p,
.about h2,
.about h3 {
  color: var(--dark);
}

.about-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  max-width: 700px;
}

.about-header img {
  height: 10rem;
  margin-bottom: 2rem;
}

.about .card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card-circle {
  display: block;
  position: relative;
  width: 300px;
  height: 250px;
  background-color: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  padding: 32px 24px;
  margin: 12px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;

  &:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: var(--orange-light);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.25s ease-out;
  }

  &:hover:before {
    transform: scale(21);
  }
}

.card-circle:hover {
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);

  p {
    transition: all 0.3s ease-out;
    color: rgba(255, 255, 255, 0.8);
  }

  h3 {
    transition: all 0.3s ease-out;
    color: #ffffff;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .header .container {
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header img {
    height: 10rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

/* Individual Post Page Styles */
.post-full {
  max-width: 800px;
  margin: 0 auto;
}

.post-full-content {
  padding: 2rem;
  border-radius: 8px;
}

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

.post-header .post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.post-meta {
  color: #666;
  font-size: 1rem;
}

.post-featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body h2,
.post-body h3 {
  margin: 2rem 0 1rem 0;
  color: #333;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.btn {
  display: inline-block;
  color: var(--strong-orange);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--orange-light);
  border-radius: 4px;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--strong-orange);
  color: white;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);

}

.error-message {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.error-message h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .post-full-content {
    padding: 1rem;
    margin: 0 -1rem;
  }

  .post-header .post-title {
    font-size: 2rem;
  }

  .post-body {
    font-size: 1rem;
  }
}
