/* ==========================================================================
   ANMOL CHHETRI - COURSE & LEARNING HUB
   Clean, Unified & Professional Theme (Consistent with index.html)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #eff6ff;
  --secondary-color: #f3f4f6;
  --secondary-hover: #e5e7eb;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 16px -2px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: #f8fafc;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.2s ease;
}

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

.nav-link:hover:after {
  width: 100%;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.back-text-mobile {
  display: none;
}

.back-text-full {
  display: inline;
}

/* ==========================================================================
   BANNER & ROLE SHOWCASE
   ========================================================================== */
.hero-banner-section {
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.banner-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3147 / 1109;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-caption {
  padding: 0.85rem 1.25rem;
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.banner-role {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: var(--primary-light);
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.banner-role:hover {
  border-color: var(--primary-color);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.15);
}

.banner-role i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

.banner-role a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.banner-role a:hover {
  color: var(--primary-dark);
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   SECTION HEADER & SEARCH
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0.5rem auto 1.5rem auto;
}

/* Integrated Centered Search Bar */
.search-wrapper {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 2.5rem;
  font-family: inherit;
  font-size: 0.925rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--white);
  color: var(--text-color);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.search-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-wrapper .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-wrapper .clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.85rem;
  display: none;
}

.search-wrapper .clear-btn:hover {
  color: var(--text-color);
}

.search-status {
  font-size: 0.825rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ==========================================================================
   BALANCED 3-COLUMN COURSE CARDS GRID
   ========================================================================== */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.option-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #bfdbfe;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
}

.option-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.option-description {
  color: var(--text-light);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Button Container & Buttons */
.button-container {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn {
  flex: 1;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

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

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

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

/* ==========================================================================
   EMPTY SEARCH STATE
   ========================================================================== */
.empty-box {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: var(--white);
  border: 1px dashed var(--border-color);
  border-radius: 0.75rem;
  margin-bottom: 3rem;
}

.empty-box.active {
  display: block;
}

.empty-box i {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.empty-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.empty-box p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 2.25rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-text {
  font-size: 0.9rem;
  color: #d1d5db;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  background-color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .navbar-content {
    height: 3.5rem;
  }

  .nav-link-desktop {
    display: none !important;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .back-text-full {
    display: none !important;
  }

  .back-text-mobile {
    display: inline !important;
  }

  .nav-back-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.825rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .logo-avatar {
    width: 32px;
    height: 32px;
  }

  .hero-banner-section {
    padding-top: 1rem;
    margin-bottom: 2rem;
  }

  .banner-img {
    height: auto;
    max-height: none;
  }

  .banner-caption {
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }

  .banner-role,
  .banner-tag {
    font-size: 0.775rem;
    padding: 0.2rem 0.6rem;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

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

  .option-card {
    padding: 1.35rem;
  }

  .button-container {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}