/* ===== AI SIMPLY LEARN - Main Stylesheet ===== */

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

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --secondary: #00cec9;
  --accent: #fd79a8;
  --dark: #2d3436;
  --light: #f8f9fa;
  --gray: #636e72;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: var(--light);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ---------- Header & Navigation ---------- */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary), #a29bfe);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Features / Cards Grid ---------- */
.section {
  padding: 70px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body {
  padding: 25px;
}

.card-category {
  display: inline-block;
  background: #f0edff;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-body .read-more {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.card-body .read-more:hover {
  color: var(--primary-dark);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: var(--gray);
}

/* ---------- Feature Boxes ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-box {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-box h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-box p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---------- About Page ---------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  color: var(--primary);
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 1rem;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* ---------- Blog Post Page ---------- */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-content .post-meta {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.post-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.5rem;
  margin: 35px 0 15px;
  color: var(--primary);
}

.post-content h3 {
  font-size: 1.2rem;
  margin: 25px 0 10px;
}

.post-content p {
  margin-bottom: 18px;
  color: #444;
  font-size: 1.05rem;
}

.post-content ul,
.post-content ol {
  margin: 15px 0 20px 25px;
  color: #444;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content strong {
  color: var(--dark);
}

.post-content .tip-box {
  background: #f0edff;
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.post-content .tip-box strong {
  color: var(--primary);
}

/* ---------- Legal / Policy Pages ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.legal-content .last-updated {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 30px 0 10px;
  color: var(--dark);
}

.legal-content p {
  color: #555;
  margin-bottom: 15px;
}

.legal-content ul {
  margin: 10px 0 20px 25px;
  color: #555;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: #b2bec3;
  padding: 50px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #b2bec3;
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--primary), #a29bfe);
  padding: 60px 20px;
  text-align: center;
  color: var(--white);
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #1e272e;
}

/* ---------- Hero Outline Button ---------- */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  margin-left: 12px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 20px;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Learning Path ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  counter-reset: steps;
}

.step {
  background: var(--light);
  border-radius: var(--radius);
  padding: 35px 25px;
  position: relative;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.step p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.step-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.step-link:hover {
  color: var(--primary-dark);
}

/* ---------- Tools Spotlight ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  border: 1px solid #eee;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--white);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tool-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.tool-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 6px;
  line-height: 1.4;
}

.tool-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.tool-tag:contains("Paid") {
  background: #fff3e0;
  color: #e65100;
}

/* ---------- Blog Search ---------- */
.blog-search-wrap {
  margin-top: 20px;
}

.blog-search-input {
  width: 100%;
  max-width: 500px;
  padding: 13px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: var(--dark);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: var(--white);
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 63px;
  z-index: 99;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow);
  }

  nav ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .post-content,
  .legal-content,
  .contact-form {
    padding: 30px 20px;
  }

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