/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/
/* ================================
   HEADER STYLING
   ================================ */
header,
.site-header,
.elementor-header {
	z-index: 3 !important;
	position: relative;
}
.header-title a,
.header-title a:visited,
.header-title a:hover,
.header-title a:active,
.header-title a:focus {
  color: #fff;
  text-decoration: none;
}
.header-slogan a,
.header-slogan a:visited,
.header-slogan a:hover,
.header-slogan a:active,
.header-slogan a:focus {
  color: #e10000;
  text-decoration: none;
}
.header-socials a,
.header-socials a:visited,
.header-socials a:hover,
.header-socials a:active,
.header-socials a:focus {
  color: #fff;
  text-decoration: none;
}
	
/* ================================
   BODY STYLING
   ================================ */
body {
	overflow-x: hidden;
}
/* ================================
   PIXEL BACKGROUND
   ================================ */
.bg-pixel {
	background-image: radial-gradient(black 1px, transparent 0);
	background-size: 3px 3px;
	background-position: -19px -19px;
	background-color: rgba(0, 0, 0, 0.5);
	font-weight:500;
	z-index:2;
}
/* ================================
   POST STYLING
   ================================ */

/* GRID LAYOUT */

.sfb-post-item-grid {
	position:relative;
	overflow:hidden !important;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: space-between;
	background-size:cover;
	background-position:center center;
	min-height:400px;
	max-height:400px;
	padding-top:40px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	transform-origin: center center;
	z-index: 1;
}
.sfb-post-item-grid:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(255, 255, 255, 1.0); /* green glow */
	z-index: 2;
	overflow:hidden !important;
}
/* Post Hover Video */
.hover-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.sfb-post-item-grid:hover .hover-bg-video {
  opacity: 1.0;
  z-index: -2;
}
/* Post Overlay (Make whole post clickable) */
.sfb-post-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  text-indent: -9999px; /* hide text visually */
  overflow: hidden;
  white-space: nowrap;
}
/* New Post Badge*/
.new-post-badge {
	position: absolute;
	margin:5px;
	top: 0px;
	right: 0px;
	width: 50px; /* adjust size as needed */
	height: auto;
	padding: 5px;
	font-size: 12px;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
	color:#fff;
	background-color: rgba(0,0,0,0.5);
	text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
	z-index:3;
}
.new-post-badge img {
	width: 100%;
	height: auto;
	display: block;
}
/* Date */
.sfb-post-date-grid {
	position: absolute;
	margin:5px;
	top: 0;
	left: 0;
	display: inline-block;
	width: 150px;
	padding: 5px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-align: center;
	text-transform: uppercase;
	background-color: rgba(0,0,0,0.5);
	z-index:3;
}
/* Author*/
.sfb-post-author-grid{
	position:absolute;
	bottom:0;
	right:0;
	display: inline-block;
	width: 150px;
	padding: 5px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-align: right;
	text-transform: uppercase;
	z-index:3;
}
/* Post Title */
.sfb-post-title-grid {
	position: relative;
	display: inline-block;
	width: auto;
	padding:20px;
	text-align:left;
	color:#FFF;
	font-size:25px;
	font-weight:900;
	text-transform:uppercase;
	text-shadow: 2px 2px 0px rgba(0, 0, 0, 1.0);
	z-index: 1;
}
/* Post Excerpt */
.sfb-post-excerpt-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 1.0);
  color:#FFF;
  font-size:16px;
  padding-left:20px;
  padding-right:20px;
  background-image: radial-gradient(black 1px, transparent 0);
  background-size: 3px 3px;
  background-position: -19px -19px;
  background-color: rgba(0, 0, 0, 0.5);
  font-weight:500;
  min-height:160px;
  max-height:160px;
  z-index:1;
}
/* Post Tags */
.sfb-tag-label {
	margin-left:5px;
	font-size: 12px;
	color: #bbb;
	background-color: rgba(0,0,0,0.5);
	padding: 5px;
	border-radius: 4px;
	text-transform: lowercase;
	text-decoration: none;
	transition: background 0.2s;
	z-index: 4;
}
.sfb-tag-label:hover {
	color: #E10000 !important;
	background-color: rgba(255,255,255,0.2);
}

/* SLIDER LAYOUT */

.sfb-recent-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for large screens */
  gap: 0px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

/* Mid-width screens (like laptops and tablets in landscape) */
@media (max-width: 1500px) {
  .sfb-recent-posts {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for mid-size */
  }
}

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .sfb-recent-posts {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

/* Phones */
@media (max-width: 600px) {
  .sfb-recent-posts {
    grid-template-columns: 1fr; /* 1 column */
  }
}
.sfb-post-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  width: 100%;
  min-height:300px;
}

/* Optional overlay for better readability */
.sfb-post-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.sfb-post-item > * {
  position: relative;
  z-index: 1;
}

.sfb-slider-thumb {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.sfb-post-item h3 a {
  padding-top: 20px;
  color: #FFF;
  font-weight:900;
  text-decoration: none !important;
}

.sfb-post-date {
  float: left;
  width: fit-content;
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  padding-top:20px;
}

.sfb-post-author {
  float: right;
  width: fit-content;
  text-align: right;
  text-transform: uppercase;
  color: #FF0003;
  font-size: 16px;
  font-weight: 800;
}

.sfb-post-excerpt {
  float:left;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 16px;
}

.sfb-post-readmore a{
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 20px;
  font-weight:900;
  color:#00a308;
  text-decoration:none !important;
}

/* Hides posts above the set limit for each screen size */

/* On large screens (desktop), hide items above desktop_limit */
@media (min-width: 1025px) {
  .post-hidden-desktop {
    display: none !important;
  }
}

/* On tablets (between 601px and 1024px), hide above tablet_limit */
@media (max-width: 1024px) and (min-width: 601px) {
  .post-hidden-tablet {
    display: none !important;
  }
}

/* On phones (600px and below), hide above mobile_limit */
@media (max-width: 600px) {
  .post-hidden-mobile {
    display: none !important;
  }
}

.swiper-slide {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch; /* Make sure inner content stretches to fill */
}

/* Size and color of arrows */
.swiper-button-next,
.swiper-button-prev {
  width: 10% !important;
  height: 100% !important;
  color: #FFF !important;
  background-color: rgba(0, 0, 0, 0.5); /* optional */
  border-radius: none;
}

/* Positioning the bullets */
.swiper-pagination {
  bottom: 10px; /* adjust vertical placement */
  text-align: center;
}

/* Customize bullets */
.swiper-pagination-bullet {
  width: 20px !important;
  height: 20px !important;
  background-color: none !important;
  opacity: 0.9;
  margin: 0 5px;
}

/* Active bullet */
.swiper-pagination-bullet-active {
  background-color: none !important;
  opacity: 1;
}
