/*
 Theme Name: OptimElle Astra Child
 Theme URI: https://optimellelife.com
 Description: Child theme for OptimElle Life based on Astra.
 Author: OptimElle Life
 Template: astra
 Version: 1.0.0
*/

.optimelle-card {
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.optimelle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px -40px rgba(15, 23, 42, 0.55);
}

.optimelle-hub-card {
  border-radius: 1.5rem;
  box-shadow: 0 22px 55px -28px rgba(126, 36, 75, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.optimelle-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px -40px rgba(126, 36, 75, 0.55);
}

/* Glassmorphic form card */
.optimelle-kit-form-wrapper {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(126, 36, 251, 0.15);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

/* Subtle glow effect on form card */
.optimelle-kit-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
}

.optimelle-kit-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.optimelle-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Input field */
.optimelle-kit-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 0 rgba(126, 36, 251, 0);
}

.optimelle-kit-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.optimelle-kit-input:focus {
    border-color: rgba(126, 36, 251, 0.5);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 4px rgba(126, 36, 251, 0.15);
    transform: translateY(-2px);
}

/* Button */
.optimelle-kit-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 1.1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #7e24fb 0%, #a855f7 100%);
    color: #ffffff;
    box-shadow: 
        0 12px 30px -8px rgba(126, 36, 251, 0.6),
        0 0 0 0 rgba(168, 85, 247, 0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

/* Button hover glow effect */
.optimelle-kit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.optimelle-kit-button:hover::before {
    opacity: 1;
}

.optimelle-kit-button:hover {
    background: linear-gradient(135deg, #6b1fd9 0%, #9333ea 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px -12px rgba(126, 36, 251, 0.7),
        0 0 0 6px rgba(168, 85, 247, 0.2);
}

.optimelle-kit-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 10px 20px -8px rgba(126, 36, 251, 0.6),
        0 0 0 4px rgba(168, 85, 247, 0.15);
}

/* Meta text below form */
.optimelle-kit-meta {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-align: center;
}

/* Tablet and Desktop - side by side layout */
@media (min-width: 641px) {
    .optimelle-kit-form {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

    .optimelle-kit-input {
        flex: 1 1 58%;
        min-width: 0;
    }

    .optimelle-kit-button {
        flex: 0 1 42%;
        width: auto;
        padding: 1.1rem 2rem;
        white-space: nowrap;
    }

    .optimelle-kit-form-wrapper {
        padding: 3rem 2.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .optimelle-kit-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .optimelle-kit-form-wrapper {
        padding: 1.75rem 1.25rem;
    }

    .optimelle-kit-input,
    .optimelle-kit-button {
        padding: 0.9rem 1.25rem;
    }
}

.optimelle-glass-card {
  width: min(920px, calc(100vw - 56px)) !important;
  max-width: 920px !important;
  margin: 0 !important;
  border-radius: 24px !important;
  padding: 24px 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(40, 43, 53, 0.38) !important;
  box-shadow: 0 18px 45px -24px rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

.optimelle-glass-card .elementor-widget-container {
  max-width: 100% !important;
}

.optimelle-glass-card h1 {
  margin: 0 0 12px 0 !important;
  color: #ffffff !important;
  line-height: 1.14 !important;
  font-size: clamp(2rem, 4.6vw, 3.1rem) !important;
  letter-spacing: -0.01em !important;
}

.optimelle-glass-card h2,
.optimelle-glass-card h3 {
  margin: 0 0 10px 0 !important;
  color: rgba(255, 255, 255, 0.96) !important;
  line-height: 1.2 !important;
  font-size: clamp(1.35rem, 2.7vw, 2.05rem) !important;
  letter-spacing: -0.005em !important;
}

.optimelle-glass-card p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 760px !important;
  line-height: 1.55 !important;
  font-size: clamp(1rem, 1.6vw, 1.2rem) !important;
}

@media (max-width: 767px) {
  .optimelle-glass-card {
    max-width: 100% !important;
    width: calc(100% - 28px) !important;
    margin: 0 14px !important;
    padding: 16px 16px !important;
    border-radius: 16px !important;
    backdrop-filter: blur(9px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(9px) saturate(120%) !important;
  }

  .optimelle-glass-card h1 {
    font-size: clamp(1.8rem, 8vw, 2.3rem) !important;
  }

  .optimelle-glass-card h2,
  .optimelle-glass-card h3 {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem) !important;
  }

  .optimelle-glass-card p {
    font-size: 1rem !important;
  }
}
/* Hub article card – pilnos apimties blokai vienas po kito */

.optimelle-article-card {
  max-width: 960px;
  margin: 0 auto 3rem auto;
  padding: 2.25rem 1.75rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px -40px rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.optimelle-article-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #4a2c3a;
  font-weight: 700;
}

.optimelle-article-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 0.9rem 0;
}

.optimelle-article-card .optimelle-article-media {
  margin-top: 1.75rem;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  color: #fef2f2;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.85);
}

.optimelle-article-card .optimelle-article-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.optimelle-article-card .optimelle-article-media-caption {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .optimelle-article-card {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2.25rem;
  }

  .optimelle-article-card h2 {
    font-size: 1.6rem;
  }
}

/* Hero CTA mygtukas ant stiklinės kortos – pilnai perrašome Elementor/Astra stilius */
.optimelle-glass-card .elementor-button-wrapper {
  width: auto !important;
  display: inline-flex !important;
}

.optimelle-glass-card .elementor-button {
  all: unset;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem !important;
  border-radius: 9999px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 18px 45px -24px rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
  width: auto !important;
  max-width: 260px !important;
}

.optimelle-glass-card .elementor-button:hover {
  background: linear-gradient(135deg, #7E244B 0%, #D48E96 100%) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 26px 70px -32px rgba(15, 23, 42, 0.95) !important;
  transform: translateY(-2px);
}

.optimelle-glass-card .elementor-button:active {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.85) !important;
}

/* Perrašom Astra/Elementor "Full Width" nustatymus tik šioje hero kortoje */
.optimelle-glass-card .elementor-button.elementor-size-lg,
.optimelle-glass-card .elementor-button.elementor-button-block {
  width: auto !important;
}

/* Nuimame seno "ilgo" mygtuko foną ir rėmelį aplink naują CTA */
.optimelle-glass-card .elementor-widget-button,
.optimelle-glass-card .elementor-widget-button .elementor-widget-container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.optimelle-contact-card {
  max-width: 920px;
  margin: 0 auto 3rem auto;
  padding: 2.5rem 2.25rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 80px -40px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.optimelle-contact-card .wpforms-field input[type="text"],
.optimelle-contact-card .wpforms-field input[type="email"],
.optimelle-contact-card .wpforms-field input[type="tel"],
.optimelle-contact-card .wpforms-field input[type="url"],
.optimelle-contact-card .wpforms-field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: #111827;
  transition: all 0.2s ease;
}

.optimelle-contact-card .wpforms-field input::placeholder,
.optimelle-contact-card .wpforms-field textarea::placeholder {
  color: #9ca3af;
}

.optimelle-contact-card .wpforms-field input:focus,
.optimelle-contact-card .wpforms-field textarea:focus {
  outline: none;
  border-color: rgba(126, 36, 75, 0.6);
  background: #ffffff;
  box-shadow: 0 10px 24px -14px rgba(126, 36, 75, 0.6);
}

.optimelle-contact-card .wpforms-submit-container {
  margin-top: 1.25rem;
}

.optimelle-contact-card .wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #7E244B 0%, #D48E96 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 45px -24px rgba(15, 23, 42, 0.9);
  transition: all 0.2s ease;
}

.optimelle-contact-card .wpforms-submit:hover {
  background: linear-gradient(135deg, #6B1F3C 0%, #C66D8B 100%);
  box-shadow: 0 26px 70px -32px rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

.optimelle-contact-card .wpforms-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.8);
}

/* Contact page social icons – simple row of original images */
.optimelle-contact-social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.35rem;
}

.optimelle-contact-social a {
  display: inline-flex;
  align-items: center;
}

.optimelle-contact-social img {
  width: 32px;
  height: 32px;
  display: block;
}

/* --- EDITORIAL HUB INTRO CARDS --- */
.optimelle-editorial-card {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 10px 30px -10px rgba(126, 36, 75, 0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  height: auto !important; /* FIXED: Removed height 100% to stop stretching */
  flex-grow: 0 !important; /* Ensures it doesn't grow to fill space unnecessarily */
  margin-bottom: 20px !important; /* Adds space if wrap fails in editor */
}

/* Fallback flex setup to force cards to sit side by side if Elementor row settings fail */
@media (min-width: 768px) {
  .optimelle-editorial-card {
    width: calc(50% - 10px) !important; /* Forces 2 columns */
    display: inline-block !important; /* Fallback for flex row */
    vertical-align: top !important;
  }
}

.optimelle-editorial-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 35px -10px rgba(126, 36, 75, 0.15) !important;
  background: rgba(255, 255, 255, 0.85) !important;
}

/* Subtle gold accent line */
.optimelle-editorial-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 4px !important;
  height: 100% !important;
  background: linear-gradient(to bottom, #D48E96, #7E244B) !important;
  opacity: 0.7 !important;
}

.optimelle-editorial-card h3,
.optimelle-editorial-card h4 {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  color: #4a2c3a !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.optimelle-editorial-card p {
  margin: 0 !important;
  color: #555 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}
/* Target Elementor Nav Menu & WordPress Menu */
.optimelle-submenu .elementor-nav-menu,
.optimelle-submenu ul.menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Hide Elementor pointers/lines */
.optimelle-submenu .elementor-nav-menu--main .elementor-item:after,
.optimelle-submenu .elementor-nav-menu--main .elementor-item:before {
  display: none !important;
}

/* Pill Styling */
.optimelle-submenu .elementor-nav-menu a,
.optimelle-submenu ul.menu a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.65rem 1.6rem !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #4a2c3a !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08) !important;
  line-height: 1 !important;
}

/* Hover & Active State */
.optimelle-submenu .elementor-nav-menu a:hover,
.optimelle-submenu ul.menu a:hover,
.optimelle-submenu .elementor-nav-menu a.elementor-item-active,
.optimelle-submenu .elementor-nav-menu a.current-menu-item,
.optimelle-submenu ul.menu li.current-menu-item a {
  background: linear-gradient(135deg, #7E244B 0%, #D48E96 100%) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px -10px rgba(126, 36, 75, 0.5) !important;
}

/* Mobile Layout - Shortened Text & Wrapping */
@media (max-width: 767px) {
  .optimelle-submenu .elementor-nav-menu,
  .optimelle-submenu ul.menu {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    gap: 8px !important;
  }
  
  .optimelle-submenu .elementor-nav-menu::-webkit-scrollbar,
  .optimelle-submenu ul.menu::-webkit-scrollbar {
    display: none !important;
  }

  .optimelle-submenu .elementor-nav-menu a,
  .optimelle-submenu ul.menu a {
    white-space: normal !important;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.72rem !important;
  }

  /* Hide the long part of the text on mobile to keep pills compact */
  .optimelle-submenu .elementor-nav-menu a span.label-extra,
  .optimelle-submenu ul.menu a span.label-extra {
    display: none !important;
  }
}
/* Article tables – consistent styling across all posts (WP + Elementor Theme Post Content) */
.entry-content table,
.elementor-widget-theme-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px -24px rgba(15, 23, 42, 0.25);
}

/* Tables with proper <thead> */
.entry-content thead,
.elementor-widget-theme-post-content thead {
  background: linear-gradient(135deg, #7E244B 0%, #D48E96 100%);
}

.entry-content thead th,
.elementor-widget-theme-post-content thead th {
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Fallback – only when there is NO <thead> in the table */
.entry-content table:not(:has(thead)) tr:first-child th,
.entry-content table:not(:has(thead)) tr:first-child td,
.elementor-widget-theme-post-content table:not(:has(thead)) tr:first-child th,
.elementor-widget-theme-post-content table:not(:has(thead)) tr:first-child td {
  background: linear-gradient(135deg, #7E244B 0%, #D48E96 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
}

.entry-content tbody td,
.elementor-widget-theme-post-content tbody td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}

/* Zebra rows for readability */
.entry-content tbody tr:nth-child(even),
.elementor-widget-theme-post-content tbody tr:nth-child(even) {
  background: #fdf2f8;
}

/* Remove bottom border for last row */
.entry-content tbody tr:last-child td,
.elementor-widget-theme-post-content tbody tr:last-child td {
  border-bottom: none;
}

/* Make tables scrollable on small screens */
@media (max-width: 640px) {
  .entry-content table,
  .elementor-widget-theme-post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content thead th,
  .elementor-widget-theme-post-content thead th {
    font-size: 0.78rem;
    padding: 0.7rem 0.8rem;
  }

  .entry-content tbody td,
  .elementor-widget-theme-post-content tbody td {
    font-size: 0.82rem;
    padding: 0.7rem 0.8rem;
  }
}

/* Article images – soft rounded corners and subtle shadow */
.entry-content img,
.elementor-widget-theme-post-content img {
  border-radius: 18px;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.55);
}

/* Enforce image styling against theme defaults */
.elementor-widget-theme-post-content img {
  border-radius: 18px !important;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.55) !important;
}

/* Quick Navigation card (auto-generated TOC) */
.qnav-card {
  border: 0.5px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  font-family: inherit;
  background: #ffffff;
}

.qnav-header {
  background: linear-gradient(135deg, #7E244B 0%, #D48E96 100%);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
}

.qnav-header span {
  display: inline-block;
}

.qnav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 1rem 1.2rem;
  gap: 4px;
  background: #ffffff;
}

.qnav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 13.5px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}

.qnav-item:hover {
  background: #fdf2f8;
  color: #7E244B;
}

.qnav-num {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: #7E244B;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .qnav-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth anchor scroll & offset under sticky header */
html {
  scroll-behavior: smooth;
}

.entry-content h2,
.elementor-widget-theme-post-content h2 {
  scroll-margin-top: 120px;
}

/* FAQ Accordion */
.faq-accordion {
  border: 0.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.faq-accordion .faq-item {
  border-bottom: 0.5px solid #f1f5f9;
}

.faq-accordion .faq-item:last-child {
  border-bottom: none;
}

.faq-accordion .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  gap: 12px;
  user-select: none;
}

.faq-accordion .faq-q:hover {
  background: #fdf2f8;
  color: #7E244B;
}

.faq-accordion .faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #D48E96;
  transition: transform 0.25s ease;
}

.faq-accordion .faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-accordion .faq-a {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion .faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 1.25rem 1rem 1.25rem;
}

.qnav-back-button {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  color: #1a1a2e;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.qnav-back-button.qnav-back-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qnav-back-button:hover,
.qnav-back-button:focus-visible {
  background: #1a1a2e;
  color: #ffffff;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.qnav-back-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .qnav-back-button {
    bottom: 30px;
    right: 20px;
    padding: 12px 14px;
    font-size: 12px;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
  }

  .qnav-back-label {
    display: none;
  }
}

@media (max-width: 374px) {
  .qnav-back-button {
    right: 14px;
    bottom: 22px;
  }
}
