/* ===========================================================================
 *  EPA AUTHOR PAGE — scoped styles. Namespace: .epa-*
 *  Inherits brand font from traveltour-child.
 * ======================================================================== */

html { overflow-x: clip; }
body.author { overflow-x: clip; }

/* Kill the parent theme's default author page-title strip ("By Maro Saeed") */
body.author .page-header,
body.author .entry-header,
body.author .archive-header,
body.author header.page-header,
body.author header.archive-header,
body.author .archive-title,
body.author .page-title,
body.author .heading-area,
body.author .traveltour-heading-area,
body.author .tourmaster-heading-area,
body.author .traveltour-heading-bg,
body.author .tourmaster-heading-bg,
body.author .traveltour-page-title,
body.author .tourmaster-page-title,
body.author .traveltour-page-title-bar,
body.author .tourmaster-page-title-bar,
body.author .traveltour-single-page-header,
body.author .tourmaster-single-page-header,
body.author .traveltour-archive-page-header,
body.author .tourmaster-archive-page-header,
body.author .author-meta,
body.author .author-info,
body.author .author-bio,
body.author .traveltour-content-title,
body.author .tourmaster-content-title,
body.author .traveltour-title-bar,
body.author .tourmaster-title-bar,
body.author .fusion-page-title-bar,
body.author .fusion-page-title-wrapper,
body.author .breadcrumb-header,
body.author .breadcrumbs-wrap { display: none !important; visibility: hidden !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }

/* Defensive pattern match — catches any theme-prefixed heading/title strip we didn't list by name */
body.author [class*="heading-bg"],
body.author [class*="heading-area"],
body.author [class*="archive-header"],
body.author [class*="archive-title"],
body.author [class*="author-header"],
body.author [class*="author-title"],
body.author [class*="-page-title"],
body.author [class*="-page-header"],
body.author [class*="breadcrumb"] { display: none !important; height: 0 !important; padding: 0 !important; margin: 0 !important; }

.epa-page { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding: 0 !important; position: relative; overflow: visible !important; color: #010101; background: #fcfced; }
.epa-page,
.epa-page * { box-sizing: border-box; }

.epa-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Break out of TourMaster wrappers */
.author .tourmaster-page-wrapper,
.author .traveltour-page-wrapper,
.author .traveltour-content-container,
.author .tourmaster-template-wrapper,
.author .traveltour-content-area,
.author .tourmaster-single-wrap,
.author .tourmaster-content,
.author .site-content,
.author .entry-content,
.author .container,
.author .wrap,
.author .inner,
.author #primary,
.author #main,
.author #content,
.author .row { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; transform: none !important; filter: none !important; will-change: auto !important; }

.epa-section { padding: 84px 0; }
.epa-section-tight { padding: 48px 0; }

.epa-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #d48652; margin-bottom: 14px; }
.epa-h1 { font-family: inherit; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; font-weight: 600; margin: 0 0 20px; letter-spacing: -.02em; }
.epa-h1 em { font-style: italic; font-weight: 400; color: #d48652; }
.epa-h2 { font-family: inherit; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; font-weight: 600; margin: 0 0 18px; letter-spacing: -.015em; }
.epa-h3 { font-family: inherit; font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0 0 8px; }
.epa-lede { font-size: 18px; line-height: 1.6; color: rgba(1,1,1,.72); margin: 0 0 22px; }

/* HERO */
.epa-hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fcfced 0%, #f9f2e6 100%); border-bottom: 1px solid rgba(1,1,1,.06); }
.epa-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .epa-hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.epa-hero-photo-wrap { position: relative; }
.epa-hero-photo { aspect-ratio: 4/5; width: 100%; max-width: 440px; margin-left: auto; background-color: #c89161; background-image: linear-gradient(135deg, #c89161 0%, #8b5a3c 100%); background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.epa-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); }
.epa-hero-badge { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 2; }
.epa-hero-badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,.2); animation: epa-pulse 2s infinite; }
@keyframes epa-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(37,211,102,.2); } 50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }

.epa-hero-role { font-size: 14px; font-weight: 600; color: #d48652; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.epa-hero-location { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(1,1,1,.6); margin-bottom: 18px; }

.epa-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.epa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.epa-btn-wa { background: #25d366; color: #fff; }
.epa-wa-ico { flex: none; display: block; }
/* Parent theme's `.traveltour-body a` (0,1,1) outranks `.epa-btn-*` (0,1,0)
   and repaints every button orange. Match on element+2 classes to outrank it. */
a.epa-btn.epa-btn-wa, a.epa-btn.epa-btn-wa:hover, a.epa-btn.epa-btn-wa:focus,
a.epa-btn.epa-btn-primary, a.epa-btn.epa-btn-primary:hover, a.epa-btn.epa-btn-primary:focus { color: #fff; }
a.epa-btn.epa-btn-ghost, a.epa-btn.epa-btn-ghost:hover, a.epa-btn.epa-btn-ghost:focus { color: #010101; }
.epa-btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(37,211,102,.6); color: #fff; }
.epa-btn-primary { background: #010101; color: #fff; }
.epa-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); color: #fff; }
.epa-btn-ghost { background: transparent; color: #010101; border: 1.5px solid rgba(1,1,1,.2); }
.epa-btn-ghost:hover { border-color: #010101; color: #010101; }

/* CREDENTIALS STRIP */
.epa-creds { background: #010101; color: #fff; padding: 36px 0; }
.epa-creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 720px) { .epa-creds-grid { grid-template-columns: repeat(2, 1fr); } }
.epa-cred { text-align: center; }
.epa-cred-val { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1; color: #fff; margin-bottom: 6px; letter-spacing: -.01em; }
.epa-cred-val em { font-style: normal; color: #d48652; }
.epa-cred-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.62); }

/* ABOUT */
.epa-about { background: #fff; }
.epa-about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) { .epa-about-grid { grid-template-columns: 1fr; gap: 32px; } }
.epa-about-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(1,1,1,.48); position: sticky; top: 100px; }
.epa-about-body p { font-size: 17px; line-height: 1.7; color: rgba(1,1,1,.78); margin: 0 0 18px; }
.epa-about-body p:first-child { font-size: 20px; line-height: 1.55; color: #010101; font-weight: 500; }
.epa-about-sig { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(1,1,1,.08); }
.epa-about-sig-avatar { width: 50px; height: 50px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
.epa-about-sig-name { font-weight: 600; font-size: 15px; }
.epa-about-sig-role { font-size: 13px; color: rgba(1,1,1,.56); }

/* SPECIALTIES */
.epa-specs { background: #fcfced; }
.epa-specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .epa-specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .epa-specs-grid { grid-template-columns: 1fr; } }
.epa-spec-card { background: #fff; border: 1px solid rgba(1,1,1,.08); border-radius: 16px; padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.epa-spec-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(0,0,0,.2); }
.epa-spec-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.epa-spec-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.epa-spec-body { font-size: 14px; line-height: 1.55; color: rgba(1,1,1,.65); margin: 0; }

/* THOUGHTS / EXPERT NOTES */
.epa-thoughts { background: #fff; }
.epa-thoughts-list { display: grid; gap: 28px; max-width: 860px; margin: 0 auto; }
.epa-thought { border-left: 3px solid #d48652; padding: 8px 0 8px 26px; }
.epa-thought-heading { font-family: inherit; font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
.epa-thought-body { font-size: 17px; line-height: 1.7; color: rgba(1,1,1,.78); margin: 0; }

/* ASK-MARO BAND */
.epa-ask { background: linear-gradient(135deg, #010101 0%, #2a1a0f 100%); color: #fff; padding: 72px 0; }
.epa-ask-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .epa-ask-grid { grid-template-columns: 1fr; } }
.epa-ask h2 { color: #fff; margin-bottom: 14px; }
.epa-ask p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 24px; }
.epa-ask-cta-stack { display: flex; flex-direction: column; gap: 12px; }
.epa-ask-cta { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #fff; text-decoration: none; transition: background .2s ease, transform .15s ease; }
.epa-ask-cta:hover { background: rgba(255,255,255,.1); transform: translateX(4px); color: #fff; }
.epa-ask-cta-icon { width: 44px; height: 44px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 18px; }
.epa-ask-cta-icon.mail { background: #d48652; }
.epa-ask-cta-icon svg { display: block; }
.epa-ask-cta-icon.plan { background: #fff; color: #010101; }
.epa-ask-cta > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.epa-ask-cta-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.56); line-height: 1.3; }
.epa-ask-cta-main { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* LATEST POSTS */
.epa-posts { background: #fcfced; }
.epa-posts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.epa-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .epa-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .epa-posts-grid { grid-template-columns: 1fr; } }
.epa-post-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(1,1,1,.07); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.epa-post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -30px rgba(0,0,0,.25); }
.epa-post-img { aspect-ratio: 16/10; background-color: #c89161; background-image: linear-gradient(135deg, #c89161 0%, #8b5a3c 100%); background-size: cover; background-position: center; background-repeat: no-repeat; display: block; }
.epa-post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.epa-post-meta { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(1,1,1,.5); margin-bottom: 8px; }
.epa-post-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
.epa-post-title a { color: #010101; text-decoration: none; }
.epa-post-title a:hover { color: #d48652; }
.epa-post-excerpt { font-size: 14px; line-height: 1.55; color: rgba(1,1,1,.62); margin: 0 0 14px; }
.epa-post-link { margin-top: auto; font-size: 13px; font-weight: 600; color: #d48652; text-decoration: none; }
.epa-post-link:hover { text-decoration: underline; }

.epa-loadmore-wrap { display: flex; justify-content: center; margin-top: 48px; }
.epa-loadmore { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 999px; background: #010101; color: #fff; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; letter-spacing: .01em; }
.epa-loadmore:hover { background: #d48652; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(212,134,82,.6); }
.epa-loadmore:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.epa-loadmore-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: epa-spin .8s linear infinite; display: none; }
.epa-loadmore.is-loading .epa-loadmore-spinner { display: inline-block; }
.epa-loadmore.is-loading .epa-loadmore-icon { display: none; }
@keyframes epa-spin { to { transform: rotate(360deg); } }
.epa-loadmore-done { text-align: center; margin-top: 48px; font-size: 14px; color: rgba(1,1,1,.55); font-weight: 500; }

/* FINAL CTA */
.epa-final { background: #010101; color: #fff; padding: 64px 0; text-align: center; }
.epa-final h2 { color: #fff; margin-bottom: 12px; }
.epa-final p { font-size: 18px; color: rgba(255,255,255,.75); margin: 0 0 28px; }
.epa-final .epa-btn-wa { font-size: 16px; padding: 16px 28px; }

/* No posts fallback */
.epa-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px dashed rgba(1,1,1,.12); }
.epa-empty h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.epa-empty p { color: rgba(1,1,1,.6); font-size: 15px; }

/* Safety net — photo URLs via inline style use longhand bg-image but shorthand
   elsewhere must not wipe background-size. */
.epa-page [style*="background-image:url"],
.epa-page [style*="background-image: url"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
