/* =========================================
   GLOBAL THEME & HELPERS  (All pages)
   ========================================= */
:root {
  --mavex-red-bright: #E00000;
  --mavex-red-dark: #A70000;
  --mavex-slate: #2F3A48;
  --mavex-white: #FFFFFF;

  --bg-main: #05070b;
  --bg-soft: #111621;
  --border-soft: #222a37;
  --text-main: #f5f5f7;
  --text-muted: #b4bcc8;
}

/* ----- Layout: keep footer at bottom on short pages ----- */
html,
body {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* main content grows to push footer down */
main {
  flex: 1 0 auto;
}

.mavex-body {
  background: radial-gradient(circle at top, #151b26 0, #05070b 60%, #000 100%);
  color: var(--text-main);
}

/* simple text helpers (used on all pages) */
.text-muted-50 { color: rgba(180, 188, 200, 0.5) !important; }
.text-muted-70 { color: rgba(180, 188, 200, 0.7) !important; }
.tracking-wide { letter-spacing: 0.12em; }


/* =========================================
   NAVBAR SECTION  (All pages)
   ========================================= */
.mavex-nav {
  background: linear-gradient(
    to right,
    rgba(5, 7, 11, 0.98),
    rgba(47, 58, 72, 0.96)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mavex-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, #ff7f7f, var(--mavex-red-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--mavex-white);
  box-shadow: 0 0 16px rgba(224, 0, 0, 0.9);
}

.navbar-dark .nav-link {
  font-size: 0.88rem;
}


/* =========================================
   HERO SECTION – HOMEPAGE
   (index.html top banner)
   ========================================= */
.mavex-hero {
  height: 70vh;
  min-height: 440px;
  position: relative;
  border-bottom: none;           /* removed line to avoid white strip */
  overflow: hidden;
}

.mavex-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/269077/pexels-photo-269077.jpeg");
  background-size: cover;
  background-position: center;
  filter: grayscale(10%) brightness(0.6);
  transform: scale(1.03);
}

.mavex-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 0, 0, 0.5), transparent 60%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0.9), rgba(5, 7, 11, 0.96));
}

.mavex-hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.mavex-hero-title span {
  color: var(--mavex-red-bright);
}

.mavex-hero-kicker,
.mavex-hero-subtitle {
  position: relative;
  z-index: 1;
}

.mavex-hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.mavex-hero-subtitle {
  max-width: 620px;
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* =========================================
   BUTTON STYLES  (Shared – Home, Blog, Contact)
   ========================================= */
.mavex-btn-primary {
  background: linear-gradient(135deg, var(--mavex-red-bright), var(--mavex-red-dark));
  color: var(--mavex-white);
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(224, 0, 0, 0.7);
}
.mavex-btn-primary:hover {
  color: var(--mavex-white);
  box-shadow: 0 0 26px rgba(224, 0, 0, 0.9);
}

.mavex-btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 11, 0.7);
  color: var(--text-main);
  font-size: 0.9rem;
}
.mavex-btn-ghost:hover {
  border-color: rgba(224, 0, 0, 0.7);
  color: var(--text-main);
}


/* =========================================
   HOME SECTIONS
   - Category cards (index.html)
   - Newsletter (index.html)
   ========================================= */

/* Category cards on homepage (Explore by Category) */
.mavex-category-card {
  position: relative;
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(224, 0, 0, 0.18), #111621);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: inherit;
  text-decoration: none;

  overflow: hidden;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out,
    background 0.22s ease-out;
  animation: mavex-card-enter 0.55s ease-out both;
}

/* subtle stagger animation */
.mavex-category-card:nth-child(1) { animation-delay: 0.03s; }
.mavex-category-card:nth-child(2) { animation-delay: 0.09s; }
.mavex-category-card:nth-child(3) { animation-delay: 0.15s; }

/* glowing edge overlay */
.mavex-category-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0,
      rgba(224, 0, 0, 0.32),
      transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  transform: translate3d(-10px, -10px, 0);
  pointer-events: none;
}

.mavex-category-card:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: rgba(224, 0, 0, 0.55);
  background:
    radial-gradient(circle at top left, rgba(224, 0, 0, 0.26), #111621);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
}
.mavex-category-card:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* chip at top */
.mavex-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

/* title */
.mavex-category-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: var(--text-main);
}

/* description */
.mavex-category-copy {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

/* bottom meta row */
.mavex-category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* arrow text */
.mavex-category-arrow {
  font-weight: 500;
  color: var(--mavex-red-bright);
  transition: transform 0.2s ease-out, color 0.2s ease-out;
}

.mavex-category-card:hover .mavex-category-arrow {
  transform: translateX(3px);
  color: #ff4444;
}

/* entrance animation */
@keyframes mavex-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Newsletter box on homepage */
.mavex-newsletter-box {
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(224, 0, 0, 0.16), #111621);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

/* Shared input style (newsletter + contact form) */
.mavex-input {
  background: transparent;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}
.mavex-input::placeholder {
  color: var(--text-muted);
}


/* =========================================
   ABOUT SECTION
   - Hero for about.html
   ========================================= */
.about-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh;
  background-image: url("https://images.pexels.com/photos/269077/pexels-photo-269077.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 0, 0, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.98));
}

.about-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: var(--text-main);
}

/* About & Contact hero titles (white + red mix) */
.about-hero-title,
.contact-hero-title {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.about-hero-title span,
.contact-hero-title span {
  color: var(--mavex-red-bright);
}

/* =========================================
   BLOG SECTION
   - Blog listing & cards (blog.html)
   - Related posts (post.html)
   - Also used on homepage "Latest from Mavex"
   ========================================= */

/* Blog listing hero */
.blog-hero-section {
  position: relative;
  width: 100%;
  min-height: 45vh;
  background-image: url("https://images.pexels.com/photos/269077/pexels-photo-269077.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  border-bottom: none;
  overflow: hidden;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 0, 0, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.98));
}

.blog-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  color: var(--text-main);
}

/* ================= POST BODY ================= */

/* Body base */
.blog-content{
  font-weight: 400;
  line-height: 1.6;
}

/* Excerpt (under title) */
#post-container .lead{
  font-size: 1.15rem;
  line-height: 1.75;
}

/* Highlight / bold only */
.blog-content strong,
.blog-content .mavex-hl{
  font-weight: 700;
}

/* Paragraphs – NO big gap line-by-line */
.blog-content p{
  margin: 0;
}

/* GAP: paragraph → list */
.blog-content p + ul,
.blog-content p + ol{
  margin-top: 0.85rem;
}

/* Lists – section gap only */
.blog-content ul,
.blog-content ol{
  margin: 0.85rem 0;
  padding-left: 1.25rem;
}

/* Bullets – tight (no extra spacing per item) */
.blog-content li{
  margin: 0.15rem 0;
}

/* GAP: list → paragraph */
.blog-content ul + p,
.blog-content ol + p{
  margin-top: 0.85rem;
}

/* GAP: list → list (bullet ↔ number) */
.blog-content ul + ol,
.blog-content ol + ul,
.blog-content ul + ul,
.blog-content ol + ol{
  margin-top: 0.95rem;
}


/* Better "block" gaps */
.blog-content p{
  margin: 0 0 1rem;
}

.blog-content ul,
.blog-content ol{
  margin: .6rem 0 1rem 1.25rem;  /* top gap, bottom gap, left indent */
  padding: 0;
}

.blog-content li{
  margin: 0 0 .35rem;           /* small gap between list items */
}

/* Extra gap when switching between paragraph and list */
.blog-content p + ul,
.blog-content p + ol{
  margin-top: .35rem;
}

.blog-content ul + p,
.blog-content ol + p{
  margin-top: .85rem;
}
/* Links inside body */
.blog-content a{
  color: #1a73e8;
  text-decoration: underline;
  font-weight: 500;
  word-break: break-word;
}
.blog-content a:hover{
  color: #0b57d0;
}

/* ================= TITLES ================= */

.blog-hero-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}
.blog-hero-title span {
  color: var(--mavex-red-bright);
}

.blog-hero-subtitle {
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ================= BLOG CARDS ================= */

.latest-card {
  background: var(--bg-soft);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.latest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 0, 0, 0.7);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}
/* Featured image container */
.latest-card-image-wrap {
  position: relative;
  padding-top: 56.25%;
  background: radial-gradient(circle at 30% 0, #ff7f7f, #2f3a48);
}
.latest-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category badge */
.latest-card-category {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  letter-spacing: 0.04em;
}
.latest-card-category.ai {
  background: rgba(224, 0, 0, 0.85);
}
.latest-card-category.career {
  background: rgba(167, 0, 0, 0.9);
}
.latest-card-category.marketing {
  background: rgba(47, 58, 72, 0.95);
}

/* Card body */
.latest-card-body {
  padding: 0.9rem 1rem 1rem;
}

/* Meta row */
.latest-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Title */
.latest-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

/* Excerpt */
.latest-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Read more link */
.latest-card-link {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--mavex-red-bright);
  font-weight: 500;
}
.latest-card-link:hover {
  text-decoration: underline;
}


/* =========================================
   CONTACT HERO SECTION
   - Top banner on contact.html
   ========================================= */
.contact-hero-section {
  position: relative;
  width: 100%;
  min-height: 55vh;
  background-image: url("https://images.pexels.com/photos/269077/pexels-photo-269077.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(224, 0, 0, 0.50), transparent 60%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.98));
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: var(--text-main);
}


/* =========================================
   CONTACT FORM SECTION
   - contact.html (form uses .mavex-input + buttons)
   ========================================= */

/* Wrapper to center the contact form content (optional) */
.contact-section-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Card container for the form (optional) */
.contact-form-card {
  background: var(--bg-soft);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Labels inside contact form */
.contact-form-card label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Extra spacing for button in form */
.contact-form-card button {
  margin-top: 0.8rem;
}

/* Better focus state for all .mavex-input fields (contact + newsletter) */
.mavex-input:focus {
  border-color: var(--mavex-red-bright);
  box-shadow: 0 0 12px rgba(224, 0, 0, 0.35);
  color: var(--text-main);
}


/* =========================================
   PRIVACY / TERMS SECTION
   - privacy.html & terms.html use global typography
   ========================================= */

/* Example (optional):
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}
.legal-page h1, .legal-page h2 {
  margin-top: 1rem;
}
*/


/* =========================================
   FOOTER SECTION  (All pages)
   ========================================= */
.mavex-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #05070b;
  color: var(--text-main);
  flex-shrink: 0;      /* keep footer at bottom */
}

/* top grid row in footer */
.mavex-footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* main footer brand title */
.mavex-footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* section headings (Navigation, Categories, Subscribe) */
.mavex-footer-heading {
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* round logo in footer (reused) */
.mavex-footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mavex-red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* footer links (nav, categories, legal, LinkedIn) */
.mavex-footer-link {
  color: var(--text-muted);
  text-decoration: none;
}
.mavex-footer-link:hover {
  color: var(--mavex-red-bright);
  text-decoration: none;
}

/* social icon circles */
.mavex-social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition:
    background 0.2s ease-out,
    color 0.2s ease-out,
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out;
}

.mavex-social:hover {
  background: linear-gradient(135deg, var(--mavex-red-bright), var(--mavex-red-dark));
  border-color: transparent;
  color: var(--mavex-white);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(224, 0, 0, 0.65);
}

/* footer newsletter form spacing */
.mavex-newsletter-form input {
  font-size: 0.8rem;
}
.mavex-newsletter-form button {
  font-size: 0.8rem;
}

/* small bottom bar */
.mavex-footer-bottom {
  text-align: center;
}

/* =========================================
   RESPONSIVE  (All pages)
   ========================================= */
@media (max-width: 768px) {
  .mavex-hero {
    height: auto;
    padding-block: 2.4rem;
  }

  .about-hero-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .blog-hero-content {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  .contact-hero-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-form-card {
    padding: 1.3rem 1.1rem;
  }

  .contact-section-wrapper {
    padding: 1.2rem 0;
  }
}



























