/* ===================================================================
   components.css — Nav, Buttons, Cards, Tags, Footer, FAQ, Carousel
   EDX Talent Academy
=================================================================== */

/* === NAV === */
nav.topnav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(174, 12, 116, 0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color .2s;
  cursor: pointer;
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  color: var(--primary);
}

/* === MOBILE NAV === */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 9999px;
  transition: all .3s;
  display: block;
}

/* === BUTTONS === */
.btn-pill {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 11px 26px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(90, 0, 180, 0.45), 0 8px 20px rgba(112, 0, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all .18s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s ease;
  border-radius: 9999px;
}

.btn-pill:hover::before { transform: translateX(110%); }
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(90, 0, 180, 0.45), 0 12px 28px rgba(112, 0, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-pill:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(90, 0, 180, 0.45), 0 4px 12px rgba(112, 0, 255, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--primary);
  border: 2px solid rgba(174, 12, 116, 0.5);
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .18s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 2px 0 rgba(174, 12, 116, 0.2), 0 4px 12px rgba(174, 12, 116, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s ease;
  border-radius: 9999px;
}

.btn-outline:hover::before { transform: translateX(110%); }
.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(174, 12, 116, 0.06);
  box-shadow: 0 4px 0 rgba(174, 12, 116, 0.2), 0 8px 22px rgba(174, 12, 116, 0.2);
  border-color: var(--primary);
}
.btn-outline:active { transform: translateY(1px); }

.btn-grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(90, 0, 180, 0.45), 0 12px 30px rgba(112, 0, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all .18s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
}

.btn-grad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  border-radius: 9999px;
}

.btn-grad:hover::before { transform: translateX(110%); }
.btn-grad:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(90, 0, 180, 0.45), 0 16px 40px rgba(112, 0, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-grad:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(90, 0, 180, 0.45), 0 4px 14px rgba(112, 0, 255, 0.25);
}

/* === CARD BASE === */
.card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .4s ease, background-color .4s ease;
  border: 1.5px solid transparent;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(174, 12, 116, 0.15);
  background-color: #fdf0f8 !important;
  border-color: rgba(174, 12, 116, 0.15);
}

/* === NEWS DETAIL EXPAND === */
.news-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1.5px solid #f0e6f4;
  font-size: 14px;
  color: #444;
  line-height: 1.75;
}
.news-detail p {
  margin: 0 0 .75rem;
}
.news-detail p:last-child {
  margin-bottom: 0;
}
.btn-news-detail {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: 1.5px solid var(--primary);
  border-radius: 2rem;
  padding: .25rem .85rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-news-detail:hover {
  background: var(--primary);
  color: #fff;
}

/* === TAG CHIPS === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid transparent;
}

.tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tag.inactive {
  background: #fff;
  color: #555;
  border-color: #e5e5e5;
}

.tag.inactive:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag.sec.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.tag.sec.inactive:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.tag.thr.active {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tag.thr.inactive:hover {
  border-color: #111;
  color: #111;
}

/* === FOOTER === */
footer {
  background: #f8f8f8;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 60px 2rem 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-links li {
  list-style: none;
  font-size: 13px;
  color: #666;
  margin-bottom: .75rem;
  cursor: pointer;
  transition: color .2s;
}

.footer-links li:hover {
  color: var(--primary);
}

.loc-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: .75rem;
  line-height: 1.4;
}

/* === PRICING CARD === */
.pricing-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 1.5rem 1.5rem 0 0;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #111;
}

.faq-a {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  padding-bottom: 20px;
  display: none;
}

.faq-a.open {
  display: block;
}

/* === CAROUSEL FOR PROGRAMS === */
.programs-marquee-wrapper {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: auto;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 1rem 0;
}

.programs-marquee-wrapper::-webkit-scrollbar {
  display: none;
}

.programs-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 1rem;
}

.programs-marquee-track > .card {
  width: 320px;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--primary);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.left {
  left: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-btn.right {
  right: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
