/*
Theme Name: Divi Child - Herald
Theme URI: https://heraldnepal.com
Description: Child theme of Divi 5 for Herald International staging site. Brand colours, fonts and overrides live here.
Author: Herald International
Template: Divi
Version: 1.1.0
Text Domain: divi-child-herald
*/

:root {
	--herald-navy: #133c8b;
	--herald-navy-dark: #0e2d6a;
	--herald-crimson: #d01d21;
	--herald-crimson-dark: #ac0000;
	--herald-cream: #fbfaf6;
	--herald-alt: #f2eee6;
	--herald-line: #e0ded7;
	--herald-font-head: 'Source Serif 4', Georgia, serif;
	--herald-font-body: 'Public Sans', Arial, sans-serif;
}

body, #main-content { font-family: var(--herald-font-body); color: var(--herald-navy); background-color: var(--herald-cream); line-height: 1.55; }
h1, h2, h3, h4, h5, h6 { font-family: var(--herald-font-head); color: var(--herald-navy); font-weight: 600; }
#main-content a, .et_pb_text a { color: var(--herald-crimson); }
#main-content a:hover, .et_pb_text a:hover { color: var(--herald-crimson-dark); }

/* Layout width */
.et_pb_row { width: 92%; max-width: 1180px; padding: 0; }
.et_pb_text_inner { padding: 0; }
.et_pb_text { background: transparent; }

/* Header */
#top-header { background: var(--herald-navy); }
#top-header a, #top-header #et-info-phone, #top-header #et-info-email { color: #fff; font-size: 14px; }
#main-header { background: var(--herald-cream); box-shadow: none; border-bottom: 1px solid var(--herald-line); }
#top-menu li a { font-family: var(--herald-font-body); font-weight: 500; font-size: 15px; color: var(--herald-navy); }
#top-menu li.current-menu-item > a, #top-menu li a:hover { color: var(--herald-crimson); opacity: 1; }
#top-menu li.herald-cta > a { background: var(--herald-crimson); color: #fff !important; padding: 11px 20px; border-radius: 8px; font-weight: 600; }
#top-menu li.herald-cta > a:hover { background: var(--herald-crimson-dark); }
#logo { max-height: 52px; }

/* Home sections */
.herald-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--herald-crimson); background: #fff; border: 1px solid var(--herald-line); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.herald-h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; padding: 0; }
.herald-h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 14px; padding: 0; }
.herald-h2.on-dark, .herald-contact-list, .herald-contact-list a { color: #fff !important; }
.herald-lead { font-size: 18px; max-width: 560px; }
.herald-sub { color: #4a5a85; margin-bottom: 24px; }
.herald-center { text-align: center; margin-top: 28px; }
.herald-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.herald-cta-card { display: block; background: #fff; border: 1px solid var(--herald-line); border-radius: 12px; padding: 18px 20px; text-decoration: none; border-left: 4px solid var(--herald-crimson); }
.herald-cta-card:hover { box-shadow: 0 8px 22px rgba(19,60,139,.12); }
.herald-cta-card .k { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--herald-crimson); font-weight: 600; }
.herald-cta-card .t { display: block; font-family: var(--herald-font-head); font-size: 21px; color: var(--herald-navy); margin: 4px 0; }
.herald-cta-card .d { display: block; font-size: 14px; color: #4a5a85; }
.herald-hero-img { position: relative; }
.herald-hero-img img { width: 100%; border-radius: 16px; display: block; aspect-ratio: 4/3; object-fit: cover; }
.herald-badge { position: absolute; left: -14px; bottom: 22px; background: var(--herald-navy); color: #fff; border-radius: 12px; padding: 12px 18px; }
.herald-badge b { display: block; font-family: var(--herald-font-head); font-size: 28px; line-height: 1; }
.herald-badge span { font-size: 13px; }
.herald-quote { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--herald-line); border-radius: 14px; padding: 20px; margin: 0; }
.herald-quote img { width: 110px; height: 130px; object-fit: cover; border-radius: 10px; flex: none; }
.herald-quote blockquote { margin: 0 0 8px; padding: 0; border: 0; font-family: var(--herald-font-head); font-size: 19px; line-height: 1.35; }
.herald-card { background: #fff; border: 1px solid var(--herald-line); border-radius: 14px; padding: 24px; height: 100%; }
.herald-card .n { font-family: var(--herald-font-head); color: var(--herald-crimson); font-size: 28px; }
.herald-card h3 { font-size: 20px; margin: 6px 0 8px; padding: 0; }
.herald-card p { font-size: 15px; padding: 0; }
.herald-btn { display: inline-block; background: var(--herald-crimson); color: #fff !important; text-decoration: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; }
.herald-btn:hover { background: var(--herald-crimson-dark); }
.herald-contact-list > div { margin-bottom: 14px; }
.herald-form-card { background: #fff; border-radius: 14px; padding: 26px; color: var(--herald-navy); }
.herald-form-card h3 { margin: 0 0 12px; padding: 0; }

/* Footer */
#main-footer, #footer-bottom { background: var(--herald-navy-dark); }
#main-footer, #main-footer a, #main-footer h4, #main-footer .widget-title, #footer-bottom, #footer-bottom a, #footer-info { color: #fff; }
#main-footer .widget-title { font-family: var(--herald-font-head); font-size: 18px; }
#main-footer .footer-widget li { padding-left: 0; }
#main-footer .footer-widget li:before { display: none; }

@media (max-width: 980px) { .herald-badge { left: 10px; } .herald-quote { flex-direction: column; align-items: flex-start; } }

/* ---- Fidelity pass: match Herald Redesign.dc.html ---- */
body, #main-content, .et_pb_text, .et_pb_text p { font-size: 16px; }
.et_pb_text p, .et_pb_text li { padding-bottom: 1em; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
.herald-h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.herald-h2 { font-size: clamp(28px, 3vw, 34px); font-weight: 500; margin-bottom: 16px; }
.herald-eyebrow { background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--herald-crimson); }
.herald-lead { font-size: 17px; }
.herald-cta-card { border: 2px solid var(--herald-navy); border-left-width: 2px; border-radius: 12px; padding: 20px 22px; background: #fff; }
.herald-cta-card .k { color: var(--herald-crimson); }
.herald-cta-card.filled { background: var(--herald-navy); }
.herald-cta-card.filled .k, .herald-cta-card.filled .t, .herald-cta-card.filled .d { color: #fff; }
.herald-badge { background: var(--herald-crimson); border-radius: 10px; left: -22px; bottom: 0; }
.herald-hero-img img { border-radius: 14px; aspect-ratio: 4/3; }
.herald-trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; color: #fff; font-size: 14px; font-weight: 500; }
.herald-trust a, .herald-trust a:hover { color: #fff !important; text-decoration: underline; }
.herald-card { padding: 22px 24px; }
.herald-card h3 { font-family: var(--herald-font-body); font-weight: 600; font-size: 17px; }
.herald-card p { font-size: 14px; line-height: 1.5; }
.et_pb_column:has(.herald-card) { display: flex; }
.et_pb_text:has(.herald-card), .et_pb_text:has(.herald-card) .et_pb_text_inner { height: 100%; width: 100%; margin-bottom: 0; }
.herald-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.herald-step-card { background: #fff; border: 1px solid var(--herald-line); border-radius: 12px; padding: 22px 24px; }
.herald-step-card h3 { font-family: var(--herald-font-body); font-weight: 600; font-size: 18px; color: var(--herald-crimson); margin: 0 0 14px; padding: 0; }
.herald-step { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.herald-step span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--herald-navy); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
/* plugin output */
.hn { --ink: var(--herald-navy); --accent: var(--herald-crimson); --line: var(--herald-line); }
.hn-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hn-card h3 { font-family: var(--herald-font-body); font-weight: 600; font-size: 19px; }
.hn-card { border-radius: 12px; }
.hn-chips a.on { background: var(--herald-navy); }

/* Header: top bar + logo / centred nav / CTA */
.herald-topbar { background: var(--herald-navy); color: #fff; font-size: 14px; padding: 8px 32px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.herald-topbar span.r { display: flex; gap: 24px; flex-wrap: wrap; }
#top-header { display: none !important; }
#main-header { position: relative; }
#main-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: none; padding: 0 32px; position: relative; }
#main-header .logo_container { position: static; height: auto; width: auto; }
#et-top-navigation { float: none; flex: 1; padding: 0 !important; display: flex; justify-content: center; }
#top-menu-nav, #top-menu { display: flex; align-items: center; }
#top-menu li { padding-right: 26px; }
#top-menu li.herald-cta { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); padding: 0; }
#et_top_search, #et_search_icon { display: none !important; }
@media (max-width: 980px) { .herald-topbar { padding: 8px 16px; } #top-menu li.herald-cta { position: static; transform: none; } }

/* sticky header under the top bar (replaces Divi's JS-offset fixed nav) */
#main-header, #main-header.et-fixed-header { position: sticky !important; top: 0 !important; z-index: 1000; }
#page-container, .et_fixed_nav #page-container, .et_non_fixed_nav #page-container { padding-top: 0 !important; margin-top: 0 !important; }
#top-menu li a, #top-menu li.current-menu-item > a { color: var(--herald-navy) !important; }
#top-menu li.current-menu-item > a, #top-menu li:not(.herald-cta) > a:hover { color: var(--herald-crimson) !important; }
#top-menu li.herald-cta > a { color: #fff !important; }
.hn-chips a { color: var(--herald-navy) !important; }
.hn-chips a.on { color: #fff !important; background: var(--herald-navy); }
#main-header .container { min-height: 76px; }
#et-top-navigation { align-self: stretch; align-items: center; height: auto; }
#top-menu-nav { height: auto; }
#main-header .logo_container { display: flex; align-items: center; height: 76px; }
#logo { max-height: 52px; margin: 0; }
#top-menu li.herald-cta > a { padding: 11px 20px !important; line-height: 1.2; display: block; }
#top-menu li a { padding-bottom: 0 !important; line-height: 1.2; }
.et_pb_row, .et_pb_row.et_pb_row { width: calc(100% - 64px) !important; max-width: 1200px !important; }
.herald-trust { flex-wrap: nowrap; } @media (max-width: 980px) { .herald-trust { flex-wrap: wrap; } }

/* align header + top bar with the 1200px content block */
.herald-topbar { padding-left: max(32px, calc((100% - 1200px) / 2)); padding-right: max(32px, calc((100% - 1200px) / 2)); }
#main-header .container { width: calc(100% - 64px) !important; max-width: 1200px !important; padding: 0 !important; margin: 0 auto; }
#top-menu li.herald-cta { right: 0; }

/* ---- Inner pages: raw design sections ---- */
.et_pb_row.herald-raw, .et_pb_row.herald-raw.et_pb_row { width: 100% !important; max-width: none !important; padding: 0 !important; }
.herald-raw .et_pb_column, .herald-raw .et_pb_text, .herald-raw .et_pb_text_inner, .herald-raw .et_pb_code, .herald-raw .et_pb_code_inner { width: 100%; max-width: none; margin-bottom: 0; }
.et_pb_text :is(h1,h2,h3,h4,h5,h6) { padding-bottom: 0; }
.et_pb_text p:not([style]) { padding-bottom: 1em; }
.et_pb_text p[style], .et_pb_text li { padding-bottom: 0; }
.herald-raw ul { list-style: disc; }
.herald-raw p { line-height: 1.55; }
.pp h2 { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 24px; margin: 36px 0 8px; color: #133c8b; padding: 0; }
.pp p { margin: 0 0 12px; padding: 0; }
.pp ul { margin: 0 0 12px; padding-left: 22px; }

/* ---- Forms ---- */
.hn-form { max-width: none; gap: 16px; }
.hn-form label { font-size: 14px; }
.hn-form input, .hn-form select, .hn-form textarea { border: 1px solid #c0bdb7; background: #fff; padding: 12px; }
.hn-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hn-form .hn-btn { width: 100%; padding: 14px; text-align: center; }
.hn-applying { padding: 12px 16px; background: #f2eee6; border-radius: 8px; font-size: 15px; margin: 0; }
.hn-form input[type=checkbox] { width: auto; }

/* ---- Vacancies bar + cards ---- */
.hn-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; background: #fff; border: 1px solid var(--herald-line); border-radius: 12px; padding: 18px; margin-bottom: 12px; }
.hn-bar label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.hn-bar input, .hn-bar select { font: inherit; padding: 12px; border: 1px solid #c0bdb7; border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; }
.hn-barrow { display: flex; justify-content: space-between; align-items: center; margin: 0 0 20px; }
.hn-clear { font: inherit; background: none; border: 0; color: var(--herald-crimson); cursor: pointer; font-weight: 600; }
.hn-none { padding: 40px; text-align: center; background: #fff; border: 1px solid var(--herald-line); border-radius: 12px; }
.hn-jobs[data-ui=bar] .hn-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.hn-jobs[data-ui=bar] .hn-card { padding: 24px; }
.hn-jobs[data-ui=bar] .hn-card h3 { font-size: 21px; }

/* ---- Countries ---- */
.hn-region { font-family: var(--herald-font-head); font-weight: 600; font-size: 28px; margin: 0 0 18px; padding: 0; color: var(--herald-navy); }
.hn-cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.hn-ccard { background: #fff; border: 1px solid var(--herald-line); border-radius: 12px; padding: 20px; }
.hn-chead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hn-chead h3 { margin: 0; padding: 0; font-size: 20px; font-family: var(--herald-font-body); font-weight: 600; }
.hn-flag { width: 44px; height: 44px; border-radius: 50%; background: var(--herald-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; object-fit: cover; flex: none; }
.hn-sectors { display: flex; flex-wrap: wrap; gap: 6px; }
.hn-sectors span { font-size: 13px; background: #f2eee6; border-radius: 99px; padding: 4px 12px; }

/* ---- Single job page: full-width, no Divi title/sidebar ---- */
.single-herald_job #main-content .container { width: 100%; max-width: none; padding: 0; }
.single-herald_job #main-content .container:before { display: none; }
.single-herald_job #left-area { width: 100%; padding: 0; float: none; }
.single-herald_job #sidebar, .single-herald_job .et_post_meta_wrapper, .single-herald_job .entry-title, .single-herald_job .et_pb_post > h1 { display: none; }
.single-herald_job .entry-content { padding: 0; }

/* ---- Theme Builder global header ---- */
.et-l--header { position: sticky; top: -38px; z-index: 1000; }
.herald-topsec, .herald-hdrsec { padding: 0 !important; }
.herald-topsec .et_pb_row, .herald-hdrsec .et_pb_row { padding: 0; }
.herald-hdrsec .et_pb_row { width: calc(100% - 64px) !important; max-width: 1200px !important; }
.herald-hdrsec .et_pb_menu { padding: 0; background: transparent !important; }
.herald-hdrsec .et_pb_menu .et_pb_menu__wrap, .herald-hdrsec .et_pb_menu_inner_container { align-items: center; }
.herald-hdrsec .et_pb_menu_inner_container { position: relative; display: flex; width: 100%; }
.herald-hdrsec .et_pb_menu__logo-wrap { flex: none; }
.herald-hdrsec .et_pb_menu__logo img { height: 52px; width: auto; max-height: 52px; }
.herald-hdrsec .et_pb_menu__wrap { flex: 1; justify-content: center; }
.herald-hdrsec .et_pb_menu__menu, .herald-hdrsec nav.et-menu-nav { width: 100%; }
.herald-hdrsec ul.et-menu { display: flex; align-items: center; justify-content: center; width: 100%; }
.herald-hdrsec ul.et-menu > li { padding: 0 13px; margin: 0; }
.herald-hdrsec ul.et-menu > li > a { font-family: var(--herald-font-body); font-weight: 500; font-size: 15px; color: var(--herald-navy) !important; padding: 26px 0; }
.herald-hdrsec ul.et-menu > li.current-menu-item > a, .herald-hdrsec ul.et-menu > li > a:hover { color: var(--herald-crimson) !important; opacity: 1; }
.herald-hdrsec ul.et-menu > li.herald-cta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 0; }
.herald-hdrsec ul.et-menu > li.herald-cta > a { background: var(--herald-crimson); color: #fff !important; padding: 11px 20px; border-radius: 8px; font-weight: 600; display: block; }
.herald-hdrsec ul.et-menu > li.herald-cta > a:hover { background: var(--herald-crimson-dark); color: #fff !important; }
.herald-hdrsec .et_pb_menu { border-bottom: 1px solid var(--herald-line); }
.herald-hdrsec .et_pb_menu .mobile_nav { display: none; }
.herald-topsec .herald-raw .et_pb_text_inner > div { padding-left: max(32px, calc((100% - 1200px) / 2)) !important; padding-right: max(32px, calc((100% - 1200px) / 2)) !important; }
@media (max-width: 980px) { .herald-hdrsec .et_pb_menu .mobile_nav { display: block; } .herald-hdrsec .et_pb_menu__menu { display: none; } .herald-hdrsec ul.et-menu > li.herald-cta { position: static; transform: none; } }

/* ---- inner-page typography: headings inherit like the design ---- */
.herald-page :is(h1,h2,h3,h4,h5,h6) { color: inherit; font-family: inherit; line-height: 1.2; }
.herald-page h3, .herald-page h4 { font-weight: 700; }
.herald-page p { font-size: 16px; padding-bottom: 0; }
.herald-page a { color: #d01d21; text-decoration: underline; }
.herald-page a:hover { color: #ac0000; }
.herald-page .hn { --ink: #142234; color: #142234; }
.herald-page .hn-card h3 a, .herald-page .hn a.hn-btn { text-decoration: none; }
.herald-page .hn-chips a { text-decoration: none; }
.hn-team { text-align: left; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hn-team img { border-radius: 12px; display: block; }
.hn-team h4 { font-family: var(--herald-font-body); font-weight: 600; font-size: 16px; margin: 12px 0 0; color: inherit; padding: 0; }
.hn-team span { font-size: 14px; opacity: .8; color: inherit; }
/* header menu on one line */
.herald-hdrsec .et_pb_menu__menu { flex: 1; }
.herald-hdrsec ul.et-menu { flex-wrap: nowrap; }
.herald-hdrsec ul.et-menu > li > a { padding: 0 !important; line-height: 64px; white-space: nowrap; }
.herald-hdrsec .et_pb_menu_inner_container { min-height: 64px; }

/* design uses default content-box sizing inside page sections */
.herald-page div { box-sizing: content-box; }
.herald-page .hn div, .herald-page .hn-form div { box-sizing: border-box; }
/* header menu: robust one-line layout */
.herald-hdrsec .et_pb_menu .et_pb_menu__wrap, .herald-hdrsec .et_pb_menu.et_flex_module .et_pb_menu__wrap { flex: 1 1 auto; justify-content: center; }
.herald-hdrsec .et_pb_menu .et_pb_menu__menu, .herald-hdrsec .et_pb_menu .et_pb_menu__menu > nav { width: 100%; justify-content: center; }
.herald-hdrsec .et_pb_menu .et_pb_menu__menu > nav > ul { flex-wrap: nowrap; justify-content: center; width: 100%; }
.herald-hdrsec .et_pb_menu--with-logo .et_pb_menu__menu > nav > ul > li > a { padding: 0 !important; line-height: 1; align-items: center; min-height: 64px; }
.herald-hdrsec .et_pb_menu .et_pb_menu__menu > nav > ul > li { margin: 0 13px; align-items: center; }
.herald-hdrsec .et_pb_menu .et_pb_menu__menu > nav > ul > li.herald-cta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.herald-hdrsec .et_pb_menu .et_pb_menu__menu > nav > ul > li.herald-cta > a { padding: 11px 20px !important; min-height: 0; background: var(--herald-crimson); color: #fff !important; border-radius: 8px; font-weight: 600; }
.herald-hdrsec .et_pb_menu_inner_container { align-items: center; }
.herald-page a[style="color:#fff"] { text-decoration: underline; }
.herald-raw .et_pb_code { margin-bottom: 0; } .herald-raw .et_pb_code_inner { width: 100%; }

.herald-page blockquote { border: 0; padding: 0; margin: 0 0 18px; }
.herald-page blockquote:before { display: none; }
.herald-page .pp h2 { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 24px; margin: 36px 0 8px; }
.herald-page .pp p { margin: 0 0 12px; }
.herald-page .pp ul { margin: 0 0 12px; padding-left: 22px; }
.single-herald_job .hn-job { color: #142234; font-family: 'Public Sans', sans-serif; line-height: 1.6; } .single-herald_job .hn-job h2, .single-herald_job .hn-job h3 { color: #142234; } .single-herald_job .hn-job p { font-size: inherit; }

/* Apply form: two fields per line at most */
.hn-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 600px) { .hn-grid2 { grid-template-columns: 1fr; } }
.hn-form input:not([type=checkbox]):not([type=file]), .hn-form select { height: 48px; box-sizing: border-box; }

/* ---- Repeated cards: equal height, buttons start at the same line ---- */
.herald-cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.herald-cards4 .herald-card { height: auto; }
.herald-page div[style*="display:grid"] { align-items: stretch; }
.herald-page div[style*="display:grid"] > div[style*="border-radius:12px"]:has(> a:last-child) { display: flex; flex-direction: column; }
.herald-page div[style*="display:grid"] > div[style*="border-radius:12px"] > a:last-child { margin-top: auto; align-self: flex-start; }
.herald-page div[style*="display:grid"] > div[style*="border-radius:12px"]:has(> a:last-child) > p { flex: 1 0 auto; }
.hn-card > div:last-child:has(> .hn-btn) { margin-top: auto; }
