/* ================================
   Kurhula refresh - layout fixes
   Add at VERY BOTTOM of style.css
================================ */

/* 1) Ensure background stays consistent + readable */
html, body { height: 100%; }

body{
  background: url(../images/bg.jpg) no-repeat center center fixed !important;
  background-size: cover !important;
}

/* overlay */
body:before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,.55);
  z-index: -1;
}

/* 2) Base layout safety */
*{ box-sizing: border-box; }

img{
  max-width: 100%;
  height: auto;
}

.material-symbols-outlined{
  font-size: 20px;
  vertical-align: middle;
  margin-right: 6px;
}

/* 3) Tab handling */
.fh5co-tab-content{
  position: absolute;
  left: -99999px;
  top: 0;
  width: 100%;
  display: block;
  visibility: hidden;
  opacity: 0;
}

.fh5co-tab-content.active{
  position: relative;
  left: 0;
  visibility: visible;
  opacity: 1;
}

/* 4) Keep content inside cards */
.km-hero-card,
.km-card,
.fh5co-content-inner{
  overflow: hidden;
}

/* 5) Card readability */
.km-hero-card,
.km-card{
  background: rgba(255,255,255,.92) !important;
  color: #111 !important;
}

.km-hero-card p,
.km-card p,
.km-hero-card h1,
.km-card h1,
.km-card h2,
.km-card h3,
.km-card h4,
.km-card li,
.km-card a{
  color: #111 !important;
}

/* 6) Prevent long text/links from breaking layout */
.km-card p,
.km-hero-card p,
.fh5co-content-inner p,
.km-card li,
.km-card a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 7) Avoid justified text overflow */
.km-card p[align="justify"],
p[align="justify"]{
  text-align: left !important;
}

/* 8) Bootstrap column spacing inside cards */
.km-card .row{
  margin-left: -15px;
  margin-right: -15px;
}

.km-card [class*="col-"]{
  padding-left: 15px;
  padding-right: 15px;
}

.section-header-inside{
  text-align: center;
  margin-bottom: 24px;
}
#fh5co-main.km-shell{
  margin-bottom: 80px;
}

/* =================================
   CONTACT SECTION - KEEP THIS ONLY
================================= */


.km-contact-card{
  background: rgba(255,255,255,.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
  padding: 26px 22px;
}


.section-header-inside{
  text-align: center;
  margin-bottom: 24px;
}

.section-header-inside h2{
  margin: 0 0 8px;
  font-weight: 800;
  color: #121826 !important;
}

.km-contact-section{
  max-width: 980px;
  margin: 40px auto 0;
  position: relative;
  z-index: 1;
}

.km-contact-intro{
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 0 10px;
  color: #555 !important;
  text-align: center;
  line-height: 1.7;
}

.km-contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.km-contact-box{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(18,24,38,.10);
  border-radius: 14px;
  padding: 16px;
}

.km-contact-box h3,
.km-contact-box h4{
  color: #121826 !important;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 800;
}

.km-contact-box p,
.km-contact-box div,
.km-contact-box a,
.km-contact-box strong,
.km-contact-line{
  color: rgba(18,24,38,.78) !important;
}

.km-contact-line{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.km-contact-line strong{
  color: #121826 !important;
}

.km-contact-line a{
  color: #1f3b2c !important;
  text-decoration: none;
}

.km-contact-line a:hover{
  text-decoration: underline;
}

.km-contact-subgroup{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(18,24,38,.10);
}

.km-contact-subgroup p{
  margin: 0 0 10px;
  line-height: 1.7;
}

.km-form-group{
  margin-bottom: 14px;
}

.km-form-control{
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(18,24,38,.12);
  border-radius: 12px;
  font-size: 14px;
  color: #121826 !important;
  background: rgba(255,255,255,.98);
  outline: none;
  transition: all .25s ease;
}

.km-form-control:focus{
  border-color: rgba(31,59,44,.35);
  box-shadow: 0 0 0 3px rgba(31,59,44,.08);
}

textarea.km-form-control{
  resize: vertical;
  min-height: 130px;
}

.km-form-note{
  margin: 12px 0 0;
  color: rgba(18,24,38,.70) !important;
  font-size: 13px;
}

/* =================================
   FOOTER - KEEP THIS ONLY
================================= */
.km-footer-wrap{
  max-width: 980px;
  margin: 18px auto 0;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.km-footer-card{
  background: rgba(17,24,39,.82);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  overflow: hidden;
}

.km-footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  padding: 22px;
}

.km-footer-box{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
}

.km-footer-box h4{
  margin: 0 0 10px;
  color: #fff !important;
  font-weight: 800;
}

.km-footer-box p,
.km-footer-box li,
.km-footer-box a{
  color: rgba(255,255,255,.82) !important;
  line-height: 1.7;
}

.km-footer-box ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.km-footer-box li{
  margin-bottom: 8px;
}

.km-footer-box a{
  text-decoration: none;
}

.km-footer-box a:hover{
  color: #fff !important;
  text-decoration: underline;
}

.km-footer-contact a{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.km-footer-bottom{
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  text-align: center;
  color: rgba(255,255,255,.88);
}

.km-footer-bottom p{
  margin: 0 0 8px;
}

.km-footer-bottom p:last-child{
  margin-bottom: 0;
}

.km-footer-verse{
  font-style: italic;
  color: rgba(255,255,255,.74) !important;
}

/* 9) Responsive */
@media (max-width: 900px){
  .km-contact-grid,
  .km-footer-grid{
    grid-template-columns: 1fr;
  }

  .km-contact-section,
  .km-footer-wrap{
    margin-top: 28px;
  }
}