@media screen and (max-width: 1250px) {
	.firm-categories .category-link
	{
		font-size: 18px;
		font-weight: 500;
		line-height: 24px;
	}
}

@media screen and (max-width: 1060px) {
	.firm-categories 
	{
		grid-template-columns: repeat(12, 1fr);
	}

	.firm-categories a:nth-child(-n + 4) {
		grid-column: span 3;
	}

	.firm-categories a {
		grid-column: span 4;
	}

	.firm-categories .category-link
	{
		font-size: 20px;
		font-weight: 500;
		line-height: 24px;
        height: 140px;
        border-bottom: 1px solid #ddd;
	}
}

@media screen and (max-width: 900px) {
	nav .menu-icons > .nav-dropdown-wrap,
	nav .menu-icons > a:not(.btn)
	{
		display: none;
	}
}
@media screen and (max-width: 600px) {
	nav .logo img
	{
		height: 50px;
	}
	.firm-categories 
	{
		grid-template-columns: repeat(12, 1fr);
	}

	.firm-categories a:nth-child(-n + 4) {
		grid-column: span 6;
	}

	.firm-categories .category-link:last-child {
		grid-column: span 12;
	}

	.firm-categories .category-link
	{
		grid-column: span 6;
		width: 100%;
		text-align: center;
		font-size: 20px;
		font-weight: 500;
		line-height: 24px;
        height: 100px;
        border-bottom: 1px solid #ddd;
	}
}

/* Popup */
@media screen and (max-width: 535px) {
	.popup .aside
	{
		top: unset;
		right: unset;
		left: 0;
		bottom: 0;
		flex-direction: row;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 80px;
		width: 0;
	}

	.popup.active .aside
	{
		height: 80px;
		width: 100%;
		padding: 10px 20px;
	}

	.popup .popup-conent
	{
		padding: 80px 0 120px;
	}

	.popup .aside .close-popup, 
	.popup .aside .next-content
	{
		position: relative;
		top: 0;
	}
	
	.popup .aside .next-content
	{
		display: flex;
		align-items: center;
		grid-gap: 12px;
	}

	.popup .aside .next-content .text-16
	{
		margin-bottom: 0 !important;
	}
}


@media only screen and (max-width: 1350px) {
    h1
    {
        font-size: 50px;
        line-height: 60px;
    }

    h2
    {
        font-size: 40px;
        line-height: 50px;
    }

    h2.sub-heading
    {
        font-size: 24px;
        line-height: 30px;
    }

    h3
    {
        font-size: 34px;
        line-height: 44px;
    }

    h4
    {
        font-size: 28px;
        line-height: 38px;
    }

    h5
    {
        font-size: 24px;
        line-height: 34px;
    }
}

@media only screen and (max-width: 767px) {
	.home header .header-content
	{
		min-height: unset;
	}

	section.with-padding
	{
		padding: 60px 0 40px;
	}

	.latest-news-events .article
	{
		flex-direction: column;
	}

	.thumbnail
	{
		aspect-ratio: unset !important;
		max-width: 100% !important;
	}

	.single-article .contacts .contact .contact-thumbnail
	{
		max-width: 64px !important;
	}

	.announcements-content
	{
		padding: 50px 40px;
	}

	input[type="text"].input-xl
	{
		font-size: 20px;
	}
}

@media only screen and (max-width: 500px) {
	.page-header .page-header-content
	{
		margin: 40px 0;
		padding: 20px 40px;
	}

	.list-investments .investment img
	{
		display: none;
	}
	section.with-padding
	{
		padding: 60px 0 40px;
	}
}

@media only screen and (max-width: 400px) {
	.btn.btn-icon-only,
	nav .search-form
	{
		width: 54px;
		height: 54px;
		padding: 0;
	}
	nav .logo img
	{
		height: 40px;
	}

	.single-content h1,
    h1
    {
        font-size: 36px;
        line-height: 46px;
    }

    .single-content h2,
    h2
    {
        font-size: 28px;
        line-height: 38px;
    }

    h2.sub-heading
    {
        font-size: 16px;
        line-height: 20px;
    }

    .single-content h3,
    h3
    {
        font-size: 24px;
        line-height: 34px;
    }

    .single-content h4,
    h4
    {
        font-size: 22px;
        line-height: 28px;
    }

    .single-content h5,
    h5
    {
        font-size: 20px;
        line-height: 26px;
    }
}