/* RHCC ProLearn — Shared Stylesheet */
:root {
  --primary: #0f2557;
  --primary-light: #1e3a8a;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-wrap img { height: 48px; width: auto; }
.logo-text { font-weight: 800; font-size: 18px; color: var(--primary); line-height: 1.2; }
.logo-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }

.header-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

/* Nav */
.site-nav {
  background: var(--primary);
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
}
.nav-inner a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-inner a:hover, .nav-inner a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.05);
}

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 20px 50px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 760px; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 50px 0; }
section:nth-child(even) { background: var(--card); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--primary); margin-bottom: 8px; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary-light); margin: 24px 0 12px; }
h4 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 18px 0 8px; }
p { margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1rem; margin-bottom: 28px; max-width: 780px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card h4 { margin-top: 0; }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Course Card */
.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.course-card h3 { margin-top: 0; font-size: 1.15rem; }
.course-card p { font-size: 0.95rem; color: var(--muted); flex-grow: 1; }
.course-card .card-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  margin-top: 12px;
  display: inline-block;
}
.course-card .card-link:hover { text-decoration: underline; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.92rem; }
th { background: var(--primary); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; font-size: 0.88rem; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fafbfc; }

/* Callout */
.callout {
  background: #fef3c7;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.callout-info { background: #dbeafe; border-left-color: #2563eb; }
.callout-warning { background: #fef3c7; border-left-color: var(--accent); }
.callout strong { color: var(--primary); }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
  color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { background: #f8fafc; }
.faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  margin: 30px 0;
}
.cta-box h3 { color: #fff; margin-top: 0; font-size: 1.5rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.cta-box .btn { margin: 4px; }

/* Contact Strip */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.contact-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.contact-item .icon { font-size: 24px; margin-bottom: 6px; }
.contact-item strong { display: block; color: var(--primary); font-size: 14px; margin-bottom: 4px; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 14px; text-decoration: none; }
.contact-item a:hover { color: var(--accent-dark); }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 40px 20px 20px;
  margin-top: 40px;
  font-size: 14px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h5 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { max-width: 1100px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; }

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  z-index: 200;
  text-decoration: none;
  font-size: 28px;
  transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .header-cta .btn { padding: 8px 14px; font-size: 13px; }
  .logo-text { font-size: 15px; }
  .logo-wrap img { height: 40px; }
  section { padding: 36px 0; }
  .hero { padding: 40px 16px 36px; }
}