/* ============================================
   Lead Manager CA - Landing Page Styles
   ============================================ */

/* Codec Pro Font Face Declarations */
/* Note: Add font files to /assets/fonts/ when available */
@font-face {
  font-family: 'Codec Pro';
  src: url('/assets/fonts/CodecPro-Regular.woff2') format('woff2'),
       url('/assets/fonts/CodecPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Codec Pro';
  src: url('/assets/fonts/CodecPro-Bold.woff2') format('woff2'),
       url('/assets/fonts/CodecPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Codec Pro';
  src: url('/assets/fonts/CodecPro-ExtraBold.woff2') format('woff2'),
       url('/assets/fonts/CodecPro-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Codec Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400; /* Regular weight for body text */
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Typography - Codec Pro Font Weights */
/* Headings: Extra Bold (800) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Codec Pro', sans-serif;
  font-weight: 800; /* Extra Bold for all headings */
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
  background-color: rgb(90, 108, 125); /* Blue-Grey (Lynch) - matches Tailwind rgb(90 108 125) */
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700; /* Bold for sub-heading */
  color: #FFFFFF; /* White text on gray blue background */
}

.nav-link {
  color: rgba(255, 255, 255, 0.8); /* Lighter white/grey for nav links */
  text-decoration: none;
  font-weight: 500 !important;
  margin-right: 1.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #FFFFFF; /* White on hover */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-btn {
  background-color: #FFA33A; /* Orange */
  color: #ffffff;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px; /* Pill shape */
  text-decoration: none;
  font-weight: 700; /* Bold for button text */
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #E8922A; /* Darker orange on hover */
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  width: 100%;
  aspect-ratio: 1920 / 995; /* Match RESIZED.jpg aspect ratio (1920x995) */
  min-height: 60vh; /* Increased minimum height */
  max-height: 100vh; /* Increased max height to show more of the image */
  background-image: url('/assets/images/RESIZED.jpg');
  background-size: cover; /* Fill entire container, removing side gaps */
  background-position: center top; /* Prioritize showing the top of the image */
  background-repeat: no-repeat;
  background-color: rgb(90, 108, 125); /* Fallback color matching header - matches Tailwind rgb(90 108 125) */
  position: relative;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
  .hero {
    height: 51.8vw; /* 995/1920 = 0.518 = 51.8% */
    min-height: 60vh;
    max-height: 85vh;
  }
}

/* Hero Text Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem;
  z-index: 10;
}

.hero-brand {
  color: #FFA33A; /* Orange */
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 2rem;
}

.hero-main-text {
  color: #FFFFFF; /* White */
  font-size: 3.5rem;
  font-weight: 800; /* Extra Bold */
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for readability */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-tagline {
  color: #FFA33A; /* Orange */
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   Blog Section
   ============================================ */

.blog-section {
  padding: 5rem 2rem;
  background-color: #ffffff;
}

.blog-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-section-title {
  font-size: 2.5rem;
  font-weight: 800; /* Extra Bold for heading */
  color: #1F2937; /* Dark grey/black */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 700; /* Bold for sub-heading */
  color: #6B7280; /* Light grey */
  margin-bottom: 3rem;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.blog-category {
  display: inline-block;
  background-color: #E6EDFF; /* Light blue background */
  color: #2950BC; /* Blue text */
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 1.5rem;
  font-weight: 800; /* Extra Bold for heading */
  color: #1F2937; /* Dark grey/black */
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 1rem;
  color: #6B7280; /* Medium grey */
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.blog-meta span {
  font-size: 0.875rem;
  color: #9CA3AF; /* Light grey */
}

.blog-meta a {
  color: #2950BC; /* Blue */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.blog-meta a:hover {
  color: #1E3A8A; /* Darker blue on hover */
}

/* submit-button removed - using blog-meta structure instead */

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: rgb(90, 108, 125) !important; /* Blue-Grey (Lynch) - matches Tailwind rgb(90 108 125) */
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800; /* Extra Bold for heading */
  color: #FFFFFF; /* White text on gray blue background */
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #E5E7EB; /* Light gray for contrast */
  font-size: 0.875rem;
}

.footer-links {
  margin-top: 1.5rem;
}

.footer-links a {
  color: #E5E7EB; /* Light gray for contrast */
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF; /* White on hover */
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white border */
  text-align: center;
}

.footer-bottom p {
  color: #D1D5DB; /* Light gray for contrast */
  font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
  .hero {
    min-height: 55vh;
    max-height: 75vh; /* Increased for tablets */
  }

  .hero-main-text {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 1rem;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 45vh;
    max-height: 65vh; /* Increased for mobile */
  }

  .hero-brand {
    font-size: 0.875rem;
    margin-top: 1rem;
  }

  .hero-main-text {
    font-size: 1.75rem;
  }

  .hero-tagline {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .hero-overlay {
    padding: 1.5rem 1rem;
  }

  .blog-section {
    padding: 3rem 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-section-title {
    font-size: 2rem;
    font-weight: 800; /* Extra Bold for heading */
  }
}

/* ============================================
   Blog Post Page
   ============================================ */

.blog-post-container {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.blog-post-container .container {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #2950BC; /* Blue */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #1E3A8A; /* Darker blue on hover */
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header .blog-category {
  display: inline-block;
  background-color: #E6EDFF; /* Light blue background */
  color: #2950BC; /* Blue text */
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700; /* Bold for sub-heading */
  margin-bottom: 1rem;
}

.blog-post-title {
  font-size: 3rem;
  font-weight: 800; /* Extra Bold for heading */
  color: #1F2937; /* Dark grey/black */
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-post-date {
  font-size: 1rem;
  color: #6B7280; /* Medium grey */
  font-weight: 400; /* Regular for text */
}

.blog-post-image {
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151; /* Dark grey for readability */
  font-weight: 400; /* Regular for text */
}

.blog-post-content p {
  margin-bottom: 1.5rem;
  font-weight: 400; /* Regular for text */
}

.blog-post-content h2 {
  font-size: 2rem;
  font-weight: 800; /* Extra Bold for heading */
  color: #1F2937;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 800; /* Extra Bold for heading */
  color: #1F2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.75rem;
  font-weight: 400; /* Regular for text */
}

.blog-post-content a {
  color: #2950BC;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-content a:hover {
  color: #1E3A8A; /* Darker blue on hover */
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-post-content blockquote {
  border-left: 4px solid #2950BC;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6B7280;
}

/* Responsive Design for Blog Post */
@media (max-width: 640px) {
  .blog-post-container {
    padding: 2rem 1rem;
  }

  .blog-post-title {
    font-size: 2rem;
    font-weight: 800; /* Extra Bold for heading */
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.75rem;
    font-weight: 800; /* Extra Bold for heading */
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
    font-weight: 800; /* Extra Bold for heading */
  }
}





/* ============================================
   Blog Editor - Sticky Quill Toolbar
   ============================================ */

/* We'll set this from JS so it matches the real navbar height */
:root {
  --lmca-nav-height: 72px; /* fallback */
}

/* Make the toolbar stay visible while scrolling the page */
/* ============================================
   Blog Editor - Fixed Quill Toolbar
   ============================================ */

#content-toolbar {
  position: sticky;
  top: calc(var(--lmca-nav-height, 72px) + 8px);
  z-index: 1200;
  background: #ffffff;

  padding: 0.5rem;

  border: 1px solid #a2a4a9;

  /* No shadow by default */
  box-shadow: none;

  transition: box-shadow 0.2s ease;
}

/* Shadow only when toolbar is floating */
#content-toolbar.is-sticky {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.351);
}


/* Quill toolbar cleanup */
#content-toolbar.ql-toolbar {
  border-radius: 6px;
}


/* If Quill applies these classes (it often does), keep them clean while sticky */
#content-toolbar.ql-toolbar {
  border-bottom: 1px solid #D1D5DB;
}


/* Prevent any weird overlap inside the editor container */
#content-editor {
  margin-top: -2px;
}



/* ============================================
   Brand Colors
   ============================================ */
/* 
  Brand Color Palette:
  - Blue-Grey (Lynch): #5A6C7D (used for navbar and footer)
  - Blue: #2950BC (used for brand name)
  - Orange: #FFA33A (used for Login button)
  - White: #FFFFFF
  
  Additional colors:
  - Dark grey: #1F2937 (headings)
  - Medium grey: #6B7280 (body text)
  - Light grey: #F5F5F5, #E5E7EB (backgrounds)
*/
