/* =========================================
   St Helena Travel Portal – Theme (scoped)
   ========================================= */
.sh-theme {
    /* Colors */
    --navy: #023656;
    --footer-navy: #0D1D27;
    --bg: #F5F5F4;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #4b5563;
    --yellow: #EDDB38;
    --yellow-ink: #333333;
    --log-in-blue: #0178AB;

    /* Effects */
    --ring: rgba(14, 49, 64, .14);

    /* Layout */
    --hero-h: 320px;
    /* desktop hero height */

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text);
    background: var(--bg);
    font: 16px/1.55 Arial, sans-serif;
}

.sh-theme .layout.container {
    max-width: 1400px;
    /* or wider than Bootstrap’s default */
    padding-left: 0;
    /* remove default padding */
    padding-right: 0;
    gap: 2rem;
}

.sh-theme .container-xll {
    max-width: 1400px;
    padding-left: 0px;
    padding-right: 0px;
    gap: 2rem;
}

/* Page spacing */
.sh-theme .main {
    padding-bottom: 4rem;
    position: relative;
}

/* =================
   Header / Top bar
   ================= */
.sh-theme .site-header {
    background: var(--navy);
    color: #fff;
}

.sh-theme .site-header__bar {
    height: 82px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* back | title | nav */
    align-items: center;
    gap: 1rem;
}

/* Title */
.sh-theme .site-title {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 33px;
    /* per design */
    letter-spacing: -1%;
    color: #fff;
    justify-self: center;
}

.sh-theme .site-title a {
    color: #fff;
    text-decoration: none;
}

/* Back to main site link */
.sh-theme .link-back {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

.sh-theme .link-back:hover {
    text-decoration: underline;
}

/* Right nav */
.sh-theme .site-nav {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sh-theme .site-nav__link {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

.sh-theme .site-nav__link:hover {
    text-decoration: underline;
}




/* Login button */
.sh-theme .btn--login {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    background: var(--log-in-blue);
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s ease-in-out;
}

.sh-theme .btn--login:hover {
    filter: brightness(0.95);
}


/* =====
   Hero
   ===== */
.sh-theme .hero {
    background: #000;
    position: relative;
}

.sh-theme .hero__img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 70%;
}

.hero {
    .hero-section-text {
        height: 72px;
        background-color: #148BBE;
        font-size: ;
        line-height: 62px;
        font-weight: 700;
        color: #FFFFFF;
        position: absolute;
        bottom: 0;
        display: flex;
        align-items: center;
        padding: 25px;
        @media (min-width:768px) {
            width: 50%;
            margin-left: 100px;
            font-size: 26px;
            padding-left: 25px;
        }
        @media (min-width:1280px) {
            width: 50%;
            margin-left: 250px;
            font-size: 46px;
            padding-left: 25px;
        }
    }
}

.full-height .hero__img {
    height: 340px !important;
}
.sidebar {
    background-color: #FFFFFF;
    width: 342px;
    border-radius: 8px;
}
.sidebar li {
    display: flex;
    align-items: center;
    height: 51px;
    font-size: 16px;
}
.sidebar li a {
    text-decoration: none;
    color: #077EB1;
    font-weight: 700;
}
.sidebar li:hover , li:active a {
    height: 51px;
    background-color: #F0F0EC;
    font-size: 16px;
}

@media (max-width:760px) {
    .sh-theme {
        --hero-h: 240px;
    }
}

/* =======================
   Two-column main section
   ======================= */
.sh-theme .layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    margin-top: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.sh-theme .layout>article.content {
    margin-top: 2rem;
    /* push text down */
    max-width: 650px;
}

@media (max-width:992px) {
    .sh-theme .layout {
        grid-template-columns: 1fr;
    }
}

/* ===================
   Typography / text
   =================== */
.sh-theme .h2,
.sh-theme .h3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.02em;
    color: #333333;
    margin-bottom: 1.5em;
}

.sh-theme p {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0;
    color: #333333;
    margin: 0 0 27px;
}

/* =======
   Buttons
   ======= */
.sh-theme .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;
    padding: 0 24px;
    margin-bottom: 1em;

    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333333;

    border-radius: 999px;
    background: #EDDB38;
    border: 2px solid #EDDB38;
    text-decoration: none;
    transition: filter 0.15s ease-in-out;
}

.sh-theme .card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* line buttons up on the left */
    gap: 0.75rem;
}

/* Make buttons size only to their content */
.sh-theme .card__actions .btn {
    display: inline-flex;
    /* shrink to fit content */
    width: auto;
    /* no forced stretch */
    min-width: unset;
    /* override any min-width */
    text-align: left;
    /* keep text aligned */
}

.sh-theme .btn--primary {
    background: #EDDB38;
    border-color: #EDDB38;
    color: #333333;
}

.sh-theme .btn--primary:hover {
    filter: brightness(.95);
}

.sh-theme .btn--secondary {
    background: transparent;
    border: 2px solid #EDDB38;
    color: #333333;
}

.sh-theme .btn--secondary:hover {
    background: #EDDB38;
    color: #333333;
}

.sh-theme .btn::after {
    content: "→";
    font-weight: 700;
    margin-left: .35rem;
}
.sh-theme .link-back::before,
.sh-theme .site-nav__link.back_to_main::before
{
    content: "←";
    font-weight: 700;
    margin-right: .35rem;
}

/* =========
   Card box
   ========= */
.sh-theme aside.card {
    background: var(--card);
    border: 0;
    border-radius: 0;
    padding: 2rem 1.5rem;
    max-width: 530px;
    /* controls total card width */
    max-height: 360px;
    margin: 0 auto;
    /* center the card in its grid cell */
    overflow: hidden;
    background-clip: padding-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    /* centers the content block */
}

.sh-theme aside.card>* {
    width: 100%;
    /* make inner text/buttons span full width */
    text-align: left;
    /* but keep text left aligned */
}

.sh-theme .card__actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .5rem;
}

.sh-theme .layout>aside.card {
    position: relative;
    z-index: 2;
    transform: translateY(calc(-0.20 * var(--hero-h)));
}

@media (max-width:992px) {
    .sh-theme .layout>aside.card {
        transform: translateY(calc(-0.20 * var(--hero-h)));
    }
}

@media (max-width:760px) {
    .sh-theme .layout>aside.card {
        transform: none;
        margin-top: 1rem;
    }
}

/* ====== Footer ====== */
.sh-theme .site-footer {
    height: 284px;
    background: var(--footer-navy);
    color: #cbd5e1;
    padding: 3rem 0 2.25rem;
}

.sh-theme .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 1400px;
    /* match the body/container */
    margin: 0 auto;
    /* center the grid */
    padding: 0 2rem;
    /* give a bit of breathing room on edges */
}

@media (max-width: 760px) {
    .sh-theme .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* footer title */
.sh-theme .footer-title {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
    color: #ffffff;
    margin-bottom: .5rem;
}

/* footer address */
.sh-theme .footer-address {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 27px;
    color: #ffffff;
    margin: .25rem 0 1rem;
}

/* footer links (right column) */
.sh-theme .footer-links {
    justify-self: end;
    /* push them to the right */
}

.sh-theme .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: flex-end;
    /* align text to the right */
    text-align: right;
    /* text also flush right */
}


.sh-theme .footer-links a {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 27px;
    color: #ffffff;
    text-decoration: right;
}

.sh-theme .footer-links a:hover {
    text-decoration: underline;
}

/* copyright */
.sh-theme .footer-small {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;
    color: #5799C1;
    margin-top: 1rem;
}

.sh-theme .nav-toggle {
  display: none;
}

.sh-theme .site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
}

.sh-theme .site-title {
  justify-self: center;
  text-align: center;
}

.sh-theme .link-back {
  justify-self: start;
}

.sh-theme .site-nav-desktop {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}


  .sh-theme .site-nav__links{
     display: none !important;  /* hide mobile nav on desktop */
  }

/* ===========================
   Responsive additions only
   =========================== */

/* ≥1440px (large desktop) */
@media (min-width: 1440px) {
    .sh-theme {
        --hero-h: 320px;
    }

    .sh-theme .layout {
        gap: 6rem;
    }

    .sh-theme .layout>aside.card {
        max-width: 560px;
        transform: translateY(calc(-0.24 * var(--hero-h)));
    }
}

/* ≥1920px (ultrawide) — placed after 1440 so it wins on very large screens */
@media (min-width: 1920px) {
    .sh-theme {
        --hero-h: 360px;
    }

    .sh-theme .layout {
        gap: 8rem;
    }
}

/* 1200–1439px (desktop/laptop) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .sh-theme .layout {
        gap: 4rem;
    }

    .sh-theme .layout>aside.card {
        max-width: 520px;
        transform: translateY(calc(-0.20 * var(--hero-h)));
    }

    .sh-theme .layout.container {
        max-width: 80%;
    }
}


/* ≤991px (tablet & down) */
@media (max-width: 1199px) {

    .sh-theme .site-header__bar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title title"
            "back nav";
        row-gap: .5rem;
        padding: .5rem 0;
    }

    .sh-theme .site-title {
        grid-area: title;
        justify-self: center;
    }

    .sh-theme .link-back {
        grid-area: back;
    }

    .sh-theme .site-nav {
        grid-area: nav;
        justify-self: end;
    }
.sh-theme .site-nav__links{
    display: grid !important;
}

    .sh-theme .nav-toggle {
    display: inline-flex !important;
  }
    /* keep content off the edges */
    .sh-theme .layout.container,
    .sh-theme .site-footer__grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* header: centered + hamburger */
    .sh-theme .site-header__bar {
        position: relative;
        grid-template-columns: auto 1fr auto;
        /* back | title | hamburger */
        gap: .75rem;
    }

    .sh-theme .link-back {
        justify-self: start;
        text-align: left;
    }

    .sh-theme .site-title {
        justify-self: center;
        text-align: center;
        font-size: 28px;
    }

    .sh-theme .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    /* dropdown top nav (collapsed) */
    .sh-theme .site-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: .75rem 1rem 1rem;
        border-top: 1px solid rgba(255, 255, 255, .15);
        text-align: center;
    }

    .sh-theme .site-nav.is-open {
        display: grid !important;
        gap: .6rem;
        justify-items: center;
        align-items: start;
        padding-top: 6em;
    }

    .sh-theme .site-nav__link {
        font-size: 14px;
    }

    .sh-theme .btn--login {
        font-size: 14px;
        padding: 7px 12px;
    }

    /* main two-col → single column, center the text block + FAQ button */
    .sh-theme .layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sh-theme .layout.container {
        gap: 0;
    }

    .sh-theme .layout>aside.card {
        transform: none;
    }

    .sh-theme .layout>article.content {
        margin: 0 auto;
        text-align: center;
    }

    .sh-theme .layout>article.content .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .sh-theme .layout>article.content {
        margin: 0 auto;
        /* center block in the grid */
        text-align: center;
        /* center all text inside */
    }

    .sh-theme .layout>article.content .btn {
        margin-left: auto;
        margin-right: auto;
        /* center FAQ button */
    }

    .sh-theme aside.card>* {
        text-align: center;
    }

    .sh-theme .card__actions .btn {
        width: 100%;
    }

    .sh-theme .footer-links {
        justify-self: center;
    }

    .sh-theme .footer-links ul {
        align-items: center;
        text-align: center;
    }

}

/* ≤760px (phones) */
@media (max-width: 760px) {

    .sh-theme .h2,
    .sh-theme .h3 {
        font-size: 26px;
    }

    .sh-theme p {
        font-size: 15px;
        line-height: 24px;
    }

    .sh-theme .site-title {
        font-size: 24px;
    }

    .sh-theme {
        --hero-h: 240px;
    }

    /* slightly tighter than 260px */
    .sh-theme .card__actions .btn {
        width: 100%;
    }

    .sh-theme .footer-links { order: -1; }   /* move links above */
    .sh-theme .footer-address { order: 1; }  /* address goes below */
    .sh-theme .site-footer{height: 450px !important;}
}

/* ≤480px (small phones) */
@media (max-width: 480px) {
    .sh-theme .site-title {
        font-size: 20px;
    }

    .sh-theme .link-back,
    .sh-theme .site-nav__link {
        font-size: 11px;
    }

    .sh-theme .btn--login {
        font-size: 11px;
        padding: 5px 8px;
    }

    .sh-theme {
        --hero-h: 160px;
    }

    .sh-theme .layout>article.content {
        margin-top: 1rem;
    }
}

/* ≤360px (very small devices) */
@media (max-width: 360px) {
    .sh-theme .site-title {
        font-size: 18px;
    }

    .sh-theme .btn {
        font-size: 15px;
        padding: 0 18px;
    }
}

/* Helpers (not responsive) */
.sh-theme .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sh-theme .nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    padding: 6px;
    line-height: 1;
    border-radius: 8px;
}

.sh-theme .nav-toggle svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* HAMBURGER MENU  */

/* Desktop stays as before */
@media (min-width: 1200px) {
  .sh-theme .site-nav {
    position: static;
    display: flex !important;
    background: none;
    height: auto;
    gap: 1rem;
  }
  .sh-theme .nav-toggle,
  .sh-theme .nav-close {
    display: none !important;
  }
}

/* Mobile overlay */
@media (max-width: 1199px) {
    .site-nav-desktop,
    .link-back {
        display: none !important;
    }
  .sh-theme .site-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease-in-out;
    z-index: 10000;
    padding: 2rem;
  }

  /* Close "X" button */
  .sh-theme .nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
  }

  .sh-theme .nav-close svg {
    width: 100%;
    height: 100%;
  }

  /* Links inside overlay */
  .sh-theme .site-nav__links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;

  }

  .sh-theme .site-nav__link {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
  }

  .sh-theme .site-nav__link:hover {
    text-decoration: underline;
  }

  .sh-theme .btn--login {
    font-size: 18px;
    padding: 10px 20px;
  }
}
.bg-E1E1DA {
    backgroud: #E1E1DA;
}
.radio-design {
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    padding: 8px 17px 8px 30px;
    margin-right: 15px;
}
.application-title{
    font-weight: 700;
    font-size: 30px;
    line-height: 41px;
    display: contents;
}
.application-title-container{
    width: auto;
    height: 49px;
    background: #E1E1DA;
    padding: 4px 16px 4px 16px;
}
.documents-question-container{
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    gap: 12px;
}
.documents-question-container hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    margin: 8px 0;
    align-self: stretch;
}
.document-question-title{
    width: auto;
    height: 31px;
    gap: 12px;
}
.document-questions{
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 27px;
}
.document-question-index{
    width: 29px;
    height: 31px;
    border-radius: 38px;
    gap: 10px;
    padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 2px;
    padding-left: 10px;
    background: #ffffff;
    font-weight: bold;
}
.document-type-list {
    display: grid;
    gap: 10px;
    list-style-type: disc
}
.custom-drop-down{
    width: fit-content;
    height: 43px;
    min-width: 64px;
    border-radius: 8px;
    border-width: 1px;
    padding: 8px 40px 8px 18px;
    border: 1px solid #E0E0E0;
    background: url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
              no-repeat right 12px center/16px;
    -webkit-appearance: none;
}
.gap-20 {
    gap: 20px;
}

/* faq css */
details {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

summary {
    padding: 1.25rem 1.25rem;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    padding: 1rem 1.25rem;
    margin: 0;
    background-color: #ffffff;
    color: #495057;
}
.plus-button,
.minus-button {
    width: 41px;
    height: 41px;
}
details .minus-button {
    display: none;
}
details[open] .minus-button {
    display: inline-flex;
}
details[open] .plus-button {
    display: none;
}
/* faq css */
.hero-section-text.custom-hero-text {
    width: auto;
    line-height: 2;
    @media (min-width: 1024px) {
        padding-right: 100px;
    }
}
.breadcrumb {
    gap: 5px;
    li, li a {
        color: #023656;
    }
}
@media (max-width: 1280px) {
    .sidebar {
        width: auto;
    }
}

@media (max-width: 1024px) {
    /* Sidebar off-canvas */
    .sidebar-wrapper {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100%;
        background: #fff;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .sidebar-wrapper.active {
        left: 0;
    }

    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(4px);
        background: rgba(0,0,0,0.3);
        display: none;
        z-index: 1040;
    }

    #overlay.active {
        display: block;
    }
}

@media (min-width: 1025px) {
    .sidebar-wrapper {
        position: static;
        left: 0 !important;
        height: auto;
        width: auto;
        transition: none;
    }
    #overlay {
        display: none !important;
    }
    #sidebarToggle {
        display: none;
    }
}
