:root {
  --bg: #0f172a;
  --bg-soft: #1e3a8a;
  --surface: #ffffff;
  --surface-muted: #f0f5ff;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #2563eb;
  --success: #10b981;
  --border: #bfdbfe;
  --shadow: 0 10px 40px rgba(29, 78, 216, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary-light);
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: min(340px, 72vw);
  object-fit: contain;
}

/* Footer brand: JPEG has solid white canvas — use CSS wordmark on dark footer */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  margin-bottom: 2px;
}

.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28em;
  line-height: 1;
}

.fw-e {
  font-size: clamp(1.85rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-style: italic;
  color: #f87171;
}

.fw-s {
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #93c5fd;
}

.footer-brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #bfdbfe;
  max-width: 280px;
  line-height: 1.35;
}

.footer-logo {
  display: none;
}

.rutronix-emblem {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.about-emblem { max-width: 520px; }

.hero-card.emblem-card {
  background: #fff;
  color: var(--text);
}

.emblem-card {
  border: 2px solid var(--primary-light);
  text-align: center;
  padding: 20px;
}

.emblem-caption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.social-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-dark);
}

.social-link img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.social-fb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1877f2;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong { font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--text-muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: #eff6ff;
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

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

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

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

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-stats div strong {
  display: block;
  font-size: 24px;
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-card {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary-light);
}

.hero-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.hero-list {
  display: grid;
  gap: 14px;
}

.hero-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-list-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: #eff6ff;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

.card ul {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.card ul li { margin-bottom: 6px; }

.price {
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0;
}

.price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.featured {
  border-color: #93c5fd;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
  position: relative;
}

.featured .badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Course cards */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.form-field textarea { min-height: 120px; resize: vertical; }

.info-list {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  display: grid;
  place-items: center;
}

.muted { color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #dbeafe;
  padding: 56px 0 0;
  margin-top: 40px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 40px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
}

.hours-list {
  margin: 0;
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: baseline;
}

.hours-row {
  display: contents;
}

.hours-row dt,
.hours-row dd {
  margin: 0;
}

.hours-row dd {
  white-space: nowrap;
}

.hours-list.muted {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 15px;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  color: #fff;
  font-weight: 600;
}

.footer-social a:hover {
  text-decoration: underline;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 15px;
}

.site-footer a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #94a3b8;
}

.site-footer a:hover { color: #fff; }

.site-footer .footer-brand {
  display: inline-flex;
  margin-bottom: 2px;
  color: inherit;
  font-size: inherit;
}

.site-footer .footer-brand:hover {
  color: inherit;
}

.site-footer .footer-social a {
  display: inline;
  margin-bottom: 0;
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 18px 0 24px;
  font-size: 13px;
  color: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.06), transparent 35%),
    linear-gradient(180deg, #fff 0%, #f0f5ff 100%);
  animation: gradientShift 12s ease infinite;
  background-size: 200% 200%;
  z-index: 0;
}

.hero-grid { position: relative; z-index: 1; }

.animate-title {
  animation: fadeInUp 0.8s ease both;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.animate-shimmer {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 40%, #eff6ff 80%);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

.float-card {
  animation: floatY 5s ease-in-out infinite;
}

.stat-pill {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.btn-glow:hover {
  animation: pulse-ring 1.5s ease infinite;
}

.section-alt { background: var(--surface-muted); }

.page-top { padding-top: 48px; }

.course-code {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #eff6ff;
  padding: 5px 10px;
  border-radius: 999px;
  margin: 0;
}

.course-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  min-height: 2.7em;
}

.course-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.course-card .course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  min-height: 34px;
  align-items: flex-start;
}

.course-topics {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 auto;
}

.course-topics li { margin-bottom: 4px; }

.course-syllabus {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #e8eef5;
  flex: 1 1 auto;
}

.course-syllabus > h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.syllabus-semester {
  margin: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  height: 100%;
}

.syllabus-sem-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.syllabus-block {
  margin-bottom: 10px;
}

.syllabus-block:last-child {
  margin-bottom: 0;
}

.syllabus-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}

.syllabus-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.syllabus-block li {
  margin-bottom: 3px;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  gap: 0;
}

.course-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
}

.course-card .course-btn {
  margin-top: 20px;
  align-self: flex-start;
  padding: 10px 16px;
  font-size: 13px;
}

.card-with-syllabus {
  width: 100%;
}

.card-with-syllabus .course-title {
  min-height: 0;
}

.card-with-syllabus .course-desc {
  max-width: 72ch;
}

.course-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-grid-standard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.course-grid-standard:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-btn { padding: 10px 16px; font-size: 13px; }

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-lg {
  padding: 10px 16px;
  font-size: 13px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border: none;
}

.cta-card h3,
.cta-card p {
  color: #fff;
}

.cta-card p {
  opacity: 0.92;
  margin-top: 8px;
}

.link-arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.link-arrow:hover { text-decoration: underline; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: pulse-ring 2s ease infinite;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

.site-header {
  animation: fadeIn 0.5s ease;
}

.brand-icon {
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .contact-grid,
  .footer-grid,
  .course-grid-standard,
  .syllabus-grid {
    grid-template-columns: 1fr;
  }

  .course-title {
    min-height: 0;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a { border-radius: 10px; }

  .nav-cta { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .animate-shimmer, .whatsapp-float, .hero-bg { animation: none; }
}
