@import url("base.css");
@import url("fonts.css");

/* === BLOG HEADER === */
.blog-header {
  text-align: center;
  padding: 60px 20px 40px;
  background-color: var(--bg-color);
  margin-top: var(--header-height);
}

.blog-header h1 {
  color: var(--primary-color);
  font-size: 38px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.blog-header h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.blog-header p {
  font-size: 14px;
  color: var( --gray-900);
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.blog-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-filters input {
  padding: 12px 16px 12px 40px;
  border: 1px solid #D1C9B5;
  border-radius: 6px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23707070' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
  color: var( --gray-900);
  font-size: 14px;
  width: 280px;
  transition: all 0.3s ease;
}

.blog-filters input::placeholder {
  color: #999;
}

.blog-filters input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(175, 159, 119, 0.1);
}

.blog-filters select {
  padding: 12px 16px;
  border: 1px solid #D1C9B5;
  border-radius: 6px;
  background-color: var(--white);
  color: var( --gray-900);
  font-size: 14px;
  cursor: pointer;
  min-width: 180px;
  transition: all 0.3s ease;
}

.blog-filters select:hover {
  border-color: var(--secondary-color);
}

/* === BLOG CONTENT === */
.blog-content {
  padding: 40px 0 80px;
  background-color: var(--bg-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 35px;
  align-items: start;
}

/* === SIDEBAR === */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background-color: #EBE1C6;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sidebar-box h3, 
.sidebar-box h4 {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
}

/* === CATEGORIES === */
.categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories ul li {
  font-size: 12px;
  color: var( --gray-900);
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.4);
  border-left: 3px solid transparent;
}

.categories ul li:hover {
  background-color: rgba(255, 255, 255, 0.7);
  border-left-color: var(--secondary-color);
  transform: translateX(3px);
}

.categories ul li.active {
  font-weight: var(--font-weight-bold);
  color: var(--white);
  background-color: var(--primary-color);
  border-left-color: var(--secondary-color);
}

/* === NEWS === */
.news-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-image {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #024441 100%);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-item .news-date {
  display: block;
  font-size: 10px;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-weight-medium);
}

.news-item strong {
  display: block;
  font-size: 13px;
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 6px;
  line-height: 1.3;
}

.news-item p {
  font-size: 11px;
  color: var( --gray-900);
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-item .news-link {
  font-size: 11px;
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: var(--font-weight-medium);
  display: inline-block;
  transition: all 0.3s ease;
}

.news-item .news-link:hover {
  color: var(--primary-color);
}

/* === NEWSLETTER === */
.newsletter {
  text-align: center;
}

.newsletter-icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.newsletter h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.newsletter p {
  font-size: 12px;
  color: var( --gray-900);
  line-height: 1.5;
  margin-bottom: 14px;
}

.newsletter input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid #D1C9B5;
  margin-bottom: 12px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(1, 88, 84, 0.1);
}

.newsletter button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  width: 100%;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 88, 84, 0.2);
}

/* === POSTS GRID === */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* === CARD === */
.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-image {
  background: linear-gradient(135deg, var(--primary-color) 0%, #024441 100%);
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .date {
  display: block;
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-weight-medium);
}

.card-body h3 {
  font-size: 16px;
  color: #AF9F77;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: var(--font-weight-bold);
  min-height: 44px;
}

.card-body p {
  font-size: 13px;
  color: var( --gray-900);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.card-body .read-more {
  display: inline-block;
  font-size: 13px;
  color: var(--white);
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  align-self: flex-start;
}

.card-body .read-more:hover {
  background-color: var(--primary-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(1, 88, 84, 0.2);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #E5DCC5;
}

.pagination .pages {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination .pages a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  background-color: #EBE1C6;
  transition: all 0.3s ease;
  min-width: 42px;
  text-align: center;
}

.pagination .pages a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.pagination .pages a.active {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(1, 88, 84, 0.2);
}

.pagination .page-arrow {
  background-color: #EBE1C6;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
}

.pagination .page-arrow:hover:not(:disabled) {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(175, 159, 119, 0.3);
}

.pagination .page-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: 230px 1fr;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: relative;
    top: 0;
    order: 2;
  }
  
  .posts {
    order: 1;
  }
}

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 32px;
  }
  
  .blog-header p {
    font-size: 13px;
    padding: 0 10px;
  }
  
  .blog-filters {
    flex-direction: column;
    gap: 10px;
  }
  
  .blog-filters input,
  .blog-filters select {
    width: 100%;
    max-width: 320px;
  }
  
  .posts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-image {
    height: 180px;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .pagination .page-arrow {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .blog-header {
    padding: 40px 15px 30px;
  }
  
  .blog-header h1 {
    font-size: 28px;
  }
  
  .sidebar-box {
    padding: 18px;
  }
  
  .card-body {
    padding: 18px;
  }
  
  .pagination .pages a {
    padding: 8px 12px;
    min-width: 36px;
    font-size: 13px;
  }
}