/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fafafa;
  overflow-x: hidden;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, #87ceeb 0%, #98fb98 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 300;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.1) 0%,
    rgba(152, 251, 152, 0.1) 100%
  );
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #f0a0a0, #d4a574);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(240, 160, 160, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 160, 160, 0.4);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.friendship-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Featured Articles */
.featured-articles {
  padding: 4rem 0;
  background: white;
}

.featured-articles h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-weight: 600;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
  height: 150px;
  overflow: hidden;
  width: 100%;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  margin-bottom: 1rem;
}

.article-content h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.article-content h3 a:hover {
  color: #f0a0a0;
}

.article-content p {
  color: #666;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #999;
}

.view-all {
  text-align: center;
}

.view-all-button {
  display: inline-block;
  background: transparent;
  color: #87ceeb;
  padding: 1rem 2rem;
  text-decoration: none;
  border: 2px solid #87ceeb;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-button:hover {
  background: #87ceeb;
  color: white;
}

/* Categories */
.categories {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.05) 0%,
    rgba(152, 251, 152, 0.05) 100%
  );
}

.categories h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-weight: 600;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.category-card p {
  color: #666;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #87ceeb;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #87ceeb;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav ul {
    gap: 1rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .article-image {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .articles-list .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-image {
    height: 100px;
  }
  .articles-list {
    padding: 1.5rem 0;
  }
  .article-card {
    border-radius: 10px;
  }
  .article-content {
    padding: 1rem;
  }
  .articles-list h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .article-header {
    padding: 1.5rem 0;
  }
  .article-content-wrapper {
    padding: 1.5rem 10px;
  }
  .footer {
    padding: 1.5rem 0 0.5rem;
  }
  .footer-content {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .footer-section h3,
  .footer-section h4 {
    margin-bottom: 0.5rem;
  }
  .footer-section ul li {
    margin-bottom: 0.25rem;
  }
  .footer-bottom {
    padding-top: 0.5rem;
  }
}

/* Article Page Styles */
.article-header {
  background: linear-gradient(135deg, #87ceeb 0%, #98fb98 100%);
  padding: 3rem 0;
  color: white;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta-header {
  font-size: 1.1rem;
  opacity: 0.9;
}

.article-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 20px;
  background: white;
}

.article-content-wrapper h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.article-content-wrapper h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.article-content-wrapper p {
  margin-bottom: 1.5rem;
  color: #444;
}

.article-content-wrapper ul,
.article-content-wrapper ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content-wrapper li {
  margin-bottom: 0.5rem;
  color: #444;
}

.article-content-wrapper blockquote {
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.1) 0%,
    rgba(152, 251, 152, 0.1) 100%
  );
  border-left: 4px solid #87ceeb;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.back-to-articles {
  text-align: center;
  padding: 2rem 0;
  background: #fafafa;
}

.back-button {
  display: inline-block;
  background: #87ceeb;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #6bb6d6;
  transform: translateY(-2px);
}

/* Articles List Page */
.articles-list {
  padding: 3rem 0;
  background: white;
  max-width: 100vw;
}

.articles-list h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 3rem;
  font-weight: 600;
}

.articles-list .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

@media (max-width: 480px) {
  .articles-list .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
