:root {
  --purple: #602e9e;
  --orange: #d68e45;
  --gradient-main: linear-gradient(135deg, #602e9e, #d68e45);
  --gradient-reverse: linear-gradient(135deg, #d68e45, #602e9e);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f9f9fb;
  color: #333;
   line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8f5fc 0%, #fef8f3 50%, #f8f5fc 100%);
  padding: 7rem 5% 4rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 3.8rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search Bar */
.search-bar {
  max-width: 640px;
  margin: 2rem auto;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 4rem 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-bar button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
}

/* Main Container */
.containerr {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 5%;
}

/* Categories */
.categories {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.category-btn {
  padding: 0.8rem 1.8rem;
  border: 2px solid var(--purple);
  background: white;
  color: var(--purple);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
}

/* Blog Grid & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.blog-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(96, 46, 158, 0.2);
}

.blog-image {
  height: 275px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f5fc 0%, #fef8f3 50%, #f8f5fc 100%);
  border-radius: 8px 8px 0 0;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-content {
  padding: 1.3rem;
}

.blog-meta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  column-gap: 1rem;
}

.blog-tag {
  background: var(--gradient-main);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.blog-meta span:last-child {
  text-align: right;
  white-space: nowrap;
}

.blog-card h3 {
  font-size: 1.4rem;
  margin: 0.8rem 0;
  color: #222;
  line-height: 1.4;
}

.read-more {
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 1rem;
}

/* Featured Post */
.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.featured-post .blog-image {
  height: 100%;
}

/* No Results & Pagination */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: #666;
}

.no-results h3 {
  font-size: 2.2rem;
  color: #333;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.pagination button {
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--purple);
  background: white;
  color: var(--purple);
  border-radius: 10px;
  cursor: pointer;
  min-width: 50px;
  font-weight: 600;
}

.pagination button:hover:not(:disabled),
.pagination button.active {
  background: var(--gradient-main);
  color: white;
}

/* CTA Button */
.btn-cta {
  background: var(--gradient-main);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 6px 18px rgba(96, 46, 158, 0.25);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(96, 46, 158, 0.4);
  background: var(--gradient-reverse);
}

.btn-cta i {
  margin-right: 0.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f8f5fc;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #602e9e, #d68e45);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d68e45, #602e9e);
}

/* Responsive */
@media (max-width: 992px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}