/*Welcome Message*/
#welcome {
  padding: 5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.welcome-section h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.welcome-section .tagline {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 20px;
  max-width: 800px;
  opacity: 60%;
}

.search-bar {
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 6px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.search-bar button {
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #2c2c2c;
  font-size: 1.1rem;
  transition: background-color 0.3s ease; /* smooth transition */
}

.search-bar button:hover {
  background: #e55743;
}

.search-bar button:hover {
  color: #2c2c2c;
}

.highlight { background: yellow; }

/*Featured Section*/
#featuredArticle {
  padding: 0 50px 50px;
  width: 100%;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.article-hero img {
  width: 75%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.article-overlay {
  margin-top: 2rem;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.article-overlay h4 {
  font-size: 40px;
  font-weight: 700;
  max-width: 1200px;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-align: center;
}

.article-overlay .excerpt {
  font-size: 20px;
  font-weight: lighter;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 1200px;
}

.article-overlay .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.article-overlay .category {
  color: #e55743;
  font-weight: 600;
  text-transform: uppercase;
}

/*All Articles Section*/
#articles {
  padding: 50px;
  width: 100%;
  position: relative;
}

.articles-header {
  text-align: center;
  margin-bottom: 1rem;
}

.articles-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.articles-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  border-bottom: 3px dotted #333;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.post-card {
  padding: 1rem;
  border-radius: 6px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.post-card img {
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.category {
  color: #e55743;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e55743;
  display: inline-block;
  width: fit-content;
  padding-bottom: 2px;
}

.post-content h3 {
  font-size: 24px;
  font-weight: 700;
}

.meta {
  font-size: 14px;
  font-weight: lighter;
}

.post-content p {
  font-size: 18px;
  line-height: 1.5;
}

.author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1rem;
}

.author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.author span {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 600;
}

.post-link:hover {
  text-decoration: underline;
}

/*Pagination*/
#pagination {
  text-align: center;
  padding: 2rem 1rem;
}

.pagination-status {
  font-size: 18px;
  color: #891e1e;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 10px;
}

.pagination-nav a {
  color: #891e1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: opacity 0.2s ease;
}

.pagination-nav a:hover {
  opacity: 0.8;
}

/*About Section*/
.about-section {
  padding: 60px 20px;
}

.next-page,
.prev-page { 
  cursor: pointer;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.about-image img {
  width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 5;
  min-width: 300px;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 20px;
}
