/*
Theme Name: Maverick Minds Theme
Theme URI: https://example.com
Author: Codex
Description: Bootstrap based jobs portal theme for Maverick Minds.
Version: 1.0.0
Text Domain: maverick-minds
*/

:root {
  --mm-site-width: 1180px;
  --mm-primary: #75c8ef;
  --mm-primary-dark: #10274b;
  --mm-bg: #eef1f5;
  --mm-surface: #ffffff;
  --mm-text: #18253d;
  --mm-muted: #6f7f97;
  --mm-border: #d8e5f0;
  --mm-footer: #171f2a;
  --mm-shadow: 0 8px 24px rgba(13, 39, 75, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body:not(.mm-admin-body) .site-header .container,
body:not(.mm-admin-body) .mm-hero .container,
body:not(.mm-admin-body) .mm-home-hero .container,
body:not(.mm-admin-body) main .container,
body:not(.mm-admin-body) .mm-footer .container,
body:not(.mm-admin-body) .mm-disclaimer .container {
  max-width: var(--mm-site-width);
}

a {
  color: inherit;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6edf4;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-logo {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 1;
  color: #111319;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header .brand-logo {
  font-size: 44px;
  display: inline-block;
}

.site-header .navbar {
  min-height: 86px;
}

.site-header .navbar-toggler {
  border: 1px solid #d3deea;
  border-radius: 8px;
  padding: 6px 10px;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(117, 200, 239, 0.24);
}

.main-nav {
  align-items: center;
}

.main-nav .nav-link {
  color: #1a263d;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}

.main-nav .nav-link.active {
  color: #5ab4e4;
  background: #dcebfb;
}

/* Shared hero */
.mm-home-hero,
.mm-hero {
  background: linear-gradient(95deg, #69c3ed 0%, #0f2b55 100%);
  color: #fff;
  padding: 54px 0 42px;
}

.mm-hero h1,
.mm-home-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mm-hero p,
.mm-home-subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.mm-home-subtitle {
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
}

.mm-home-search {
  max-width: 610px;
  margin: 18px auto 0;
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mm-home-search input {
  border: 0;
  outline: none;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 15px;
}

.mm-home-search button {
  border: 0;
  background: var(--mm-primary);
  color: #fff;
  width: 120px;
  min-height: 50px;
  font-weight: 700;
  font-size: 15px;
}

.mm-stats-row {
  margin-top: 22px;
}

.mm-stats-row .col-md,
.mm-stat-bottom {
  text-align: center;
}

.mm-stats-row strong,
.mm-stat-bottom strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.mm-stats-row span,
.mm-stat-bottom span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .1em;
  opacity: .9;
}

.mm-stat-bottom {
  margin-top: 8px;
}

/* Shared sections */
.mm-section {
  padding: 62px 0;
}

.mm-section-head {
  margin-bottom: 26px;
}

.mm-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mm-section-head p {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--mm-muted);
  font-size: 15px;
}

/* Buttons */
.btn-mm-primary,
.mm-cta-btn {
  border: 1px solid var(--mm-primary);
  background: var(--mm-primary);
  color: #fff;
  border-radius: 10px;
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
}

.btn-mm-primary:hover,
.mm-cta-btn:hover {
  background: #64bce8;
  border-color: #64bce8;
  color: #fff;
}

.btn-mm-primary:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.mm-small-btn,
.mm-btn-outline {
  border: 1px solid #9fd1ef;
  color: #62b8e5;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Cards */
.mm-panel,
.mm-card,
.mm-icon-card,
.mm-client-box,
.search-wrap {
  border: 1px solid var(--mm-border);
  border-radius: 14px;
  background: var(--mm-surface);
}

.mm-card {
  border-left: 3px solid #88cfee;
  box-shadow: var(--mm-shadow);
}

.mm-card-compact {
  min-height: auto;
  height: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}

.mm-card-head .mm-job-title {
  min-width: 0;
  flex: 1 1 auto;
  margin-right: 8px;
}

.mm-card-head .mm-badge {
  white-space: nowrap;
  flex: 0 0 auto;
}

.mm-job-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mm-job-company {
  margin: 8px 0 0;
  color: #5d6f89;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.mm-job-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.mm-job-meta span,
.mm-job-posted {
  color: #7485a0;
  font-size: 16px;
}

.mm-job-meta i,
.mm-job-posted i {
  color: #8ec8e9;
  margin-right: 6px;
}

.mm-card-compact hr {
  margin-top: 14px;
  margin-bottom: 12px;
  border-color: #e1e8ef;
}

.mm-card-footer {
  margin-top: auto;
}

.mm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.mm-badge.full-time,
.mm-badge.remote {
  background: #d9f5e3;
  color: #178a54;
}

.mm-badge.contract {
  background: #fbeeba;
  color: #bd6c0c;
}

/* Jobs listing page */
.mm-jobs-main {
  padding-top: 30px !important;
  padding-bottom: 52px !important;
}

.mm-jobs-search {
  padding: 24px;
  margin-bottom: 20px;
}

.mm-jobs-search .form-label {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.mm-jobs-search .form-control,
.mm-jobs-search .form-select {
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid #d1dbe7;
  font-size: 16px;
}

.mm-jobs-search .btn.btn-mm-primary {
  min-height: 52px;
}

.mm-jobs-main h2.h3 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Home utility cards */
.mm-icon-card {
  height: 100%;
  text-align: center;
  padding: 24px 16px;
}

.mm-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mm-icon-circle.mm-blue { background: #e7f3ff; color: #69b8e7; }
.mm-icon-circle.mm-green { background: #def7e9; color: #24a76b; }
.mm-icon-circle.mm-yellow { background: #fff3d7; color: #d39a23; }
.mm-icon-circle.mm-lightblue { background: #e8f3fb; color: #5db4e2; }

.mm-icon-card h3,
.mm-how-section h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.mm-icon-card p,
.mm-how-section p {
  margin: 8px 0 0;
  color: #6e7c93;
  font-size: 14px;
}

.mm-step-badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(145deg, #79c9ee, #2f8bc8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 800;
}

.mm-why-section {
  padding-bottom: 40px;
}

.mm-how-section {
  padding-top: 40px;
  padding-bottom: 56px;
}

.mm-how-section .mm-section-head {
  margin-bottom: 20px;
  text-align: center;
}

.mm-how-section .mm-section-head p {
  max-width: 100%;
  margin: 10px auto 0;
  text-align: center;
}

.mm-how-section .row {
  align-items: flex-start;
}

.mm-how-section .col-md-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mm-how-section p {
  max-width: 430px;
}

.mm-training-left,
.mm-training-right {
  border-radius: 12px;
  padding: 22px;
}

.mm-training-left {
  background: transparent;
}

.mm-training-left p,
.mm-training-left li {
  color: #2b3950;
  font-size: 15px;
  line-height: 1.6;
}

.mm-list-title {
  margin: 14px 0 8px;
  font-weight: 700;
}

.mm-training-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-training-left li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.mm-training-left li::before {
  content: "\\F633";
  font-family: bootstrap-icons;
  position: absolute;
  left: 0;
  color: #1da364;
}

.mm-training-right {
  background: linear-gradient(135deg, #75c9ee, #2d8ec8);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mm-training-right i {
  font-size: 24px;
  margin-bottom: 10px;
}

.mm-training-right p {
  margin: 0 0 10px;
  font-size: 16px;
}

.mm-training-right strong {
  font-size: 18px;
}

.mm-story-section {
  background: #f3f6fa;
}

.mm-story-quote {
  max-width: 900px;
  margin: 24px auto 10px;
}

.mm-story-quote i {
  font-size: 32px;
  color: #8ec6e8;
}

.mm-story-quote p {
  margin: 10px 0;
  font-size: 24px;
  font-style: italic;
  line-height: 1.45;
}

.mm-story-quote cite {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
}

.mm-story-nav {
  width: auto;
  opacity: 1;
}

.mm-story-nav span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #157be3;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mm-story-indicators button {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: #88caee;
}

.mm-client-box {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.mm-bottom-cta {
  padding: 56px 0;
  background: linear-gradient(95deg, #0f2244 0%, #10294f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mm-bottom-cta::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -68px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(79, 142, 214, 0.2);
}

.mm-bottom-cta h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
}

.mm-bottom-cta p {
  margin: 10px auto 16px;
  max-width: 720px;
  color: #c6d8ef;
  font-size: 14px;
}

.mm-disclaimer {
  background: #fff;
  padding: 26px 0;
}

.mm-disclaimer p {
  margin: 0 0 8px;
  color: #4f5d72;
  font-size: 14px;
  line-height: 1.55;
}

.mm-modal-custom .modal-dialog {
  margin: 1rem auto;
}

.mm-modal-custom .modal-body {
  max-height: calc(100vh - 160px);
  overflow: auto;
}

/* Single job */
.mm-detail-content,
.mm-detail-sidebar,
.mm-modal-box {
  background: #fff;
  border: 1px solid var(--mm-border);
  border-radius: 14px;
}

.mm-detail-content,
.mm-detail-sidebar {
  padding: 22px;
}

.mm-detail-content h2 {
  font-size: 30px;
}

.mm-detail-content ul {
  margin-left: 18px;
}

.mm-detail-sidebar .btn {
  width: 100%;
}

/* Forms */
.form-control,
.form-select {
  border: 1px solid #d0dae6;
  border-radius: 10px;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(117, 200, 239, 0.24);
  border-color: #8acdef;
}

/* Footer */
.mm-footer {
  margin-top: 0 !important;
  background: var(--mm-footer);
  color: #f1f4f9;
  padding: 40px 0 14px;
}

.mm-footer .brand-logo {
  color: #fff;
  font-size: 42px;
}

.mm-footer a {
  color: #b7c4d3;
  text-decoration: none;
}

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

/* Admin pages (keep functional and isolated) */
.mm-admin-layout {
  min-height: 100vh;
  background: #d9dbe0;
}

.mm-admin-sidebar {
  background: #12162f;
  color: #f2f3f9;
  min-height: 100vh;
  padding: 1.4rem 1rem;
}

.mm-admin-sidebar a {
  color: #b5bed0;
  text-decoration: none;
}

.mm-admin-sidebar .active {
  background: #0e4378;
  color: #fff;
  border-radius: .75rem;
}

.mm-admin-main {
  padding: 1.8rem;
}

.mm-table th,
.mm-table td {
  vertical-align: middle;
}

.mm-stat-box {
  border-radius: .9rem;
  background: #fff;
  padding: 1.4rem;
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --mm-site-width: 960px;
  }

  .brand-logo {
    font-size: 36px;
  }

  .site-header .navbar {
    min-height: 76px;
  }

  .main-nav {
    margin-top: 12px;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px !important;
  }

  .main-nav .nav-link {
    width: 100%;
    text-align: left;
  }

  .mm-section {
    padding: 48px 0;
  }

  .mm-card-compact {
    min-height: auto;
  }

  .mm-job-company {
    font-size: 18px;
  }

  .mm-jobs-search {
    padding: 18px;
  }

  .mm-detail-content h2 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  :root {
    --mm-site-width: 100%;
  }

  body:not(.mm-admin-body) .site-header .container,
  body:not(.mm-admin-body) .mm-hero .container,
  body:not(.mm-admin-body) .mm-home-hero .container,
  body:not(.mm-admin-body) main .container,
  body:not(.mm-admin-body) .mm-footer .container,
  body:not(.mm-admin-body) .mm-disclaimer .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header .container {
    gap: 0;
  }

  .brand-logo {
    font-size: 30px;
  }

  .mm-home-hero,
  .mm-hero {
    padding: 38px 0 30px;
  }

  .mm-home-search {
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .mm-home-search input,
  .mm-home-search button {
    width: 100%;
    border-radius: 8px;
    min-height: 46px;
  }

  .mm-section {
    padding: 38px 0;
  }

  .mm-jobs-main h2.h3 {
    font-size: 28px;
    line-height: 1.2;
  }

  .mm-card-compact {
    min-height: auto;
    padding: 16px 14px;
  }

  .mm-job-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .mm-job-company {
    font-size: 18px;
  }

  .mm-job-meta span,
  .mm-job-posted {
    font-size: 15px;
  }

  .mm-card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mm-card-footer .mm-btn-outline {
    width: 100%;
    justify-content: center;
  }

  .mm-jobs-search .btn.btn-mm-primary {
    width: 100%;
  }

  .mm-story-nav {
    display: none;
  }

  .mm-bottom-cta {
    padding: 42px 0;
  }

  .mm-footer {
    padding-top: 30px;
  }

  .mm-footer .brand-logo {
    font-size: 34px;
  }

  .mm-disclaimer p {
    font-size: 13px;
  }

  .mm-story-quote p {
    font-size: 19px;
  }
}

@media (max-width: 575px) {
  .site-header .navbar {
    min-height: 68px;
  }

  .site-header .brand-logo {
    font-size: 26px;
  }

  .mm-home-title,
  .mm-hero h1 {
    font-size: 34px;
  }

  .mm-home-subtitle,
  .mm-hero p {
    font-size: 15px;
  }

  .mm-jobs-search {
    padding: 14px;
    border-radius: 12px;
  }

  .mm-jobs-search .form-label {
    font-size: 15px;
  }

  .mm-jobs-search .form-control,
  .mm-jobs-search .form-select {
    min-height: 46px;
    font-size: 15px;
  }

  .mm-section-head h2 {
    font-size: 30px;
  }

  .mm-job-title {
    font-size: 20px;
  }

  .mm-detail-content,
  .mm-detail-sidebar {
    padding: 16px;
  }

  .mm-modal-custom .modal-dialog {
    margin: .5rem;
  }
}
