/* ==========================================================================
   RS ACADEMY — HIGH FIDELITY DESIGN SYSTEM (STANDALONE PRODUCTION CSS)
   Aesthetic: Industrial Engineering Academy + ATS Dispatch Credibility
   ========================================================================== */

:root {
  --navy-deep: #07111F;
  --navy-surface: #0E1B2C;
  --navy-card: #152438;
  --charcoal: #101820;
  --rs-gold: #FFC928;
  --rs-gold-hover: #E5B21A;
  --steel-blue: #31536F;
  --steel-light: #4D769A;
  --accent-teal: #00D4B2;
  --light-bg: #F3F5F7;
  --light-card: #FFFFFF;
  --text-white: #FFFFFF;
  --text-muted: #8A97A8;
  --text-body: #C2CBD6;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(16, 24, 32, 0.08);
  --border-gold: rgba(255, 201, 40, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 8px 30px rgba(255, 201, 40, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--navy-deep);
  color: var(--text-body);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-white);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.mono-text {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   GLOBAL LAYOUT & CONTAINERS
   ========================================================================== */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-light {
  background-color: var(--light-bg);
  color: #2D3748;
}

.section-light h2, 
.section-light h3, 
.section-light h4 {
  color: var(--charcoal);
}

.section-light p {
  color: #4A5568;
}

/* Blueprint Grid Background Pattern */
.bg-blueprint {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 20%, rgba(49, 83, 111, 0.25) 0%, rgba(7, 17, 31, 0) 70%);
}

/* Section Headings & Badges */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rs-gold);
  background: rgba(255, 201, 40, 0.1);
  border: 1px solid rgba(255, 201, 40, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.section-badge.teal {
  color: var(--accent-teal);
  background: rgba(0, 212, 178, 0.1);
  border-color: rgba(0, 212, 178, 0.25);
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.section-title em {
  font-style: normal;
  color: var(--rs-gold);
}

.section-title em.teal {
  color: var(--accent-teal);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 50px;
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--rs-gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
  background-color: var(--rs-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 201, 40, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-teal);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 212, 178, 0.2);
  transition: all 0.3s ease;
}

.btn-teal:hover {
  background-color: #02bca0;
  transform: translateY(-3px);
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

.top-announcement-bar {
  background-color: #040A12;
  border-bottom: none;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
  padding: 8px 0;
}

.top-announcement-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.parent-brand-link {
  color: var(--rs-gold);
  font-weight: 600;
}

.parent-brand-link:hover {
  text-decoration: underline;
}

.top-sep {
  color: #3A4758;
}

.top-brand-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-workshop-pill {
  color: var(--accent-teal);
  font-weight: 600;
}

.top-workshop-pill:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
}

.site-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text-col .brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  background: rgba(255, 201, 40, 0.15);
  color: var(--rs-gold);
  border: 1px solid rgba(255, 201, 40, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

.brand-text-col .brand-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #D1D8E0;
  padding: 8px 0;
  position: relative;
}

.nav-item-link:hover, 
.nav-item-link.highlight-gold {
  color: var(--text-white);
}

.nav-item-link.highlight-gold {
  color: var(--rs-gold);
}

.nav-dropdown-trigger {
  position: relative;
}

.nav-dropdown-trigger:hover .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 360px;
  background-color: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-dropdown-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--rs-gold);
  letter-spacing: 1.5px;
  border-bottom: none;
  padding-bottom: 8px;
}

.mega-drop-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.mega-drop-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.mega-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mega-item-top strong {
  font-size: 0.82rem;
  color: var(--text-white);
}

.code-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mega-drop-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mega-drop-footer {
  border-top: 1px solid var(--border-dark);
  padding-top: 10px;
  text-align: right;
}

.mega-drop-footer a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rs-gold);
}

.nav-action-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost-small {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--rs-gold);
  background: rgba(255, 201, 40, 0.1);
  border: 1px solid rgba(255, 201, 40, 0.25);
}

.btn-gold-small {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--rs-gold);
  color: var(--navy-deep);
  box-shadow: 0 4px 16px rgba(255, 201, 40, 0.2);
}

.btn-gold-small:hover {
  background-color: var(--rs-gold-hover);
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}

.mobile-nav-drawer {
  display: none;
  background-color: var(--navy-deep);
  border-bottom: none;
  padding: 24px;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-link.sub {
  padding-left: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mobile-nav-link.gold {
  color: var(--rs-gold);
}

.mobile-nav-link.teal {
  color: var(--accent-teal);
}

.mobile-courses-group .group-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--rs-gold);
  margin-top: 10px;
  margin-bottom: 4px;
}

.btn-gold-full {
  display: block;
  text-align: center;
  padding: 14px;
  background-color: var(--rs-gold);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-dark {
  background-color: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.card-dark:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card-light {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(7, 17, 31, 0.05);
}

.card-light:hover {
  border-color: var(--rs-gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(7, 17, 31, 0.1);
}

/* ==========================================================================
   INTERACTIVE TIMELINE & WORKFLOW
   ========================================================================== */

.workflow-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.workflow-node {
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.workflow-node:hover {
  border-color: var(--rs-gold);
  transform: translateY(-4px);
}

.node-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--rs-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.node-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   FORMS & ENQUIRY BOX
   ========================================================================== */

.enquiry-card {
  background-color: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #D1D8E0;
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background-color: var(--navy-deep);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.85rem;
  color: var(--text-white);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--rs-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-success-box {
  background: rgba(0, 212, 178, 0.08);
  border: 1px solid rgba(0, 212, 178, 0.3);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 16px;
}

.campus-desk-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
  background-color: #040A12;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-pre-banner {
  background-color: #091524;
  border-bottom: none;
  padding: 40px 0;
}

.footer-pre-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.pre-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-teal);
  letter-spacing: 2px;
}

.pre-title {
  font-size: 1.75rem;
  color: var(--text-white);
  margin: 4px 0 8px;
}

.pre-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 600px;
}

.pre-action-col {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px 30px;
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.f-brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.f-brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.footer-about-text {
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-right: 20px;
}

.parent-firm-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.parent-card-header {
  font-size: 0.82rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.icon-bulb {
  color: var(--rs-gold);
}

.parent-card-body {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.parent-card-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--rs-gold);
  font-weight: 600;
}

.footer-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-white);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--text-white);
  padding-left: 4px;
}

.footer-links-list .link-teal {
  color: var(--accent-teal);
  font-weight: 600;
}

.campus-address-card p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.campus-address-card strong {
  color: var(--text-white);
}

.footer-legal-links {
  border-top: 1px solid var(--border-dark);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: #637282;
}

.footer-legal-links a:hover {
  color: var(--text-muted);
}

.footer-legal-notice-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: #6B7C8F;
  margin-bottom: 30px;
}

.footer-legal-notice-box strong {
  color: var(--text-muted);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #556272;
}

/* Mobile Sticky Bar */
.mobile-sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: rgba(7, 17, 31, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-dark);
  padding: 10px 14px;
  gap: 10px;
}

.sticky-cta-btn {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sticky-cta-btn.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
}

.sticky-cta-btn.btn-navy {
  background: var(--navy-card);
  border: 1px solid var(--border-dark);
  color: var(--text-white);
}

.sticky-cta-btn.btn-gold {
  background: var(--rs-gold);
  color: var(--navy-deep);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-menu-list, .nav-action-cluster {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .footer-cols-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .mobile-sticky-cta-bar {
    display: flex;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-cols-grid {
    grid-template-columns: 1fr;
  }
  .form-group-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
}
