/*
Theme Name: Hiru
Author: ravigadhiyawp
Author URI: https://profiles.wordpress.org/ravigadhiyawp/
Description: Hiru is a clean and versatile WordPress block theme built for creativity and flexibility. Designed with simplicity at its core, it comes packed with adaptable design options and beautifully crafted block patterns for a range of page types — from service pages to engaging landing layouts. Perfect for personal blogs, professional portfolios, and business websites, Hiru offers templates that work seamlessly with various content styles, whether text-rich or visually bold. With support for global typography, and diverse color palettes, Hiru empowers users worldwide to create accessible, customized, and visually striking websites — all without touching a line of code.
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 5.6
Version: 1.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hiru
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, blog, news
*/

/** Link styles */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/** Figure styles */
figure {
	max-width: 100%;
}

/** Sticky Header Styles */
/* This CSS styles the sticky header, ensuring it remains at the top of the page when scrolling. */
#sticky-header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	transition: all 0.4s ease 0s;
}
#sticky-header .wp-block-site-title {
	color: var(--wp--preset--color--white);
}
#sticky-header .wp-block-navigation {
	color: var(--wp--preset--color--white);
}

#sticky-header.sticky {
	background-color: var(--wp--preset--color--white);
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.05);
}
#sticky-header.sticky .wp-block-site-title {
	color: var(--wp--preset--color--tertiary);
}
#sticky-header.sticky .wp-block-navigation {
	color: var(--wp--preset--color--tertiary);
}

/** Query Pagination Styles */
/* This CSS styles the pagination for the query block, ensuring it is visually appealing and user-friendly */
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
	display: inline-block;
	color: var(--wp--preset--color--tertiary);
	border: 1px solid var(--wp--preset--color--bg-gray);
	background-color: var(--wp--preset--color--bg-gray);
	font-weight: 600;
	padding: 0 14px;
	min-width: 40px;
	height: 40px;
	box-sizing: border-box;
	line-height: 40px;
	text-align: center;
	border-radius: 8px;
	transition: all 0.3s ease-in-out;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover {
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--white);
	text-decoration: none;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--primary);
}
.wp-block-query-pagination .wp-block-query-pagination-previous span,
.wp-block-query-pagination .wp-block-query-pagination-next span {
	margin: 0;
}

/** Form Styles */
/* This CSS styles the form elements to ensure they are visually appealing and consistent with the theme's design. */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea,
.wp-block-search__input {
    background-color: transparent;
    border-radius: 6px;
    border-width: 1px;
	border-style: solid;
	border-color: var(--wp--preset--color--border-gray);
    color: var(--wp--preset--color--gray);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium);
    line-height: inherit;
    padding: 1rem;
	box-sizing: border-box;
	margin-bottom: 0.5rem;
	width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus
input[type="password"]:focus,
select:focus,
textarea:focus,
.wp-block-search__input:focus {
	outline: none;
}

input[type="button"],
input[type="submit"],
.wp-block-search__button {
    background-color: var(--wp--preset--color--primary);
    border-radius: 6px;
    border-width: 0;
    color: var(--wp--preset--color--white);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium);
    line-height: inherit;
    padding-top: 1rem;
    padding-right: 2.25rem;
    padding-bottom: 1rem;
    padding-left: 2.25rem;
    text-decoration: none;
	transition: 0.4s all;
	cursor: pointer;
}
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover {
	background-color: var(--wp--preset--color--quaternary);
	color: var(--wp--preset--color--white);
}

/** Social Links Styles */
/* This CSS styles the social links block to ensure it is visually appealing and consistent with the theme's design */
.wp-block-social-links.has-icon-color.footer-social .wp-social-link .wp-block-social-link-anchor {
	width: 32px;
	height: 32px;
	background-color: var(--wp--preset--color--white);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 6px;
}
.header-top .wp-block-social-links.has-icon-color .wp-social-link .wp-block-social-link-anchor {
	width: 26px;
	height: 26px;
	background-color: var(--wp--preset--color--quaternary);
}


/** Navigation style */
/* This CSS styles the navigation menu to ensure it is visually appealing and user-friendly */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	width: max-content !important;
	border-radius: 6px;
}
.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	top: 150% !important;
}
.wp-block-navigation .wp-block-navigation-item.has-child.open-on-hover-click.wp-block-navigation-submenu::before {
	content: "";
    width: 70px;
    height: 20px;
    position: absolute;
    top: 20px;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container > .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--border-gray);
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container > .wp-block-navigation-item:hover {
	background-color: var(--wp--preset--color--primary);
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container > .wp-block-navigation-item:hover > a {
	color: var(--wp--preset--color--white) !important;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container > .wp-block-navigation-item:first-child {
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container > .wp-block-navigation-item:last-child {
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	border-bottom: 0px;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container .wp-block-navigation-item a {
	padding: 8px 10px;
}
@media screen and ( min-width: 992px ) and ( max-width: 1199px ) {
	.wp-block-navigation .wp-block-navigation__container {
		gap: 22px;
	}
}
@media screen and ( max-width: 991px ) {
	.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--white);
	}
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		gap: 0 !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content ul + ul li:first-child {
		border-top: none !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content ul,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content1 {
		width: 100%;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content ul {
		gap: 0 !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
		border-bottom: 1px solid #fff;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item:first-child {
		border-top: 1px solid #fff;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		line-height: 3.5;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:focus {
		color: var(--wp--preset--color--white);
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
		display:inline-block !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
		padding-top: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item a {
		padding: 0px;
		display: flex !important;
		flex-grow: 1 !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		flex-direction: row !important;
		justify-content: space-between !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		border-radius: 0 !important;
		border-color: var(--wp--preset--color--white) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > ul {
		display: flex;
		flex-wrap: wrap;
		align-content: space-between;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding-left: 20px !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content {
		padding-left: 40px !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
		width: 20px;
		height: 20px;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon svg {
		width: 12px;
		height: 12px;
		margin-top: 0;
		transition: all 0.3s;
	}
}

/** General style */
/* This CSS styles the general elements of the theme to ensure consistency and visual appeal */
main.wp-block-group,
main.wp-block-group + .wp-block-template-part {
	margin-block-start: 0;
}
@media screen and ( max-width: 580px ) {
	.mobile-hide {
		display: none !important;
	}
}

/* 404 page heading styles */
/* This CSS styles the heading for the 404 page, adding a text shadow for better visibility */
.heading-404 {
	text-shadow: 12px 10px rgb(6 5 5 / 15%);
	max-width: max-content !important;
}


/** Sidebar style */
/* This CSS styles the sidebar it is visually appealing and user-friendly */
#sidebar .wp-block-separator {
	max-width: 200px !important;
	margin-left: 0 !important;
}
#sidebar .wp-block-categories-list {
	list-style: none;
	padding-left: 0;
}
#sidebar .wp-block-categories-list li {
	position: relative;
	padding-left: 24px;
}
#sidebar .wp-block-categories-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	border-top: 2px solid var(--wp--preset--color--primary);
	border-right: 2px solid var(--wp--preset--color--primary);
	transform: translateY(-50%) rotate(45deg);
}
#sidebar .wp-block-categories-list li + li {
	margin-top: 10px;
}
#sidebar .wp-block-tag-cloud .tag-cloud-link {
	padding: 10px 20px;
	margin: 0px 4px 8px 0px;
	color: var(--wp--preset--color--gray);
	background: var(--wp--preset--color--bg-gray);
    border: 1px solid var(--wp--preset--color--bg-gray);
	border-radius: 6px;
	text-decoration: none !important;
}
#sidebar .wp-block-tag-cloud .tag-cloud-link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}


