/* Global Styles */
:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
}
ul {
  padding-left: 0px !important;
}

a {
  cursor: pointer;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f1f5f9;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px 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 {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.logo span {
  color: #fbbf24;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: #fbbf24;
}

/* main seo based section */
.seo-intro {
  background-color: #f9fafb;
  padding: 2rem 1rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: "Poppins", sans-serif;
}

.seo-container {
  max-width: 960px;
  margin: 0 auto;
}

.seo-intro h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.3;
  font-weight: 700;
}

.seo-intro p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.seo-intro h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  color: #111827;
  font-weight: 600;
}

.seo-intro ul {
  padding-left: 1.2rem;
  list-style: disc;
  color: #1f2937;
  line-height: 1.7;
}

.seo-intro ul li {
  margin-bottom: 0.5rem;
}

.seo-intro .note {
  margin-top: 1.5rem;
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
  color: #78350f;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .seo-intro h1 {
    font-size: 1.5rem;
  }

  .seo-intro h2 {
    font-size: 1.2rem;
  }

  .seo-intro p,
  .seo-intro ul {
    font-size: 0.95rem;
  }
  .blog-content {
    padding: 0px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}
.hero .container h2 strong {
  color: #fbbf24;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}
.hero p > strong {
  color: yellow;
}
.search-bar {
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
}

/* Categories Section */
.categories {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--dark);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-img {
  height: 200px;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.1);
}

.category-content {
  padding: 1.5rem;
}

.category-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.category-content p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Featured Posts */
.featured-posts {
  padding: 3rem 0;
  background: white;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-img {
  height: 200px;
  overflow: hidden;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.post-meta span {
  margin-right: 1rem;
}

.post-excerpt {
  color: var(--gray);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #fbbf24;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Blog Post Page Styles */
.blog-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.blog-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  list-style: none;
}

.breadcrumb li {
  margin: 0 0.5rem;
}

.breadcrumb li a {
  color: #fbbf24;
  text-decoration: none;
}

.breadcrumb li:after {
  content: "›";
  margin-left: 0.5rem;
  color: white;
}

.breadcrumb li:last-child:after {
  content: "";
}

.blog-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 3rem 0;
}

.blog-content {
  background: white;
  border-radius: 10px;
  /* padding: 2rem; */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
.blog-content > ol {
  padding: 0 4rem;
}
.blog-content > h3 {
  padding: 0 3rem;
}

.blog-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 25px;
  margin-bottom: 2rem;
  padding: 15px;
}

.blog-meta {
  display: flex;
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.blog-meta span {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 0.3rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
}

.comparison-table th {
  background-color: #f1f5f9;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.product-review {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
}

.product-review h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.product-review ul {
  margin-left: 1rem;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.pros,
.cons {
  padding: 1rem;
  border-radius: 5px;
}
.pros > li {
  padding: 0px 10px;
}

.pros {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}
.pros > ul {
  padding: 0px 10px;
  margin-left: 1rem;
}

.cons {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.cons > ul {
  padding: 0px 10px;
}
.buy-now-btn {
  display: inline-block;
  background: #fbbf24;
  color: black;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.buy-now-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.popular-posts li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.popular-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-posts a {
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.popular-posts a:hover {
  color: var(--primary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: #e2e8f0;
  color: var(--dark);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

/* here we give card csss  */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  width: 30vw;
  position: absolute;
  right: 0;
  top: 5rem;
  display: none;

  /* Start hidden (off-screen to the right) */
  transform: translateX(100%);
  animation: slide-in 0.5s ease-in forwards;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.cancel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 25px;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
}

.card h2 {
  margin: 12px 0;
  font-size: 22px;
}

.card p {
  color: #555;
  font-size: 14px;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  /* transition: background 0.2s; */
  cursor: pointer;
}

.whatsapp {
  background: #25d366;
}

.whatsapp:hover {
  background: #1da851;
}

.telegram {
  background: #229ed9;
}

.telegram:hover {
  background: #1c8bc0;
}

.follow-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.follow-btn-container {
  padding: 10px;
}
.follow-btn-container a {
  margin: 0px 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  nav ul {
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
  .blog-content {
    padding: 0px !important;
  }
  .blog-image {
    padding: 30px;
    border-radius: 15px !important;
  }

  .blog-content > h2 {
    padding: 0px 1rem;
  }
  .blog-container {
    grid-template-columns: 1fr;
  }
  .follow-btn-container a {
    margin: 10px 0px;
  }
  .pros-cons {
    grid-template-columns: 1fr;
  }
  .card {
    width: 100%;
    position: fixed;
    top: 25rem;
    height: max-content;
  }
  .comparison-table {
    width: 95% !important;
    display: flex;
    flex-direction: column;
    justify-self: center;
  }
  .sidebar {
    padding: 10px;
  }
}
