/* Hide language selector site-wide */
.lang_select {
  display: none !important;
}

/* ===== HEADER CONTAINER ===== */
.main_header div.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== HOMEPAGE HERO .block_about FIX ===== */
/* Desktop/tablet fix for .block_about hero block (skip phone-only) */
@media (min-width: 768px) {
  .s_top .block_about {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .s_top .block_about .block_bordered_inner {
    padding: 60px 70px 40px !important;
  }

  .s_top .block_about .list li {
    font-size: 18px !important;
    line-height: 26px !important;
    margin-bottom: 24px;
    padding-left: 44px;
  }

  .s_top .block_about .list li::before {
    width: 26px !important;
    height: 22px !important;
    top: 2px;
  }
}

/* ===== NEW HOMEPAGE SECTIONS ===== */

.why_choose,
.how_it_works,
.faq_section {
  padding: 60px 0;
}

.why_choose .block_inner,
.how_it_works .block_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.why_choose .s_title,
.how_it_works .s_title,
.faq_section .s_title {
  margin-bottom: 10px;
}

.why_choose .text-1 {
  margin-bottom: 30px;
  font-size: 18px;
  color: #555;
}

.why_choose_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.why_choose_grid .info_item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f7faf5;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
}

.why_choose_grid .info_item img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.why_choose_grid .info_item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.why_choose_grid .info_item b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.steps_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step_item {
  background: #fff;
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
}

.step_item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5C9346;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step_item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step_item p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* ===== FAQ SECTION ===== */

.faq_item {
  border: 1px solid #dfe4dc;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq_question {
  width: 100%;
  border: 0;
  text-align: left;
  background: #f7faf5;
  padding: 14px 40px 14px 18px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.4;
  color: #211B45;
  transition: background 0.2s;
}

.faq_question:hover {
  background: #eef5ea;
}

.faq_question::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: #5C9346;
  transition: transform 0.2s;
}

.faq_item.active .faq_question {
  background: #eef5ea;
}

.faq_item.active .faq_question::after {
  content: '−';
}

.faq_answer {
  display: none;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ===== TRUST BADGES ===== */

.trust_badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 20px 0 36px;
}

.trust_badges img {
  height: 28px;
  width: auto;
}

.trust_badges a {
  display: inline-flex;
}

/* Footer trust badges (social row) - smaller size */
.main_footer > .trust_badges {
  padding: 0 8rem 20px;
}

.main_footer > .trust_badges img {
  height: 24px;
}

/* ===== HOMEPAGE ARTICLE / LEGAL PAGES CONTENT ===== */

.homepage_article {
  padding: 50px 0 60px;
}

.homepage_article .block_inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.homepage_article h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  color: #211B45;
}

.homepage_article h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #211B45;
}

.homepage_article p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

.homepage_article ul,
.homepage_article ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.homepage_article li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #333;
}

.homepage_article a {
  color: #5C9346;
  text-decoration: underline;
}

.homepage_article a:hover {
  text-decoration: none;
}

/* ===== COUNTRY PAGE HERO ===== */

section.s_top.country_hero {
  padding-top: 150px !important;
  padding-bottom: 30px !important;
  height: auto !important;
  flex-direction: column !important;
  align-items: center !important;
}

section.s_top.country_hero .block_inner {
  padding-top: 30px !important;
  width: 100%;
}

section.s_top.country_hero .breadcrumbs {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.s_top.country_hero .main_title {
  margin-bottom: 16px;
  color: #211B45;
  font-size: 42px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.s_top.country_hero .text-1 {
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.05em !important;
  color: #1A1A1A !important;
  margin-bottom: 24px;
  max-width: 700px !important;
}

.country_hero .list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.country_hero .list li {
  position: relative;
  background: rgba(255,255,255,0.85);
  border: 1px solid #dfe4dc;
  border-radius: 6px;
  padding: 10px 16px 10px 38px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 0;
}

.country_hero .list li::before {
  top: 50% !important;
  transform: translateY(-50%);
  left: 10px !important;
  width: 20px !important;
  height: 18px !important;
}

/* ===== HOMEPAGE RULES SECTION ===== */

/* Keep flex centering from styles.min.css, just constrain width */
.page_main .rules .block_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Constrain .block_info so it doesn't overflow the centered container */
.page_main .rules .block_info {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== COUNTRY PAGE SECTIONS ===== */

/* Rules section on country pages only (after .country_hero) */
.country_hero ~ .rules {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.country_hero ~ .rules .block_inner {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.country_hero ~ .rules h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #211B45;
  text-align: center;
}

.country_hero ~ .rules p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: center;
}

.country_hero ~ .rules ul {
  padding-left: 20px;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.country_hero ~ .rules li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #333;
}

/* Info banner on country pages */
body.page_main .info_banner {
  padding: 3rem 0;
  background: #f7faf5;
}

body.page_main .info_banner .block_inner {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 20px;
  text-align: center;
}

body.page_main .info_banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #211B45;
}

body.page_main .info_banner p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

body.page_main .info_banner a {
  color: #5C9346;
  text-decoration: underline;
}

body.page_main .info_banner a:hover {
  text-decoration: none;
}

/* Homepage: center the conditions_top section (match conditions_blocks centering) */
.conditions_top {
  display: flex;
  justify-content: center;
}

.conditions_top .block_inner {
  display: block !important;
  width: 1200px;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.conditions_top .desc {
  max-width: 100%;
}

.conditions_top .image {
  display: none;
}

.conditions_top .s_title {
  text-align: center !important;
}

.conditions_top .text-1 {
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Conditions list: card-style grid for all pages */
body.page_main .conditions .conditions_list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

body.page_main .conditions .conditions_list li {
  background: #f7faf5;
  border: 1px solid #dfe4dc;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
}

/* Conditions section on country pages only */
.country_hero ~ .conditions {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.country_hero ~ .conditions > .block_inner {
  display: block !important;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.country_hero ~ .conditions > .block_inner h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #211B45;
  margin-bottom: 20px;
}

/* Trust badges centering on country pages */
.country_hero ~ .trust_badges {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Iframe on country pages needs more height since it's on an inner page */
.page_main .form_iframe iframe {
  min-height: 1200px !important;
}

/* Country FAQ section */
body.page_main .faq_section {
  padding: 40px 0 50px;
}

body.page_main .faq_section .block_inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

body.page_main .faq_section .s_title {
  text-align: center;
  margin-bottom: 24px;
}

/* Ensure homepage country pill buttons keep white text on green hover */
.countries_information .country a:hover {
  color: #fff !important;
}

/* ===== FOOTER ENHANCEMENTS ===== */

.main_footer .main_footer_inner {
  display: flex !important;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  padding: 4rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.main_footer .main_footer_inner > div {
  flex: 1;
  min-width: 140px;
  text-align: left;
}

.main_footer .main_footer_inner > .logo {
  flex: 1.5;
  min-width: 200px;
  text-align: left;
}

.main_footer .footer_col_title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.main_footer .f_links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  align-items: flex-start !important;
}

.main_footer .f_link {
  display: block;
  margin-right: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
  text-align: left;
}

.main_footer .f_link:after {
  display: none;
}

.main_footer .f_link:hover {
  color: #5C9346;
}

.main_footer .right-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start !important;
}

.main_footer .right-col a {
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
}

.main_footer .right-col a.popup_btn {
  text-decoration: underline;
}

.main_footer .right-col a.f_link {
  position: static;
  margin-right: 0;
  padding: 0;
}

.main_footer .right-col a:hover {
  color: #5C9346;
}

/* ===== ARTICLE PAGES (generated /articles/*) ===== */

.page_blog .post_body {
  max-width: 860px;
}

.page_blog .post_body h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #211B45;
}

.page_blog .post_body h2 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #211B45;
}

.page_blog .post_body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #211B45;
}

.page_blog .post_body p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #333;
}

.page_blog .post_body ul,
.page_blog .post_body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page_blog .post_body li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.page_blog .post_body a {
  color: #5C9346;
  text-decoration: underline;
}

.page_blog .post_body a:hover {
  text-decoration: none;
}

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

/* Override original CSS that hides footer links at tablet sizes */
@media (min-width: 768px) {
  .main_footer .main_footer_inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .main_footer .f_links {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 1023px) {
  .main_footer .main_footer_inner {
    padding: 40px 20px !important;
    gap: 24px;
  }

  .main_footer .main_footer_inner > div {
    min-width: 120px;
  }

  .main_footer > .trust_badges {
    padding: 0 20px 16px;
  }

  section.s_top.country_hero {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
  }

  section.s_top.country_hero .block_inner {
    padding-top: 20px !important;
  }

  section.s_top.country_hero .main_title {
    font-size: 26px !important;
  }

  section.s_top.country_hero .text-1 {
    font-size: 15px !important;
    letter-spacing: normal !important;
  }

  .page_main .form_iframe iframe {
    min-height: 1600px !important;
  }

  /* Fix Entry Rules block taking only left side on tablets */
  .block_info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 50px 40px 80px !important;
    box-sizing: border-box;
  }

  .block_about {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .why_choose_grid {
    grid-template-columns: 1fr;
  }

  .steps_grid {
    grid-template-columns: 1fr;
  }

  .main_footer .main_footer_inner {
    flex-direction: column;
    gap: 20px;
  }

  .main_footer .main_footer_inner > div {
    min-width: 0;
  }

  .main_footer .f_links {
    display: flex;
  }

  .main_footer .right-col {
    align-items: center;
    text-align: center;
  }

  .main_footer > .trust_badges {
    padding: 0 16px 16px;
  }

  .country_hero .list {
    flex-direction: column;
    gap: 8px;
  }

  body.page_main .conditions .conditions_list {
    grid-template-columns: 1fr;
  }

  .homepage_article h2 {
    font-size: 24px;
  }

  .homepage_article h3 {
    font-size: 19px;
  }

}
