/* Future Minds Global — marketing pages on Rocket LMS */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

.fmg-page {
  /* Aligned with Future Minds logo: navy + forest green + leaf green */
  --fmg-ink: #001040;
  --fmg-navy: #002060;
  --fmg-cream: #f3f6fa;
  --fmg-soft: #3d5564;
  --fmg-accent: #0d6b32;
  --fmg-accent-bright: #50a020;
  --fmg-blue: #4a8bc2;
  font-family: "DM Sans", sans-serif;
  color: var(--fmg-ink);
  background: var(--fmg-cream);
}

.fmg-page .fmg-display {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.fmg-page .fmg-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fmg-accent);
}

/* Hero slider */
.fmg-hero {
  position: relative;
  height: 78vh;
  min-height: 28rem;
  overflow: hidden;
  background: var(--fmg-ink);
  color: var(--fmg-cream);
}

.fmg-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.fmg-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.fmg-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmg-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, rgba(10, 22, 32, 0.88) 0%, rgba(10, 22, 32, 0.45) 55%, rgba(10, 22, 32, 0.3) 100%);
}

.fmg-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}

.fmg-hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.fmg-hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(245, 241, 232, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.fmg-hero-dot.is-active {
  width: 1.6rem;
  background: var(--fmg-accent-bright);
}

/* Page banner */
.fmg-banner {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 2.75rem;
  background: var(--fmg-ink);
  color: var(--fmg-cream);
  overflow: hidden;
}

.fmg-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.fmg-banner .container {
  position: relative;
  z-index: 1;
}

/* Split */
.fmg-split-img {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
}

.fmg-split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmg-section {
  padding: 4rem 0;
}

.fmg-section-dark {
  background: var(--fmg-ink);
  color: var(--fmg-cream);
}

.fmg-section-dark .fmg-eyebrow {
  color: var(--fmg-accent-bright);
}

.fmg-section-white {
  background: #fff;
}

.fmg-muted {
  color: var(--fmg-soft);
  line-height: 1.7;
}

.fmg-section-dark .fmg-muted {
  color: rgba(245, 241, 232, 0.7);
}

.fmg-btn {
  display: inline-flex;
  align-items: center;
  background: var(--fmg-accent);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border: 0;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.fmg-btn:hover {
  background: #0f6b52;
  color: #fff !important;
}

.fmg-link {
  color: #0f6b52 !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.fmg-link:hover {
  color: var(--fmg-accent) !important;
}

.fmg-value {
  border-top: 1px solid rgba(10, 22, 32, 0.1);
  padding: 1.15rem 0;
}

.fmg-value:last-child {
  border-bottom: 1px solid rgba(10, 22, 32, 0.1);
}

.fmg-section-dark .fmg-value {
  border-color: rgba(245, 241, 232, 0.12);
}

/* Service cards */
.fmg-card {
  background: #fff;
  border: 1px solid rgba(10, 22, 32, 0.08);
  padding: 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fmg-card:hover {
  border-color: rgba(26, 138, 106, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 22, 32, 0.08);
}

.fmg-card-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fmg-accent);
  margin-bottom: 0.5rem;
}

.fmg-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--fmg-soft);
  line-height: 1.55;
  min-height: 2.8em;
  margin-bottom: 1rem;
  flex: 1;
}

.fmg-card button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.fmg-card-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.9rem;
}

.fmg-card-partner {
  margin: -0.15rem 0 0.75rem;
  color: #8b2346;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fmg-partner-logo {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.fmg-programme {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid rgba(10, 22, 32, 0.08);
  text-decoration: none !important;
  color: var(--fmg-ink) !important;
}

.fmg-programme:hover {
  border-color: rgba(139, 35, 70, 0.45);
}

.fmg-programme strong {
  display: block;
  font-size: 1.05rem;
}

.fmg-programme span {
  color: #8b2346;
  font-weight: 700;
  white-space: nowrap;
}

/* Modal */
.fmg-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(10, 22, 32, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fmg-modal.is-open {
  display: flex;
}

.fmg-modal-panel {
  width: min(44rem, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  padding: 1.75rem 2rem 1.5rem;
  position: relative;
}

.fmg-doc h3,
.fmg-doc h4 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  color: #001040;
  line-height: 1.35;
}

.fmg-doc h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.45rem;
}

.fmg-doc h4 {
  font-size: 1rem;
  margin: 1.05rem 0 0.3rem;
  color: #002060;
}

.fmg-doc p {
  margin: 0 0 0.85rem;
  line-height: 1.7;
  color: #243044;
}

.fmg-doc ul,
.fmg-doc ol {
  margin: 0.2rem 0 1rem !important;
  padding-left: 1.35rem !important;
  list-style: disc outside !important;
}

.fmg-doc ol {
  list-style: decimal outside !important;
}

.fmg-doc li {
  display: list-item !important;
  list-style: disc outside !important;
  margin: 0.28rem 0 !important;
  padding: 0 !important;
  line-height: 1.55;
  color: #243044;
}

.fmg-doc ol li {
  list-style: decimal outside !important;
}

.fmg-doc li::marker {
  color: #0d6b32;
}

.fmg-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fmg-soft);
  cursor: pointer;
}

/* Profile */
.fmg-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #132836;
}

.fmg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmg-nav-extra a.nav-link.fmg-active {
  color: var(--fmg-accent) !important;
}

@media (max-width: 767px) {
  .fmg-hero {
    height: 70vh;
    min-height: 24rem;
  }
  .fmg-split-img {
    min-height: 16rem;
    margin-top: 1.5rem;
  }
}

.fmg-navbar { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; background: #fff !important; }
.fmg-nav-bar { min-height: 56px; }
.fmg-nav-cluster { gap: 1.75rem; }
.fmg-nav-brand { margin-right: 0 !important; padding: 0 !important; }
.fmg-nav-brand img, #navbar .navbar-brand img { max-height: 56px !important; width: auto !important; object-fit: contain !important; }
.fmg-navbar .fmg-nav-links .nav-link { font-weight: 700 !important; font-size: 0.95rem !important; color: #001040 !important; padding: 0.5rem 0.9rem !important; }
.fmg-navbar .fmg-nav-links .nav-link:hover, .fmg-navbar .fmg-nav-links .nav-link.fmg-active { color: #0d6b32 !important; }
.fmg-nav-toggler { margin-left: auto; border: 0 !important; padding: 0.35rem !important; }
.fmg-navbar .fmg-mobile-nav.navbar-toggle-content { background: #001040 !important; padding: 1.25rem 1.5rem 2rem !important; overflow-y: auto; }
.fmg-mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.fmg-mobile-nav__logo img { max-height: 42px !important; background: #fff; border-radius: 4px; padding: 4px 8px; }
.fmg-mobile-nav__close, .fmg-mobile-nav__close svg { color: #fff !important; stroke: #fff !important; }
.fmg-mobile-nav__links { display: flex; flex-direction: column; width: 100%; margin: 0; padding: 0; list-style: none; }
.fmg-mobile-nav__links .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
.fmg-mobile-nav__links .nav-link { display: block !important; text-align: left !important; font-weight: 700 !important; font-size: 1.15rem !important; color: #fff !important; padding: 1rem 0.15rem !important; }
.fmg-mobile-nav__links .nav-link.fmg-active, .fmg-mobile-nav__links .nav-link:hover { color: #50a020 !important; }
.footer, .footer.bg-secondary { background-color: #001040 !important; }
.fmg-footer a.font-14 { color: #fff !important; }

.fmg-contact-card {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 4px;
}

.fmg-form-group {
  margin-bottom: 1rem;
}

.fmg-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fmg-ink);
}

.fmg-field {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--fmg-ink);
  background: #fff;
}

.fmg-field:focus {
  outline: none;
  border-color: var(--fmg-accent);
}

.fmg-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.fmg-alert-ok {
  background: #e8f6ee;
  color: #0d6b32;
}

.fmg-alert-err {
  background: #fdecec;
  color: #9b1c1c;
}

.fmg-handbook {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  margin-top: 1.75rem;
}

.fmg-handbook h1,
.fmg-handbook h2,
.fmg-handbook h3,
.fmg-handbook h4 {
  color: #800000;
  line-height: 1.3;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.fmg-handbook h1 {
  font-size: 26px;
  border-bottom: 2px solid #800000;
  padding-bottom: 10px;
  margin: 2rem 0 25px;
}

.fmg-handbook h1:first-child {
  margin-top: 0;
}

.fmg-handbook h2 {
  font-size: 22px;
  margin-top: 35px;
  margin-bottom: 15px;
}

.fmg-handbook h3 {
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.fmg-handbook .meta-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #800000;
  margin-bottom: 20px;
}

.fmg-handbook .meta-info p {
  margin: 5px 0;
}

.fmg-handbook p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.6;
  color: #333;
}

.fmg-handbook ul,
.fmg-handbook ol {
  margin: 0 0 20px !important;
  padding-left: 25px !important;
}

.fmg-handbook ul {
  list-style: disc outside !important;
}

.fmg-handbook ol {
  list-style: decimal outside !important;
}

.fmg-handbook li {
  display: list-item !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  line-height: 1.6;
  color: #333;
}

.fmg-handbook ul li {
  list-style: disc outside !important;
}

.fmg-handbook ol li {
  list-style: decimal outside !important;
}

.fmg-handbook .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  margin-bottom: 30px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fmg-handbook table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background-color: #fff;
}

.fmg-handbook th,
.fmg-handbook td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.fmg-handbook th:last-child,
.fmg-handbook td:last-child {
  border-right: none;
}

.fmg-handbook th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.fmg-handbook tr:last-child td {
  border-bottom: none;
}

.fmg-handbook tr:nth-child(even) {
  background-color: #fafafa;
}

@media screen and (max-width: 768px) {
  .fmg-handbook h1 { font-size: 22px; }
  .fmg-handbook h2 { font-size: 20px; }
  .fmg-handbook h3 { font-size: 16px; }
  .fmg-handbook th,
  .fmg-handbook td { padding: 10px; font-size: 14px; }
}
