/* Money Mitra Network - Main Stylesheet */
/* Design System: Modern, Professional, AdSense-compliant */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary: #1E3A8A;
  --primary-dark: #1E293B;
  --primary-light: #3B82F6;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --background: #F9FAFB;
  --background-light: #FFFFFF;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --text-light: #F3F4F6;
  --border: #E5E7EB;
  --success: #10B981;
  --error: #EF4444;
  
  /* Typography */
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 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 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
}

h2 {
  font-size: clamp(var(--text-xl), 4vw, var(--text-4xl));
}

h3 {
  font-size: clamp(var(--text-lg), 3vw, var(--text-3xl));
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-3);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-family-body);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* ===== HEADER/NAVBAR ===== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background-light);
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: var(--space-4) 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent);
}

.logo-text {
  color: var(--primary);
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
}

@media (max-width: 768px) {
  .nav-links {
    gap: var(--space-4);
    font-size: var(--text-sm);
  }
}

/* ===== HERO SECTIONS ===== */
.hero-section {
  padding: var(--space-24) var(--space-4);
  background: linear-gradient(135deg, var(--background) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
}

.courses-hero {
  padding: var(--space-20) var(--space-4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

/* ===== COURSE FILTERS ===== */
.course-filters {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-12);
}

.filter-btn {
  padding: var(--space-3) var(--space-6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* ===== COURSES GRID ===== */
.courses-section {
  padding: var(--space-24) var(--space-4);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* ===== COURSE CARD ===== */
.course-card {
  background-color: var(--background-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.course-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-content h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.course-content p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex: 1;
}

.course-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.course-pricing {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.old-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: var(--text-sm);
}

.current-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--space-24) var(--space-4);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background-color: var(--primary-dark);
  color: white;
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
}

.trust-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: var(--space-24) var(--space-4);
  background-color: var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.testimonial-card {
  background-color: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-text {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
}

.testimonial-author-info h4 {
  margin-bottom: 0;
  font-size: var(--text-sm);
}

.testimonial-author-info p {
  font-size: var(--text-xs);
  margin-bottom: 0;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.feature-card {
  text-align: center;
  padding: var(--space-6);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-dark);
  color: white;
  margin-top: var(--space-24);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  padding: var(--space-24) var(--space-4);
}

.footer-col h4,
.footer-col h5 {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.footer-bottom {
  padding: var(--space-8) var(--space-4);
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ===== FORMS ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}