/* ===================================================
   BUSINESS ENGLISH PAGE - Enhanced Modern Design
   =================================================== */

/* Dark Mode Variables */
.dark-mode,
body.dark-theme {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --border-color: #374151;
  --card-bg: #1f2937;
}

/* Light mode defaults */
:root {
  --primary-color: #46bbe5;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --gradient-primary: linear-gradient(135deg, #46bbe5 0%, #10b981 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-business: linear-gradient(135deg, #46bbe5 0%, #2563eb 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

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

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

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.5rem;
}

/* ===========================================
   ENHANCED RESOURCES GRID WITH SVG ICONS
   =========================================== */

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

.resource-card {
  background: white;
  border: none;
  border-radius: 24px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--card-gradient-start, #667eea) 0%,
    var(--card-gradient-end, #764ba2) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.resource-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.resource-card:hover::before {
  opacity: 0.03;
}

.resource-card:hover .resource-icon {
  transform: scale(1.1) rotate(5deg);
}

.resource-card:hover .view-btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(70, 187, 229, 0.4);
}

/* Card Header with Icon */
.resource-card-header {
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.resource-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.resource-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
}

.resource-icon svg {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1;
}

/* Card Body */
.resource-card-body {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(70, 187, 229, 0.08);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto 0.75rem;
  width: fit-content;
}

.resource-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-align: center;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.resource-card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  text-align: center;
  font-size: 0.95rem;
}

.resource-features {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
  flex-grow: 1;
}

.resource-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.resource-features li:last-child {
  border-bottom: none;
}

.resource-features li i {
  color: var(--secondary-color);
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* SVG Checkmark Alternative */
.resource-features li svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-color);
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}

/* Ensure resource card icons display properly */
.resource-card .resource-icon {
  background: linear-gradient(
    135deg,
    var(--card-gradient-start, #667eea),
    var(--card-gradient-end, #764ba2)
  );
}

.resource-card .resource-icon svg {
  stroke: white;
  fill: none;
}

/* Color Themes for Resource Cards */
.resource-card[data-theme="email"] .resource-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.resource-card[data-theme="email"] {
  --card-gradient-start: #3b82f6;
  --card-gradient-end: #1d4ed8;
}

.resource-card[data-theme="meeting"] .resource-icon {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.resource-card[data-theme="meeting"] {
  --card-gradient-start: #8b5cf6;
  --card-gradient-end: #6d28d9;
}

.resource-card[data-theme="vocabulary"] .resource-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}
.resource-card[data-theme="vocabulary"] {
  --card-gradient-start: #10b981;
  --card-gradient-end: #059669;
}

.resource-card[data-theme="negotiation"] .resource-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.resource-card[data-theme="negotiation"] {
  --card-gradient-start: #f59e0b;
  --card-gradient-end: #d97706;
}

.resource-card[data-theme="reports"] .resource-icon {
  background: linear-gradient(135deg, #ec4899, #be185d);
}
.resource-card[data-theme="reports"] {
  --card-gradient-start: #ec4899;
  --card-gradient-end: #be185d;
}

.resource-card[data-theme="interview"] .resource-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.resource-card[data-theme="interview"] {
  --card-gradient-start: #06b6d4;
  --card-gradient-end: #0891b2;
}

/* Dark mode resource cards */
body.dark-theme .resource-card {
  background: #1f2937;
  border: 1px solid #374151;
}

body.dark-theme .resource-card:hover {
  border-color: var(--primary-color);
  background: #374151;
}

body.dark-theme .resource-card h3 {
  color: #f9fafb;
}

body.dark-theme .resource-card p {
  color: #9ca3af;
}

body.dark-theme .resource-tag {
  background: rgba(70, 187, 229, 0.15);
  color: #46bbe5;
}

body.dark-theme .resource-features li {
  color: #d1d5db;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .resource-features li i {
  background: rgba(16, 185, 129, 0.2);
}

.download-btn,
.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: auto;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(70, 187, 229, 0.3);
}

.view-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.download-btn:hover,
.view-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(70, 187, 229, 0.4);
}

.view-btn:hover::before {
  left: 100%;
}

.view-btn:active {
  transform: translateY(-1px);
  transition: transform 0.1s;
}

.view-btn i {
  font-size: 1em;
  transition: transform 0.3s ease;
}

.view-btn:hover i {
  transform: translateX(4px);
}

/* Blog Section */
.blog-preview {
  background: var(--bg-accent);
  padding: 4rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.blog-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-business);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

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

/* ===========================================
   ENHANCED QUICK TOOLS SECTION
   =========================================== */

.quick-tools {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.quick-tools::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    #f59e0b,
    #ec4899
  );
}

.quick-tools h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 2px solid transparent;
  padding: 1.25rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.tool-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(70, 187, 229, 0.05),
    transparent
  );
  transition: left 0.5s;
}

.tool-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(70, 187, 229, 0.15);
}

.tool-btn:hover::before {
  left: 100%;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
}

.tool-icon svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
}

.tool-btn:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Tool Icon Color Themes */
.tool-btn[data-tool="conversation"] .tool-icon {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.tool-btn[data-tool="writing"] .tool-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.tool-btn[data-tool="email-checker"] .tool-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}
.tool-btn[data-tool="presentation"] .tool-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.tool-btn[data-tool="vocabulary"] .tool-icon {
  background: linear-gradient(135deg, #ec4899, #be185d);
}
.tool-btn[data-tool="cultural"] .tool-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.tool-btn[data-tool="pronunciation"] .tool-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.tool-btn[data-tool="networking"] .tool-icon {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

/* Practice Widget Styles */
.practice-widget {
  position: relative;
  overflow: hidden;
}

.practice-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.quiz-option:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.quiz-complete {
  animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Tool Buttons */
.tool-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.tool-btn:active {
  transform: scale(0.98);
}

/* Enhanced Tool Button Styles */
.tool-btn {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.tool-btn:hover::before {
  left: 100%;
}

/* FAQ Styles */
.faq-question:hover {
  background: var(--bg-secondary) !important;
}

.faq-question:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

/* Enhanced Card Hover Effects */
.resource-card {
  position: relative;
  overflow: hidden;
}

.resource-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(70, 187, 229, 0.05) 0%,
    transparent 70%
  );
  transform: scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.resource-card:hover::after {
  transform: scale(1);
}

/* Shimmer Animation for Cards */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.resource-card .resource-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  border-radius: inherit;
}

/* Fade in animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.resource-card:nth-child(1) {
  animation-delay: 0.1s;
}
.resource-card:nth-child(2) {
  animation-delay: 0.2s;
}
.resource-card:nth-child(3) {
  animation-delay: 0.3s;
}
.resource-card:nth-child(4) {
  animation-delay: 0.4s;
}
.resource-card:nth-child(5) {
  animation-delay: 0.5s;
}
.resource-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Improved Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Better Ad Integration */
.ad-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Enhanced Typography */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Hero Stats Animation */
.stat-item {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.stat-item:nth-child(2) {
  animation-delay: 0.7s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.9s;
}

/* Improved Error State */
.gradient-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Design - Mobile Layout Updates */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 280px;
  }

  .hero-stats {
    gap: 1rem !important;
  }

  .stat-item {
    min-width: 80px;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

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

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .quiz-options {
    grid-template-columns: 1fr !important;
  }

  .tools-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 2rem 1rem 1rem 1rem;
  }

  .hero-title {
    font-size: 2rem !important;
  }

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

  .practice-widget {
    margin: 1rem 0;
    padding: 1.5rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Animation Classes */

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Loading States */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.3s ease;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-color);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 10000;
  max-width: 350px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: var(--secondary-color);
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: var(--accent-color);
}

.toast .toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast .toast-icon {
  font-size: 1.25rem;
}

.toast.success .toast-icon {
  color: var(--secondary-color);
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.warning .toast-icon {
  color: var(--accent-color);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Success States */
.success-message {
  background: var(--gradient-success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Section */

@media (max-width: 768px) {
  .hero {
    margin-top: 0;
    min-height: 280px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.rounded {
  border-radius: 0.375rem;
}

.shadow {
  box-shadow: var(--shadow-md);
}

.transition {
  transition: all 0.3s ease;
}

/* Hero Stats */
.hero-stats {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

/* Interactive Tools Styles */
.practice-widget {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.quiz-question {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
}

.quiz-option {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.quiz-option.correct {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.quiz-option.incorrect {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

#quiz-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

#quiz-result.show {
  display: block;
}

/* Dark Theme */
body.dark-theme {
  background: #111827;
  color: #e5e7eb;
}

body.dark-theme header {
  background: rgba(31, 41, 55, 0.95);
  border-bottom: 1px solid #374151;
}

body.dark-theme .nav-link {
  color: #e5e7eb;
}

body.dark-theme .control-btn {
  color: #e5e7eb;
}

body.dark-theme .section-title {
  color: #f9fafb;
}

body.dark-theme .section-subtitle {
  color: #d1d5db;
}

body.dark-theme .resource-card {
  background: #1f2937;
  border-color: #374151;
}

body.dark-theme .resource-card:hover {
  background: #374151;
  border-color: #2563eb;
}

body.dark-theme .download-btn,
body.dark-theme .view-btn {
  background: #2563eb;
  color: white;
}

body.dark-theme .view-btn:hover {
  background: #1d4ed8;
  color: white;
}

body.dark-theme .blog-card {
  background: #1f2937;
  border-color: #374151;
}

body.dark-theme footer {
  background: #111827;
  color: #e5e7eb;
}

body.dark-theme footer a {
  color: #2563eb;
}

body.dark-theme .modal-content {
  background: #1f2937;
  color: #e5e7eb;
}

body.dark-theme .close-modal {
  color: #e5e7eb;
  background: #374151;
}

body.dark-theme .success-message {
  background: #10b981;
  color: white;
}

/* Dark Theme - Value Proposition Section */
body.dark-theme .value-proposition-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

body.dark-theme .value-card {
  background: #1f2937;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark-theme .value-card h3 {
  color: #f9fafb;
}

body.dark-theme .value-card p {
  color: #9ca3af;
}

/* Dark Theme - Quick Tools Section */
body.dark-theme .quick-tools {
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

body.dark-theme .quick-tools h3 {
  color: #f9fafb;
}

body.dark-theme .tool-btn {
  background: #1f2937;
  border-color: #374151;
}

body.dark-theme .tool-btn:hover {
  border-color: var(--primary-color);
  background: #374151;
}

/* Dark Theme - FAQ Section */
body.dark-theme .faq-question {
  background: #1f2937 !important;
  color: #f9fafb;
}

body.dark-theme .faq-answer {
  background: #111827 !important;
}

body.dark-theme .faq-item {
  border-color: #374151 !important;
}

/* Dark Theme - Blog Cards */
body.dark-theme .blog-preview {
  background: #111827;
}

/* Dark Theme - Practice Widget */
body.dark-theme .practice-widget {
  background: #1f2937;
}

body.dark-theme .quiz-question {
  color: #f9fafb;
}

body.dark-theme .quiz-option {
  background: #111827;
  border-color: #374151;
  color: #f9fafb;
}

body.dark-theme .quiz-option:hover {
  border-color: var(--primary-color);
  background: #374151;
}

/* Dark Theme - Tool Button Text */
body.dark-theme .tool-btn div[style*="font-weight: 600"] {
  color: #f9fafb !important;
}

body.dark-theme .tool-btn div[style*="font-size: 0.85rem"] {
  color: #9ca3af !important;
}

/* Ensure tool icons have proper gradient background */
.tool-btn .tool-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Fix tool button hover states */
.tool-btn:hover .tool-icon {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Dark mode section backgrounds */
body.dark-theme section[style*="background: var(--bg-secondary)"] {
  background: #1f2937 !important;
}

/* Tool button content styling */
.tool-btn-title {
  font-weight: 600;
  color: var(--text-primary);
}

.tool-btn-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Dark mode tool button text override */
body.dark-theme .tool-btn > div > div:first-child {
  color: #f9fafb;
}

body.dark-theme .tool-btn > div > div:last-child {
  color: #9ca3af;
}

/* Ensure section title visible in dark mode */
body.dark-theme .section-title {
  color: #f9fafb;
}

body.dark-theme .section-subtitle {
  color: #d1d5db;
}

/* Quick tools heading in dark mode */
body.dark-theme .quick-tools p {
  color: #9ca3af !important;
}

/* Ensure mobile dropdowns work properly */
@media (max-width: 768px) {
  /* FORCE mobile menu to display full width */
  .nav-links,
  #navLinks,
  ul.nav-links {
    display: flex !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 70px) !important;
  }

  .nav-links.active,
  #navLinks.active,
  ul.nav-links.active {
    display: flex !important;
    max-height: calc(100vh - 70px) !important;
    height: auto !important;
  }

  /* Make sure nav links with dropdowns are clearly tappable */
  .nav-item .nav-link {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(70, 187, 229, 0.2);
    cursor: pointer;
  }

  /* Ensure chevron is visible and clickable */
  .nav-link .fa-chevron-down {
    transition: transform 0.3s ease !important;
    opacity: 1 !important;
    pointer-events: none; /* Let clicks go through to parent link */
  }

  /* Visual feedback when dropdown is open */
  .nav-item.mobile-open > .nav-link,
  .nav-item.mobile-dropdown-open > .nav-link {
    background: rgba(70, 187, 229, 0.15) !important;
    border-color: var(--primary-color, #46bbe5) !important;
  }

  /* Make dropdowns smoother */
  .dropdown {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Ensure dropdown items are visible when parent is open */
  .nav-item.mobile-open .dropdown,
  .nav-item.mobile-dropdown-open .dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Ensure dropdown items are clickable */
  .dropdown-item,
  .dropdown > a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none;
    -webkit-user-select: none;
  }
}
