
/* 768 - 1024 ieskaitot tableti */

@media screen and (max-width: 1024px) {
    .event_blocks.extra_blocks.blocks5 {
        overflow-x: scroll;
        max-width: 100%;
        display: block;
    }
    #contacts .six.columns>p {
        width: 100%;
    }
    #map {
        width: 100%;
    }

    .news_block {
        width: 25%;
    }
    .news_block.item3 {
        margin-right: 0px;
    }
    .news_block.item4 {
        display: none;
    }
    .news_block .image {
        padding-top: 100%;
        height: 0px;
    }
    .event_block {
        min-width: auto;
        height: 240px;
    }
    .event_blocks.extra_blocks .event_block {
        min-width: 171px;
        height: 171px;
    }
    #seminars .four .event_block {
        width: 25%;
        height: 180px;
    }
    .event_block .title {
        font-size: 1.0em;
    }
    .event_blocks.extra_blocks .event_block .title {
        font-size: 0.9em;
    }
    #page_info {
        padding-bottom: 60px;
        height: auto;
        min-height: 180px;
    }
    #page_info .title {
        padding-top: 60px;
    }
    #page_info .subtitle {
        padding-top: 36px;
    }
    .member_blocks {
        margin: 0px -15px;
    }
    .member_blocks .member_block {
        margin: 0px 15px;
    }
    .righter {
        float: none;
        width: auto;
    }
    .image_list:after {
        content: "";
        display: block;
        clear: both;
    }
    .image_list .item {
        display: block;
        float: left;
        width: 50%;
    }
    .image_list .title {
        max-width: none;
    }
    .blog_left {
        float: none;
        width: auto;
        border-right: none;
    }
    #post_container {
        padding-right: 0px;
    }
    #post_container .title {
        text-align: center;
        line-height: 1.35em;
    }
    #authorize {
        text-align: center;
    }
    #authorize strong {
        display: block;
        margin-top: 20px;
        padding-bottom: 30px;
    }
    .includes_block,
    .includes_blocks .includes_block:nth-child(5n+1),
    .includes_blocks .includes_block:nth-last-child(1),
    .includes_blocks .includes_block:nth-last-child(2),
    .includes_blocks .includes_block:nth-last-child(3),
    .includes_blocks .includes_block:nth-last-child(4),
    .includes_blocks .includes_block:nth-last-child(5) {
        width: calc(33% - 1px);
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .includes_blocks .includes_block:nth-child(3),
    .includes_blocks .includes_block:nth-child(6),
    .includes_blocks .includes_block:nth-child(9) {
        border-right: none;
    }
    .includes_blocks .includes_block:nth-last-child(1) {
        border-bottom: none;
    }
    #page_info .categories {
        position: relative;
        margin-top: 40px;
        margin-bottom: -60px;
        bottom: auto;
        left: auto;
        right: auto;
    }
}


/* 320 - 768 */

@media screen and (max-width: 767px) {
    
	
    #gift_card_link {
        display: none;
    }
    .container {
        margin: 0px 12px;
    }
    #page_content {
        padding-top: 40px;
    }
    #page_content .info {
        padding-top: 35px;
        padding-bottom: 70px;
    }
    #page_content h2 {
        line-height: 26px;
        font-size: 20px;
    }
    #page_content .info .title {
        padding-bottom: 30px;
        font-size: 20px;
    }
    p {
        font-size: 15px;
        line-height: 24px;
        font-family: "BookmanOldStyle-Italic";
    }
    #page_content .info .description {
        line-height: 24px;
    }
    .news_blocks {
        display: block;
        width: auto;
        padding-top: 0px;
    }
    .news_block,
    .news_block.item3,
    .news_block.item4,
    .news_blocks .news_block:last-child {
        display: block;
        margin: auto;
        padding-top: 35px;
        width: 216px;
        max-width: none;
    }
    .news_block .category,
    .news_block .date {
        font-size: 15px;
        text-align: center;
    }
    .news_block .title,
    .news_block .date {
        padding-top: 10px;
    }
    .news_block .title {
        min-height: auto;
        line-height: 20px;
        font-size: 18px;
        text-align: center;
    }
    .news_block .title_link {
        padding-right: 0px;
    }
    #spend_time {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    #spend_time h2.title {
        padding-bottom: 28px;
    }
    .event_blocks,
    .event_blocks.extra_blocks {
        display: block;
        margin: auto;
        width: auto;
        border-spacing: 0px;
    }
    .event_row {
        display: block;
    }
    .event_block,
    .event_blocks.extra_blocks .event_block {
        display: block;
        margin-top: 12px;
        padding: 70px 0px;
        width: auto;
        min-width: auto;
        height: auto;
    }
    #spend_time .event_blocks .event_block {
        width: 100%;
        height: auto;
    }
    .event_blocks.extra_blocks.blocks5 {
        overflow-x: hidden;
    }
    .event_blocks.extra_blocks.blocks5 .event_block {
        width: 100%;
        height: auto;
    }
    #seminars .four .event_block {
        display: block;
        width: 100%;
        height: auto;
    }
    .event_block .title {
        padding: 12px 12px 0px 12px;
        line-height: 22px;
        font-size: 18px;
    }
    .across {
        padding-top: 60px;
        padding-bottom: 60px;
        margin-top: 40px;
    }
    #testimonials {
        height: auto;
    }
        
    
    
    .image_list .item {
        float: none;
        width: auto;
    }
    .blog_item {
        display: block;
        padding: 45px 0px;
        max-width: none;
    }
    .blog_item .blog_image_link {
        display: block;
        max-width: none;
    }
    .blog_item .image {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
    }
    .blog_item .contents {
        display: block;
        height: auto;
        padding-left: 0px;
        width: auto;
        max-width: none;
    }
    .blog_item .data {
        position: relative;
        bottom: auto;
    }
    .includes_blocks {
        display: block;
        margin: 0px;
    }
    .includes_block {
        margin: 50px auto;
        width: 240px !important;
        border: none !important;
        height: auto !important;
    }
    #page_info .categories {
        width: 100%;
    }
    #paragraph_gallery {
        display: block;
        width: auto;
    }
    #paragraph_gallery .six.columns {
        display: block;
        width: auto;
    }
	.tab_header {
		margin-bottom: 0px;
		display:block;
		width:auto;
		border-bottom:2px solid #e8e8e8;
	}
	.tab_header li {
		display:block;
		width:auto;
	}
	.tab_header li.active {
		
	}
	
    .tab_contents {
        border: 2px solid #e8e8e8;
        border-top: none;
    }
    .cource_block_container .course_blocks.active {
        display: block;
    }
    .course_block {
        padding: 30px 0px;
        width: auto;
        border: none;
        height: auto;
        background: none;
        border-top: 2px solid #e8e8e8;
    }
    .course_block:first-child {
        border-top: none;
    }
    .course_blocks .course_block:nth-child(1),
    .course_blocks .course_block:nth-child(2),
    .course_blocks .course_block:nth-child(3),
    .course_blocks .course_block:nth-child(4),
    .course_blocks .course_block:nth-child(5),
    .course_blocks .course_block:nth-child(6),
    .course_blocks .course_block.shown {
        display: block;
    }
    .course_block .contents {
        padding: 0px 12px;
    }
    .courses_center {
        padding-top: 0px;
        margin-top: -7px;
    }
    #more_courses {
        background-color: white;
    }
    #ask_question_form {
        width: 100%;
    }
    #ask_question_form.pin_next {
        width: 100%;
    }
    #action_buttons {
        text-align: center;
    }
    #ask_question {
        display: inline-block;
        text-align: center;
        border: 3px solid black;
        border-radius: 45px;
        padding: 10px 30px;
        font-size: 1em;
        line-height: 1em;
        display: inline-block;
        text-transform: uppercase;
        color: black;
        font-family: "BookmanOldStyle-Bold";
    }
    #ask_question:after {
        content: "";
    }
    #ask_question:hover {
        border-color: #ebebeb;
        color: black !important;
        text-decoration: none;
    }
    .premises_block .action,
    .across .action,
    #page_info .action,
    .more-btn,
    #comment_input_container .action,
    #send_question,
    #action_buttons .action,
    .send_question {
        margin-top: 20px;
    }
    #post_container li {
        margin-left: 0px;
    }
    .modal {
        padding-top: 0px;
    }
    .modal .container {
        margin: 0px;
    }
    .modal .modal_block {
        margin-top: 0px;
        min-height: 100%;
    }
    .modal .modal_close {
        position: absolute;
        display: block;
        padding: 10px;
        top: 0px;
        right: 0px;
        width: 20px;
        height: 20px;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url(svg/close_black.svg);
        background-size: 20px;
    }
    .modal_block .contents {
        padding: 0 12px;
    }
    .modal_block .form_block label {
        width: calc(35% - 6px);
    }
    .modal_block .form_block input,
    .modal_block .form_block textarea,
    .styled_select .trigger {
        width: 65%;
    }
    .styled_select#date,
    .styled_select#date .trigger,
    .styled_select.full,
    .styled_select.full .trigger {
        width: 65%;
    }
    .styled_select#date .trigger,
    .styled_select.full .trigger {
        width: 100%;
    }
    .styled_select,
    .styled_select .trigger {
        width: 82px;
        height: 44px;
    }
    #ask_question_form .ask_top .title.big {
        padding-bottom: 0;
    }
    #ask_question_form .form_block label {
        text-align: left;
        min-width: 100%;
        max-width: 100%;
        display: block;
    }
    #ask_question_form .form_block textarea {
        width: 100%;
        box-sizing: border-box;
        display: block;
    }
    #ask_question_form .form_block input {
        width: 100%;
    }
    #post_container .content>table {
        width: auto;
    }
    #page_content .description>table {
        width: auto;
    }
    .modal .container .contents .contents>table {
        width: auto;
    }
    #authorize .option:nth-child(n+4) {
        margin-top: 10px;
    }
    #authorize .authorize+.authorize {
        margin-top: 20px;
    }
    #authorize .authorize:first-child .option:first-child {
        margin-left: 0px;
    }
    #footer_baner_block {
        width: 100%;
        bottom: 58px;
        margin: 0px;
        z-index: 10;
    }
    #ask_question_form .form_block {
        height: 64px;
    }
    #ask_question_form .form_block .styled_select {
        width: 100%;
    }
    .pin {
        bottom: 290px;
    }
    .pin.lower {
        bottom: 78px;
    }
    .pin.nothome{
        display:none;
    }
}