/* css/blogs.css */

/* ------------------------------------------------------------
   1. HERO SECTION
   ------------------------------------------------------------ */
.blog-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-image: url('../images/34864.jpg');
  background-size: cover;
  background-position: center;
  text-align: left;
  padding-bottom: 6rem;
  color: #fff;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 25, 0.7);
  z-index: 1;
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.blog-hero__desc {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   2. MAIN LAYOUT
   ------------------------------------------------------------ */
.blog-section {
  padding: 5rem 1rem;
  background-color: #F8FAFC;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   2.5 FEATURED POST
   ------------------------------------------------------------ */
#featured-post-container {
  margin: 0 auto 4rem auto;
  max-width: 1200px;
}

.featured-post {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
  background-color: #0A1119;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 3rem;
  overflow: hidden;
  color: #fff;
}

.featured-post__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 17, 25, 0.2) 0%, rgba(10, 17, 25, 0.95) 100%);
  z-index: 1;
}

.featured-post__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-post__meta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.featured-post__meta-item i {
  margin-right: 0.5rem;
  opacity: 0.8;
}

.featured-post__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post__title:hover {
  color: var(--color-green);
}

.featured-post__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.featured-post__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.featured-post__link:hover {
  color: var(--color-green);
}

.featured-post__special-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .featured-post {
    padding: 2rem;
    min-height: 400px;
  }
  .featured-post__meta-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .featured-post__title {
    font-size: 1.8rem;
  }
  .featured-post__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .featured-post__special-badge {
    align-self: flex-end;
  }
}


/* ------------------------------------------------------------
   3. BLOG GRID & CARDS
   ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-card__image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: #fff;
  color: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1119;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-card__nav--prev { left: 1rem; }
.blog-card__nav--next { right: 1rem; }

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-badge {
  display: inline-block;
  background-color: rgba(232, 106, 46, 0.1);
  color: var(--color-green);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card__title:hover {
  color: var(--color-green);
}

.blog-card__excerpt {
  color: #4A5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #718096;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card__meta i {
  color: #A0AEC0;
}

/* ------------------------------------------------------------
   4. PAGINATION
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: #fff;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-btn--active, .page-btn:hover {
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

.page-btn--next {
  width: auto;
  padding: 0 1rem;
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
  display: flex;
  gap: 0.5rem;
}

.page-btn--next:hover {
  background-color: #d85d26;
}

/* ------------------------------------------------------------
   5. SIDEBAR WIDGETS
   ------------------------------------------------------------ */
.widget {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Search */
.widget-search {
  display: flex;
  padding: 1.5rem;
}

.widget-search__input {
  flex-grow: 1;
  border: 1px solid #E2E8F0;
  border-right: none;
  padding: 0.75rem 1rem;
  border-radius: 6px 0 0 6px;
  font-size: 0.9rem;
  outline: none;
}

.widget-search__btn {
  background-color: var(--color-green);
  color: #fff;
  border: none;
  padding: 0 1rem;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.widget-search__btn:hover {
  background-color: #d85d26;
}

/* Widget Title */
.widget__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 1.5rem;
}

/* Recent Posts */
.recent-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recent-post:last-child {
  margin-bottom: 0;
}

.recent-post__img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-post__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A1119;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.recent-post__title:hover {
  color: var(--color-green);
}

.recent-post__date {
  font-size: 0.75rem;
  color: #718096;
}

/* Categories */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list__item {
  margin-bottom: 0.75rem;
}

.category-list__item:last-child {
  margin-bottom: 0;
}

.category-list__link {
  color: #4A5568;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
}

.category-list__link:hover,
.category-list__link.active {
  color: var(--color-green);
  font-weight: 700;
}

/* Tags */
.tags-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.tag.active {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

/* Social */
.social-widget {
  display: flex;
  gap: 0.5rem;
}

.social-widget__link {
  width: 36px;
  height: 36px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-widget__link:hover {
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

/* Newsletter */
.widget-newsletter__text {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.widget-newsletter__input {
  width: 100%;
  border: 1px solid #E2E8F0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.widget-newsletter__input:focus {
  border-color: var(--color-green);
}

.widget-newsletter__btn {
  width: 100%;
  background-color: var(--color-green);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.widget-newsletter__btn:hover {
  background-color: #d85d26;
}

/* ------------------------------------------------------------
   6. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
