/* 
  Design System & Global Styles 
  Theme: Professional Education (Deep Blue & Vibrant Orange)
*/

:root {
  /* Colors */
  --primary-color: #0056D2;
  /* Coursera Blue */
  --primary-dark: #00419e;
  --secondary-color: #F0A500;
  /* Vibrant Orange for CTA */
  --secondary-hover: #d18d00;
  --accent-color: #2F80ED;
  --bg-color: #FFFFFF;
  --bg-light: #F5F7FA;
  --text-main: #1F1F1F;
  --text-secondary: #585C61;
  --border-color: #E1E1E1;
  --success-color: #198754;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --h1-size: 3rem;
  --h2-size: 2.25rem;
  --h3-size: 1.5rem;
  --body-size: 1rem;

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.text-primary {
  color: var(--primary-color);
}

.bg-light {
  background-color: var(--bg-light);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  /* Slightly rounded, professional */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  /* Or dark text depending on contrast */
}

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

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

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

/* Header */
header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-close {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a.btn-primary {
  color: white;
}

.nav-links a.btn-outline {
  color: var(--primary-color);
}

.nav-links a.btn-outline:hover {
  color: white;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

/* Dropdown Menu Styles */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links .dropdown-menu li {
  list-style: none;
}

.nav-links .dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links .dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.nav-links .dropdown-menu li.divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.nav-links .dropdown-menu li.divider:hover {
  background: var(--border-color);
}


/* Standard Dropdown Styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
  padding-left: 1.75rem;
  border-left-color: var(--primary-color);
}



/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  padding: 80px 0;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Stats Section */
.stats-bar {
  background: var(--bg-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Common */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.course-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.course-image {
  height: 180px;
  background-color: #ddd;
  /* Placeholder */
  object-fit: cover;
  position: relative;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  border-radius: 4px;
}

.course-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.instructor {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rating {
  color: #f4c150;
  font-weight: 700;
}

/* Features/Value Prop */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

/* Footer */
footer {
  background: #101828;
  color: white;
  padding: 4rem 0 0;
}

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

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

.footer-col ul li a {
  color: #98A2B3;
}

.footer-col ul li a:hover {
  color: white;
}

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

.copyright {
  border-top: 1px solid #344054;
  padding: 2rem 0;
  text-align: center;
  color: #98A2B3;
  font-size: 0.9rem;
}

/* Basic Tabs Style */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Join Team Banner */
.join-banner {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  border-radius: 12px;
  margin: 4rem auto;
  display: flex;
  /* Flexbox for alignment */
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  max-width: var(--container-width);
  /* Match container width */
}

/* Optional: Decorative elements for the banner */
.join-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.join-banner-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
  /* Ensure visible on blue */
}

.join-banner-content h2 .highlight {
  color: var(--secondary-color);
  /* Orange highlight */
  display: block;
}

.join-banner-text {
  flex: 1;
  max-width: 500px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.join-banner .btn {
  white-space: nowrap;
  background: white;
  color: var(--primary-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.join-banner .btn:hover {
  background: #f0f0f0;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
  /* Placeholder */
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0px;
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: #475467;
  font-style: italic;
  line-height: 1.6;
}

/* Clients Section */
.clients-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  background: white;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: center;
  opacity: 0.6;
  /* Slight fade for logos */
  filter: grayscale(100%);
  /* Professional B&W look */
}

.client-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .join-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .join-banner-text {
    margin: 1rem 0;
  }
}

/* Main Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.2s ease;
  }

  .mobile-menu-close:hover {
    transform: rotate(90deg);
  }

  .mobile-menu-close:active {
    transform: scale(0.9);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 0 2rem 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links>li>a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  /* Mobile Dropdown Styles */
  .nav-links .dropdown-toggle {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    margin: 0;
    border-radius: 0;
    padding: 0.5rem 0;
  }

  .nav-links .dropdown-menu li a {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border-bottom: none;
  }

  .nav-links .dropdown-menu li a:hover {
    padding-left: 2.5rem;
  }

  .nav-links .dropdown-menu li.divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 1.5rem;
  }

  /* Button styles in mobile menu */
  .nav-links .btn {
    margin: 0.5rem 1.5rem;
    width: calc(100% - 3rem);
    text-align: center;
    display: block;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  /* Course Detail Page Styles */
  .course-banner {
    background-color: #101828;
    color: white;
    padding: 3rem 0;
    position: relative;
  }

  .breadcrumb {
    font-size: 0.9rem;
    color: #98A2B3;
    margin-bottom: 1.5rem;
  }

  .breadcrumb a {
    color: #fff;
  }

  .course-layout {
    display: flex;
    gap: 2rem;
    margin-top: -3rem;

    position: relative;
  }

  .main-content {
    flex: 2;
  }

  .sidebar {
    flex: 1;
  }

  .enrollment-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
  }

  .enroll-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
  }

  .content-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .content-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }

  .syllabus-item {
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 4px;
  }

  .syllabus-header {
    padding: 1rem;
    background: var(--bg-light);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .syllabus-bg {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
  }

  .check-list li {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.75rem;
  }

  .check-list i {
    color: var(--success-color);
    margin-top: 4px;
  }

  @media (max-width: 900px) {
    .course-layout {
      flex-direction: column;
    }

    .sidebar {
      order: 1;
    }

    .enrollment-card {
      position: static;
    }
  }

  /* Career Page Styles */
  .job-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: var(--transition);
  }

  .job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
  }

  .tag {
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
  }

  /* Contact Page Styles */
  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }

  .form-input,
  .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 210, 0.1);
  }

  .contact-info-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
  }