/* =======================================
   HOW IT WORKS (HIW)
   ======================================= */

.ex-hiw{
  background: #fff;
}

/* Padding (zamena za ex-section) */
/* .ex-hiw-ptb{
  padding-top: 230px;
} */

/* @media (min-width: 1200px){
  .ex-hiw-ptb{
    padding-top: 120px;
    
  } */
  /* .program-layout-internshipusa .ex-hiw-ptb  {
  padding-top: 260px;
}
}
@media (min-width:768px)  {
  .program-layout-internshipusa .ex-hiw-ptb  {
  padding-top: 230px;
}
} */
/* Title (H2) — font-weight global */
.ex-hiw__title{
  font-family: "Outfit", sans-serif;
  line-height: 46px;
  color: #1F1D1B;
  margin: 0 0 28px;
}

/* Jedan korak */
.ex-hiw__item{
  align-items: flex-start;
}

/* Razmak između tačaka */
.ex-hiw__item + .ex-hiw__item{
  margin-top: 28px;
}

/* Broj u krugu */
.ex-hiw__num{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #C5213C;
  color: #C5213C;

  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: -0.02em;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ikonica */
.ex-hiw__icon{
  margin-bottom: 8px;
}
.ex-hiw__icon img{
  display: block;
  max-width: 24px;
  height: auto;
}

/* Mali naslov */
.ex-hiw__item-title{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.02em;
  color: #1F1D1B;
  margin: 0 0 4px;
}

/* Tekst ispod */
.ex-hiw__item-text{
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  color: #1F1D1B;
  opacity: .75;
  margin: 0;
}

/* CTA dugme (HIW) */
.ex-hiw__cta-wrap{
  margin-top: 28px;
}
.ex-hiw__cta-wrap--mobile{
  margin-top: 40px; /* da bude “posle 6” sa lepim vazduhom */
  text-align: left; /* ili center ako želiš */
}



.ex-hiw__cta:hover{
  background-color: #e14e29;
  border-color: #e14e29;
  color: #fff;
}

/* Slika desno */
.ex-hiw__img{
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =======================================
   HIW BANNER
   ======================================= */

/* card */
.ex-hiw-banner__card{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  padding: 120px 48px;
}

/* Content + CTA centrirano */
.ex-hiw-banner__content{
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.ex-hiw-banner__content h2,
.ex-hiw-banner__content p{
	color:#fff;
}
.ex-hiw-banner__content p {
	max-width: 475px;
    margin: 20px auto;
}

/* NASLOV (H2) */
.ex-hiw-banner__title{
  color: #fff;
  margin: 0 0 20px;
}

/* TEKST */
.ex-hiw-banner__text{
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0;
  color: #fff;
  margin: 0 0 32px;
}

/* CTA */
.ex-hiw-banner__cta{
  margin-top: 8px;
}
.ex-hiw-banner__btn{
  background-color: #FD572E;
  border: 1px solid #FD572E;
  color: #fff !important;

  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 40px;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  padding: 8px 28px;
  border-radius: 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ex-hiw-banner__btn:hover{
  background-color: #e14e29;
  border-color: #e14e29;
  color: #fff;
}

/* =====================
   RESPONSIVE
   ===================== */

/* <992 */
@media (max-width: 991.98px){
  .ex-hiw-banner__card{
    padding: 56px 32px;
  }

  /* FULL WIDTH banner na <992 */
  .ex-hiw-banner__container{
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .ex-hiw-banner__card{
    border-radius: 0;
  }

  .ex-hiw__cta{
    display: flex;
  }
}

/* <768 */
@media (max-width: 767.98px){
  .ex-hiw-banner__card{
    padding: 48px 24px;
  }

  .ex-hiw-banner__text{
    font-size: 14px;
    line-height: 26px;
  }
}
/* CTA stil SAMO između 992px i 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px){
  .ex-hiw__cta{
  margin-top:unset;
  }
}

/* =======================================
   REQUESTED LAYOUT:
   - <768: sve jedno ispod drugog, centrirano
   - ≥768: 2 kolone (postojeći Bootstrap layout)
   Broj ostaje levo u odnosu na tekst.
   ======================================= */

@media (max-width: 767.98px){
  /* svaka HIW stavka centrirana kao blok */
  .ex-hiw__item{
    max-width: 560px;          /* lep “blok” */
    margin-left: auto;
    margin-right: auto;
  }

  /* tekstualni deo ostaje left (kao dizajn), ali blok je centriran */
  .ex-hiw__content{
    text-align: left;
  }

  /* CTA centar na mobilnom */
  .ex-hiw__cta-wrap,
  .ex-hiw__cta-wrap--mobile{
    text-align: center;
  }
  .ex-hiw__cta{
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px){
  /* reset mobile centriranja */
  .ex-hiw__item{
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .ex-hiw__cta-wrap{
    text-align: left;
  }
}
.ex-hiw-banner__card {
  background: center / cover no-repeat var(--bg-d);
}

@media (max-width: 991px) {
  .ex-hiw-banner__card {
    background: center / cover no-repeat var(--bg-m, var(--bg-d));
  }
}
.ex-hiw-banner__card {
  background: center / cover no-repeat var(--bg-d);
  width: 100%;
}

@media (max-width: 991px) {
  .ex-hiw-banner__card {
    background: center / cover no-repeat var(--bg-m, var(--bg-d));
  }

  .ex-hiw-banner__card--full {
    width: 100%;
  }
}

/* ================================
   POPUP IFRAME (GHL) — FIXED
   ================================ */

.ex-popup-iframe {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ex-popup-iframe.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* overlay */
.ex-popup-iframe__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(4px);
}

/* dialog */
.ex-popup-iframe__dialog {
	position: relative;
	z-index: 2;
	width: min(100%, 1000px);
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ================================
   CLOSE BUTTON (PERFECT CENTER)
   ================================ */

.ex-popup-iframe__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;

	width: 44px;
	height: 44px;

	border: none;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;
	line-height: 0;
	font-size: 0;

	box-shadow: 0 6px 18px rgba(0,0,0,0.2);
	transition: all 0.2s ease;
}

.ex-popup-iframe__close::before {
	content: "×";
	font-size: 24px;
	line-height: 1;
	display: block;
	color: #111;
}

.ex-popup-iframe__close:hover {
	transform: scale(1.08);
	background: #f5f5f5;
}

/* ================================
   IFRAME WRAPPER — FIX
   ================================ */

.ex-popup-iframe__inner {
	width: 100%;
	background: #fff;
	line-height: 0;
}

/* ključni deo */
.ex-popup-iframe__inner iframe {
	display: block;
	width: 100%;
	border: none;

	/* OVO REŠAVA PRAZAN PROSTOR */
	height: min(65vh, 620px);
}

/* lock scroll */
body.ex-popup-open {
	overflow: hidden;
}

/* ================================
   MOBILE
   ================================ */

@media (max-width: 991px) {
	.ex-popup-iframe {
		padding: 16px;
	}

	.ex-popup-iframe__dialog {
		width: 100%;
		max-width: 95vw;
		border-radius: 14px;
	}

	.ex-popup-iframe__inner iframe {
		height: 70vh;
	}
}

@media (max-width: 575px) {
	.ex-popup-iframe {
		padding: 10px;
	}

	.ex-popup-iframe__dialog {
		border-radius: 12px;
	}

	.ex-popup-iframe__close {
		width: 38px;
		height: 38px;
		top: 10px;
		right: 10px;
	}

	.ex-popup-iframe__close::before {
		font-size: 20px;
	}
}
@media (max-width: 768px) {
	.ex-hiw-banner__card {
        padding: 145px 0;
    }
	.ex-hiw {
		padding-bottom:0;
	}
}
.program-layout-internshipusa .ex-hiw__cta-wrap a {
	display:none;
}
.program-layout-povracajporezausa .ex-hiw__cta-wrap a {
	display:none;
}