/*
 * Remastered Stylesheet for Advisor - Media Queries
 * Description: Stylesheet for smaller devices (Tablet/Mobile)
 * Theme: Manual Child
 * Author: kthanos
*/

@media screen and (max-width: 1752px){ .navbar.navbar-inverse{ height: 220px;}}

@media screen and (max-width: 1512px){
	/* Homepage first grid with popular categories */
	.popular_manualkb_categories{
		grid-template-columns: 1fr 1fr 1fr;
		grid-row-gap: 20px;
	}

	.popular_manualkb_cat_item_box:nth-child(4){ grid-column: span 2/3;}
	
	#mega_post_grid_services_grid-block{
		display: grid;
		justify-items: center;
	}
	
	#mega_post_grid_services_grid-block .mega_post_grid_service_block{ margin: 0 !important;}
}


@media screen and (max-width: 1426px){
	#mega_post_grid_services_grid-block > .vc_col-sm-3{ width: 350px;}
}

@media screen and (max-width: 1399px){
	.adv_events_banner{ margin-top: -30px;}
}

@media screen and (max-width: 1248px){
	/* Homepage electronic services */
	.electornic_services_section{
		flex-direction: column;
		height: auto !important;
	}

	.electornic_services_section .electornic_services_link:first-child,
	.electornic_services_section .electornic_services_link:last-child{
		position: relative;
		width: 100%;
		margin-bottom: 20px;
	}

	.electornic_services_section .electornic_services_link:first-child h1,
	.electornic_services_section .electornic_services_link:last-child h1{ bottom: 0;}

	.electornic_services_section .electornic_services_link:first-child p,
	.electornic_services_section .electornic_services_link:last-child p{
		width: 100%;
		font-size: 24px;
	}
}

@media screen and (max-width: 1024px){
	.adv_events_banner{ margin-top: -25px;}
}

@media screen and (max-width: 991px){
	/* Header style modification */
	.navbar.navbar-inverse{ height: 100px;}
	.navbar-brand{ margin-left: 16px !important;}
	.fa.fa-bars.navbar-toggle{ margin-right: 16px !important; margin-top: 20px;}
	
	.knowledgebase_grid_items .kb_post_grid_block-33{ padding: 10px !important;}
	
	/* Remove the icon that closes the categories list dropdown */
	#close_composite_multiple_categories{ display: none;}
	
	/* Simple form search results page */
	.custom_simple_search_results_box{ grid-template-columns: 1fr 1fr;}
	
	/* Logo */
	.navbar-brand img{ width: 385px;}
	
	/* Homepage first grid with popular categories */
	.popular_manualkb_categories{
		grid-template-columns: 1fr 1fr;
		grid-row-gap: 20px;
	}

	.popular_manualkb_cat_item_box:nth-child(4){ grid-column: span 1;}
	.popular_manualkb_cat_item_box:last-child{ grid-column: span 2;}
	
	/* Homepage Business news grid */
	#mega_post_grid_homepage .vc_theme_blog_post_holder:before,
	#mega_post_grid_homepage_block-2 .vc_theme_blog_post_holder:before,
	#mega_post_grid_homepage_block-3 .vc_theme_blog_post_holder:before{ display: none;}
	
	#mega_post_grid_homepage .vc_theme_blog_post_holder,
	#mega_post_grid_homepage_block-2 .vc_theme_blog_post_holder,
	#mega_post_grid_homepage_block-3 .vc_theme_blog_post_holder{
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	
	#mega_post_grid_homepage .col-sm-6,
	#mega_post_grid_homepage_block-2 .col-sm-6,
	#mega_post_grid_homepage_block-3 .col-sm-6{ width: 92% !important;}
	
	/* Contact Page */
	.contact_logo_section img{
		height: 130px !important;
		width: auto;
	}
	
	.contact_details_section{ flex-direction: column;}
	.contact_details_section > div{ width: 100%;}

	.contact_details_section > div .uavc-list-icon{ margin: 0;}
	
	/* Single post and Category posts alignment*/
	.manual_kb-template-default.single.single-manual_kb .container > .row,
	.archive.tax-manualknowledgebasecat .container > .row{
		display: flex;
		flex-direction: column-reverse;
	}
	
	.adv_events_banner{ margin-top: -15px;}
}

@media (max-width: 960px), (min-width: 769px) {
	.mec-event-calendar-classic .mec-calendar-side .mec-calendar-table{ min-height: auto !important;}
}

@media (min-width: 768px){
	.navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand { margin-left: 0 !important;}
	#mega_post_grid_homepage .col-sm-6,
	#mega_post_grid_homepage_block-2 .col-sm-6,
	#mega_post_grid_homepage_block-3 .col-sm-6{ width: 45%;}
}

@media screen and (max-width: 772px){
	/* Electronic Services blocks */
	#mega_post_grid_services_grid-block.vc_row::before { grid-column-start: 1;}
	#mega_post_grid_services_grid-block { grid-template-columns: 1fr;}
	
	#mega_post_grid_services_grid-block .mega_post_grid_service_col_sm > div{ margin: 0 0 30px 0 !important;}
}

@media screen and (max-width: 768px){
	/* Home page Business News title margin */
	#business_news_title,
	h3.business_news{ margin-bottom: 85px;}
	
	#mega_post_grid_homepage{ margin-top: 130px;}
	
	/* Footer logo alignment */
	.advisor_footer_col_1 a img{ 
		margin-right: 0;
		margin-bottom: 15px;
	}
	
	#mega_post_grid_homepage,
	#mega_post_grid_homepage_block-2,
	#mega_post_grid_homepage_block-3{ padding: 0 16px;}
	
	#mega_post_grid_services_grid-block{  padding: 0 16px;}

	#mega_post_grid_services_grid-block .mega_post_grid_service_col_sm > div{
		margin: 10px 0 !important;
		padding: 0;
	}
	
	#mega_post_grid_homepage .col-md-3.body-content,
	#mega_post_grid_homepage_block-2 .col-md-3.body-content,
	#mega_post_grid_homepage_block-3 .col-md-3.body-content,
	#mega_post_grid_homepage_bottom .col-md-6.body-content{
		margin: 16px 0; 
	}
	
	/* Custom Copyright Text */
	.custom_copyright{
		width: 100%;
		right: 0;
		justify-content: center;
		margin-top: -34px;
	}
}

@media screen and (max-width: 767px){
	/* Header style modification */
	.navbar .navbar-header{ position: relative !important;}
	
	.knowledgebase_grid_items{ flex-direction: column;}
	.knowledgebase_grid_items .kb_post_grid_block-33{ width: 100%;}
	.knowledgebase_grid_items:not(:first-child){ padding-top: 0;}
	
	/* Footer */
	.custom_after_footer_logo{ width: 80%;}
	
	/* Logo */
	.navbar-brand img{ width: 350px;}
	
	/* Homepage Mega post grid */
	#mega_post_grid_homepage img.wp-post-image,
	#mega_post_grid_homepage_block-2 img.wp-post-image,
	#mega_post_grid_homepage_block-3 img.wp-post-image{ height: 250px;}
	
	#mega_post_grid_services_grid-block{ 
		grid-template-columns: 1fr;
		justify-items: center;
		margin-left: -2px;
	}
	#mega_post_grid_services_grid-block.vc_row::before{ grid-column-start: 1;}
	
	#mega_post_grid_homepage .col-md-3.body-content{ margin: 16px auto !important;}
	
	/* Calendar - Month Labels */
	.mec-previous-month.mec-load-month.mec-previous-month a, .mec-next-month.mec-load-month.mec-next-month a{ font-size: 10px !important;}
	.mec-calendar .mec-calendar-header h2{ font-size: 12px !important;}

	.adv_events_banner{ margin-top: 0;}
}


@media screen and (max-width: 740px){
	.composite_search_categories_and_dates_block{ flex-direction: column;}
	.composite_search_categories_block,
	.composite_search_dates_block,
	.composite_search_categories_block a:not(#close_composite_multiple_categories){ width: 100%;}
	
	.composite_search_categories_block{ margin: 0 0 20px 0;}
	
	.composite_search_form_select_date_from_block{ margin: 0 16px 0 0;} 
	.composite_search_form_select_date_to_block{ margin: 0 0 0 16px;}
	
	.trending-search{ margin-bottom: 15px;}
	
	.form-control.header-search{ font-size: 16px !important;}
	
}

@media screen and (max-width: 670px){
	/* Homepage first grid with popular categories */
	.popular_manualkb_categories{
		grid-template-columns: 1fr;
		grid-row-gap: 20px;
		width: 100%;
	}

	.popular_manualkb_cat_item_box:last-child{ grid-column: span 1;}
	
	#mega_post_grid_homepage .vc_theme_blog_post_holder,
	#mega_post_grid_homepage_block-2 .vc_theme_blog_post_holder,
	#mega_post_grid_homepage_block-3 .vc_theme_blog_post_holder{ grid-template-columns: 1fr;}
	
	#mega_post_grid_homepage .col-sm-6, #mega_post_grid_homepage_block-2 .col-sm-6, #mega_post_grid_homepage_block-3 .col-sm-6 { width: 100% !important;}

}

@media screen and (max-width: 550px){
	/* Simple form search results page */
	.custom_simple_search_results_box{ grid-template-columns: 1fr;}
	
	.electornic_services_section .electornic_services_link:first-child p,
	.electornic_services_section .electornic_services_link:last-child p{ 
		width: 250px;
		font-size: 18px;
	}
	
	/* Remove search placeholder */
	.global-search .searchform .form-control.header-search::placeholder{ opacity: 0 !important;}
	
	/* Mobile Logo */
	.navbar-brand img{ 
		content: url('/wp-content/uploads/2025/07/g2-2.png');
		width: 320px;
	}
}


@media screen and (max-width: 410px){
	/* Composite search form categories and dates styles */
	.composite_search_dates_block{ flex-direction: column;}
	.composite_search_form_select_date_from_block, .composite_search_form_select_date_to_block{ 
		width: 100%;
		margin: 0;
	}
	
	.composite_search_categories_block p,
	.composite_search_form_select_date_from_block.text_align_left,
	.composite_search_form_select_date_to_block.text_align_left{ text-align: center !important;}
	
	#custom_composite_search{ float: unset !important;}
	.composite_search_form_group #submit_composite_search_form{ margin-bottom: 10px;}
	
	/* Header logo - Cut to logo, no text */
	.navbar.navbar-inverse a.navbar-brand{ width: 75%;}
	.navbar-brand img{
		height: 80px !important;
		width: 160px !important;
		object-fit: cover;
		object-position: 0 0;
	}
	
	
	/* Home page Business News */
	#mega_post_grid_homepage .col-md-3.body-content,
	#mega_post_grid_homepage_block-2 .col-md-3.body-content,
	#mega_post_grid_homepage_block-3 .col-md-3.body-content{ margin: auto;}
	
	#mega_post_grid_homepage .col-sm-6,
	#mega_post_grid_homepage_block-2 .col-sm-6,
	#mega_post_grid_homepage_block-3 .col-sm-6{ width: 100% !important;}
	
	/* Home page Business News title margin */
	#business_news_title,
	h3.business_news{ margin-bottom: 100px;}
}