/* ============================================
   FACTS Transcripts - Modern Rebuild
   Custom CSS (supplements Tailwind CDN)
   ============================================ */

/* Brand Colors */
:root {
  --primary: #00305D;       /* Navy blue */
  --primary-light: #1a4a7a;
  --accent: #E8961E;        /* Orange/Gold */
  --accent-light: #f5a623;
  --green: #1B8A3D;         /* FACTS Green */
  --green-light: #22a948;
  --text-dark: #1a202c;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p { color: var(--text-muted); line-height: 1.8; }
a { text-decoration: none; transition: all 0.3s ease; }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 48, 93, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0, 48, 93, 0.4);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 150, 30, 0.3);
}
.btn-accent:hover {
  box-shadow: 0 8px 25px rgba(232, 150, 30, 0.4);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--accent); }
.top-bar .iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img {
  height: 55px;
  width: auto;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: rgba(0, 48, 93, 0.05);
}
.nav-menu .dropdown {
  position: relative;
}
.nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 0.75rem;
  min-width: 260px;
  z-index: 100;
}
.nav-menu .dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}
.dropdown-menu a:hover {
  background: var(--bg-light);
}
.header-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 6px 0;
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #fff5e6 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,150,30,0.08) 0%, transparent 70%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 48, 93, 0.08);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--text-dark);
  margin: 0 0 1.25rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat .number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-float-card.top-right {
  top: 1rem;
  right: -1rem;
}
.hero-float-card.bottom-left {
  bottom: 2rem;
  left: -1rem;
}
.hero-float-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.hero-float-card .count {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.hero-float-card .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 48, 93, 0.06);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-header h2 { margin: 0 0 1rem; }
.section-header p { margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 48, 93, 0.1);
  border-color: transparent;
}
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 48, 93, 0.08), rgba(0, 48, 93, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.service-card .link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.service-card:hover .link { gap: 0.6rem; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4a8a 100%);
  padding: 3rem 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.stat-item .label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.feature-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-color: transparent;
}
.feature-card .icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.85rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--bg-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.testimonial-card .stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card .author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.testimonial-card .author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4a8a 50%, #003d7a 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232, 150, 30, 0.08);
}
.cta-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0a1929;
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ============================================
   UNIVERSITY SEARCH
   ============================================ */
.search-box {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 500px;
}
.search-box input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.search-box button:hover { background: var(--primary-light); }

/* ============================================
   PARTNERS / TRUST BAR
   ============================================ */
.trust-bar {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}
.trust-logos img {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  transition: all 0.3s;
}
.trust-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   PAGE HEADERS (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0a4a8a 100%);
  padding: 4rem 0 3rem;
  color: #fff;
  text-align: center;
}
.page-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .header-cta { display: none; }
  .hero { padding: 3rem 0; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  /* Mobile menu */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
}
