/**
 * VAKO Projects - Frontend Styles
 * Consistent with VAKO brand styling (matching vacancy pages)
 */

/* Variables */
:root {
    --vako-blue: #01447b;
    --vako-blue-dark: #023a68;
    --vako-orange: #F15D22;
    --vako-orange-hover: #d94d15;
    --vako-gray-light: #f8f9fa;
    --vako-gray: #e2e8f0;
    --vako-text: #333;
    --vako-text-light: #666;
    --vako-white: #ffffff;
}

/* ==========================================================================
   ARCHIVE PAGE STYLES
   ========================================================================== */

.vako-projects-archive {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.vako-projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.vako-projects-hero {
    background: #01447b;
    padding: 80px 0 80px;
    color: var(--vako-white);
    text-align: center;
	  margin-top: 13px;
}

/* Subtitle badge */
.vako-projects-subtitle {
    display: inline-flex;
    align-items: center;
    background: rgba(241, 93, 34, 0.95);
    color: #ffffff;
    padding: 8px 30px 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

.vako-projects-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

.vako-projects-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Filter Section */
.vako-projects-filters {
    background: var(--vako-gray-light);
    padding: 30px 0;
    border-bottom: 1px solid var(--vako-gray);
}

.vako-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Arrow-shaped filter buttons (matching VAKO logo style) */
.vako-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #4a5568;
    padding: 12px 40px 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: none;
    z-index: 0;
}

.vako-filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #e2e8f0;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    transition: background 0.3s ease;
    z-index: -2;
}

.vako-filter-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #ffffff;
    clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 50%, calc(100% - 19px) 100%, 0 100%);
    z-index: -1;
}

.vako-filter-btn:hover {
    color: #01447b;
    transform: translateX(3px);
}

.vako-filter-btn:hover::before {
    background: #01447b;
}

/* Active state - filled arrow button */
.vako-filter-btn.active {
    color: #ffffff;
}

.vako-filter-btn.active::before {
    background: #01447b;
}

.vako-filter-btn.active::after {
    display: none;
}

/* Projects Grid */
.vako-projects-content {
    padding: 60px 0 80px;
    background: var(--vako-white);
}

.vako-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Project Card */
.vako-project-card {
    background: var(--vako-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.vako-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.vako-project-card.hidden {
    display: none;
}

.vako-project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.vako-project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vako-blue) 0%, var(--vako-blue-dark) 100%);
}

.vako-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vako-project-card:hover .vako-project-image img {
    transform: scale(1.08);
}

.vako-project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.vako-project-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(241, 93, 34, 0.95);
    color: var(--vako-white);
    padding: 6px 24px 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

/* Card Content */
.vako-project-card-content {
    padding: 25px;
}

.vako-project-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vako-blue);
    margin: 0 0 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.vako-project-card:hover .vako-project-card-title {
    color: var(--vako-orange);
}

.vako-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.vako-project-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--vako-text-light);
}

.vako-project-meta-item svg {
    color: var(--vako-orange);
    flex-shrink: 0;
}

.vako-project-excerpt {
    font-size: 14px;
    color: var(--vako-text-light);
    line-height: 1.6;
    margin: 0 0 15px;
}

.vako-project-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--vako-gray);
    margin-bottom: 15px;
}

.vako-product-label {
    font-size: 12px;
    color: var(--vako-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vako-product-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--vako-blue);
}

.vako-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vako-blue);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vako-project-card:hover .vako-project-link {
    color: var(--vako-orange);
    gap: 12px;
}

/* No Projects */
.vako-no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--vako-text-light);
}

.vako-no-projects svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ==========================================================================
   ARCHIVE CTA SECTION - Simple blue block
   ========================================================================== */

.vako-projects-cta {
    background: linear-gradient(135deg, var(--vako-blue) 0%, var(--vako-blue-dark) 100%);
    padding: 80px 0;
}

.vako-projects-cta .vako-cta-content {
    text-align: center;
    color: var(--vako-white);
}

.vako-projects-cta .vako-cta-content h2 {
    font-size: 2rem;
    margin: 0 0 15px;
    color: var(--vako-white)!important;
}

.vako-projects-cta .vako-cta-content p {
    font-size: 1.1rem;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
}

.vako-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   SINGLE PROJECT PAGE STYLES
   ========================================================================== */

.vako-project-single {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.vako-project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Single Hero with Breadcrumbs inside (like vacancy page) */
.vako-project-hero {
    background: linear-gradient(135deg, var(--vako-blue) 0%, var(--vako-blue-dark) 100%);
    padding: 60px 0 60px;
    color: var(--vako-white);
	margin-top: 13px;
}

/* Breadcrumbs - Inside hero (vacancy style) */
.vako-project-single .vako-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
}

.vako-project-single .vako-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.vako-project-single .vako-breadcrumbs a:hover {
    color: var(--vako-white);
}

.vako-project-single .vako-breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.vako-project-single .vako-breadcrumbs span:last-child {
    color: var(--vako-white);
    margin-left: 0;
}

/* Hero content */
.vako-project-hero-content {
    max-width: 800px;
}

.vako-project-category-tag {
    display: inline-block;
    background: rgba(241, 93, 34, 0.95);
    color: var(--vako-white);
    padding: 8px 30px 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

.vako-project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

.vako-project-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Featured Image */
.vako-project-featured-image {
    padding: 50px 0 0;
    background: var(--vako-white);
}

.vako-project-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.vako-project-content {
    padding: 60px 0 80px;
    background: var(--vako-white);
}

.vako-project-main {
    max-width: 800px;
    margin: 0 auto;
}

/* Content blocks - NO double borders */
.vako-content-block {
    margin-bottom: 40px;
}

.vako-content-block h2 {
    font-size: 1.4rem;
    color: var(--vako-blue);
    margin: 0 0 15px;
    font-weight: 700;
}

.vako-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--vako-text);
}

.vako-content-body p {
    margin: 0 0 15px;
}

.vako-content-body p:last-child {
    margin-bottom: 0;
}

/* Result block - subtle highlight */
.vako-block-result {
    background: rgba(241, 93, 34, 0.05);
    margin-left: -20px;
    margin-right: -20px;
    padding: 25px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--vako-orange);
}

/* ==========================================================================
   MEDIA SECTION
   ========================================================================== */

.vako-project-media {
    background: var(--vako-gray-light);
    padding: 60px 0;
}

.vako-media-title {
    font-size: 1.6rem;
    color: var(--vako-blue);
    text-align: center;
    margin: 0 0 40px;
}

.vako-project-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.vako-project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vako-project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vako-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.vako-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vako-gallery-item:hover img {
    transform: scale(1.08);
}

.vako-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 68, 123, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vako-gallery-item:hover .vako-gallery-overlay {
    opacity: 1;
}

.vako-gallery-overlay svg {
    color: var(--vako-white);
}

/* ==========================================================================
   SINGLE CTA SECTION - Simple layout
   ========================================================================== */

.vako-project-cta {
    padding: 60px 0;
    background: var(--vako-white);
}

.vako-cta-box {
    background: linear-gradient(135deg, var(--vako-blue) 0%, var(--vako-blue-dark) 100%);
    border-radius: 12px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.vako-cta-box .vako-cta-content {
    flex: 1;
    min-width: 280px;
    color: var(--vako-white)!important;
}

.vako-cta-box .vako-cta-content h2 {
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: var(--vako-white)!important;
}

.vako-cta-box .vako-cta-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.vako-cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SHORTCODE STYLES
   ========================================================================== */

.vako-projects-shortcode-grid {
    display: grid;
    gap: 25px;
}

.vako-projects-shortcode-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vako-projects-shortcode-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vako-projects-shortcode-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.vako-project-card-mini {
    background: var(--vako-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vako-project-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vako-project-card-mini a {
    text-decoration: none;
    color: inherit;
}

.vako-project-card-mini .vako-project-card-image {
    height: 180px;
    overflow: hidden;
}

.vako-project-card-mini .vako-project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vako-project-card-mini:hover .vako-project-card-image img {
    transform: scale(1.05);
}

.vako-project-card-mini .vako-project-card-content {
    padding: 20px;
}

.vako-project-card-mini h3 {
    font-size: 1rem;
    color: var(--vako-blue);
    margin: 0 0 5px;
}

.vako-project-card-mini .vako-project-meta {
    font-size: 13px;
    color: var(--vako-text-light);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 992px) {
    .vako-projects-title,
    .vako-project-title {
        font-size: 2.2rem;
    }
    
    .vako-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .vako-cta-box {
        padding: 40px;
        flex-direction: column;
        text-align: center;
    }
    
    .vako-cta-box .vako-cta-content {
        text-align: center;
    }
    
    .vako-projects-shortcode-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vako-projects-hero {
        padding: 100px 0 60px;
    }
    
    .vako-project-hero {
        padding: 80px 0 50px;
    }
    
    .vako-projects-title,
    .vako-project-title {
        font-size: 1.8rem;
    }
    
    .vako-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .vako-filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .vako-filter-btn {
        flex-shrink: 0;
    }
    
    .vako-block-result {
        margin-left: -15px;
        margin-right: -15px;
        padding: 20px 15px;
    }
    
    .vako-project-gallery {
        grid-template-columns: 1fr;
    }
    
    .vako-cta-box {
        padding: 30px 20px;
    }
    
    .vako-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .vako-cta-actions a {
        justify-content: center;
    }
    
    .vako-projects-shortcode-grid.columns-2,
    .vako-projects-shortcode-grid.columns-3,
    .vako-projects-shortcode-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .vako-project-featured-image {
        padding: 30px 0 0;
    }
    
    .vako-project-featured-image img {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .vako-project-card-content {
        padding: 20px;
    }
    
    .vako-project-image {
        height: 200px;
    }
}

/* ==========================================================================
   LIGHTBOX STYLES
   ========================================================================== */

.vako-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vako-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.vako-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.vako-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--vako-white);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vako-lightbox-close:hover {
    background: var(--vako-orange);
}
