/*
Theme Name: IFRASEC
Author: Axome
Author URI: https://axome.com/
Description: IFRASEC 2026 by Axome
Version: 1.0.1
Text Domain: frost
*/


/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

mark {
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--regular);
	padding: 5px 8px;
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: var(--wp--preset--color--neutral);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}

/* Blocks
---------------------------------------- */

/* -- Navigation -- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid currentColor;
	padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* IFRASEC Custom Styles
---------------------------------------- */

/* -- Opacity Utilities -- */

.has-opacity-50 {
	opacity: 0.5;
}

.has-opacity-60 {
	opacity: 0.6;
}

.has-opacity-70 {
	opacity: 0.7;
}

.has-opacity-80 {
	opacity: 0.8;
}

/* -- Primary Color Variants -- */

.has-primary-background-color-15 {
	background-color: rgba(218, 0, 27, 0.15) !important;
}

/* -- Card Styles -- */

.overflow-hidden {
	overflow: hidden;
}

.overflow-hidden .wp-block-post-featured-image {
	width: 100%;
}

.overflow-hidden .wp-block-post-featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

/* -- Hero Badge -- */

.wp-block-group.has-primary-background-color-15 {
	background-color: rgba(218, 0, 27, 0.15) !important;
}

/* -- Marquee -- */

.ifrasec-marquee {
	overflow: hidden;
	padding: 2.5em 0;
	margin-bottom: 0.5rem;
}

.ifrasec-marquee.block-editor-block-list__block,
.ifrasec-marquee.block-editor-block-list__layout {
	transform: none;

	
}

.block-editor-block-list__block .ifrasec-marquee-content {
	animation: none;
	width: 99% !important;
}
.block-editor-block-list__block .ifrasec-marquee-content > div {
	width: 100% !important;
}

.ifrasec-marquee-wrapper {
	padding: var(--wp--preset--spacing--40) 0;
	width: 102%;
	transform: rotate(-2deg) translateX(-1%);
}

.ifrasec-marquee-content {
	display: flex;
	width: fit-content;
	animation: ifrasec-marquee-scroll 25s linear infinite;
}

.ifrasec-marquee-content:hover {
	animation-play-state: paused;
}

.ifrasec-marquee-content > span {
	flex-shrink: 0;
	white-space: nowrap;
	padding: 0 1.5rem;
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	margin-block-start: 0;
}

@keyframes ifrasec-marquee-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}

}

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

	/* -- Columns -- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

}