/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 220px 220px;
  gap: 10px;
}

.pf-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.pf-item-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
  border-radius: 14px;
}
.pf-item-link:hover + .pf-overlay { 
	opacity: 1; 
}

.pf-item a { 
	outline: none; 
	}

.pf-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.pf-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.pf-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.pf-item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.pf-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }

.pf-item .pf-photo {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a3040 0%, #1a2030 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.pf-item:hover .pf-photo { transform: scale(1.04); }

.pf-photo-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.1); letter-spacing: 0.1em;
  pointer-events: none;
}

.pf-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,13,20,0.85) 0%, rgba(10,13,20,0.2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pf-item:hover .pf-overlay { opacity: 1; }

.pf-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.3s ease;
}

.pf-item:hover .pf-info { 
	opacity: 1; 
	transform: none; 
	}

.pf-tag {
  display: inline-block;
  background: var(--global-palette-btn-bg); color: white;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 5px;
  margin-bottom: 6px; letter-spacing: 0.04em;
}

.pf-title {
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 800;
  color: white; letter-spacing: -0.02em; margin-bottom: 3px;
}

.pf-sub { font-size: 12px; color: rgba(255,255,255,0.55); }

.pf-count-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15,18,26,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pf-count-badge svg { 
	width: 12px; 
	height: 12px; 
	fill: none; 
	stroke: var(--global-palette-btn-bg); 
	stroke-width: 2; 
	}

.pf-item:nth-child(1) .pf-overlay { 
	opacity: 1; 
	background: linear-gradient(to top, rgba(10,13,20,0.75) 0%, transparent 60%); 
	}
	
.pf-item:nth-child(1) .pf-info { 
	opacity: 1; 
	transform: none; 
	}
	
.pf-item:nth-child(1) .pf-title { 
	font-size: 17px; 
	}

.pf-item:nth-child(1) .pf-sub { 
	font-size: 13px; 
	}

.pf-item:nth-child(n+2) .pf-count-badge {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pf-item:nth-child(n+2):hover .pf-count-badge {
  opacity: 1;
  transform: translateY(0);
}

.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--global-palette-btn-bg);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.sec-eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--global-palette-btn-bg);
  border-radius: 2px;
  flex-shrink: 0;
}
.sec-eyebrow-text {
  font-size: 11.5px; font-weight: 700;
  color: var(--global-palette-btn-bg); text-transform: uppercase; letter-spacing: 0.12em;
}

.sec-h2 em { font-style: normal; color: var(--global-palette-btn-bg); }
.sec-h2 .muted { color: #b0b6c4; }

@media (max-width: 1024px) {
  .portfolio-grid { 
	grid-template-columns: repeat(2, 1fr); 
	grid-template-rows: auto; 
	}
  
  .pf-item:nth-child(n) { 
	grid-column: span 1; 
	grid-row: span 1; 
	}
	
  .pf-item .pf-photo { 
	aspect-ratio: 16/9; 
	}
  
  .pf-info, .pf-overlay { 
	opacity: 1; 
	transform: none; 
	background: linear-gradient(to top, rgba(10,13,20,0.85) 0%, transparent 60%); 
	}
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .pf-item {
    aspect-ratio: 16/9;
    min-height: 180px;
  }
}
@media (max-width: 640px) {
  .pf-item {
    min-height: 200px;
  }
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 12px;
  }
  .pf-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
    /* height: auto; */
  }
  .pf-item .pf-photo { 
    aspect-ratio: 16/9; 
  }

  .pf-info, 
  .pf-overlay { 
    opacity: 1; 
    transform: none; 
    background: linear-gradient(to top, rgba(10,13,20,0.85) 0%, transparent 60%); 
  }

  .pf-item:hover .pf-photo { 
    transform: none; 
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  
  .pf-info,
  .pf-overlay {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .pf-item:nth-child(n+2) .pf-count-badge {
    opacity: 1;
    transform: translateY(0);
  }
  
  .pf-count-badge {
    padding: 6px 14px;
    font-size: 12px;
    top: 12px;
    right: 12px;
  }
  
  .pf-title {
    font-size: 14px;
  }
  .pf-sub {
    font-size: 12px;
  }
  .pf-tag {
    font-size: 11px;
    padding: 4px 12px;
  }

  .pf-item:nth-child(1) .pf-title { 
    font-size: 16px; 
  }
  .pf-item:nth-child(1) .pf-sub { 
    font-size: 12px; 
  }
  
  .pf-item-link {
    border-radius: 14px;
  }
    
  .pf-item,
  .pf-photo,
  .pf-info,
  .pf-count-badge {
    transition: none;
  }
}


.pf-photo {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 14px;
}

.pf-photo .kt-inside-inner-col {
    min-height: 100%;
    
}

.project-item:hover .pf-photo > .kt-inside-inner-col {
    transform: scale(1.04);
}

.project-item .taxonomy-type-project.wp-block-post-terms a {
    display: inline-block;
    background: var(--global-palette-btn-bg);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 5px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.pf-badges-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
  pointer-events: none;    
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.kb-section-has-link.project-item:hover .pf-badges-wrapper,
.pf-item:hover .pf-badges-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.project-item .pf-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15,18,26,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  position: static;
}

.project-item .pf-count-badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--global-palette-btn-bg);
  stroke-width: 2;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pf-badges-wrapper {
    opacity: 1 !important;
    transform: translateY(0) !important;
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .project-item .pf-count-badge {
    padding: 4px 10px;
    font-size: 10px;
  }
  .project-item .pf-count-badge svg {
    width: 11px;
    height: 11px;
  }
}