/*
Theme Name: ABC Energy
Theme URI: 
Author: ABC Energy
Author URI: 
Description: 
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: abc-energy
Tags: 

/* CSS Reset
---------------------------------------------------------------------------- */

/* CSS Reset
---------------------------------------------------------------------------- */

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

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: 600;
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--md);
}

div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--neutral-9);
	font-size: var(--wp--preset--spacing--xs);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

img,
figure {
	max-width: 100%;
	height: auto;
	width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance !important;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

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

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--neutral-10);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--neutral-10);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--text-base);
	width: 100%;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

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

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--neutral-10);
	font-size: var(--wp--preset--font-size--text-sm);
	opacity: 0.75;
}

/* Post Comment Button */
input[type="submit"].wp-block-button__link {
	padding-top: var(--wp--custom--block--button--padding-y);
	padding-right: var(--wp--custom--block--button--padding-x);
	padding-bottom: var(--wp--custom--block--button--padding-y);
	padding-left: var(--wp--custom--block--button--padding-x);
}

input[type="submit"].wp-block-button__link:hover {
	background-color: var(--wp--preset--color--neutral-12);
	color: var(--wp--preset--color--light);
	border-color: var(--wp--preset--color--neutral-12);
}

:root {
    --focus-ring-color: var(--wp--preset--color--neutral-10);
    --focus-ring-offset: 2px;
	--gap-default: var(--wp--style--block-gap, 1rem);

}

:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
    outline-color: var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.wp-element-button,
.wp-block-button__link {
    transition: all 0.2s ease-in-out;
}


:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover),
:root :where(.wp-block-post-title a:where(:not(.wp-element-button)):hover) {
	text-decoration: none !important;
}

p {
	font-weight: 300;
}



/* .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #E8391F; 
  color: white;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,   
    100% 24px,             
    100% 100%,
    0 100%
  );
} */

/* .featured-next {
  position: relative;
  display: inline-flex;
  padding: 1rem 1.5rem;
  border: 1px solid #333;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  background: #f4f1ec;
}

.featured-next::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;   
  height: 24px;  
  background: linear-gradient(135deg, transparent calc(50% - 0.5px), #333 calc(50% - 0.5px), #333 calc(50% + 0.5px), transparent calc(50% + 0.5px));
  clip-path: polygon(0 0, 100% 0, 100% 100%); 
}

.featured-next {
  transition: background-color 0.25s ease;
}
.featured-next::after {
  transition: background-color 0.25s ease;
}

.featured-next:hover::after {
  background: linear-gradient(135deg, transparent calc(50% - 0.5px), #f4f1ec calc(50% - 0.5px), #f4f1ec calc(50% + 0.5px), transparent calc(50% + 0.5px));
} */

/* Button wrapper */
.wp-block-button.is-style-outline {
    display: inline-block;
}

/* Button */
.wp-block-button.is-style-outline .wp-block-button__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 90px 0 40px;
    border: 1px solid var(--wp--preset--color--tertiary);
    background: transparent;
    color: #2c2c2c;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: .3s ease;
}

/* Orange arrow block */
.wp-block-button.is-style-outline .wp-block-button__link::after {
    content: "\2192";
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 100%;
    background: #f23b0a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: .3s ease;

    /* angled top-right corner */
    clip-path: polygon(0 0, 84% 0, 100% 20%, 100% 100%, 0 100%);
}

/* Hover */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--secondary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover::after {
    background: var(--wp--preset--color--primary);
    transform: translateX(3px);
}

.wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 18px, 100% 100%, 0 100%);
  z-index: 0;                    /* creates a stacking context so ::before can sit correctly */
}

.wp-block-button.is-style-outline .wp-block-button__link::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 1px;
    height: 50px;
    background: var(--wp--preset--color--tertiary);
    transform: rotate(-43deg);
    transform-origin: top center;
    z-index: 1; 
}

.rudr-category-filter--links {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
  /* border: 1px solid var(--wp--preset--color--neutral-12); */
  /* overflow-x: scroll;
  max-width: fit-content; */

}
.rudr-category-filter--links > span {
	display: flex;
	align-items: center;
	gap: 5px 0;
	flex-wrap: wrap;
  padding-top: 1px;
  padding-left: 1px;


}

@media(max-width: 500px){
    .rudr-category-filter--links > span{
      justify-content: center;
    }
}

.rudr-category-filter--links > span > a {
	min-width: 107px !important;
	display:flex;
	justify-content: center;
	padding: 16px 20px;
	color: var(--wp--preset--color--neutral-12);
  border: 1px solid var(--wp--preset--color--neutral-12);
  margin-top: -1px;
    margin-left: -1px;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* .rudr-category-filter--links > span > a:not(:last-child) {
	border-right: 1px solid var(--wp--preset--color--neutral-12);
} */

.rudr-category-filter--links > span > a.rudr-filter-current{
  background-color: var(--wp--preset--color--neutral-12); 
  color: var(--wp--preset--color--light);
}
.rudr-category-filter--links > span > a:hover,
.rudr-category-filter--links > span:has(> a.rudr-filter-current) > a:first-child:not(.rudr-filter-current):hover {
	background-color: var(--wp--preset--color--neutral-12);
	color: var(--wp--preset--color--light) !important;
	border-color: var(--wp--preset--color--neutral-12);
}

/* 1. Default: first child (All) is dark */
.rudr-category-filter--links > span > a:first-child {
	background-color: var(--wp--preset--color--neutral-12);
	color: var(--wp--preset--color--light);
	border-color: var(--wp--preset--color--neutral-12);
}

/* 2. Only revert first child when ANOTHER a in the span is current */
.rudr-category-filter--links > span:has(> a.rudr-filter-current) > a:first-child:not(.rudr-filter-current) {
	background-color: transparent;
	color: var(--wp--preset--color--neutral-12);
	border-color: var(--wp--preset--color--neutral-12);
}


.news-cards .wp-block-post-excerpt p {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

/* Contain the zoom so it doesn't spill outside the image area */
.news-cards > .wp-block-post .wp-block-post-featured-image {
	overflow: hidden;
}

/* Smooth transition on the image itself */
.news-cards > .wp-block-post .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

/* Trigger zoom when hovering the whole card (li) */
.news-cards > .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.08);
}


.news-cards .wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.4s ease;
}

.news-cards .wp-block-post-featured-image {
	position: relative;
}

.news-cards > .wp-block-post:hover .wp-block-post-featured-image::after {
	background: rgba(0, 0, 0, 0.08);
}

.wp-block-read-more:hover{
    text-decoration: underline;
}

@media (max-width: 781px) {
	.reverse-on-mobile {
		display: flex;
		flex-direction: column-reverse;
	}
}


.gform-theme--foundation:has(.gform-loader) .gform-has-spinner {
    color: transparent !important;
}


.hidden{ display: none; }
.swiper-wrapper{
  box-sizing: border-box !important;
}

.info-column .wp-block-image{
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    flex: 0 0 68px;
}

.info-column .wp-block-image img{
    width: 68px;
    height: 68px;
    min-width: 68px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

@media (min-width: 780px) and (max-width: 900px) {
    .cta h2{
        text-align: start !important;
    }
    
    .cta .wp-block-buttons{
        justify-content: start !important;
    }
}

@media(max-width: 960px){
    .menu-half-bg-cover.wp-block-cover{
        min-height: 95px !important;
    }
    
    header .header{
        padding-top: 20px !important;
    }
}
@media(max-width: 430px){
    .wp-block-cover.has-aspect-ratio{
        aspect-ratio: 1 !important;
    }
}




.columns-3.news-cards h2{
    font-size: 20px !important;
}