/* Widget Styles */
.widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px; /* Increased border radius for a softer look */
  padding: 1.75rem; /* Slightly more padding for better spacing */
  margin-bottom: 2rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.widget:hover {
  transform: translateY(-4px); /* More pronounced hover effect */
  box-shadow: rgba(149, 157, 165, 0.3) 0px 12px 32px; /* Deeper shadow on hover */
  background: linear-gradient(145deg, #ffffff, #f9f9f9); /* Subtle gradient for depth */
}

/* Image Styles */
.widget-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px; /* Rounded corners for images */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.widget-image:hover {
  transform: scale(1.03); /* Slightly larger scale on hover */
  filter: brightness(1.05); /* Brighten image on hover */
}

.recent-article-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px; /* Consistent rounded corners */
}

.equal-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px; /* Consistent rounded corners */
}

/* Widget Title */
.widget-title {
  font-size: 1.5rem; /* Slightly larger for emphasis */
  font-weight: 700; /* Bolder font weight */
  margin-bottom: 1.25rem;
  color: #333;
  position: relative;
}

.widget-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #fefefe; /* Accent line under the title */
  margin-top: 0.5rem;
}

/* Widget Divider */
.widget-divider {
  border-top: 2px solid #d4c098;
  margin: 1.5rem 0; /* More spacing around the divider */
}

/* Category Links */
.category-link {
  display: block;
  padding: 0.5rem 0;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-link:hover {
  color: #aa7c21;
  transform: translateX(5px); /* Slight movement on hover */
}

/* Sidebar Container */
.sidebar-container {
  position: sticky;
  top: 2rem;
}

/* Recent Articles */
.recent-article {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.recent-article:hover {
  background-color: rgba(212, 192, 152, 0.1);
  transform: translateY(-2px); /* Lift effect on hover */
}

.recent-article-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px; /* Consistent rounded corners */
}

/* Ardua Gallery */
.ardua-gallery {
  background: #fff;
  border-radius: 12px; /* Increased border radius */
  padding: 1.75rem; /* More padding for better spacing */
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.equal-image {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  border-radius: 8px; /* Consistent rounded corners */
}

/* Tags */
.tag-link {
  display: inline-block;
  padding: 0.3rem 0.6rem; /* Slightly larger padding */
  margin: 0.2rem;
  background-color: #f8f9fa;
  border-radius: 6px; /* Increased border radius */
  color: #666;
  font-weight: 600; /* Bolder font weight */
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-link:hover {
  background-color: #bd9f62;
  color: #fff;
  transform: translateY(-2px); /* Lift effect on hover */
}

/* Media Queries for Responsive Design */

/* Small Devices (Phones) */
@media (max-width: 576px) {
  .widget-title {
    font-size: 1.25rem;
  }

  .widget-image {
    height: 200px;
  }

  .recent-article-image {
    width: 80px;
    height: 80px;
  }

  .category-link {
    padding: 0.25rem 0;
    font-size: 0.9rem;
  }

  .ardua-gallery {
    padding: 1rem;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 768px) {
  .widget-title {
    font-size: 1.375rem;
  }

  .widget-image {
    height: 250px;
  }

  .recent-article-image {
    width: 90px;
    height: 90px;
  }

  .category-link {
    padding: 0.25rem 0;
    font-size: 1rem;
  }

  .ardua-gallery {
    padding: 1.25rem;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) {
  .widget-title {
    font-size: 1.75rem;
  }

  .widget-image {
    height: 350px;
  }

  .category-link {
    padding: 0.5rem 0;
  }

  .ardua-gallery {
    padding: 2rem;
  }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
  .widget-title {
    font-size: 2rem;
  }

  .widget-image {
    height: 400px;
  }

  .ardua-gallery {
    padding: 2.5rem;
  }
}