* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'League Spartan', sans-serif;
  padding: 20px;
  background-color: white;
  color: #333;
}

.header {
  position: sticky;
  top: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: none;
  border: none;
  z-index: 1000;
}

.logo {
  height: 50px;
  margin-right: 20px;
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
  margin-right: 20px;
}

#search-toggle {
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

#search-input {
  padding: 5px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  display: none;
  transition: width 0.3s ease;
  width: 150px;
}

.search-container.active #search-input {
  display: inline-block;
}

.featured-card {
  margin: 40px 0 10px;
  background-color: #D6D6D6;
  width: 100%;
  height: 200px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.card-media {
  text-align: center;
}

.tag {
  margin: 15px 5px 5px 5px;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
}

.main-title {
  margin: 20px 5px 5px 5px;
  font-size: 30px;
  font-weight: 500;
}

.subtitle {
  margin: 15px 5px 10px 5px;
  font-size: 20px;
  line-height: 1.2;
  color: #666;
  font-weight: 400;
}
.author {
  margin: 0 5px 30px 5px;
  width: 80%;
  font-size: 14px;
  color: #666;
  font-weight: 600;
 
}
.section-divider {
  width: 100%;
  margin: 60px auto 30px;
  border: none;
  border-top: 2px solid #ddd;
}
.recent-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 25px;
}

.recent-posts-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.view-more {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.view-more:hover {
  text-decoration: underline;
}
.carousel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.carousel {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-left: 0; /* ensures first card starts at the edge */
}

.carousel-card-wrapper {
  flex: 0 0 50%;
  scroll-snap-align: start;
}

.carousel-card {
  display: block;
  background: #D6D6D6;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-decoration: none;
}

.card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.card-headline {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 0;
  color: #333;
  text-align: left;
  padding-left: 4px;
}

.carousel-wrapper {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.social-icons {
    display: flex;
    gap: 10px;
    padding: 5px;
    margin: 40px 10px 20px;
    
}

.social-icons a {
    font-size: 30px;
    font-weight: 400;
    color: #4B4B4B;
    transition: color 0.3s ease;
    width: auto;
    height: auto;
    padding: 0 10px;
}
.footer {
  padding: 30px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px; /* vertical and horizontal spacing */
  max-width: 500px;
  margin: 0 auto;
}

.footer-links p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
