/* KV2 corporate study-trip pages (B5, Foretagsresor): same look as the Vasa page, own stylesheet and own root class kv2-corp.
   Loaded after kv2.css, only on pages whose Elementor data contains "kv2-corp" (kv2_corp_page()). Nothing here changes other pages.
   Taken from the Vasa stylesheet without the package switch and the quote box (B5 has neither). */

/* two packages side by side */
.elementor .e-con.kv2-pkgs{display:grid;grid-template-columns:1fr;gap:14px}
.kv2-pkgcard .kv2-pkgttl{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--kv2-blue-d);margin-bottom:4px}
.kv2-pkgcard .kv2-rows div{flex-wrap:wrap}
.kv2-pkgcard .kv2-rows b{text-align:right}
/* the price row has a long value: label above, value below, both left */
.kv2-pkgcard .kv2-rows div:first-child{flex-direction:column;align-items:flex-start;gap:2px}
.kv2-pkgcard .kv2-rows div:first-child b{text-align:left}
.kv2-pkgcard .kv2-cardbtns{margin-top:12px}
.elementor .e-con.kv2-pkgs .e-con.kv2-dep{height:100%}

/* itinerary of one package */
.kv2-plan h2.elementor-heading-title{margin-bottom:8px}
.kv2-plan .kv2-chips{padding-top:0}
.kv2-planfrom p{margin:12px 0 0;font-weight:700;color:var(--kv2-blue-d)}
.kv2-n b{white-space:nowrap}
/* day circle: "DAG" above the number, also if Elementor wraps the text in .elementor-widget-container (a range like "1-3" is wider than one digit) */
.kv2 .elementor-widget.kv2-n .elementor-widget-container{display:flex;flex-direction:column;align-items:center;justify-content:center}
.kv2-n span,.kv2-n b{display:block}
.kv2-n b{line-height:1.1}

/* photo tiles: the frame is 377x200, so portrait photos need a focal point or the subject is cut off */
.elementor .e-con.kv2-gal .elementor-widget-image.kv2-fp-racer img{object-position:50% 6%}
.elementor .e-con.kv2-gal .elementor-widget-image.kv2-fp-temple img{object-position:50% 28%}
.elementor .e-con.kv2-gal .elementor-widget-image.kv2-fp-wall img{object-position:50% 72%}

/* tables (race fee, single room) */
.elementor .e-con.kv2-tblcard{background:var(--kv2-soft);border-radius:14px;padding:18px 20px}
table.kv2-tbl{width:100%;border-collapse:collapse;font-size:16px;margin:0}
table.kv2-tbl th{text-align:left;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#555;font-weight:700;padding:0 0 8px;border:0;background:transparent}
table.kv2-tbl td{padding:10px 0;border:0;border-top:1px solid var(--kv2-line);background:transparent;color:var(--kv2-ink)}
table.kv2-tbl td:last-child,table.kv2-tbl th:last-child{text-align:right;font-weight:700}

/* sub-list heading inside the included box */
.kv2-in h4.elementor-heading-title{font-size:15px;font-weight:700;margin:14px 0 4px;color:var(--kv2-ink)}
/* the two side-by-side boxes keep the height of their own content (the pink box no longer stretches empty) */
.elementor .e-con.kv2-vtwo{align-items:start}

/* FAQ: heading + help on the left, numbered cards on the right (Elementor nested accordion, keeps its FAQ schema).
   Each card: round number badge, question left-aligned, round plus/minus on the right; the open card gets a blue border and a gold bar beside the answer. */
.elementor .e-con.kv2-faqsplit{display:grid;grid-template-columns:1fr;gap:18px}
.kv2-faqnote p{max-width:34ch;color:#33475f}
.elementor .e-con.kv2-faqside .kv2-btn{max-width:260px;margin-top:6px}
.elementor .kv2-faq .e-n-accordion{display:grid;gap:12px;counter-reset:faq}
.elementor .kv2-faq .e-n-accordion-item{border:1px solid var(--kv2-line);border-radius:16px;background:#fff;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.elementor .kv2-faq .e-n-accordion-item:hover{border-color:rgba(30,98,169,.45);box-shadow:0 6px 18px rgba(20,45,90,.08)}
.elementor .kv2-faq .e-n-accordion-item[open]{border-color:var(--kv2-blue);box-shadow:0 8px 22px rgba(20,45,90,.10)}
.elementor .kv2-faq .e-n-accordion-item-title{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;padding:14px 16px;cursor:pointer;list-style:none;color:var(--kv2-ink)}
.elementor .kv2-faq .e-n-accordion-item-title::-webkit-details-marker{display:none}
.elementor .kv2-faq .e-n-accordion-item-title::before{counter-increment:faq;content:counter(faq);order:1;flex:none;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--kv2-sky);color:var(--kv2-blue-d);font-weight:700;font-size:15px}
.elementor .kv2-faq .e-n-accordion-item[open]>.e-n-accordion-item-title::before{background:var(--kv2-blue);color:#fff}
.elementor .kv2-faq .e-n-accordion-item-title-header{order:2;flex:1;justify-content:flex-start;text-align:left}
.elementor .kv2-faq .e-n-accordion-item-title-text{font-weight:700;font-size:17px;line-height:1.35;text-align:left;color:var(--kv2-ink)}
.elementor .kv2-faq .e-n-accordion-item-title-icon{order:3;flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0;border-radius:50%;background:var(--kv2-soft)}
.elementor .kv2-faq .e-n-accordion-item-title-icon svg{width:12px;height:12px;fill:var(--kv2-ink)}
.elementor .kv2-faq .e-n-accordion-item[open]>.e-n-accordion-item-title .e-n-accordion-item-title-icon{background:var(--kv2-gold)}
.elementor .kv2-faq .e-n-accordion-item>.e-con{padding:0 18px 18px 62px;background:transparent}
.elementor .kv2-faq .e-n-accordion-item>.e-con p{margin:0;padding-left:14px;border-left:3px solid var(--kv2-gold);color:#33475f}
@media (max-width:560px){
  .elementor .kv2-faq .e-n-accordion-item-title{padding:12px 12px;gap:10px}
  .elementor .kv2-faq .e-n-accordion-item-title-text{font-size:16px}
  .elementor .kv2-faq .e-n-accordion-item>.e-con{padding:0 14px 16px 14px}
}
@media (min-width:900px){
  .elementor .e-con.kv2-faqsplit{grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:40px;align-items:start}
}


/* ===== client feedback (10 Nov), applied to this page ===== */
/* hero: shorter on desktop, picture centred a little higher, title closer to the menu */
.elementor .e-con.kv2-hero.kv2-corp{background-position:50% 38%!important}
@media (min-width:900px){
  .elementor .e-con.kv2-hero.kv2-corp{min-height:460px}
  .elementor .e-con.kv2-hero.kv2-corp .e-con.kv2-herotxt{padding-top:60px}
}

/* three tabs under the key facts (links to the sections of the page) */
.elementor .e-con.kv2-tabsband.kv2-wrap{padding-top:14px}
/* horizontal scroll only (when the tabs do not fit): overflow-y is locked, and the active bar is drawn inside the link, so nothing sticks out and the bar can never scroll vertically */
.kv2-tabs{display:flex;gap:6px;border-bottom:2px solid var(--kv2-line);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.kv2-tabs::-webkit-scrollbar{display:none}
.kv2-tabs a{flex:none;padding:12px 18px;font-weight:700;font-size:16px;line-height:1.3;color:#33475f;text-decoration:none;white-space:nowrap;box-shadow:inset 0 -3px 0 transparent}
.kv2-tabs a:hover{color:var(--kv2-blue)}
.kv2-tabs a.is-on{color:var(--kv2-blue-d);box-shadow:inset 0 -3px 0 var(--kv2-gold)}
#oversikt,#avresa,#dagsprogram{scroll-margin-top:100px}

/* intro on the left, dates and prices on the right */
.elementor .e-con.kv2-split{display:grid;grid-template-columns:1fr;gap:28px}
.elementor .e-con.kv2-splitside .e-con.kv2-pkgs{grid-template-columns:1fr}
.kv2-chips .kv2-chiplabel{align-self:center;margin-right:4px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#555}
@media (min-width:900px){
  .elementor .e-con.kv2-split{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:36px;align-items:start}
  /* the photo grid sits in the left column under the intro: 3 smaller tiles per row */
  .elementor .e-con.kv2-splitmain .e-con.kv2-gal .elementor-widget-image img{height:130px}
}

/* highlights in a tinted panel, a photo on every day row, one line per sentence */
.elementor .e-con.kv2-hl{background:var(--kv2-sky);border-radius:14px;padding:12px 18px;margin:10px 0 4px}
.kv2-daytxt ul.kv2-tick li{padding:3px 0 3px 28px}
.elementor .e-con.kv2-day .elementor-widget-image{grid-column:1/-1}
.elementor .e-con.kv2-day .elementor-widget-image img{display:block;width:100%;max-width:none;height:150px;object-fit:cover;border-radius:10px}
.elementor .e-con.kv2-day .elementor-widget-image.kv2-fp-top img{object-position:50% 6%}
.elementor .e-con.kv2-day .elementor-widget-image.kv2-fp-wall img{object-position:50% 72%}
.elementor .e-con.kv2-day .elementor-widget-image.kv2-fp-panda img{object-position:50% 35%}

/* hero price in the page font (the theme gives <b> a serif face) */
.kv2-corp .kv2-heroprice p b,.kv2-corp .kv2-fact b{font-family:"Noto Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}

/* phone: three tabs must fit in 390 px, hero text needs a shade over the busy photo */
@media (max-width:899px){
  /* price cards come right after the intro text, the photo grid after them */
  .elementor .e-con.kv2-split{gap:0}
  .elementor .e-con.kv2-splitmain{display:contents}
  .elementor .e-con.kv2-splitside{order:2;margin:22px 0 4px}
  .elementor .e-con.kv2-split .e-con.kv2-gal{order:3}
  .kv2-tabs a{padding:12px 11px;font-size:15px}
  .elementor .e-con.kv2-hero.kv2-corp:before{background:linear-gradient(180deg,rgba(10,10,10,.28) 0%,rgba(10,10,10,.72) 100%)}
}

/* phone: "Boka din resa" = three equal full-width buttons (easy to tap), e-mail under them; "Fler resor" = compact horizontal cards */
@media (max-width:560px){
  .kv2-pkgcard a.kv2-wabtn{display:none}
  .elementor .e-con.kv2-morev .kv2-more{display:grid;grid-template-columns:1fr;gap:10px}
  .kv2-morev .kv2-more a{display:flex;align-items:stretch;width:100%}
  .elementor .kv2-morev .kv2-more a img{flex:none;width:104px;height:auto;min-height:84px;object-fit:cover}
  .kv2-morev .kv2-more div{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:10px 14px}
}

/* "Fler resor" (tablet and desktop): half the width and half the height of the image tiles; the phone layout is above */
@media (min-width:561px){
  .elementor .e-con.kv2-morev .kv2-more{display:flex;flex-wrap:wrap;gap:14px}
  .kv2-morev .kv2-more a{width:min(100%,284px)}
  .elementor .kv2-morev .kv2-more a img{height:75px}
}

@media (min-width:900px){
  .elementor .e-con.kv2-pkgs{grid-template-columns:1fr 1fr}
  .elementor .e-con.kv2-plan .e-con.kv2-day{grid-template-columns:64px minmax(0,1fr) 220px;align-items:start}
  .elementor .e-con.kv2-day .elementor-widget-image{grid-column:auto}
  .elementor .e-con.kv2-day .elementor-widget-image img{height:140px}
}

/* after merging main (v3): breathing room where blocks touched */
.elementor .e-con.kv2-splitside{gap:16px}
.elementor .e-con.kv2-splitside .kv2-note{margin-top:2px}
.kv2-corp .kv2-hero .elementor-widget{margin-bottom:0}
.kv2-corp .kv2-hero .kv2-heroprice{margin-top:14px}
.kv2-corp .kv2-hero .kv2-heroprice p{margin:0;line-height:1.35}
.kv2-corp .kv2-hero .kv2-heroprice span{display:block;margin-top:4px}
.kv2-corp .kv2-hero .kv2-btns,.kv2-corp .kv2-hero .elementor-widget-button{margin-top:6px}
.elementor .e-con.kv2-hl{margin-bottom:10px}

/* corporate study-trip pages: lead photo under the intro, bold names in the company and theme lists */
.elementor .elementor-widget-image.kv2-leadimg img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;display:block}
.kv2-tblcard .kv2-tick li b{color:var(--kv2-ink)}
.kv2-tblcard h4{margin:0 0 4px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#555}

/* long titles (corporate pages): keep the hero text clear of the fixed site header; light button inside the price card */
@media (min-width:561px){.elementor .e-con.kv2-hero.kv2-corp .e-con.kv2-herotxt{padding-top:120px}}
.kv2-depcard a.kv2-cardbtn.kv2-line{background:rgba(255,255,255,.85);color:#16324f;border:1px solid rgba(30,98,169,.35)}

