/* ===== BASE STYLES ===== */
:root {
  /* Original Color Scheme */
  --primary-color: #6e48aa;
  --primary-light: #9d50bb;
  --secondary-color: #4776e6;
  --secondary-light: #8e54e9;
  --accent-color: #00d2ff;
  --text-color: #2d3748;
  --text-light: #4a5568;
  --bg-color: #ffffff;
  --bg-secondary: #f7fafc;
  --border-color: #e2e8f0;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #f56565;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  /* Dark Mode Colors */
  --primary-color: #8a63d2;
  --primary-light: #b18bff;
  --secondary-color: #5e8ef7;
  --secondary-light: #a67cff;
  --text-color: #f7fafc;
  --text-light: #cbd5e0;
  --bg-color: #1a202c;
  --bg-secondary: #2d3748;
  --border-color: #4a5568;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: var(--transition);
}

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

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

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* ===== COMPONENT STYLES ===== */
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-color);
}

.logo i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 2rem;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

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

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

.nav-list a:hover::after {
  width: 100%;
}

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

/* Theme Toggle */
.theme-toggle button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
}

.theme-toggle button:hover {
  color: var(--primary-color);
  transform: rotate(30deg);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, rgba(110, 72, 170, 0.1) 0%, rgba(71, 118, 230, 0.1) 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background-color: var(--bg-secondary);
}

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

.card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.75rem;
}

.card-content p {
  margin-bottom: 1.5rem;
}

/* Article Cards */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.category {
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.date {
  color: var(--text-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--primary-color);
}

.read-more i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Tool Cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.tool-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* About Section */
.about .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 0;
}

.newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-weight: 600;
}

.newsletter-form button:hover {
  background-color: var(--bg-secondary);
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 4rem 0 0;
}

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

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(40, 40, 50, 0.95);
  color: #fff;
  padding: 1rem;
  font-family: var(--font-main);
  text-align: center;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

#cookie-banner span {
  font-size: 0.95rem;
}

#cookie-banner a {
  color: #cfc;
  text-decoration: underline;
}

#cookie-banner button {
  margin-left: 1rem;
  padding: 0.4rem 1rem;
  background: #9f6fe8;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  cursor: pointer;
}

/* ===== DARK MODE ENHANCEMENTS ===== */
[data-theme="dark"] {
  .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
  }
  
  .newsletter {
    background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  }
  
  .footer {
    border-top: 1px solid var(--border-color);
  }
}

/* ===== TRANSITION ENHANCEMENTS ===== */
.card,
.article-card,
.tool-card,
.header,
.footer {
  transition: background-color 0.3s ease, 
              box-shadow 0.3s ease, 
              transform 0.3s ease, 
              border-color 0.3s ease;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .hero .container, 
  .about .container,
  .newsletter .container {
    flex-direction: column;
  }
  
  .hero-content, 
  .hero-image, 
  .about-content, 
  .about-image {
    width: 100%;
  }
  
  .newsletter-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav {
    position: relative;
  }
  
  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-list li {
    margin: 1rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}
/* In your CSS */
.footer-col ul {
    list-style: none; /* Removes bullet points */
    padding-left: 0; /* Removes default padding */
}

.footer-col li {
    margin-bottom: 0.75rem;
}

/* Keep bullet points only in content sections */
.post-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}
/* In your CSS */
.highlight-box a, 
.resources-list a {
    color: #8a63d2; /* Violet color matching theme */
    text-decoration: underline;
}

.highlight-box a:hover, 
.resources-list a:hover {
    color: #6e48aa; /* Darker violet on hover */
}

/* For the "Resources for Going Further" section */
.resources-list {
    list-style: disc; /* Keeps bullet points */
    padding-left: 1.5rem;
}

.resources-list li {
    margin-bottom: 0.5rem;
}
