/* only ipad 1024 and bigger screen landscape screen */
@media only screen and (min-width: 768px) {
	#mainmenu>ul {
		display: flex !important;
	}

	.nav-item.dropdown {
		position: relative;
	}

	.dropdown-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 150px;
		white-space: nowrap;
		background: #fff;
		opacity: 0;
		transition: all 350ms ease-in-out;
		visibility: hidden;
		border-bottom: 2px solid #1bb4b9;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	}

	.nav-menu ul.dropdown-menu li {
		margin: 0;
		width: 100%;
	}

	.dropdown-toggle::after {
		display: inline-block;
		width: 0;
		height: 0;
		margin-left: .255em;
		vertical-align: .255em;
		content: "";
		border-top: .3em solid;
		border-right: .3em solid transparent;
		border-bottom: 0;
		border-left: .3em solid transparent;
	}

	.nav-item.dropdown:hover>a {
		background: #f5f5f5;
	}

	.nav-item.dropdown:hover ul.dropdown-menu {
		opacity: 1;
		visibility: visible;
	}
}

/*==========================================================================================================*/
@media only screen and (max-width: 1023px) {
	body {
		min-width: 320px;
	}

	img {
		max-width: 100%;
		width: auto;
		height: auto;
	}

	.wrap {
		width: auto;
		padding: 0 20px;
	}

	#logo {
		width: 120px;
	}

	.buttonset .col a {
		margin: 0 5px 8px 0;
	}

	.default-grid.cols4 .col {
		width: 50%;
	}

	.cols2.default-grid.tab-grid .col {
		width: 100%;
	}

	.image-block figure {
		width: 45%;
	}

	.content-box {
		width: 100%;
	}

	.image-part {
		width: 100%;
	}

	.content-part {
		width: 100%;
	}

	.nav-menu ul li {
		margin-left: 10px;
	}

	.header-row {
		padding: 0 20px;
	}
}

/*==========================================================================================================*/
@media only screen and (max-width: 767px) {

	.ani-element {
		opacity: 1 !important;
	}

	.ani-element.up {
		transform: none !important;
	}

	.ani-element.down {
		transform: none !important;
	}

	.ani-element.left {
		transform: none !important;
	}

	.ani-element.right {
		transform: none !important;
	}

	/* #header { position:relative; } */
	#mainmenu>ul {
		display: none;
		position: absolute;
		left: 0;
		width: 100%;
		top: 100%;
		background: var(--dark);
		z-index: 5;
	}

	#mainmenu ul li {
		float: none;
		margin: 0;
		padding: 0;
		border-bottom: solid 1px var(--gray);
	}

	#mainmenu ul li a {
		padding: 8px 20px;
		display: block;
	}

	#mainmenu ul li a:after {
		display: none;
	}

	/* Responsive Menu line icon*/
	#menu {
		display: flex;
		align-items: center;
		width: 42px;
		height: 30px;
		position: relative;
		margin: 0;
		transform: rotate(0deg);
		transition: .5s ease-in-out;
		cursor: pointer;
	}

	.menulines-button span {
		display: block;
		position: absolute;
		height: 4px;
		width: 100%;
		background: var(--primary);
		border-radius: 9px;
		opacity: 1;
		left: 0;
		transform: rotate(0deg);
		transition: .25s ease-in-out;
	}

	.menulines-button span:nth-child(1) {
		top: 0px;
	}

	.menulines-button span:nth-child(2),
	.menulines-button span:nth-child(3) {
		top: 13px;
	}

	.menulines-button span:nth-child(4) {
		top: 26px;
	}

	.menulines-button.open span:nth-child(1) {
		top: 13px;
		width: 0%;
		left: 50%;
	}

	.menulines-button.open span:nth-child(2) {
		transform: rotate(45deg);
	}

	.menulines-button.open span:nth-child(3) {
		transform: rotate(-45deg);
	}

	.menulines-button.open span:nth-child(4) {
		top: 13px;
		width: 0%;
		left: 50%;
	}

	.default-grid.cols3 .col {
		width: 50%;
	}

	.tab-data:not(.only-tab) .tabnav {
		display: none;
	}

	.tab-container {
		padding: 0;
		border: none;
	}

	.tab-data {
		margin: 0 0 30px;
	}

	.tab-container .tabMobiletrigger {
		background: #f3f3f3;
		border: medium none;
		font-size: 15px !important;
		text-transform: uppercase;
		margin: 0 0 7px;
		padding: 16px 54px 16px 16px;
		position: relative;
		cursor: pointer;
		font-weight: bold;
	}

	.tabMobiletrigger:after {
		border-left: 8px solid rgba(0, 0, 0, 0);
		border-right: 8px solid rgba(0, 0, 0, 0);
		border-top: 8px solid #848690;
		content: "";
		margin-top: -3px;
		position: absolute;
		right: 19px;
		top: 50%;
	}

	.tabMobiletrigger:before {
		background: rgba(0, 0, 0, 0.08);
		content: "";
		height: 100%;
		position: absolute;
		right: 0;
		top: 0;
		width: 54px;
		z-index: 1;
	}

	.tabcontent {
		padding: 15px 0;
		margin: 0;
	}

	.tabMobiletrigger.rotate:after {
		border-top-color: #272c2f;
		-webkit-transform: rotate(180deg);
		-moz-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
	}

	.heading-listblock.cols2 .col,
	.dropcaps-box.cols2 .col {
		width: 100%;
	}

	h1,
	h2 {
		font-size: 40px;
	}

	#header .header-row {
		justify-content: inherit;
		grid-gap: 20px;
	}

	#profile {
		margin-left: auto;
	}

	/* Profile Page */
	.profile-box {
		display: grid;
		grid-template-columns: 1fr;
	}
}

/*==========================================================================================================*/
/* only iphone4 landscape & Potriat 300 by 480*/
@media only screen and (max-width: 567px) {

	.default-grid.cols3 .col,
	.default-grid.cols2 .col,
	.default-grid.cols4 .col {
		width: 100%;
	}

	table.res-table tr th {
		display: none;
	}

	table.res-table tr td {
		display: block;
		position: relative;
		padding-left: 50%;
	}

	table.res-table td:before {
		content: attr(data-th) ": ";
		font-weight: bold;
		width: 50%;
		display: block;
		padding-right: 10px;
		position: absolute;
		left: 0;
		top: 0;
		padding: 10px 10px;
	}

	table.res-table {
		border-top: 0;
	}

	.list-block.cols3 .col {
		width: 100%;
	}

	.image-block figure {
		width: 100%;
		float: none;
		padding-right: 0;
	}

	.image-block.right-align figure {
		padding-left: 0;
	}

	h1,
	h2 {
		font-size: 34px;
	}

	#profile a {
		grid-gap: 5px;
	}

	#profile a span {
		font-size: 14px;
	}
}

/*==========================================================================================================*/
/* only iphone landscape 340 by 478*/
@media only screen and (max-width: 480px) {

	.form-inline .form-group label,
	.form-inline .form-group .field-box {
		float: none;
		display: block;
		width: auto;
	}

	.form-inline .form-group label {
		padding: 0 0 5px;
	}

	.form-inline .form-group label.blank {
		display: none;
	}

	h1,
	h2 {
		font-size: 30px;
	}
}

/*==========================================================================================================*/
/* only iphone portrait 300 by 479*/
@media only screen and (max-width: 479px) {

	#logo {
		width: 100px;
	}

	.fmenu {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.copyright {
		width: 100%;
		margin: 10px 0 0;
		text-align: center;
	}

}