/* css styles */

/* Global styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --light-text: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Dark mode specific variables */
[data-bs-theme="dark"] {
  --light-bg: #2c3e50;
  --dark-text: #f8f9fa;
  --primary-color: #3498db;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

/* Hide page footer */
.footer {
  padding: 1rem 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 2rem;
}

.footer p {
  font-size: 0.9rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Hide custom footer section */
.footer-section {
  display: none !important;
}

/* Hero section */
.hero-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
  color: var(--light-text);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--light-text);
  border: none;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Feature cards */
.features-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  flex: 1;
  min-width: 250px;
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  color: #2c3e50;
}

.feature-card p {
  color: #2c3e50;
}

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

.feature-card h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Learning pathway */
.pathway-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.pathway-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pathway-step {
  flex: 1;
  min-width: 250px;
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  color: #2c3e50;
}

.pathway-step p {
  color: #2c3e50;
}

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

.pathway-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.pathway-step h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pathway-step a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.pathway-step a:hover {
  text-decoration: underline;
}

/* Testimonial */
.testimonial-section {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.testimonial-section blockquote {
  font-size: 1.25rem;
  font-style: italic;
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--secondary-color);
}

.testimonial-author {
  font-weight: 600;
  text-align: right;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

/* Schedule page styles */
.schedule-banner {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  text-align: center;
}

.schedule-img {
  max-height: 200px;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
}

.module-header {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.module-content {
  padding: 0 1rem;
}

.module-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.module-content em {
  color: #555;
  font-size: 0.95rem;
}

.module-content ul {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.module-content a {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  margin-right: 1rem;
}

.module-content a:hover {
  text-decoration: underline;
}

/* About page styles */
.about-banner {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  text-align: center;
}

.about-img {
  max-width: 300px;
  margin-bottom: 1rem;
}

.about-banner h2 {
  color: var(--primary-color);
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .feature-card, .pathway-step {
    min-width: 100%;
  }
}

/* Callouts styling */
div.callout {
  border-left: 5px solid;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.callout-tip {
  background-color: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
}

.callout-note {
  background-color: rgba(52, 152, 219, 0.1);
  border-color: #3498db;
}

.callout-important {
  background-color: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
}

/* Code blocks */
pre {
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

code {
  font-family: 'Source Code Pro', Menlo, Monaco, Consolas, 'Courier New', monospace;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

th {
  background-color: var(--light-bg);
  font-weight: 600;
}

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

/* Footer styles */
.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-content a {
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* Add any other styles you need here */

/* Dark mode specific styles */
[data-bs-theme="dark"] .schedule-banner,
[data-bs-theme="dark"] .about-banner,
[data-bs-theme="dark"] .testimonial-section,
[data-bs-theme="dark"] .cta-section {
  background-color: #1a2530;
  color: #f8f9fa;
}

[data-bs-theme="dark"] .module-content h3,
[data-bs-theme="dark"] .about-banner h2 {
  color: #3498db;
}

/* Feature cards and pathway steps in dark mode - only change background, not text */
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .pathway-step {
  background-color: #f8f9fa; /* Light background in dark mode */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
}

[data-bs-theme="dark"] .feature-card:hover,
[data-bs-theme="dark"] .pathway-step:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: #bbb;
}

/* Hero banner dark mode styles */
[data-bs-theme="dark"] .hero-banner {
  background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
  color: #f8f9fa;
}

[data-bs-theme="dark"] .hero-text {
  color: #ecf0f1;
  opacity: 1;
}

/* Button styles for dark mode */
[data-bs-theme="dark"] .btn-outline {
  color: #ecf0f1;
  border: 2px solid #ecf0f1;
}

[data-bs-theme="dark"] .btn-primary {
  background-color: #3498db;
  color: #ecf0f1;
}

[data-bs-theme="dark"] .btn-primary:hover {
  background-color: #2980b9;
}

/* Links in dark mode */
[data-bs-theme="dark"] a {
  color: #3498db;
}

[data-bs-theme="dark"] .module-content a {
  color: #3498db;
}

/* Callouts in dark mode */
[data-bs-theme="dark"] .callout-tip {
  background-color: rgba(46, 204, 113, 0.2);
}

[data-bs-theme="dark"] .callout-note {
  background-color: rgba(52, 152, 219, 0.2);
}

[data-bs-theme="dark"] .callout-important {
  background-color: rgba(231, 76, 60, 0.2);
}

/* Why Learn section in dark mode */
[data-bs-theme="dark"] h2 {
  color: #ecf0f1;
}

/* Main content text in dark mode */
[data-bs-theme="dark"] p:not(.feature-card p):not(.pathway-step p),
[data-bs-theme="dark"] li,
[data-bs-theme="dark"] div:not(.feature-card):not(.pathway-step) {
  color: #ecf0f1;
}

/* Code blocks in dark mode */
[data-bs-theme="dark"] pre {
  background-color: #1a2530;
  border: 1px solid #34495e;
}

[data-bs-theme="dark"] code {
  color: #3498db;
}

/* Ensure tables are visible in dark mode */
[data-bs-theme="dark"] table {
  color: #ecf0f1;
}

[data-bs-theme="dark"] th {
  background-color: #2c3e50;
  color: #f8f9fa;
}

[data-bs-theme="dark"] td {
  border-bottom: 1px solid #34495e;
}

/* Ensure blockquotes are visible */
[data-bs-theme="dark"] blockquote {
  color: #bdc3c7;
  border-left-color: #3498db;
}

/* Sidebar navigation in dark mode */
[data-bs-theme="dark"] .sidebar-navigation {
  color: #ecf0f1;
}

[data-bs-theme="dark"] .sidebar-navigation a {
  color: #3498db;
}

/* Footer in dark mode */
[data-bs-theme="dark"] .footer {
  border-top: 1px solid #34495e;
}

[data-bs-theme="dark"] .footer-content {
  color: #ecf0f1;
}

[data-bs-theme="dark"] .footer-content a {
  color: #3498db;
}

/* Module content styles in dark mode */
[data-bs-theme="dark"] .module-content em {
  color: #bdc3c7;
}

/* End of dark mode styles */
