/* Global Styles */
:root {
  --primary-color: #29786E;
  --primary-dark: #0f4b43;
  --primary-light: #91c9c1;
  --secondary-color: #1e1e1c;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --gray-100: #f7f9fa;
  --gray-200: #f0f2f3;
  --gray-300: #d1d7dc;
  --gray-400: #94a3b8;
  --gray-500: #6a6f73;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1c1d1f;
  --gray-900: #0f172a;
  --border-radius: 4px;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

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

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

.btn-light {
  background-color: white;
  color: var(--gray-800);
  border-color: white;
}

.btn-light:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.btn-outline {
  background-color: transparent;
  color: var(--gray-800);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background-color: var(--gray-100);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--gray-800);
  border-color: var(--gray-300);
}

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

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
}

/* Announcement Banner */
.announcement-banner {
  background-color: var(--dark-color);
  color: white;
  padding: 0.75rem 0;
  position: relative;
  text-align: center;
  font-size: 0.875rem;
}

.announcement-banner .close-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Header */
.header {
  background-color: white;
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.search-container {
  flex: 1;
  max-width: 600px;
  margin: 0 1.5rem;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

.search-input {
  width: 100%;
  height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--gray-500);
}

.mobile-search {
  padding: 0.5rem 0;
  border-top: 1px solid var(--gray-300);
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-800);
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  background: none;
  border: none;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 0.5rem 0 0;
  background-color: white;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  box-shadow: var(--box-shadow);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-800);
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--gray-100);
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  border-top: 1px solid var(--gray-300);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--dark-color);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 600px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Category Navigation */
.category-nav {
  background-color: white;
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 70px;
  z-index: 990;
}

.category-nav-scroll {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0;
  gap: 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-800);
  background-color: white;
  border: 1px solid var(--gray-300);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background-color: var(--gray-100);
}

.category-pill.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Career Cards */
.career-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow);
}

.career-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.career-content {
  padding: 1.5rem;
}

.career-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.career-salary {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.career-openings {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.career-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.career-rating {
  background-color: var(--gray-100);
  color: var(--gray-800);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.career-reviews {
  color: var(--gray-600);
}

.career-hours {
  color: var(--gray-600);
}

.career-footer {
  padding: 0 1.5rem 1.5rem;
}

/* Category Cards */
.category-card {
  display: block;
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-300);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow);
}

.category-icon {
  margin-bottom: 1rem;
}

.icon-placeholder {
  width: 4rem;
  height: 4rem;
  background-color: var(--gray-200);
  border-radius: 50%;
  margin: 0 auto;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Course Cards */
.course-card {
  display: block;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-image {
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.course-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-content {
  padding: 1rem;
}

.course-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  line-height: 1.4;
}

.course-instructor {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.course-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.rating-score {
  color: var(--warning-color);
  font-weight: 700;
}

.rating-stars {
  color: var(--warning-color);
}

.rating-count {
  color: var(--gray-600);
}

.course-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.current-price {
  font-weight: 700;
  font-size: 1rem;
}

.original-price {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.bestseller-badge {
  display: inline-block;
  background-color: #eceb98;
  color: #3d3c0a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  height: 100%;
}

.testimonial-content {
  padding: 1.5rem;
}

.testimonial-rating {
  color: var(--warning-color);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.author-image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  margin-bottom: 2rem;
}

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

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: white;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.alert-danger {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-dismissible {
  position: relative;
}

.btn-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.25rem;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Utility Classes */
.w-100 {
  width: 100%;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.position-relative {
  position: relative;
}

/* Responsive */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .d-md-block {
    display: block;
  }

  .d-md-none {
    display: none;
  }

  .col-md-3 {
    width: 25%;
  }

  .col-md-4 {
    width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .d-lg-block {
    display: block;
  }

  .d-lg-none {
    display: none;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

@media (max-width: 991.98px) {
  .header-content {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    margin: 0.75rem 0;
    max-width: 100%;
    width: 100%;
  }

  .hero-content {
    padding: 3rem 0;
  }

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

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

  .section {
    padding: 3rem 0;
  }

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

  .cta-title {
    font-size: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero-content {
    padding: 2.5rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .col-6 {
    width: 50%;
  }
}

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

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s;
}

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

.fa-spinner {
  animation: spin 1s infinite linear;
}
