.countries-section{
  padding-top: 145px;
}

/* Cards grid wrapper — match auto-container width so cards align with heading & logo */
.countries-section .tabs-content .content-box {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 55px;
  box-sizing: border-box;
}

.countries-section .countries-block-one{
  float: left;
  width: 25%;
  padding: 0 12px;
  box-sizing: border-box;
  margin-bottom: 30px;
}


/* ===== SPLIT CARD ANIMATION ===== */
/* The card wrapper — hides overflowing split parts */
.countries-block-one .inner-box{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0px 16px 35px rgba(2, 16, 36, 0.12);
  transition: box-shadow 500ms ease, transform 500ms ease;
  height: 420px; /* Restored back to original normal height */
  cursor: pointer;
}

.countries-block-one .inner-box:hover{
  transform: translateY(-8px);
  box-shadow: 0px 30px 60px rgba(2, 16, 36, 0.25);
}

/* ---- BACKGROUND IMAGE — always visible behind overlay ---- */
.countries-block-one .inner-box .image-box{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* full card height always */
  overflow: hidden;
  background: var(--main-color);
  border-radius: 20px;
  z-index: 0; /* behind overlay and label */
  transition: none;
  transform: none; /* always in place */
}

/* On hover: reveal image clearly (overlay fades out via ::before) */
.countries-block-one .inner-box:hover .image-box{
  transform: none;
}

.countries-block-one .inner-box .image-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 500ms ease;
}

.countries-block-one .inner-box:hover .image-box img{
  transform: scale(1.06);
  filter: brightness(1.08);
}

/* ---- BOTTOM HALF: INFO slides UP from below on hover ---- */
.countries-block-one .inner-box .text{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%; /* bottom 55% */
  background: #ffffff;
  padding: 15px 18px 12px; /* Reduced padding to fit 420px height */
  z-index: 2;
  border-radius: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  /* Default: info is slid DOWN, hidden below */
  transform: translateY(100%);
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* On hover: info slides UP into position */
.countries-block-one .inner-box:hover .text{
  transform: translateY(0%);
  background: linear-gradient(160deg, #ffffff 0%, #f0f4f8 100%);
}

/* Default visible state — glass overlay so image peeks through */
.countries-block-one .inner-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(3,43,102,0.75) 0%, rgba(26,58,107,0.70) 100%);
  z-index: 1;
  transition: opacity 550ms ease;
  opacity: 1;
}

/* On hover: overlay fades away, full image revealed */
.countries-block-one .inner-box:hover::before {
  opacity: 0;
}

/* Image brightness — subtle in default, vivid on hover */
.countries-block-one .inner-box .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transform: scale(1.0);
  transition: filter 600ms ease, transform 700ms ease;
}

.countries-block-one .inner-box:hover .image-box img {
  filter: brightness(1.05);
  transform: scale(1.06);
}

/* Country name visible in default state */
.countries-block-one .inner-box .default-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #ffffff;
  text-align: center;
  transition: opacity 400ms ease 100ms, transform 400ms ease;
  pointer-events: none;
}

.countries-block-one .inner-box:hover .default-label {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.countries-block-one .inner-box .default-label h4 {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.countries-block-one .inner-box .default-label span {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ---- TEXT STYLES inside bottom half ---- */
.countries-block-one .inner-box .text h3{
  position: relative;
  display: block;
  font-size: 22px;
  line-height: 28px;
  margin-bottom: 6px; /* tighter spacing */
  text-transform: uppercase;
  font-weight: 700;
  color: var(--main-color);
  transition: color 300ms ease;
}

.countries-block-one .inner-box:hover .text h3{
  color: var(--secondary-color);
}

.countries-block-one .inner-box .text h3 a{
  display: inline-block;
  color: var(--main-color);
  transition: all 300ms ease;
}

.countries-block-one .inner-box .text h3 a:hover{
  color: var(--secondary-color);
}

/* ---- VISA BADGE ---- */
.countries-block-one .inner-box .text .visa-badge {
  display: inline-block;
  background: rgba(3,43,102,0.1);
  color: var(--main-color);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 6px; /* tighter spacing */
  border: 1px solid rgba(3,43,102,0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease 150ms, transform 350ms ease 150ms;
}

.countries-block-one .inner-box:hover .text .visa-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ---- VISA INFO LIST ---- */
.countries-block-one .inner-box .text .visa-info-list {
  list-style: none;
  margin: 0 0 6px 0; /* tighter spacing */
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 200ms, transform 400ms ease 200ms;
}

.countries-block-one .inner-box:hover .text .visa-info-list {
  opacity: 1;
  transform: translateY(0);
}

.countries-block-one .inner-box .text .visa-info-list li {
  font-size: 12.5px;
  color: #52647A;
  line-height: 1.6; /* slightly tighter lines */
  padding: 1px 0;
}

/* ---- LEARN MORE CTA ---- */
.countries-block-one .inner-box .text .card-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 2px;
  transition: color 300ms ease, letter-spacing 300ms ease;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease 300ms, transform 400ms ease 300ms, color 300ms ease;
}

.countries-block-one .inner-box:hover .text .card-cta {
  opacity: 1;
  transform: translateY(0);
}

.countries-block-one .inner-box .text .card-cta:hover {
  color: var(--secondary-color);
  letter-spacing: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.countries-section .tab-btns li{
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--secondary-color);
  margin: 0px 30px;
  cursor: pointer;
  padding-bottom: 22px;
  transition: all 500ms ease;
}

.countries-section .tab-btns li:before{
  position: absolute;
  content: '\e914';
  font-family: 'icomoon';
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%) scale(0,0);
  transition: all 500ms ease;
}

.countries-section .tab-btns li.active-btn:before,
.countries-section .tab-btns li:hover:before{
  transform: translateX(-50%) scale(1,1);
}

.countries-section .pattern-layer .pattern-1{
  position: absolute;
  left: 0px;
  top: -45px;
  width: 781px;
  height: 845px;
  background-repeat: no-repeat;
}

.countries-section .pattern-layer .pattern-2{
  position: absolute;
  top: 0px;
  right: 0px;
  width: 263px;
  height: 532px;
}


/** countries-style-two **/

.countries-style-two{
  padding: 145px 0px 300px 0px;
  overflow: hidden;
}

.countries-style-two:before{
  position: absolute;
  content: '';
  background: var(--main-color);
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.countries-style-two .sec-title .sub-title:after {
  color: #fff;
  background: #032f70;
}

.countries-block-two .inner-box{
  position: relative;
  display: block;
}

.countries-block-two .inner-box .image-box{
  position: relative;
  display: block;
  width: 333px;
  height: 333px;
  border-radius: 50%;
  overflow: hidden;
}

.countries-block-two .inner-box .image-box:before{
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.countries-block-two .inner-box .image-box:after{
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(180, 196, 217, 0) 0%, rgba(9, 44, 76, 0.8) 100%);
}

.countries-block-two .inner-box .image-box img{
  width: 100%;
  border-radius: 50%;
  transition: all 500ms ease;
}

.countries-block-two .inner-box .image-box:hover img{
  transform: scale(1.1);
}

.countries-block-two .content-box h3{
  position: relative;
  display: block;
  font-size: 28px;
  line-height: 34px;
  margin-top: 30px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
}

.countries-block-two .content-box h3 a{
  display: inline-block;
  color: #ffffff;
  transition: all 300ms ease;
}

.countries-block-two .content-box h3 a:hover{
  color: var(--secondary-color);
}

.countries-block-two .content-box p{
  position: relative;
  display: block;
  font-size: 16px;
  line-height: 26px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.countries-block-two .content-box .link{
  position: relative;
  display: block;
}

.countries-block-two .content-box .link a{
  position: relative;
  display: inline-block;
  color: var(--secondary-color);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  transition: all 300ms ease;
}

.countries-block-two .content-box .link a:hover{
  padding-right: 8px;
}

.countries-block-two .content-box .link a i{
  margin-left: 8px;
  transition: all 300ms ease;
}

.countries-block-two .content-box .link a:hover i{
  margin-left: 12px;
}

/** responsive-countries **/

@media only screen and (max-width: 1199px){
  .countries-section .countries-block-one{
    width: 33.333%;
  }
  .countries-section .tabs-content .content-box {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 767px){
  .countries-section .tabs-content .content-box {
    padding: 0 15px;
  }
  .countries-block-one .inner-box {
    height: 360px;
  }
}

@media only screen and (max-width: 480px){
  .countries-section .countries-block-one{
    width: 100%;
  }
  .countries-block-one .inner-box {
    height: 320px;
  }
}
