/* ===============================
   Breadcrumbs navigation
   =============================== */

.breadcrumb-scroll {
    overflow-x: auto;
    white-space: nowrap;
    background: transparent;
    border: none;
    padding: 4px 0;
    margin: -5px 0 10px;
    box-shadow: none;
    font-family: system-ui, sans-serif;
    max-width: 100%;
    padding-left: 10px; /* Adds left spacing */
}

.breadcrumb-scroll a,
.breadcrumb-scroll span {
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    color: #444;
    margin-right: 6px;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-scroll a:hover {
    color: #0071e3;
    text-decoration: underline;
}

.breadcrumb-scroll span.separator {
    color: #999;
    margin-right: 6px;
}

/* ===============================
   Global search input styling
   =============================== */

input[type="search"] {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
}

/* ==========================================
   Amer Experience header layout & tagline
   Logo left – title + tagline stacked right
   ========================================== */

.site-branding {
    display: grid;
    grid-template-columns: auto 1fr;  /* logo | text */
    grid-template-rows: auto auto;    /* title then tagline */
    column-gap: 14px;
    align-items: center;
    justify-content: start;
    margin: 15px 0 0 12px;
}

.site-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.site-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.site-description {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
}

/* Header images & typography */

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title a {
    display: block;
    font-size: clamp(14px, 2.8vw, 21px);
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
}

.site-description {
    display: block;
    font-size: clamp(10px, 1.5vw, 13px); /* smaller than title */
    font-weight: 400;
    letter-spacing: 1.8px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFDE59; /* gold */
}

/* Header – mobile tweaks */

@media (max-width: 600px) {
    .site-branding {
        column-gap: 10px;
        margin-left: 10px;
        margin-top: 16px;
    }

    .site-logo img {
        max-height: 42px;
    }

    .site-title a {
        font-size: clamp(13px, 3vw, 18px);
    }

    .site-description {
        font-size: 11px;
        letter-spacing: 1.4px;
    }
}

/* Header – tablet tweaks */

@media (min-width: 601px) and (max-width: 900px) {
    .site-logo img {
        max-height: 46px;
    }

    .site-title a {
        font-size: clamp(14px, 2.4vw, 20px);
    }

    .site-description {
        font-size: 12px;
    }
}

/* ==========================================
   Back-to-top button – AmerExperience
   ========================================== */

/* Base position and hidden state */

.ae-scroll-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    background: #CC0000; /* AmerExperience red */
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.2s ease;
    z-index: 9999;
}

/* Fade-in active state */

.ae-scroll-top.active {
    opacity: 0.85;
    pointer-events: auto;
}

/* Hover brightness */

.ae-scroll-top:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Icon only */

.ae-scroll-top-icon {
    margin: 0;
    padding: 0;
}

/* Mobile back-to-top size */

@media (max-width: 768px) {
    .ae-scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

/* ==========================================
   Sticky CTA bar – travel (all devices)
   Slim red bar at bottom
   ========================================== */

.ae-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #C40000; /* AmerExperience red */
    color: #fff;
    padding: 6px 10px; /* slim height */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* spacing between text and button */
    font-size: 13px;
    line-height: 1.2;
    z-index: 9998; /* back-to-top button stays above */
    box-shadow: 0 -2px 4px rgba(0,0,0,0.18);
}

/* CTA button – pill style */

.ae-cta-btn {
    background: #fff;
    color: #C40000;
    padding: 6px 14px;
    border-radius: 999px; /* pill */
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* Close (X) button for travel CTA */

.ae-close-btn {
    margin-left: 8px;
    font-size: 22px;     /* bigger X */
    cursor: pointer;
    color: #000;         /* black X */
    font-weight: 700;
    line-height: 1;
}

/* Mobile layout for travel CTA */

@media screen and (max-width: 600px) {
    .ae-sticky-cta {
        flex-wrap: wrap;
        text-align: center;
        padding: 6px 8px;
        gap: 8px;
    }
}

/* ==========================================
   Global bottom spacing for sticky bars
   (Prevents last paragraph from being hidden)
   ========================================== */

body {
    padding-bottom: 52px !important;
}

/* ==========================================
   Sticky CTA bar – Seguros Amer (mobile)
   WhatsApp contact bar
   ========================================== */

.ae-sticky-cta-seguros {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #28381A; /* Seguros Amer dark green */
    color: #fff;
    padding: 6px 10px; /* slim height */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.2;
    z-index: 9998;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.18);
}

/* Logo circle inside bar */

.ae-logo-icon-seguros {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #fff;
    background-image: url("https://amerexperience.com/wp-content/uploads/2025/11/img_5469.png");
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Text block */

.ae-sticky-text-seguros {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 6px;
    font-size: 13px;
}

.ae-sticky-text-seguros strong {
    font-weight: 600;
}

.ae-sticky-sub-seguros {
    margin-top: -2px;
    font-size: 11.5px;
    font-weight: 400;
}

/* WhatsApp button (extra slim) */

.ae-cta-btn-seguros {
    background: #fff;
    color: #28381A;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* WA icon before text */

.ae-wa-icon {
    font-size: 16px;
}

/* Bigger black X for Seguros CTA */

.ae-close-btn-seguros {
    margin-left: 6px;
    font-size: 22px;
    cursor: pointer;
    color: #000;
    font-weight: 700;
    line-height: 1;
}

/* Fade-in animation for sticky bars */

.ae-fade-in {
    animation: aeFadeInUp 0.35s ease-out both;
}

@keyframes aeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile layout tweaks – Seguros CTA */

@media screen and (max-width: 600px) {
    .ae-sticky-cta-seguros {
        flex-wrap: wrap;
        text-align: center;
        padding: 6px 8px;
    }
}

/* Hide Seguros bar on desktop – safety */

@media screen and (min-width: 769px) {
    .ae-sticky-cta-seguros {
        display: none;
    }
}

/* ==========================================
   Seguros Amer Marca Registrada Box
   (SENADI registration info block)
   ========================================== */

.sa-marca-registrada-box {
    max-width: 700px;          /* elegant width */
    margin: 30px auto 40px;    /* centered with spacing */
    padding: 20px 25px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-align: center;
}

.sa-marca-registrada-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #28381A; /* Seguros Amer green */
}

.sa-marca-registrada-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}



/* ===============================
   GLOBAL CONTENT WIDTH CONTROL
   =============================== */

/* Main content container for pages & posts */
.entry-content,
.post-content,
.page-content {
    max-width: 900px;          /* Perfect for consulting/business readability */
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   ALIGN IMAGES, BANNERS, EMBEDS
   =============================== */

/* Normal images */
.entry-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    max-width: 100%;
}

/* Full-width or wide images */
.entry-content .wp-block-image.alignfull img,
.entry-content .wp-block-image.alignwide img {
    max-width: 1200px;         /* Matches your business banners */
    margin-left: auto;
    margin-right: auto;
}

/* Cover blocks (hero-style banners) */
.entry-content .wp-block-cover,
.entry-content .wp-block-cover-image {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Inner text inside cover blocks */
.entry-content .wp-block-cover__inner-container {
    max-width: 900px;
    margin: 0 auto;
}

/* YouTube, Vimeo, Iframes */
.entry-content iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

/* ===============================
   TEXT FORMATTING RULES
   =============================== */

/* Left-align all text for professional layout */
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content ul,
.entry-content ol {
    text-align: left !important;
}

/* ===============================
   BUTTON CENTERING
   =============================== */
.entry-content .wp-block-buttons {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   POST LIST / MODULE LAYOUT (BLOG, ARCHIVE)
   ========================================= */

/* Main column for blog & archives */
.blog .site-main,
.archive .site-main,
.blog .content-area,
.archive .content-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual post cards inside lists */
.blog .hentry,
.archive .hentry,
.blog .post,
.archive .post,
.wp-block-query .wp-block-post {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured images in post lists */
.blog .post-thumbnail img,
.archive .post-thumbnail img,
.wp-block-query .wp-block-post-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Text inside the post/module lists – keep left aligned */
.blog .entry-title,
.archive .entry-title,
.blog .entry-summary,
.archive .entry-summary,
.wp-block-query .wp-block-post-title,
.wp-block-query .wp-block-post-excerpt {
    text-align: left;
}

/* Optional: space between posts in the list */
.blog .hentry,
.archive .hentry,
.wp-block-query .wp-block-post {
    margin-bottom: 3rem;
}

/* =========================================
   JETPACK "BLOG POSTS" MODULE LAYOUT
   ========================================= */

/* Main container of the Blog Posts block */
.entry-content .wp-block-jetpack-blog-posts,
.entry-content .wp-block-a8c-blog-posts {
    max-width: 900px;         /* same as your text column */
    margin-left: auto;
    margin-right: auto;
}

/* Each post inside the module */
.wp-block-jetpack-blog-posts__item,
.wp-block-a8c-blog-posts__item {
    margin-bottom: 3rem;
}

/* Featured images inside the module */
.wp-block-jetpack-blog-posts__featured-image img,
.wp-block-a8c-blog-posts__featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Titles & excerpts: keep left aligned */
.wp-block-jetpack-blog-posts__title,
.wp-block-jetpack-blog-posts__excerpt {
    text-align: left;
}






/* ============================================
   MOBILE LAYOUT FIX – EMBEDS (SAFE)
   ============================================ */
@media (max-width: 768px) {

  /* Make embeds and iframes use full width, 
     but do NOT touch their height or position */
  .entry-content .wp-block-embed,
  .entry-content .wp-block-embed__wrapper,
  .entry-content .wp-block-video,
  .entry-content iframe,
  .post-content .wp-block-embed,
  .post-content .wp-block-embed__wrapper,
  .post-content .wp-block-video,
  .post-content iframe {
      display: block;
      max-width: 100% !important;
      width: 100% !important;
      margin-left: auto;
      margin-right: auto;
      /* no height rule here on purpose */
  }
}


/* ============================================================
   CATEGORY & TAG HEADER – FULL FIX
   ============================================================ */

/* 1) FORCE HEADER IMAGE FULL WIDTH */
.archive .archive-header img,
.category .archive-header img,
.tag .archive-header img,
.archive .wp-post-image,
.category .wp-post-image,
.tag .wp-post-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: cover;
}

/* 2) SMALLER CATEGORY/TAG TITLE (H1) */
.archive .page-title,
.category .page-title,
.tag .page-title {
    font-size: 26px !important;   /* adjust if needed */
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* 3) DESCRIPTION TEXT BELOW HEADER IMAGE (12px + LEFT SPACE) */
.archive .archive-description,
.category .archive-description,
.tag .archive-description {
    font-size: 16px !important;
    line-height: 1.5 !important;
    max-width: 720px;
    margin: 10px auto 20px !important;

    padding-left: 18px !important;   /* ⬅️ LEFT SPACE */
    padding-right: 12px !important;  /* right padding */
}

/* 4) LINKS INSIDE DESCRIPTION ALSO SMALL */
.archive .archive-description a,
.category .archive-description a,
.tag .archive-description a {
    font-size: 16px !important;
}

/* 5) SMALL FLAG ICONS */
.archive .archive-description img.emoji,
.category .archive-description img.emoji,
.tag .archive-description img.emoji,
.archive .archive-description img.wp-smiley,
.category .archive-description img.wp-smiley,
.tag .archive-description img.wp-smiley {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
}

/* Optional: Keep spacing consistent under items */
.archive .archive-header > *,
.category .archive-header > *,
.tag .archive-header > * {
    margin-left: auto !important;
    margin-right: auto !important;
}




/* ============================================================
   TRAVEL AUTHOR BOX
   ============================================================ */

.ae-author-box {
    margin-top: 2.5rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.ae-author-box__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.ae-author-box__list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.96rem;
    line-height: 1.5;
}



/* AmerExperience FAQ styling (front-end + editor) */
.amer-faq,
.editor-styles-wrapper .amer-faq {
  max-width: 900px !important;
  margin: 30px auto !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.amer-faq h2,
.editor-styles-wrapper .amer-faq h2 {
  font-size: 1.6rem !important;
  margin: 0 0 20px 0 !important;
}

.amer-faq details,
.editor-styles-wrapper .amer-faq details {
  background: #fff !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin: 0 0 12px 0 !important;
}

.amer-faq summary,
.editor-styles-wrapper .amer-faq summary {
  font-weight: 700 !important;
  cursor: pointer !important;
  list-style: none !important;
}

.amer-faq summary::-webkit-details-marker,
.editor-styles-wrapper .amer-faq summary::-webkit-details-marker {
  display: none !important;
}

.amer-faq summary::before,
.editor-styles-wrapper .amer-faq summary::before {
  content: "▸" !important;
  display: inline-block !important;
  margin-right: 10px !important;
  transition: transform 0.2s ease !important;
}

.amer-faq details[open] summary::before,
.editor-styles-wrapper .amer-faq details[open] summary::before {
  transform: rotate(90deg) !important;
}

.amer-faq p,
.editor-styles-wrapper .amer-faq p {
  margin: 10px 0 0 0 !important;
  line-height: 1.6 !important;
  color: #333 !important;
}

@media (max-width: 768px) {
  .amer-faq h2,
  .editor-styles-wrapper .amer-faq h2 { font-size: 1.35rem !important; }
}


/* ======================================
   Boxed H2 headings – FINAL FIX
   Prevent vertical word breaking
   ====================================== */

.amer-box-heading {
  text-align: left;
  padding: 18px 20px;
  margin: 28px 0;
  font-weight: 600;

  /* TYPOGRAPHY FIXES */
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0.02em;

  /* CRITICAL FIXES */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  white-space: normal;

  max-width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
  .amer-box-heading {
    font-size: 24px;
    padding: 16px 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .amer-box-heading {
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0.015em;
    padding: 14px 16px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .amer-box-heading {
    font-size: 18px;
    padding: 12px 14px;
  }
}

/* FINAL override: stop breaking words inside boxed headings */
.amer-box-heading{
  display: block;
  width: 100%;
  box-sizing: border-box;

  word-break: keep-all !important;     /* <- key */
  overflow-wrap: normal !important;    /* <- key */
  hyphens: none !important;            /* <- key */
}

/* =========================================================
STOP broken words in headings (theme/plugin override)
========================================================= */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content .wp-block-heading,
.entry-content .has-background h1,
.entry-content .has-background h2,
.entry-content .has-background h3,
.entry-content .has-background h4 {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* If your boxed headings use this class */
.amer-box-heading {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}




