/* Brand colors for Material components - Exact EasyConvo brand colors */
:root {
  --md-primary-fg-color: #3b82f6;
  --md-primary-fg-color--dark: #1e3a8a;
  --md-accent-fg-color: #3b82f6;
  --easyconvo-navy: #1e3a8a;
  --easyconvo-blue: #3b82f6;
  --easyconvo-light-blue: #60a5fa;
  --easyconvo-gray: #64748b;
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --border: 214.3 31.8% 91.4%;
  --radius: 0.5rem;
}

/* Header (topbar) */
.md-header {
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header title text color */
.md-header__title {
  color: #1e293b !important;
}

/* Navigation links in header */
.md-header__option {
  color: #1e293b !important;
}

/* Search button and other header buttons */
.md-header__button {
  color: #1e293b !important;
}

/* Bigger logo */
.md-header__button.md-logo img { height: 56px; width: auto; }
@media (max-width: 768px){ .md-header__button.md-logo img { height: 40px; } }

/* Mobile-specific adjustments */
@media screen and (max-width: 59.9375em) {
  /* Make header smaller */
  .md-header {
    height: 3rem;
  }
  .md-header .md-logo {
    height: 1.2rem;
    padding-top: 0.2rem;
  }

  /* Reduce base font size */
  .md-typeset {
    font-size: 0.875rem; /* 14px */
  }

  /* Reduce side padding */
  .md-grid {
    padding-left: 0.5rem; /* 8px */
    padding-right: 0.5rem; /* 8px */
  }
}

/* Widen the overall content container */
.md-grid {
  max-width: 1280px;              /* was ~976px; try 1280–1400 */
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 1440px) {
  .md-grid { max-width: 1400px; } /* optional: expand on very wide screens */
}

/* Slightly reduce the default page gutters */
.md-content {
  padding-left: 8px;
  padding-right: 8px;
}

.landing .md-grid { max-width: 1400px; }

/* Right-side ToC: clean headings */
.md-sidebar--secondary .md-nav__link { font-weight: 500; }

/* Cards grid (used for main actions) */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Cards grid for guide section */
.grid.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Section headings - enhanced with modern styling */
h1, .md-typeset h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 20px 0 16px;
  color: #1e293b;
}

h2, .md-typeset h2 {
  font-size: 32px;
  margin: 50px 0 20px;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  border-radius: 2px;
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 100px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.guides { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid.cards { grid-template-columns: 1fr; }
}

/* Base card - Enhanced styling for documentation cards */
.card {
  position: relative;
  border: none;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  opacity: 0;                     /* start hidden */
  transform: translateY(12px);    /* start slightly down */
  animation: ec-fadeUp .5s ease-out forwards;
  cursor: pointer;                /* show pointer cursor on hover */
  min-height: 200px;              /* Minimum height for consistency */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Card color variations - themed for different sections */
.card:nth-child(1) {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe); /* Soft light blue */
  color: #0f172a;
  border: 1px solid #bae6fd;
}

.card:nth-child(2) {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7); /* Soft light green */
  color: #0f172a;
  border: 1px solid #bbf7d0;
}

.card:nth-child(3) {
  background: linear-gradient(135deg, #fef3c7, #fde68a); /* Soft warm yellow */
  color: #0f172a;
  border: 1px solid #fcd34d;
}

.card:nth-child(4) {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3); /* Soft light pink */
  color: #0f172a;
  border: 1px solid #f9a8d4;
}

/* Create a single clickable overlay for the entire card */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: pointer;
}

/* Staggered delays */
.grid.cards .card:nth-child(1) { animation-delay: .05s; }
.grid.cards .card:nth-child(2) { animation-delay: .12s; }
.grid.cards .card:nth-child(3) { animation-delay: .19s; }
.grid.cards .card:nth-child(4) { animation-delay: .26s; }
.grid.cards .card:nth-child(5) { animation-delay: .33s; }
.grid.cards .card:nth-child(6) { animation-delay: .40s; }

@keyframes ec-fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced hover effects - gentle like value-prop cards */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #3b82f6;
}

/* Glowing Border animation */
@keyframes glow-border {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.4);
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none; /* Remove the white overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 0; /* Keep it at 0 to prevent white overlay */
}

/* All content should be above the clickable overlay */
.card > * {
  position: relative;
  z-index: 2;
}

/* Text styling for cards */
.card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  text-shadow: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

/* Pop effect for card titles */
.card:hover h3 {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: #475569;
  opacity: 1;
}

/* Justify paragraph text */
.md-typeset p {
  text-align: justify;
}

/* Card content area that fills available space */
.card-content {
  flex-grow: 1;
}

/* Card footer for consistent link placement */
.card-footer {
  margin-top: auto;
  padding-top: 16px;
  position: relative;
}

/* Style for the actual link text inside the card */
.card-footer a[href] {
  font-weight: 700;
  color: #3b82f6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  position: relative;
  transition: all 0.2s ease;
}

/* Arrow indicator for links */
.card-footer a[href]::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Make sure link interactions still work */
.card-footer a[href]:hover {
  opacity: 1;
  padding-left: 4px;
}

.card-footer a[href]:hover::after {
  transform: translateX(4px);
}

/* Special styling for guide card links */
.card.guide .card-footer a[href] {
  color: #2563eb;
  opacity: 1;
}

/* Style for inline links in guide cards */
.card.guide a.inline-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.card.guide a.inline-link:hover {
  text-decoration: underline;
}

/* Card icon styling - enhanced for modern look */
.card-icon {
  font-size: 36px;
  margin-bottom: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Card heading is already styled above */

/* Careful with this: trims some built-in padding */
.md-main__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;   /* aligns with .md-grid */
}

/* Footer "Prev/Next" buttons – make them feel clickable */
.md-footer-nav__link {
  background: linear-gradient(90deg, #3b82f6, #1e3a8a); 
  color: #fff !important;
  border-radius: 8px; padding: 10px 18px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
.md-footer-nav__link:hover { 
  background: linear-gradient(90deg, #1e3a8a, #3b82f6); 
  transform: translateY(-2px); 
}

/* Main footer styling - Simple with EasyConvo text colors */
.md-footer {
  background: #ffffff !important;
  color: #64748b !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: none;
  padding: 0 !important;
  min-height: 1px !important;
}

.md-footer-meta {
  background: #ffffff !important;
  padding: 0 !important;
}

.md-footer-copyright {
  color: #0f172a !important;
  opacity: 0.8;
  text-align: center !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.md-footer-copyright__highlight {
  color: #3b82f6 !important;
  font-weight: 600 !important;
}

/* Remove the body padding since footer is no longer fixed */

/* Hero section styling - Split "Easy" and "Convo" colors with pop effect */
.easy-text {
  color: #0f172a;
  font-weight: 800;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
}

.convo-text {
  color: #3b82f6;
  font-weight: 800;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
}

/* Pop effect on hover */
.easy-text:hover,
.convo-text:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Add glossy effect to both parts */
.easy-text::after,
.convo-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 0.5rem 0.5rem 0 0;
  pointer-events: none;
}

/* Keep the old class for backwards compatibility but update it */
.title-highlight {
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.hero-intro {
  font-size: 22px;
  line-height: 1.6;
  max-width: 800px;
  margin: 24px 0 40px;
  color: #475569;
  padding: 16px 24px;
  border-left: 4px solid #3b82f6;
  background-color: #f8fafc;
  border-radius: 0 8px 8px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Add fade in animation from the provided CSS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Images – consistent and centered */
.md-content img {
  width: 600px; height: auto; display: block; margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Callouts more modern and Streamlit-like */
.md-typeset .admonition { 
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Value proposition section */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.value-prop {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.value-prop:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #3b82f6;
}

.value-icon {
  font-size: 32px;
  margin-bottom: 16px;
  background: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.value-prop h3 {
  color: #1e293b;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.value-prop:hover h3 {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.value-prop p {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.value-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  margin-top: auto;
}

.value-link:hover {
  color: #1e3a8a;
  text-decoration: underline;
  transform: translateX(2px);
}

/* Responsive adjustments for value props */
@media (max-width: 900px) {
  .value-props { 
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Quick links styling */
.md-typeset .admonition.tip {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

/* FAQ Question styling - Change from green to EasyConvo light blue */
.md-typeset .admonition.question,
.md-typeset details.question {
  border-color: #60a5fa !important;
  box-shadow: 0 0.2rem 0.5rem rgba(30, 58, 138, 0.15) !important;
}

.md-typeset .admonition.question > .admonition-title,
.md-typeset details.question > summary {
  background-color: #4a98f7 !important;
  border-color: #60a5fa !important;
  color: white !important;
}

.md-typeset .admonition.question > .admonition-title::before,
.md-typeset details.question > summary::before {
  background-color: white !important;
  mask-image: var(--md-admonition-icon--question) !important;
  -webkit-mask-image: var(--md-admonition-icon--question) !important;
}

/* Reduce base font size on mobile */
  .md-typeset {
    font-size: 0.875rem; /* 14px */
  }

/* Reduce side padding on mobile */
  .md-grid {
    padding-left: 0.5rem; /* 8px */
    padding-right: 0.5rem; /* 8px */
  }

