@font-face {
    font-family: DINPro;
    src: url('../fonts/DINPro-Regular.woff') format('woff'),
         url('../fonts/DINPro-Regular.ttf') format('truetype');
}

@font-face {
    font-family: Calluna;
    src: url('../fonts/Calluna-Regular.woff') format('woff'),
         url('../fonts/Calluna-Regular.ttf') format('truetype');
}

.english:lang(hu),
.cb-angol:lang(hu) {
    display: none;
}

.magyar:lang(en),
.cb-magyar:lang(en) {
    display: none;
}

body {
    font-family: "DINPro", Arial, Helvetica, sans-serif;
    text-align: left !important;
}

h1, h2, h3, h4, h5, h6, #t4-topbar {
    font-family: "Calluna", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

table {
    width: 100% !important;
}

.row, .container-lg {
  margin-right: -15px;
  margin-left: -15px;
}

.t4-offcanvas .t4-off-canvas-body .t4-module .module-inner {
    padding: 0 .5rem;
}

/* scss overrides */
.page-header h2 a,
.pagination a {
  color: #a21d21;
}

.page-header h2 a:hover,
.page-header h2 a:focus,
.pagination a:hover,
.pagination a:focus {
  color: #300205;
}

.page-item.active .page-link {
  background-color: #a21d21;
  border-color: #a21d21;
}

.btn-readmore:hover,
.btn-readmore:focus {
  background-color: #300205 !important;
}

.t4-palette-gray a, a {
    color: #a21d21;
}

.t4-palette-gray a:hover, .t4-palette-gray a:focus, a:hover, a:focus {
    color: #300205;
}

.t4-header {
    min-height: 40px;
}

.t4-megamenu .navbar-nav>li>a, .t4-megamenu .navbar-nav>li>.nav-link {
  padding: .5rem 1rem;
  height: inherit;
}

.pagination {
  flex-wrap: wrap;
}

/* TOPBAR */
#t4-topbar {
    background-color: #ce9f52;
}

#t4-topbar i {
    margin-right: 5px;
}

#t4-topbar .topbar-r {
    text-align: right;
}

.topbar-r .language-switcher {
    filter: grayscale(100%);
}

.topbar-r .language-switcher:hover {
    filter: grayscale(0%);
}

.topbar-r .language-switcher img {
    padding-bottom: 5px;
}

/* HEADER */
#t4-header .container {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.header-block-1 .navbar-brand {
	-ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

/* FLAG */
#t4-flag {
  height: 6px;
  background-color: #ffffff;
  border-top: 2px solid #d0151c;
  border-bottom: 2px solid #198266;
}		

/* MAIN NAV */
#t4-mainnav {
    z-index: 20;
}

#t4-mainnav .navbar,
#t4-mainnav .navbar ul {
    width: 100%;
}

#t4-mainnav .nav-item {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 3;
    text-align: center;
}

.t4-palette-mainnav .nav > li a, 
.t4-palette-mainnav .nav > li .nav-link {
    text-shadow: 2px 2px #eee;
    color: #a21d21;
}

#t4-mainnav .navbar-nav > .nav-item:first-child a i {
    color: #a21d21;
    text-shadow: 2px 2px #eee;
}

#t4-mainnav .navbar-nav > .nav-item:first-child a:hover i,
#t4-mainnav .navbar-nav > .nav-item:first-child a:focus i,
#t4-mainnav .navbar-nav > .nav-item:first-child a:active i {
    color: #300205;
}

.dropdown-menu li a {
    text-align: left;
}

.t4-megamenu .dropdown-menu li .dropdown-item, 
.t4-megamenu .dropdown-menu li .dropdown-item, 
.t4-megamenu .dropdown-menu li .dropdown-item {
  text-shadow: 2px 2px #eee;
  color: #a21d21;
  text-align: left;
}

.t4-megamenu .dropdown-menu li .dropdown-item:hover, 
.t4-megamenu .dropdown-menu li .dropdown-item:focus, 
.t4-megamenu .dropdown-menu li .dropdown-item:active {
  cursor: pointer;
  color: #300205;
}

.dropright .dropdown-toggle::after {
    vertical-align: 0;
}

.dropright .dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid transparent;
    border-right: 0;
    border-bottom: .3em solid transparent;
    border-left: .3em solid;
}

.t4-megamenu .dropright .dropdown-toggle .item-caret {
  display: none;
}

.t4-offcanvas-toggle {
  padding: 10px 0;
}


/* SLIDESHOW */
#t4-slideshow {
    overflow: hidden;
    max-height: 450px;
	background-color: #ede9ea;
	border-bottom: 1px solid rgba(52, 58, 64, 0.12);
    z-index: 10;
}

#t4-slideshow .scroll-menu .collapse:not(.show) {
    height: inherit;
}

#t4-slideshow .scroll-menu a {
    padding: 1rem 1rem;
}



/* Scroll Menu */
.scroll-menu {
  margin-top: 0;
}

.scrollToItem .fa-chevron-down {
  font-size: small;
}

.scrollToItem a:hover,
.scrollToItem a:focus {
  color: #a21d21 !important;
}

.scrollToItem a:hover i.fas,
.scrollToItem a:focus i.fas {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: bounce-1;
  animation-timing-function: linear;
}

@keyframes bounce-1 {
  0%   { transform: translateY(0); }
  25%   { transform: translateY(3px); }
  50%  { transform: translateY(0); }
  75%   { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.home #Mod175 h5, .home #Mod174 h3, .home #Mod176 h3/*, .home #Mod169 h3*/ {
  padding-top: 60px;
  margin-top: -60px;
}

.home #Mod175 h5 {
  padding-top: 75px;
}

/* TOP SEARCH */
#t4-top-search {
    padding-top: 1rem;
}

#t4-top-search .custom {
    text-transform: uppercase;
    font-weight: bold;
}

#t4-top-search .mod-search #mod-search-searchword165 {
    margin-left: auto;
}


/* MAIN CONTENT */
#t4-main-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

blockquote {
  padding: 15px;
  font-size: 1.05rem;
  background-color: #EFEFEF;
  border-left: 10px solid #a21d21;
}

.alert-danger, .alert-error {
    color: #7f231c;
    background-color: #fdd9d7;
    border-color: #fccac7;
    padding: 15px;
    font-size: 1.05rem;
    border-left: 10px solid #a21d21;
}

.badge-secondary {
  	background-color: #ce9f52;
  	margin-bottom: 0;
    padding: 10px;
    font-size: 1.2rem;
    font-family: "Calluna", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

blockquote > p:last-child,
.badge-secondary > p:last-child {
  	margin-bottom: 0;
}

.blog-featured .item {
    border-top: 5px solid #7b6669;
}

.blog-featured .item > .item-image img {
    width: 100%;
}

.blog-featured .item-content p {
    text-align: left !important;
}

.blog-featured .item-content img {
    clear: both;
    display: block;
    float: none !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 1170px;
    max-width: 100%;
}

.blog-featured .item-content h2 a,
.com-content-category-blog .item-content h2 a {
    font-weight: bold;
    color: #a21d21;
}

.blog-featured .item-content h2 a:hover,
.blog-featured .item-content h2 a:focus {
    color: #300205;
}

.items-row .item h2 {
    font-size: 1.2rem !important;
}

.article-aside {
  justify-content: flex-start;
}

/* Edocman */
a.edocman-category-title-link,
#edocman-categories .edocman-box-heading h3, 
#edocman-documents .edocman-box-heading h3, 
#edocman-document-page .edocman-box-heading h3 {
    font-size: 24px;
    line-height: 1;
}

a.edocman-category-title-link small {
    white-space: nowrap;
}

.edocmansearch {
	margin-bottom: 15px;
}

.edocmansearch td {
	border-top: none;
	padding-top: 5px;
	padding-bottom: 5px;
}

.edocmansearch input[type=text],
.edocmansearch select {
	display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

#edocman-categories .edocman-category, #edocman-documents .edocman-document {
  flex-direction: column;
}


/* Community Builder */
#cbUserTable .cbUserListFieldLine h6 {
    font-family: "DINPro", Arial, Helvetica, sans-serif;
}

.cb_template .border.cbCanvasLayout {
    border-top: 0 !important;
}

.cbPosCanvasTop {
    display: none !important;
}

.cb_template .position-absolute.cbPosCanvasPhoto {
    position: relative !important;
    margin-top: 20px;
}

.cbUsersList .cbUserListFL_avatar .cbImgAvatar {
  max-width: 60px;
}

.cbProfile a,
#cbUserTable a {
    color: #a21d21;
}

.cbProfile a:hover,
.cbProfile a:focus,
#cbUserTable a:hover,
#cbUserTable a:focus {
    color: #300205;
}

.cbProfileTitle {
    color: #a21d21;
}

.cbTabsMenuNavBar.mb-3 {
    margin-bottom: 0 !important;
}

.cb_template .navbar-light .navbar-nav .nav-link.active {
    color: #a21d21;
}

.cb_template .navbar-light .navbar-nav .nav-link:hover, .cb_template .navbar-light .navbar-nav .nav-link:focus {
    color: #300205;
}

.cbTabsContent {
    border: 1px solid #dee2e6;
    border-top: 0;
    padding: 10px;
    background-color: #f8f9fa;
}

.cbTabsContent .form-control-plaintext h6 {
    font-family: "DINPro", Arial, Helvetica, sans-serif;
}

.cb_template h4, .cb_template .h4 {
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0;
}

.cb_template h4:first-child, .cb_template .h4:first-child {
    margin-top: 1rem;
}

.cb_template p {
    margin-bottom: 0;
}

.cb_template .cb_field h2, .cb_template .cb_field .h2 {
    font-family: "DINPro", Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

.cbPoweredBy {
    display: none;
}

.cb_template .page-item.active .page-link {
    background-color: #a21d21;
    border-color: #a21d21;
}

.cb_template .page-link {
    color: #a21d21;
}

.cb_template .page-link:hover {
    color: #300205;
}

.cb_template .cbCanvasLayout .cbCanvasLayoutBottom.row > div:first-child {
  max-height: none;
}

.cb_template .cbCanvasLayoutBottom > .col-8.col-sm-9 {
  height: 220px;
  display: flex;
  align-items: center;
}

.cb_template .mtmt ul {
  list-style: none;
  padding: 0px 20px;
}

.cb_template .mtmt ul li.mtmt-publication {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.cb_template .mtmt ul li.mtmt-publication::last-child {
  border-bottom: none;
}

.cb_template .mtmt h4.mtmt-year {
  	font-size: 1.4rem;
    padding: 10px 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #cfcfcf;
}

.cb_template .mtmt .mtmt-template .title {
  font-weight: 600;
}

.cb_template .mtmt .mtmt-template .InBook .booktitle {
  font-style: italic;
}

.cb_template .mtmt .mtmt-link .fa-paperclip {
  font-size: 15px;
  margin-right: 8px;
}

.cb_template .mtmt label {
  	font-family: "Calluna", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1.5rem;
    padding: 10px 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #cfcfcf;
}

.cb_template .mtmt .mtmt-template .authors,
.cb_template .mtmt .mtmt-template .pub-end,
.cb_template .mtmt .mtmt-template .title span.page {
  display: none;
}

.english div#cbtabsCBMenucanvas_main_middleNav {
    display: none;
}

.english .cbPosCanvas.cbCanvasLayout {
    border-bottom: 1px solid #dee2e6!important;
}

.english div#cbfv_68 {
    color: #a21d21;
}

.cbUserListResultCount {
	display: none;
}

/* JEvents */
.jev_toprow div.previousmonth, .jev_toprow div.nextmonth {
    background-color: #a21d21;
    border: 1px solid #a21d21;
}

.jev_toprow div.currentmonth {
    border-top: 1px solid #a21d21;
    border-bottom: 1px solid #a21d21;
    padding-bottom: 3px;
}

.nav-items > div {
    border: 1px solid #a21d21;
}

.nav-items > div:first-child {
    border-left: 1px solid #a21d21;
}

.nav-items > div:last-child {
    border-right: 1px solid #a21d21;
}

#jevents .actions {
  display: none;
}

#jevents_body .nav-items div.active a, .jev_header2 .active a {
    background-color: #a21d21;
}

#jevents_body .cal_today a.cal_daylink {
    background-color: #a21d21;
}

#jevents_body .cal_today a.cal_daylink:hover {
    border-left: 1px solid #a21d21;
    border: 1px solid #a21d21;
    color: #a21d21;
}

#jevents_body .eventdetails_body {
  margin: 1rem;
}

#jevents_body .jev_eventd_location {
  display: none;
}

/*#jevents_body .nav-items div.active a:hover, 
.jev_header2 .active a:hover,
#jevents_body .nav-items > div a:hover {
    border-left: none;
}*/

/* Kiadvanyertekesites */

.table-responsive {
    overflow-x: visible;
}

table.kiadvanyerekesites {
    width: 100% !important;
}

table.kiadvanyerekesites tr td:first-child,
table.kiadvanyerekesites tr td:nth-child(3) {
    min-width: 110px;
}

table.kiadvanyerekesites tr td:nth-child(2),
table.kiadvanyerekesites tr td:nth-child(4) {
    white-space: normal;
    width: 40% !important;
}

table.kiadvanyerekesites tr td:nth-child(2) p,
table.kiadvanyerekesites tr td:nth-child(4) p {
    text-align: left !important;
}

/* Recenziok*/

table.recenziok {
    width: 100% !important;
}

table.recenziok tr td:first-child,
table.recenziok tr td:nth-child(2),
table.recenziok tr td:nth-child(3) {
    min-width: 100px;
}

table.recenziok h1 {
    font-size: 16px;
    font-weight: bold;
}

/* Telefonkonyv / Phonebook */

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(252, 228, 161, 1);
}

.table-hover.table-striped > tbody > tr:hover {
  background-color: #f5f5f5;
}

.telefonkonyv table td:first-child {
    width: 25%;
}

.telefonkonyv table p {
    text-align: left;
    margin-bottom: 0;
}

.telefonkonyv table thead {
    font-weight: bold;
}

.telefonkonyv table tbody tr td:first-child {
    white-space: normal !important;
}

.telefonkonyv table tbody tr td:nth-child(4) {
    white-space: nowrap;
}

/* Archive News */
.w357ui-container h1.ma-page-heading {
  font-size: 2rem;
}

/* BTK media style */
.btkmedia-grid {
    margin: 0;
    margin-bottom: 15px;
    padding: 0;
    padding-bottom: 15px;
    list-style: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btkmedia-image {
    text-align: center!important;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 0;
}

.btkmedia-image .pull-left.item-image {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.btkmedia-content {
    padding-right: 0;
}

.btkmedia-content .article-aside {
    justify-content: start;
}

.btkmedia-content .item-intro {
    margin-bottom: 15px;
}

.btkmedia-content .readmore {
    margin-top: 0;
}

.btkmedia .items-row .item {
    padding-top: 0px;
    padding-bottom: 0px;
}

.btkmedia .page-header h2 {
    font-size: 24px;
}

/* Slide up popup */
.eb-inst .eb-header {
  font-size: 18px;
}

.eb-1 .eb-dialog {
  font-size: 14px;
}

/* Newsletter */
.acym_module_form .acym_form {
  display: flex;
  flex-direction: column;
}

.acym_module_form .acym_form .acyfield_text label {
  display: flex;
  align-items: center;
}

.acym_module_form .acym_form .acyfield_text label .acym__users__creation__fields__title {
  min-width: 80px;
}








/* SEARCH ARCHIVES */
#t4-search-archives {
  padding-bottom: 3rem;
}


/* MAIN BOTTOM */
#t4-main-bottom {
    padding-bottom: 3rem;
}

/* Latest events */
td.mod_events_latest_first, td.mod_events_latest {
    padding: 10px 8px !important;
}

/* Blog list */
.blog-list .item-title a:hover, .blog-list .item-title a:focus, .blog-list .item-title a:active {
    color: #a21d21 !important;
    text-decoration: underline;
}


/* BOTTOM SLIDESHOW */
#t4-bottom-slideshow .container-fluid {
    padding: 0;
}

/* FOOTER */
.t4-footnav .t4-module .module-title span {
  	text-transform: uppercase;
    border: 0;
    padding: 0 0 0.66667rem;
    letter-spacing: 0.5px;
    font-weight: 600;
  	margin-bottom: 3px;
}

.t4-palette-gray .t4-module .module-title {
    color: #6c757d;
    border-bottom: 1px solid rgba(52, 58, 64, 0.12);
    font-size: 1rem;
    font-weight: bold;
}

/*.footnav-title {
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 3px;
}*/

#t4-footnav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.copyright {
    margin-bottom: .75rem;
    margin-top: .75rem;
}

#t4-footnav {
    background-color: #efefef;
    background-image: url('images/btk-logo-ures.png');
    background-repeat: no-repeat;
    background-position: right 5% bottom 15%;
}

/* --- RESPONSIVITY --- */

@media (max-width: 767px) {
  .topbar-l, .topbar-r {
    text-align: center !important;
  }
	
  .header-wrap {
	text-align: center;
  }
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }

    /*.cbPosCanvasBottom {
        background: url('https://tti.abtk.hu/images/design/_logo.png');
        background-repeat: no-repeat;
        background-position-x: 95%;
        background-position-y: center;
        background-size: 300px;
    }*/
}

@media (min-width: 992px) {

	.layout-btk-home #t4-header {
    	border-bottom: 1px solid rgba(52, 58, 64, 0.12);
    	margin-bottom: 0;
	}
    .container {
        max-width: 970px;
    }
	
	#t4-institute-menu .navbar {
		font-size: 14px;
	}
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
	
	#t4-institute-menu .navbar {
		font-size: 18px;
	}
}