/* dpivotaleducationweb.com - Education & Learning Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.3; }

/* Navbar */
.navbar {
  background: rgba(255,255,255,0.95);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand span { font-size: 1.6rem; }

.navbar-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-menu a:hover, .navbar-menu a.active {
  background: var(--primary);
  color: #fff;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .navbar { padding: 1rem; flex-wrap: wrap; }
  .navbar-toggle { display: block; }
  .navbar-menu { display: none; width: 100%; flex-direction: column; padding: 1rem 0; gap: 0.3rem; }
  .navbar-menu.active { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  padding: 8rem 2rem 5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  position: relative;
}

.hero-stats .stat { text-align: center; }

.hero-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero { padding: 6rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.tool-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.tool-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.tool-card p { font-size: 0.85rem; color: var(--text-light); }

/* Articles */
.article-list { display: grid; gap: 2rem; }

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 300px 1fr;
  transition: all 0.3s ease;
}

.article-card:hover { transform: translateX(5px); border-left: 4px solid var(--primary); }

.article-img {
  height: 100%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-content { padding: 1.8rem; }

.article-category {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.article-card h2 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.article-card h2 a { color: var(--text-dark); text-decoration: none; }
.article-card h2 a:hover { color: var(--primary); }

.article-excerpt { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }

.article-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); }

.read-more { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.read-more:hover { gap: 0.6rem; }

@media (max-width: 768px) {
  .article-card { grid-template-columns: 1fr; }
  .article-img { height: 200px; }
}

/* Article Page */
.article-page { max-width: 800px; margin: 0 auto; padding: 8rem 1rem 4rem; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-dark); }

.article-body { font-size: 1.1rem; line-height: 1.9; color: var(--text-dark); }
.article-body h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--primary); }
.article-body h3 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin: 1.5rem 0; padding-left: 2rem; }
.article-body li { margin-bottom: 0.8rem; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: rgba(99, 102, 241, 0.05); border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0; font-style: italic; }

/* Tool Page */
.tool-page { max-width: 900px; margin: 0 auto; padding: 8rem 1rem 4rem; }
.tool-header { text-align: center; margin-bottom: 3rem; }
.tool-header h1 { font-size: 2.2rem; margin-bottom: 1rem; }

.tool-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.tool-form { display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.9rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

.btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4); }

.result-box {
  background: rgba(99, 102, 241, 0.05);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}
.result-box.show { display: block; }
.result-value { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* Footer */
.footer {
  background: #1e293b;
  color: #fff;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

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

.footer h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: #fff; }
.footer a { color: #94a3b8; text-decoration: none; display: block; padding: 0.4rem 0; transition: color 0.3s ease; }
.footer a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Page Headers */
.page-header {
  background: var(--gradient);
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: #fff;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; opacity: 0.95; }

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; padding: 4rem 1rem; }
.legal-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; color: var(--primary); }
.legal-content p { margin-bottom: 1rem; color: var(--text-light); }

/* Related */
.related-articles { margin-top: 4rem; padding-top: 2rem; border-top: 2px solid #e2e8f0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

.breadcrumbs { padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; font-size: 0.9rem; color: var(--text-light); }
.breadcrumbs a { color: var(--primary); text-decoration: none; }

/* Header Gradient */
.header-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  min-height: 250px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-section {
  background: var(--gradient);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.cta-section p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
