/* 
  Design System & Global Styles 
  Theme: Professional Education (Sepia & Maroon)
*/

:root {
  /* Colors */
  --primary-color: #570000; /* Deep Maroon */
  --primary-dark: #3a0000;
  --secondary-color: #a23e30; /* Terracotta */
  --secondary-hover: #82271c;
  --accent-color: #735c00; /* Gold */
  --bg-color: #fff9ee; /* Soft Sepia Background */
  --bg-light: #f5edd9; /* Surface Container */
  --text-main: #1f1c0f; /* Espresso */
  --text-secondary: #5a413d; /* Espresso Variant */
  --border-color: #eae2ce; /* Outline */
  --success-color: #059669;

  /* Typography */
  --font-family: 'Literata', serif;
  --font-headline: 'Libre Caslon Text', serif;
  --font-label: 'Work Sans', 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;
}

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

h1, h2, h3, h4, h5, h6, .logo {
  font-family: var(--font-headline);
}

.btn, .nav-links, input, select, textarea, .form-label {
  font-family: var(--font-label);
}

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 & Nav */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

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

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  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);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  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: var(--bg-light);
  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(87, 0, 0, 0.08);
  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: var(--bg-light);
  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: var(--bg-light);
  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: var(--bg-color);
}

.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 Styles */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 1rem;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--bg-light);
  }

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

  /* Adjust dropdown for mobile */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
    /* Hidden by default in mobile stack until toggled or handled by CSS */
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }



}

/* Course Detail Page Styles */
.course-banner {
  background-color: #ebdcb9; /* Warm Sandy Sepia */
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  color: var(--text-main);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}


.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--primary-color);
  font-weight: 600;
}

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

  position: relative;
}

.main-content {
  flex: 2;
}

.sidebar {
  flex: 1;
}

.enrollment-card {
  background: var(--bg-light);
  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: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  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: var(--bg-color);
  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: var(--bg-light);
  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-color);
  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;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: var(--bg-light);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(87, 0, 0, 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);
}

/* Modern Scholarly Special Utilities */
.glass-nav {
  background: rgba(255, 249, 238, 0.95);
  backdrop-filter: blur(20px);
}
.serif-italic {
  font-family: 'Libre Caslon Text', serif;
  font-style: italic;
}

/* Pulse Animation */
@keyframes pulse-maroon {
  0% { box-shadow: 0 0 0 0 rgba(178, 43, 29, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(178, 43, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 43, 29, 0); }
}
.pulse-live {
  animation: pulse-maroon 2s infinite;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Button Hover Effects */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.btn-shimmer:hover {
  transform: scale(1.05);
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%
  );
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}
.btn-shimmer:hover::after {
  left: 100%;
  opacity: 1;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}