/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* Main Layout */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.container {
  display: flex;
  gap: 3rem;
}

/* Sidebar */
.sidebar {
  display: none;
  width: 18rem;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.sidebar-content {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background-color: rgba(248, 250, 252, 0.5);
}

.sidebar-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.sidebar-header p {
  color: #8a9b6e;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.sidebar-nav {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.sidebar-nav a:hover {
  color: #2c5926;
  background-color: #f8fafc;
}

.sidebar-nav a.active {
  background-color: rgba(44, 89, 38, 0.1);
  color: #2c5926;
  font-weight: 500;
}

.sidebar-nav a .material-symbols-outlined {
  font-size: 1.25rem;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.content-section {
  scroll-margin-top: 7rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.section-header .material-symbols-outlined {
  color: #2c5926;
  font-size: 1.875rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
}

/* Article Grids */
.article-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Article Card (Vertical) */
.article-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
  cursor: pointer;
  height: 100%;
}

.article-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.article-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.article-card:hover .article-img-bg {
  transform: scale(1.05);
}

.article-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a9b6e;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.article-card:hover .article-title {
  color: #2c5926;
}

.article-excerpt {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.article-link {
  color: #2c5926;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-link .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  flex-wrap: wrap;
}

.btn-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #2c5926;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-pagination:hover {
  background-color: #2c5926;
  color: white;
  border-color: #2c5926;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-show-less {
  background-color: transparent;
  border-color: #cbd5e1;
  color: #64748b;
}

.btn-show-less:hover {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

.btn-pagination .material-symbols-outlined {
  font-size: 1.25rem;
}

/* From Uiverse.io by PapaUiiss404 */
.card {
  width: fit-content;
  height: fit-content;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* for all social containers*/
.socialContainer {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: 0.3s;
}
/* instagram*/
.containerOne:hover {
  background-color: #d62976;
  transition-duration: 0.3s;
}
/* facebook*/
.containerTwo:hover {
  background-color: #1877f2;
  transition-duration: 0.3s;
}
/* linkdin*/
.containerThree:hover {
  background-color: #0072b1;
  transition-duration: 0.3s;
}
/* Whatsapp*/
.containerFour:hover {
  background-color: #128c7e;
  transition-duration: 0.3s;
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: 0.3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Responsive Styles */
@media (min-width: 640px) {
  .header-content {
    height: 5rem;
  }

  .logo-text {
    display: block;
  }
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
  .nav-desktop {
    display: flex;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .article-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .article-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hidden {
  display: none !important;
}
