/**
Theme Name: HAP
Author: Robert Lockwood
Author URI: https://www.gov.ie/housing
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hap
Template: astra
*/

/* Global rules */
#frontcover {
	min-height: 70vh;
}

@media screen and (min-width: 700px) {
	#frontcover {
		min-height: 100vh;
	}
}

@media screen and (min-height: 850px) and (min-width: 700px) {
	#frontcover {
		min-height: 80vh;
	}
}

@media screen and (max-height: 750px) and (min-width: 700px) {
	#frontcover {
		min-height: 100vh;
	}
}

@media screen and (max-height: 650px) and (min-width: 700px) {
	#frontcover {
		min-height: 120vh;
	}
}

@media screen and (max-height: 550px) and (min-width: 700px) {
	#frontcover {
		min-height: 140vh;
	}
}

@media screen and (max-height: 450px) and (min-width: 700px) {
	#frontcover {
		min-height: 170vh;
	}
}

@media screen and (max-height: 350px) and (min-width: 700px) {
	#frontcover {
		min-height: 200vh;
	}
}

ul,
ol {
	list-style-position: inside;
}

/* Pagination Buttons */
#pagination {
	padding-left: 0;
	padding-right: 0;
}

#pagination a {
	width: 200px;
}

a:not(.menu-link):not(.wp-block-tiptip-hyperlink-group-block):not(.wpml-ls-link):not(.aside-link>p>a):not(.wp-block-button>a) {
	text-decoration: underline;
}

/* WCAG, decent/strong focus outline */
a:focus-within:not(.custom-logo-link) {
	border: 1px dashed #fff;
}

.custom-logo-link:focus-within>img {
	border: 1px dashed #fff;
}

.ast-single-post.ast-page-builder-template .site-main>article {
	padding: 0;
}

/* Footer */
.site-footer .widget {
	padding: 0;
	padding-bottom: 0;
}

/* Adds gradient to top header */
.ast-transparent-header .main-header-bar {
	background: linear-gradient(0deg, rgba(22, 9, 5, 0), rgba(22, 9, 5, .75) 30%, rgba(22, 9, 5, .75) 50%, rgba(113, 116, 115, .95) 50%) 0 100% / 100% 200% repeat-x;
}

@media (max-width: 1245px) {

	.ast-theme-transparent-header .main-header-bar,
	.ast-theme-transparent-header.ast-header-break-point .main-header-bar {
		background: linear-gradient(0deg, rgba(22, 9, 5, 0), rgba(22, 9, 5, .75) 30%, rgba(22, 9, 5, .75) 50%, rgba(113, 116, 115, .95) 50%) 0 100% / 100% 200% repeat-x;
	}
}

.ast-theme-transparent-header .ast-above-header:not(.ast-header-sticked),
.ast-theme-transparent-header .ast-above-header.ast-above-header-bar:not(.ast-header-sticked) {
	background-color: rgba(22, 9, 5, .75);
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu,
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:focus-within .astra-megamenu {
	display: inline-block;
	width: 300px;
}

/* Language Switcher */
.wpml-ls-legacy-dropdown a {
	background: rgba(0, 0, 0, 0);
}

/* Main Menu */
#menu-primary-menu, #menu-primary-menu-irish {
	display: flex;
}

#menu-primary-menu li, #menu-primary-menu-irish li {
	padding-right: 12px;
}

#menu-primary-menu li a, #menu-primary-menu-irish li a {
	color: #fff;
}

/* Secondary Menu */
/* First Column Menu Elements [default] */

.main-header-menu .sub-menu .menu-link {
	padding: 0.5em 0.6em;
}

#ast-hf-menu-2>li:nth-child(1):hover,
#ast-hf-menu-2>li:nth-child(1):focus-within,
#ast-hf-menu-2>li:nth-child(1):is(.current-menu-item),
#ast-hf-menu-2>li:nth-child(1):is(.current-menu-parent) {
	background-color: #860038;
}

#ast-hf-menu-2>li:nth-child(1) ul li:focus-within {
	border: 1px dashed #fff;
}

.entry-content h1:not(.custom-style),
h1:not(.custom-style) {
	align-items: center;
	background: #860038;
	color: #fff;
	display: flex;
	height: 128px;
	line-height: 42px;
	margin: 0 24px 20px -20px;
	padding: 0 108px 0 20px;
	position: relative;
}

.entry-content h1:not(.custom-style)::before,
h1:not(.custom-style)::before {
	background: url('/wp-content/uploads/2022/09/hap-ico.png') center center / contain no-repeat;
	content: "";
	height: 84px;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translatey(-50%);
	width: 84px;
}

.entry-content h1:not(.custom-style)::after,
h1:not(.custom-style)::after {
	border-bottom: 64px solid transparent;
	border-left: 32px solid #860038;
	border-top: 64px solid transparent;
	content: "";
	left: 100%;
	position: absolute;
	top: 0;
}

/* Second Column Menu Elements and Pages */
#ast-hf-menu-2>li:nth-child(2):hover,
#ast-hf-menu-2>li:nth-child(2):focus-within,
#ast-hf-menu-2>li:nth-child(2):is(.current-menu-item),
#ast-hf-menu-2>li:nth-child(2):is(.current-menu-parent) {
	background-color: #dc0963;
}

#ast-hf-menu-2>li:nth-child(2) ul li:hover,
#ast-hf-menu-2>li:nth-child(2) ul li:focus-within {
	background-color: #cc0053;
}


#ast-hf-menu-2>li:nth-child(2) ul li:focus-within {
	border: 1px dashed #fff;
}

.entry-content h1.howdoeshapwork,
h1.howdoeshapwork {
	background: #dc0964;
}

.entry-content h1.howdoeshapwork::before,
h1.howdoeshapwork::before {
	background: url('/wp-content/uploads/2022/09/question-ico.png') center center / contain no-repeat;
}

.entry-content h1.howdoeshapwork::after,
h1.howdoeshapwork::after {
	border-left: 32px solid #dc0964;
}

/* Third Column Menu Elements and Pages */
#ast-hf-menu-2>li:nth-child(3):hover,
#ast-hf-menu-2>li:nth-child(3):focus-within,
#ast-hf-menu-2>li:nth-child(3):is(.current-menu-item),
#ast-hf-menu-2>li:nth-child(3):is(.current-menu-parent) {
	background-color: #68308c;
}

#ast-hf-menu-2>li:nth-child(3) ul li:hover,
#ast-hf-menu-2>li:nth-child(3) ul li:focus-within {
	background-color: #58207c;
}

#ast-hf-menu-2>li:nth-child(3) ul li:focus-within {
	border: 1px dashed #fff;
}

.entry-content h1.tenants,
h1.tenants {
	background: #68308c;
}

.entry-content h1.tenants::before,
h1.tenants::before {
	background: url('/wp-content/uploads/2022/09/keys-ico.png"') center center / contain no-repeat;
}

.entry-content h1.tenants::after,
h1.tenants::after {
	border-left: 32px solid #68308c;
}

/* Fourth Column Menu Elements and Pages */
#ast-hf-menu-2>li:nth-child(4):hover,
#ast-hf-menu-2>li:nth-child(4):focus-within,
#ast-hf-menu-2>li:nth-child(4):is(.current-menu-item),
#ast-hf-menu-2>li:nth-child(4):is(.current-menu-parent) {
	background-color: #b64a99;
}

#ast-hf-menu-2>li:nth-child(4) ul li:hover,
#ast-hf-menu-2>li:nth-child(4) ul li:focus-within {
	background-color: #a63a89;
}

#ast-hf-menu-2>li:nth-child(4) ul li:focus-within {
	border: 1px dashed #fff;
}

.entry-content h1.landlords,
h1.landlords {
	background: #b64a99;
}

.entry-content h1.landlords::before,
h1.landlords::before {
	background: url('/wp-content/uploads/2022/09/house-ico.png') center center / contain no-repeat;
}

.entry-content h1.landlords::after,
h1.landlords::after {
	border-left: 32px solid #b64a99;
}

/* Fifth Column Menu Elements and Pages */
#ast-hf-menu-2>li:nth-child(5):hover,
#ast-hf-menu-2>li:nth-child(5):focus-within,
#ast-hf-menu-2>li:nth-child(5):is(.current-menu-item),
#ast-hf-menu-2>li:nth-child(5):is(.current-menu-parent) {
	background-color: #985cb1;
}

#ast-hf-menu-2>li:nth-child(5) ul li:hover,
#ast-hf-menu-2>li:nth-child(5) ul li:focus-within {
	background-color: #884ca1;
}

#ast-hf-menu-2>li:nth-child(5) ul li:focus-within {
	border: 1px dashed #fff;
}

.entry-content h1.homelesshap,
h1.homelesshap {
	background: #985cb1;
}

.entry-content h1.homelesshap::before,
h1.homelesshap::before {
	background: url('/wp-content/uploads/2022/09/handle-ico.png') center center / contain no-repeat;
}

.entry-content h1.homelesshap::after,
h1.homelesshap::after {
	border-left: 32px solid #985cb1;
}

/* Front Page Intro */
#intro-text {
	background: rgba(220, 9, 99, .8);
	position: absolute;
	top: 180px;
	height: 390px;
	width: 480px;
	padding: 20px;
}

#intro-text a,
#intro-text-mobile a {
	color: #fff;
	display: inline-block;
	background-color: #860038;
	padding: 5px 10px 5px 10px;
	text-decoration: none;
}

#intro-text a::after,
#intro-text-mobile a::after {
	content: " >"
}

#intro-text::after {
	border-top: 195px solid transparent;
	border-left: 80px solid rgba(220, 9, 99, .8);
	border-bottom: 195px solid transparent;
	content: "";
	position: absolute;
	right: -80px;
	top: 0;
}

#intro-text-mobile {
	display: none;
	background-color: #dc0963;
	color: #fff;
}

#intro-text-mobile h1 {
	color: #fff;
}

@media only screen and (max-width: 700px) {
	#intro-text {
		display: none;
	}

	#intro-text-mobile {
		display: block;
	}
}

/* Quick Links, What is HAP, etc */
#quick-links {
	max-width: 1200px;
}

@media screen and (max-width: 782px) {
	#quick-links > div > div {
		margin-left: 25px;
		margin-right: 25px;
	}
}

#whatishap {
	background: url('/wp-content/uploads/2022/09/house-1.png') 0 0 / 100% 100% no-repeat;
	padding: 50px 15px 15px;
}

#howdoeshapwork {
	background: url('/wp-content/uploads/2022/09/house-2.png') 0 0 / 100% 100% no-repeat;
	padding: 50px 15px 15px;
}

#tenants {
	background: url('/wp-content/uploads/2022/09/house-3.png') 0 0 / 100% 100% no-repeat;
	padding: 50px 15px 15px;
}

#landlords {
	background: url('/wp-content/uploads/2022/09/house-4.png') 0 0 / 100% 100% no-repeat;
	padding: 50px 15px 15px;
}

#homelesshap {
	background: url('/wp-content/uploads/2022/09/house-5.png') 0 0 / 100% 100% no-repeat;
	padding: 50px 15px 15px;
}

@media only screen and (max-width: 782px) {
	.wp-block-button {
		text-align: center;
	}
}

@media only screen and (min-width: 782px) {

	#whatishap,
	#howdoeshapwork,
	#tenants,
	#landlords,
	#homelesshap {
		height: 400px;
	}

	#whatishap>h2,
	#howdoeshapwork>h2,
	#tenants>h2,
	#landlords>h2,
	#homelesshap>h2 {
		padding-top: 50px;
	}
}

@media only screen and (min-width: 1220px) {

	#whatishap,
	#howdoeshapwork,
	#tenants,
	#landlords,
	#homelesshap {
		height: 300px;
	}

	#whatishap>h2,
	#howdoeshapwork>h2,
	#tenants>h2,
	#landlords>h2,
	#homelesshap>h2 {
		padding-top: 0;
	}
}

/* Aside */
.aside-link {
	background: #4c729c;
	line-height: 64px;
	text-indent: 20px;
	margin: 40px 16px 0 0;
	position: relative;
}

.aside-link::after {
	border-bottom: 32px solid transparent;
	border-left: 16px solid #4c729c;
	border-top: 32px solid transparent;
	content: "";
	left: 100%;
	top: 0;
	position: absolute;
}

.aside-link p,
.aside-link p a {
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
}

/* Find Your Local Authority Page */
.localauthority div {
	margin-top: 0;
}

.localauthorityfilter {
	background-color: #f5f5f5;
}

.localauthorityfilter label {
	padding: 8px;
}

.localauthorityfilter select {
	background-color: #f5f5f5;
	border: 1px solid;
	width: 100%;
}

.localauthority div div h2 {
	color: #fff;
	padding: 8px;
	margin-bottom: 5px;
	margin-top: 12px;
}

.localauthority div:nth-child(odd) h2 {
	background-color: #dc0963;
}

.localauthority div:nth-child(even) h2 {
	background-color: #860038;
}

.localauthority p {
	background-color: #f5f5f5;
	padding: 8px;
	margin-bottom: 5px;
}

.council>div {
	gap: 0;
}

@media (max-width: 544px) {
	.wp-block-columns .wp-block-column:not(:last-child) {
		margin-bottom: 0;
	}
}

/* Downloads Page */
.downloads h2 {
	color: #fff;
	padding: 8px 8px 0px 8px;
}

.downloads p {
	background-color: #f5f5f5;
	margin-top: 0;
	padding: 8px;
}

.downloads a {
	text-decoration: none;
}

.downloads a:focus-within {
	border: 1px dashed #333;
}

.downloads a:nth-child(odd)>div>div {
	background-color: #dc0963;
	padding: 10px 0 0 0;
}

.downloads a:nth-child(even)>div>div {
	background-color: #860038;
	padding: 10px 0 0 0;
}

/* Bug Fix WP Block Hyperlink */
p a.wp-block-hyperlink-group {
	display: none;
}

/* Image Button */
.img-button img {
	padding: 5px;
}

.card-block > div:not(.empty-block), .wp-block-group.card-block {
	background: rgba(255, 255, 255, 0.7);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	padding: 20px;
}