/*
// ===========================
// Animation slideInUp
// ===========================
*/
@keyframes slideInUp {
  from {
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  visibility: visible;
  }
  to {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  }
}

.animated {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.animated.slideInUp {
  animation: slideInUp 0.8s ease forwards;
  opacity: 1;
}

/*
// ===========================
// line-clamp
// ===========================
*/
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/*
// ===========================
// Banner Block Styles
// ===========================
*/
.phearum-banner {
  background-color: #9A480E;
}
@media (max-width: 768px) {
  .phearum-banner .phearum-banner-media {
  display: none;
  }
}
.phearum-banner .phearum-banner-overlay {
  background-color: #333;
  opacity: 0.1;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

/*
// ===========================
// Single Heading Title Style
// ===========================
*/
.wp-block-heading {
  font-family: var(--font-mono);
}
.widget .wp-block-heading {
  font-family: var(--font-heading);
}
.section-heading-title,
.banner-heading-title,
.banner-sub-heading-title {
  font-family: var(--font-heading);
}
.entry-header .page-title,
.wp-block-heading.has-text-align-center {
  font-family: var(--font-heading);
}

/* Accessibility */
.phearum-block-slider-prev:focus,
.phearum-block-slider-next:focus,
.phearum-block-slider-dots:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  background-color: inherit;
}

/* Featured Badge */
.featured-badge {
  width: 2rem;
  height: 2rem;
  margin: 2px;
  background: linear-gradient(135deg, hsl(var(--color-primary)), hsl(var(--color-secondary)));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
  animation: gentle-pulse 2s infinite;
}

.featured-icon {
  width: 1rem;
  height: 1rem;
  color: white;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* =============================================
All Buttons (inside wp-block-buttons and wp-block-button)
============================================= */
.wp-block-buttons .wp-block-button .default-primary-button,
.wp-block-buttons .wp-block-button .wp-block-button__link  {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  height: inherit;
}
.wp-block-buttons .wp-block-button:nth-child(even) .default-primary-button,
.wp-block-buttons .wp-block-button:nth-child(even) .wp-block-button__link  {
  background-color: hsl(var(--color-surface));
  color: hsl(var(--color-primary));
}
.wp-block-buttons .default-primary-button .wp-block-button__link {
  background-color: hsl(var(--color-secondary));
}
.wp-block-buttons .default-primary-button .wp-block-button__link:hover {
  background-color: hsl(var(--color-secondary)/0.9);
}

/* =============================================
wp-block-media-text (has-media-on-the-right)
============================================= */
.page-template-template-homepage .wp-block-media-text.has-media-on-the-right {
  background-color: hsl(var(--color-primary));
  color: #fff;
}
.page-template-template-homepage .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  padding: 5rem 2rem;
}
.page-template-template-homepage .wp-block-media-text.has-media-on-the-right .wp-block-buttons .button,
.page-template-template-homepage .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content .wp-block-button .wp-block-button__link {
  background-color: hsl(var(--color-secondary));
  color: #00AFD7;
  border-radius: 8px;
  font-size: 14px;
}
.page-template-template-homepage .wp-block-media-text.has-media-on-the-right .wp-block-buttons.button-size-sm .wp-block-button .button,
.page-template-template-homepage .wp-block-media-text.has-media-on-the-right .wp-block-buttons.button-size-sm .wp-block-button .wp-block-button__link {
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-radius: 40px 40px 40px 40px;
  padding: 0 8px;
  transition: all .3s;
  color: hsl(var(--color-surface));
  font-weight: 500;
  background-color: transparent;
}
@media (max-width: 768px) {
.page-template-template-homepage .wp-block-column .wp-block-group {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
}
.page-template-template-homepage .wp-block-column .wp-block-cover {
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
}
.page-template-template-homepage .wp-block-column .wp-block-group .wp-block-group__inner-container {
  padding: 0;
}
.page-template-template-homepage .wp-block-cover .wp-block-cover__inner-container,
.page-template-template-homepage .wp-block-cover-image .wp-block-cover__inner-container {
  padding: 1rem;
  color: #fff;
}
.page-template-template-homepage .wp-block-cover .wp-block-cover__inner-container::before,
.page-template-template-homepage .wp-block-cover-image .wp-block-cover__inner-container::before {
  content: '';
  position: absolute;
  height: 3px;
  width: 0;
  background: #fff;
  left: 0;
  top: 0;
  transition: width 0.4s ease-in-out;
}
.page-template-template-homepage .wp-block-cover:hover .wp-block-cover__inner-container::before,
.page-template-template-homepage .wp-block-cover-image:hover .wp-block-cover__inner-container::before {
  width: 100%;
}
.page-template-template-homepage .wp-block-cover .wp-block-cover__inner-container .btn-icon svg,
.page-template-template-homepage .wp-block-cover-image .wp-block-cover__inner-container .btn-icon svg {
  transition: transform 0.4s ease-in-out;
}
.page-template-template-homepage .wp-block-cover:hover .wp-block-cover__inner-container .btn-icon svg,
.page-template-template-homepage .wp-block-cover-image:hover .wp-block-cover__inner-container .btn-icon svg {
  transform: scale(1.05);
}
.page-template-template-homepage .wp-block-cover .wp-block-cover__image-background,
.page-template-template-homepage .wp-block-cover video.wp-block-cover__video-background,
.page-template-template-homepage .wp-block-cover-image .wp-block-cover__image-background,
.page-template-template-homepage .wp-block-cover-image video.wp-block-cover__video-background {
  transition: transform 0.3s ease;
}
.page-template-template-homepage .wp-block-cover:hover .wp-block-cover__image-background,
.page-template-template-homepage .wp-block-cover:hover video.wp-block-cover__video-background,
.page-template-template-homepage .wp-block-cover-image:hover .wp-block-cover__image-background,
.page-template-template-homepage .wp-block-cover-image:hover video.wp-block-cover__video-background {
  transform: scale(1.05);
}

.page-template-template-homepage .wp-block-cover.wp-block-cover:nth-child(1) .wp-block-cover__inner-container,
.page-template-template-homepage .wp-block-cover-image.wp-block-cover:nth-child(1) .wp-block-cover__inner-container {
  background-color: #042e6b;
}
.page-template-template-homepage .wp-block-cover:nth-child(2) .wp-block-cover__inner-container {
  background-color: #a43339;
}
.page-template-template-homepage .wp-block-cover:nth-child(3) .wp-block-cover__inner-container {
  background-color: #ff671d;
}

.page-template-template-homepage .wp-block-cover .wp-block-cover__inner-container .btn-icon {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  padding: 12px;
}
.page-template-template-homepage .wp-block-cover .wp-block-cover__inner-container .btn-icon svg {
  width: 36px;
  height: 36px;
}


/* =============================================
style for Transparent Header with Banner
============================================= */
.banner-slider-animation {
  animation-delay: 0.3s;
}
/* Transparent Header Overlay Styles */
.phearum-banner.has-transparent-header {
  margin-top: -80px; /* Adjust based on typical header height */
  padding-top: 80px; /* Compensate for negative margin */
}

/* Target header elements when transparent banner is active */
.page-template-template-homepage.has-transparent-banner-header:not(.scrolled) .site-header,
.page-template-template-homepage.has-transparent-banner-header:not(.scrolled) header,
.page-template-template-homepage.has-transparent-banner-header:not(.scrolled) #masthead
/* ,
.page-template-template-homepage.has-transparent-banner-header .main-navigation,
.page-template-template-homepage.has-transparent-banner-header #site-navigation */
{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  /* background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}
/* Scroll behavior for transparent header */
.page-template-template-homepage.has-transparent-banner-header:not(.scrolled) .site-header,
.page-template-template-homepage.has-transparent-banner-header:not(.scrolled) header,
.page-template-template-homepage.has-transparent-banner-header:not(.scrolled) #masthead
/* ,
.page-template-template-homepage.has-transparent-banner-header.scrolled .main-navigation,
.page-template-template-homepage.has-transparent-banner-header.scrolled #site-navigation */
{
  /* backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); */
}

/* Text color adjustments for transparent header */
.page-template-template-homepage.has-transparent-banner-header .site-header a,
.page-template-template-homepage.has-transparent-banner-header header a,
.page-template-template-homepage.has-transparent-banner-header #masthead a,
.page-template-template-homepage.has-transparent-banner-header .main-navigation a,
.page-template-template-homepage.has-transparent-banner-header #site-navigation a {
  color: #ffffff;
}

/* Text color when scrolled */
@media (min-width: 768px) {
  .page-template-template-homepage.has-transparent-banner-header.scrolled .site-header a,
  .page-template-template-homepage.has-transparent-banner-header.scrolled header a,
  .page-template-template-homepage.has-transparent-banner-header.scrolled #masthead a,
  .page-template-template-homepage.has-transparent-banner-header.scrolled .main-navigation a,
  .page-template-template-homepage.has-transparent-banner-header.scrolled #site-navigation a {
    color: #333333;
  }
  .page-template-template-homepage.has-transparent-banner-header.scrolled .site-header *,
  .page-template-template-homepage.has-transparent-banner-header.scrolled header *,
  .page-template-template-homepage.has-transparent-banner-header.scrolled #masthead *,
  .page-template-template-homepage.has-transparent-banner-header.scrolled .main-navigation *,
  .page-template-template-homepage.has-transparent-banner-header.scrolled #site-navigation * {
    color: #333333;
  }
}