/*
Theme Name: ePotala
Template: Impreza
Version: 1.3
Author:	ePotala
Theme URI: https://impreza.us-themes.com/
Author URI: https://epotala.com/
*/

/*Add your own styles here:*/


@font-face {
	font-family: 'Qomolangma-UchenSarchen';
	src: url('fonts/Qomolangma-UchenSarchen.eot');
	src: local('☺'), url('fonts/Qomolangma-UchenSarchen.woff') format('woff'), url('fonts/Qomolangma-UchenSarchen.ttf') format('truetype'), url('fonts/Qomolangma-UchenSarchen.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}


@font-face {
	font-family: 'sam_yutso';
	src: url('fonts/sam_yutso.eot');
	src: local('☺'), url('fonts/sam_yutso.woff') format('woff'), url('fonts/sam_yutso.ttf') format('truetype'), url('fonts/sam_yutso.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}


@font-face {
	font-family: 'Qomolangma-UchenSarchung';
	src: url('fonts/Qomolangma-UchenSarchung.eot');
	src: local('☺'), url('fonts/Qomolangma-UchenSarchung.woff') format('woff'), url('fonts/Qomolangma-UchenSarchung.ttf') format('truetype'), url('fonts/Qomolangma-UchenSarchung.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Completely hide the dictionary search options (radio buttons row) */
.tdict .tdict-form .tdict-options,
.tdict .tdict-form .options,
.tdict .tdict-form fieldset,
.tdict .tdict-form label,
.tdict .tdict-form input[type="radio"] {
  display: none !important;
}


/*Fix the search button*/
/* Keep form centered */
.tdict .tdict-form {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

/* Input full width, leaving space for button */
.tdict .tdict-form input[type="text"],
.tdict .tdict-form input[type="search"] {
  width: 100%;
  height: 58px;
  padding: 0 130px 0 18px;
  font-size: 22px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Button perfectly aligned to right edge */
.tdict .tdict-form input[type="submit"],
.tdict .tdict-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 58px;
  padding: 0 30px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: #e85b26;
  color: #fff;
  cursor: pointer;
  line-height: 58px;
  transition: background 0.2s ease;
}

/* Hover */
.tdict .tdict-form input[type="submit"]:hover,
.tdict .tdict-form button:hover {
  background-color: #cf4f20;
}

/* Tiny visual alignment correction for the Search button */
.tdict .tdict-form input[type="submit"],
.tdict .tdict-form button {
  top: 0px;              /* move up slightly to align baseline */
  height: 75px;          /* slightly reduced for perfect match */
  line-height: 56px;
}


/*Do not required the definition*/

.tdict .tdict-card p {
    margin: 0;
    color: #374151;
    display: none !important;
}

/*Custom Search Text*/
/* Change font family for both search input and button */
.tdict .tdict-form input[type="search"],
.tdict .tdict-form input[type="text"],
.tdict .tdict-form input[type="submit"],
.tdict .tdict-form button {
  font-family: "Qomolangma-Uchen Sarchen", "Noto Serif Tibetan", sans-serif !important;
}

/* Specifically style placeholder text */
.tdict .tdict-form input[type="search"]::placeholder,
.tdict .tdict-form input[type="text"]::placeholder {
  font-family: "Qomolangma-Uchen Sarchung", "Noto Serif Tibetan", sans-serif !important;
  font-size: 20px;
  color: #555; /* optional */
}

/*search disappearance fixed on mobile*/
/* --- Mobile fixes for search input + button --- */
@media (max-width: 640px){

  /* let the form be full width */
  .tdict .tdict-form{
    max-width: 100%;
    padding: 0 16px;   /* optional breathing room */
  }

  /* input: full width, normal right padding (no room needed for absolute button) */
  .tdict .tdict-form input[type="text"],
  .tdict .tdict-form input[type="search"]{
    height: 54px !important;
    padding-right: 18px !important;
    font-size: 18px;
  }

  /* button: back to normal flow (no absolute), full width under input */
  .tdict .tdict-form input[type="submit"],
  .tdict .tdict-form button{
    position: static !important;
    display: block;
    width: 100%;
    height: 54px !important;   /* override that 75px */
    line-height: 54px !important;
    margin-top: 12px;
    border-radius: 10px;
  }
}

/* --- Tap/focus fix for mobile: ensure input is on top --- */
@media (max-width: 640px){
  .tdict .tdict-form input[type="text"],
  .tdict .tdict-form input[type="search"]{
    position: relative !important;
    z-index: 2 !important;   /* input above */
    pointer-events: auto !important;
  }

  .tdict .tdict-form input[type="submit"],
  .tdict .tdict-form button{
    position: static !important;  /* stacked below input */
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    line-height: 54px !important;
    margin-top: 12px !important;
  }
}

/*just font for mobile*/
/* --- Mobile layout + Tibetan font consistency --- */
@media (max-width: 640px){

  .tdict .tdict-form{
    max-width: 100%;
    padding: 0 16px;
  }

  .tdict .tdict-form input[type="text"],
  .tdict .tdict-form input[type="search"]{
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    height: 54px !important;
    padding-right: 18px !important;
    font-size: 20px !important;
    font-family: "Qomolangma-UchenSarchung", "Noto Serif Tibetan", sans-serif !important;
  }

  .tdict .tdict-form input[type="text"]::placeholder,
  .tdict .tdict-form input[type="search"]::placeholder{
    font-family: "Qomolangma-UchenSarchung", "Noto Serif Tibetan", sans-serif !important;
    font-size: 18px;
  }

  .tdict .tdict-form input[type="submit"],
  .tdict .tdict-form button{
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    line-height: 54px !important;
    margin-top: 12px !important;
    font-size: 20px !important;
    font-family: "Qomolangma-UchenSarchen", "Noto Serif Tibetan", sans-serif !important;
  }
}


/*Individual Pages*/
.header_hor .w-nav.type_desktop > .w-nav-list {
  display: flex;
  align-items: center;
  font-family: Qomolangma-UchenSarchen !important;
  font-size: 15px !important;
}


.l-subheader.at_middle, .l-subheader.at_middle .w-dropdown-list, .l-subheader.at_middle .type_mobile .w-nav-list.level_1 {
  background: #0071bc !important;
  color: #fff!important;
}

.l-subheader.at_top, .l-subheader.at_top .w-dropdown-list, .l-subheader.at_top .type_mobile .w-nav-list.level_1 {
  background: #104d74 !important;
}

.l-header .w-text {
  line-height: 1.5;
  color: #fff !important;
}


/*body*/
.l-section.height_custom {
  padding-top: var(--section-custom-padding,5vmax);
  padding-bottom: var(--section-custom-padding,5vmax);
  font-family: Qomolangma-UchenSarchung !important;
}