
.item-card .card-thumbnail{
  border-radius: 0.5rem;
  overflow: hidden;
}

.item-card .card-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.item-card.full-size-logo-reset .card-thumbnail {
  display: flex;
  align-items: center;
  background-color: hsl(var(--color-surface));
  aspect-ratio: auto !important;
  margin-bottom: 0 !important;
}
.item-card.full-size-logo-reset .card-thumbnail img {
  object-fit: contain;
  aspect-ratio: auto;
}

/*
// ===========================
// I. Card Style Default
// ===========================
*/
.card-style-default {
  color: hsl(var(--color-text));
  border-radius: var(--radius-xl, 0.5rem);
  padding: var(--spacing-md, 1.5rem);
  position: relative;
  border: 1px solid hsl(var(--color-border));
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-style-default:hover {
  border: 1px solid hsl(var(--color-primary));
  transform: translateY(-3px);
}

.block-card-grid .card-style-default .card-thumbnail {
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-xl, 0.5rem)/2);
  margin-bottom: var(--spacing-md, 1rem);
  overflow: hidden;
}

@media (min-width: 1024px) {
    .block-card-list .card-style-default .card-thumbnail {
      width: 50%;
      height: auto;
    }
}

.card-style-default h3,
.card-style-default .card-title {
  font-family: var(--font-body, 'Playfair Display', serif);
  font-size: var(--font-lg, 1.125rem);
  font-weight: var(--font-semibold, 600);
  color: hsl(var(--color-text));
  margin-bottom: var(--spacing-sm, 0.5rem);
  line-height: var(--line-snug, 1.35);
}

.card-style-default p {
  /* margin-bottom: var(--spacing-md, 1rem); */
}

.card-style-default .card-meta {
  font-size: var(--font-sm, 0.875rem);
  color: hsl(var(--gray-500));
  display: flex;
  align-items: center;
  gap: var(--spacing-xs, 0.25rem);
}

.card-style-default .card-footer {
  border-top: 1px solid hsl(var(--color-border));
  padding-top: var(--spacing-sm, 0.5rem);
  margin-top: var(--spacing-md, 1rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-style-default .btn-link {
  color: hsl(var(--color-secondary));
  font-weight: var(--font-medium, 500);
  text-decoration: none;
  transition: color var(--transition-base, 200ms) ease;
}

.card-style-default .btn-link:hover {
  color: hsl(var(--color-primary));
}

/*
// ===========================
// II. Card Style Classic
// ===========================
*/
.card-style-classic {
  color: hsl(var(--color-text));
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.card-style-classic:hover {
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  background-color: #F2F2F2;
}

.card-style-classic .card-post-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.card-style-classic ul {
  list-style-type: disc;
}

.card-style-classic ul:last-child {
  margin-bottom: 0;
}

.card-style-classic .card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: hsl(var(--color-surface));
  background-color: hsl(var(--color-primary));
}

.card-style-classic .card-thumbnail {
  border-radius: 0.5rem;
}

.card-style-classic .featured-category {
  display: none;
}

.item-card .card-thumbnail {
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .block-container-list .card-style-classic.gap-6 {
    gap: 0;
  }
  .block-container-list .card-style-classic .card-content {
    padding: 2.5rem;
  }
  .item-card .card-des {
    display: none;
  }
}

/*
// ===========================
// III. Card Style Our Services
// ===========================
*/
/* 1️⃣ Reset the counter on the parent container */
.block-container-list {
  counter-reset: card-counter;
}

/* 2️⃣ Increment for each card */
.card-style-classic .card-content {
  counter-increment: card-counter;
  position: relative;
}

/* 3️⃣ Add the number before each card */
.card-style-classic .card-content::before {
  content: counter(card-counter);
  content: "." counter(card-counter, decimal-leading-zero);
  font-family: "Martel", Sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: #BFBFBF;
}

/* Card Style: Short Title with Icon */
.block-card-grid .card-style-short-title-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  margin-bottom: 4rem;
}

.block-card-grid .card-style-short-title-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}


/* Icon */
.block-card-grid .item-card .featured-icon-wrapper {
  position: absolute;
  top: -35px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  background-color: hsl(24, 83%, 28%);
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.block-card-grid .item-card:hover .featured-icon-wrapper {
  background-color: hsl(24, 86%, 33%);
}

/* Base state: add transition for smooth rotation */
.block-card-grid .item-card .featured-icon-wrapper svg {
    transition: transform 0.5s ease; /* adjust duration/easing */
}





/* Slider specific styles */
.staff-avatar {
  aspect-ratio: 1 / 1;
}

.phearum-staff-slider {
    position: relative;
}

.phearum-block-slider-track {
    will-change: transform;
}

.phearum-block-slider-prev,
.phearum-block-slider-next {
    transition: all 0.2s ease;
}

.phearum-block-slider-prev:hover,
.phearum-block-slider-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.phearum-block-slider-prev:disabled,
.phearum-block-slider-next:disabled {
    cursor: not-allowed;
}

.phearum-block-slider-dots {
    margin-top: -1rem;
    margin-bottom: 1rem;
}
.phearum-block-slider-dot {
    background-color: hsl(var(--color-primary));
}
.phearum-block-slider-dot.active {
    transform: scale(1.1);
    background-color: hsl(var(--color-secondary));
}

.phearum-block-slider-dot:hover {
    background-color: hsl(var(--color-primary)/0.8);
}

.card-hover-glow:hover {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25) !important;
}

.card-hover-rotate:hover {
    transform: rotate(1deg);
}

.card-hover-scale:hover {
    transform: scale(1.05);
}

.card-hover-lift:hover {
    transform: translateY(-4px);
}

.card-hover-shadow-light:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.card-hover-shadow-medium:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.card-hover-shadow-heavy:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Special case: Glow animation already has shadow, don't override */
.card-hover-glow.card-hover-shadow-light:hover,
.card-hover-glow.card-hover-shadow-medium:hover,
.card-hover-glow.card-hover-shadow-heavy:hover {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {    
    .phearum-block-slider-prev,
    .phearum-block-slider-next {
        padding: 8px;
    }
    
    .phearum-block-slider-prev svg,
    .phearum-block-slider-next svg {
        width: 16px;
        height: 16px;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .card-hover-glow:hover {
        box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4);
    }
}

/* Phase 2: Card Layout Variants */

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .staff-search-controls {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .staff-search-controls > div {
        width: 100% !important;
    }
}

/* Search & Filter Controls Styling */
.staff-search-controls {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staff-search-input:focus,
.staff-filter-department:focus,
.staff-filter-position:focus,
.staff-filter-location:focus {
    outline: none;
}

/* Load More Button */
.staff-load-more-btn {
    position: relative;
    overflow: hidden;
}

.staff-load-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.staff-load-more-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Phase 3: Typography Custom Properties */
.phearum-staff-grid {
    --staff-name-size: 20px;
    --staff-name-weight: 600;
    --staff-title-size: 14px;
    --staff-title-weight: 400;
    --staff-spacing: 16px;
}

.staff-name {
    font-size: var(--staff-name-size) !important;
    font-weight: var(--staff-name-weight) !important;
}

.staff-title {
    font-size: var(--staff-title-size) !important;
    font-weight: var(--staff-title-weight) !important;
}

.staff-card .staff-content > * + * {
    margin-top: var(--staff-spacing) !important;
}

/* Phase 3: Advanced Slider Effects */
.staff-slider-fade .staff-card {
    transition: opacity 0.6s ease-in-out;
}

.staff-slider-vertical {
    flex-direction: column !important;
}

.staff-slider-vertical .staff-card {
    width: 100% !important;
}

/* Responsive slides per view */
.staff-slider {
    display: grid;
    grid-template-columns: repeat(var(--slides-desktop, 3), 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .staff-slider {
        grid-template-columns: repeat(var(--slides-tablet, 2), 1fr);
    }
}

@media (max-width: 640px) {
    .staff-slider {
        grid-template-columns: repeat(var(--slides-mobile, 1), 1fr);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    /* Larger touch targets */
    .staff-card a,
    .staff-card button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .staff-search-controls {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .staff-search-controls > div {
        width: 100% !important;
    }
    
    /* Horizontal cards become vertical on mobile */
    .staff-card-horizontal {
        flex-direction: column !important;
    }
    
    .staff-card-horizontal .staff-avatar {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1;
    }
}

/* Phase 3: Keyboard Navigation & Accessibility */
.staff-card.keyboard-focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.staff-card a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip to content for screen readers */
.staff-skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background: #000;
    color: hsl(var(--color-surface));
    text-decoration: none;
}

.staff-skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .staff-card,
    .staff-load-more-btn,
    .staff-avatar img,
    .staff-slider-fade .staff-card {
        transition: none !important;
        animation: none !important;
    }
}

/* Staff Empty State for Search/Filter */
.staff-empty-state-frontend {
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.6), rgba(219, 234, 254, 0.4));
    border-radius: 1rem;
    border: 2px dashed rgba(96, 165, 250, 0.3);
}

.staff-empty-state-frontend svg {
    margin: 0 auto 1.5rem;
}

/* Hover state: rotate 180deg */
@media (min-width: 1024px) {
    .block-card-grid .item-card:hover .featured-icon-wrapper svg {
        transform: rotate(360deg);
    }
}

.block-card-grid .card-style-short-title-icon .card-content > * {
    display: none;
}

/* Title section */
.block-card-grid .card-style-short-title-icon h3 {
    background-color: hsl(24, 83%, 28%);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    margin: 0;
    font-size: 1rem;
}
@media (min-width: 768px) {
    .block-card-grid .card-style-short-title-icon h3.card-post-title {
        font-size: 1.13rem;
        width: 88% !important;
        min-height: 100px;
        padding: 15px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: hsl(var(--color-primary));
        border-bottom: 6px solid hsl(var(--color-secondary));
        position: absolute;
        bottom: -50px;
        left: 50%;
        z-index: 10;
        transform: translateX(-50%);
    }
}

/* Image */
.block-card-grid .card-style-short-title-icon .featured-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.block-card-grid .card-style-short-title-icon:hover .featured-thumbnail img {
  transform: scale(1.05);
}

