/* Suji's Happy Learning Hub - Logo Gold & Royal Navy Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --background: #FAFAFD;               /* warm white / soft pearl */
  --foreground: #0A192F;               /* deep royal navy */
  --primary: #0A192F;                  /* deep royal navy #0a192f */
  --primary-foreground: #FFFFFF;
  --accent: #C59B27;                   /* logo metallic gold #c59b27 */
  --accent-hover: #B3891D;
  --accent-light: #FAF4E1;
  --surface: #F0F4FA;
  --surface-raised: #FFFFFF;
  --muted-foreground: #5B6B82;
  --border: #E2E8F0;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

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

img {
  max-width: 100%;
  height: auto;
}

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

/* Typography Helpers */
.label-uppercase {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(10, 25, 47, 0.05);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 0.75rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.825rem;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--foreground);
  background-color: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #061122 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(10, 25, 47, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, #B3891D 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

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

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Badges & Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.chip-gold { background: var(--accent-light); color: #8A650C; border: 0.5px solid #E6D298; }
.chip-navy { background: var(--surface); color: var(--primary); border: 0.5px solid var(--border); }
.chip-success { background: #E8F8F0; color: #1E8449; }
.chip-msme { background: #FFF3BF; color: #856404; border: 0.5px solid #FFE066; }

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  background: var(--background);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

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

.hero-editorial {
  padding: 0 1vw;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.05;
  margin: 1rem 0;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.trust-chips-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-foreground);
  flex-wrap: wrap;
}

/* Floating Course Card in Hero */
.floating-course-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  max-width: 340px;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.floating-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.rating-stars-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

/* Hero Right Photography Showcase */
.hero-visual-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: white;
  text-align: center;
  padding: 2rem;
}

.hero-visual-img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  margin: 0 auto;
}

.hero-visual-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* Stats Strip */
.stats-strip {
  background: var(--primary);
  color: white;
  padding: 2.25rem 0;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  align-items: center;
}

.stat-item h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-item p {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Section Common */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--foreground);
  margin-top: 0.5rem;
}

/* Featured Course Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.course-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(197, 155, 39, 0.12);
  transform: translateY(-4px);
}

.course-card-top {
  margin-bottom: 1.5rem;
}

.course-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* How It Works (4 Steps with Faded Numbers) */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step-card {
  position: relative;
  background: white;
  padding: 2.25rem 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

/* Instructors Section */
.instructor-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease;
}

.instructor-card:hover {
  box-shadow: 0 8px 30px rgba(197, 155, 39, 0.15);
}

/* Video Showcase Gallery */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-player-wrap {
  position: relative;
  padding-top: 56.25%;
  background: var(--primary);
}

.video-player-wrap video,
.video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 40px rgba(197, 155, 39, 0.15);
  transform: scale(1.03);
}

.pricing-features-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.925rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2rem;
}

/* Enrol CTA Banner */
.enrol-cta-banner {
  background: var(--primary);
  color: white;
  border-radius: 32px;
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ENQUIRY & DEMO MODAL STYLING UPGRADE */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: white;
  border-radius: 24px;
  border-top: 6px solid var(--accent);
  padding: 2.25rem;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(10, 25, 47, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--background);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Form Controls Styling */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.925rem;
  background: var(--background);
  color: var(--foreground);
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.2);
}

.form-control::placeholder {
  color: #94A3B8;
  font-size: 0.875rem;
}

/* Floating Social & Chatbot Side Panel */
.floating-widgets-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1500;
  align-items: flex-end;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.12);
}

.floating-whatsapp { background: #25D366; }
.floating-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.floating-chatbot { background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* AI Chatbot Window */
.chatbot-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: calc(100vh - 7rem);
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1600;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--background);
}

.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.chat-msg.bot {
  background: white;
  color: var(--dark);
  align-self: flex-start;
  border: 1px solid var(--border);
}

.chat-msg.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
}

.chatbot-prompts {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  background: white;
  border-top: 1px solid var(--border);
}

.chat-chip {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.chatbot-input-wrap {
  padding: 0.75rem;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1E2A38;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94A3B8;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ERP Layout Styles */
.erp-container {
  display: flex;
  min-height: 100vh;
}

.erp-sidebar {
  width: 250px;
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.erp-sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #1E2A38;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.erp-menu {
  list-style: none;
  padding: 1.25rem 0.85rem;
  flex: 1;
  overflow-y: auto;
}

.erp-menu-item {
  margin-bottom: 0.35rem;
}

.erp-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: #94A3B8;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.erp-menu-link:hover, .erp-menu-link.active {
  color: white;
  background: var(--accent);
}

.erp-content {
  margin-left: 250px;
  flex: 1;
  padding: 1.75rem 2rem;
  width: calc(100% - 250px);
}

.erp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tables */
.table-card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 600px;
}

.custom-table th {
  background: var(--background);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.custom-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* RESPONSIVE BREAKPOINTS & HEADER NO-CUTOFF RULES */
@media (max-width: 1320px) {
  .nav-menu { gap: 0.2rem; }
  .nav-link { font-size: 0.775rem; padding: 0.35rem 0.45rem; }
  .btn-sm { padding: 0.35rem 0.65rem; font-size: 0.775rem; }
}

@media (max-width: 1100px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-menu.active { display: flex; }
  .nav-link { width: 100%; padding: 0.6rem 0.85rem; font-size: 0.925rem; }
  .mobile-menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .erp-sidebar { transform: translateX(-100%); }
  .erp-sidebar.active { transform: translateX(0); }
  .erp-content { margin-left: 0; width: 100%; padding: 1.25rem; }
}

@media (max-width: 480px) {
  .stats-strip-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
