/*
Theme Name: V4Education
File: Portfolio Styles - EZ Rankings Style
Version: 1.0.0
*/

/* ==========================================================================
   Portfolio Archive Page
   ========================================================================== */

.portfolio-archive-wrapper {
    background: #ffffff;
    padding: 80px 0 100px;
    min-height: 100vh;
}

/* Portfolio Header */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #06B6D4 0%, #1E3A5F 100%);
    padding: 80px 40px;
    margin-left: -40px;
    margin-right: -40px;
    margin-top: -80px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.portfolio-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.portfolio-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Text Gradient for Portfolio Header */
.portfolio-header .text-gradient {
    background: linear-gradient(135deg, #22D3EE 0%, #CFFAFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.portfolio-filter-btn {
    padding: 12px 28px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.portfolio-filter-btn:hover {
    background: #fef3c7;
    border-color: #22d3ee;
    color: #1e293b;
}

.portfolio-filter-btn.active {
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    border-color: #22d3ee;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Portfolio Card */
.portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-card-inner {
    position: relative;
}

/* Portfolio Card Image */
.portfolio-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.1);
}

/* Category Tag */
.portfolio-category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Portfolio Card Content */
.portfolio-card-content {
    padding: 25px 20px;
    text-align: center;
}

.portfolio-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* View Project Button */
.btn-portfolio-view {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.3);
}

.btn-portfolio-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #22d3ee 0%, #22d3ee 100%);
}

/* No Portfolio Found */
.no-portfolio-found {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 40px 0;
}

.no-portfolio-found h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 15px;
}

.no-portfolio-found p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* ==========================================================================
   Portfolio Single Page
   ========================================================================== */

.portfolio-single-wrapper {
    background: #ffffff;
}

/* Portfolio Hero Section */
.portfolio-hero {
    position: relative;
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b !important;
    overflow: hidden;
}

.portfolio-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.portfolio-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Background color set via inline style from ACF fields */
    background: rgba(255, 255, 255, 0.85) !important;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.portfolio-hero .container {
    position: relative;
    z-index: 3;
}

.portfolio-hero-content {
    padding: 30px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #1e293b !important;
}

.portfolio-hero-content * {
    color: inherit !important;
}

/* Breadcrumbs */
.portfolio-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.portfolio-breadcrumbs a {
    color: #475569 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-breadcrumbs a:hover {
    color: #1e293b !important;
}

.portfolio-breadcrumbs .separator {
    color: #64748b !important;
}

.portfolio-breadcrumbs .current {
    color: #1e293b !important;
    font-weight: 600;
}

/* Project Title */
.portfolio-project-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b !important;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Hero Description */
.portfolio-hero-description,
.portfolio-hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #475569 !important;
    margin-bottom: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-hero-description p {
    margin: 0 0 10px 0;
}

.portfolio-hero-description p:last-child {
    margin-bottom: 0;
}

/* Hero Goals Row */
.portfolio-hero-description ul,
.portfolio-hero-excerpt ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.portfolio-hero-description ul li,
.portfolio-hero-excerpt ul li {
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b !important;
    white-space: nowrap;
}

.portfolio-hero-description ul li::before,
.portfolio-hero-excerpt ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

@media (max-width: 768px) {
    .portfolio-hero-description ul,
    .portfolio-hero-excerpt ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Hero Buttons */
.portfolio-hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.portfolio-hero-buttons .btn-ghost-light {
    background: transparent !important;
    color: #0e7490 !important;
    border: 2px solid #0e7490 !important;
    box-shadow: none;
}

.portfolio-hero-buttons .btn-ghost-light:hover {
    background: #0e7490 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.3);
}

/* Featured Image - Remove old styles */

/* Portfolio Content Section */
.portfolio-content-section {
    padding: 80px 0;
    background: #f9fafb;
}

.portfolio-content-grid {
    display: grid;
    grid-template-columns: 1fr 550px;
    gap: 50px;
    max-width: 1440px;
    margin: 0 auto;
}

/* Left Side - Project Image Wrapper */
.portfolio-project-image-wrapper {
    width: 100%;
}

.portfolio-project-image {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.portfolio-project-description {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portfolio-project-description h3 {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 15px;
    font-weight: 700;
}

.portfolio-project-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* Main Content */
.portfolio-main-content {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portfolio-main-content h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 700;
}

.portfolio-main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.portfolio-main-content ul,
.portfolio-main-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.portfolio-main-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 10px;
}

/* Sidebar */
.portfolio-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

/* Info Box */
.portfolio-info-box {
    background: #0c4a6e;
    padding: 35px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #ffffff;
}

.portfolio-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.portfolio-info-content {
    color: #ffffff;
}

.portfolio-info-text {
    font-size: 1.05rem;
    color: #e0f2fe;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.portfolio-info-item {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #e0f2fe;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.portfolio-info-item strong {
    color: #bae6fd;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.portfolio-info-item a {
    color: #7dd3fc;
    text-decoration: underline;
    word-break: break-word;
}

/* Project Details */
.portfolio-project-details {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portfolio-details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #22d3ee;
}

.portfolio-details-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Portfolio CTA Section */
.portfolio-cta-section {
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.portfolio-cta-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.portfolio-cta-content p {
    font-size: 1.2rem;
    color: #e0f2fe;
    margin-bottom: 35px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .portfolio-content-grid {
        grid-template-columns: 1fr 400px;
        gap: 35px;
    }
}

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-content-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-project-image-wrapper {
        position: static;
    }
    
    .portfolio-sidebar {
        position: static;
    }
    
    .portfolio-project-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-archive-wrapper {
        padding: 40px 0 60px;
    }
    
    .portfolio-main-title {
        font-size: 2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-card-image {
        height: 220px;
    }
    
    .portfolio-project-title {
        font-size: 2rem;
    }
    
    .portfolio-main-content {
        padding: 30px 20px;
    }
    
    .portfolio-cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-filters {
        gap: 8px;
    }
    
    .portfolio-filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .portfolio-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .portfolio-hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   SEO Services Portfolio Template Styles
   ========================================================================== */

/* Case Study Grid Layout */
.case-study-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    margin-top: 40px;
}

/* SEO Client Info Section */
.seo-client-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.seo-client-info .client-logo-large {
    margin-bottom: 15px;
}

.seo-client-info .client-logo-large img {
    max-width: 180px;
    height: auto;
}

.seo-client-info .client-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.seo-client-info .client-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #06b6d4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.seo-client-info .client-website:hover {
    color: #1e40af;
}

.seo-client-info .client-website i {
    font-size: 0.9rem;
}

.rankings-column {
    min-width: 0;
}

.project-details-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
    width: 100%;
}

/* Project Info & Description Boxes */
.portfolio-info-box,
.portfolio-project-details {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.portfolio-info-title,
.portfolio-details-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #06b6d4;
}

/* Portfolio Info Grid */
.portfolio-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #374151;
    border-left: 3px solid #06b6d4;
    transition: all 0.3s ease;
}

.portfolio-info-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.portfolio-info-item strong {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: fit-content;
    margin-right: 10px;
}

.portfolio-info-item a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.portfolio-info-item a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.portfolio-details-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}

/* Rankings Summary Stats */
.rankings-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.summary-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.summary-stat .stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    opacity: 1;
}

/* Ranking Badges */
.ranking-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.ranking-badge.ranking-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.ranking-badge.ranking-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.ranking-badge.ranking-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a865 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.ranking-badge:not(.ranking-1):not(.ranking-2):not(.ranking-3) {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.keyword-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.keyword-cell i {
    color: #06b6d4;
    font-size: 0.9rem;
}

/* Case Study Preview */
.case-study-preview {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    width: 100%;
    flex: 1;
}

.case-study-preview h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 30px;
    text-align: center;
}

.case-study-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.case-study-link:hover {
    transform: translateY(-5px);
}

.preview-placeholder {
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.preview-placeholder i {
    font-size: 6rem;
    color: #06b6d4;
    opacity: 0.3;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.case-study-link:hover .preview-placeholder i {
    transform: scale(1.1);
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #111827;
}

.preview-placeholder .download-hint {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    color: #06b6d4;
    font-weight: 500;
}

.preview-placeholder .download-hint i {
    font-size: 1rem;
    margin-right: 5px;
}

/* Enhanced Project Results Section */
.seo-results-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.results-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.results-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-section-title i {
    color: #06b6d4;
    font-size: 1.2rem;
}

/* Key Achievements Cards */
.achievements-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.achievement-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.achievement-content {
    flex: 1;
}

.achievement-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.achievement-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Project Details Results */
.project-details-results {
    display: grid;
    gap: 30px;
}

.results-highlights {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.results-text {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

/* Project Meta Grid */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.meta-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.meta-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #06b6d4;
}

.meta-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.2rem;
}

.meta-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-content p {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .rankings-summary {
        flex-direction: column;
        gap: 25px;
        padding: 25px 15px;
    }
    
    .summary-stat .stat-number {
        font-size: 2.5rem;
    }
    
    .summary-stat .stat-label {
        font-size: 0.85rem;
    }
    
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .achievement-cards {
        grid-template-columns: 1fr;
    }
    
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-value {
        font-size: 1.5rem;
    }
}

/* Portfolio Filter Section */
.portfolio-filter-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.filter-tab {
    padding: 12px 28px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab i {
    font-size: 0.9rem;
}

.filter-tab:hover {
    background: #f3f4f6;
    border-color: #06B6D4;
    color: #06B6D4;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #06B6D4;
    border-color: #06B6D4;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.filter-tab.active:hover {
    background: #0891B2;
    color: #ffffff;
}

/* Child Category Filter Tabs */
.child-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.child-filter-tab {
    padding: 10px 22px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.child-filter-tab:hover {
    background: #e5e7eb;
    border-color: #06B6D4;
    color: #06B6D4;
}

.child-filter-tab.active {
    background: #06B6D4;
    border-color: #06B6D4;
    color: #ffffff;
}

.portfolio-category-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 16px;
    background: #06B6D4;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

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

.portfolio-filter-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

.portfolio-filter-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.filter-item-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filter-item-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: #06b6d4;
}

.filter-item-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.filter-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.filter-item-card:hover .filter-item-image img {
    transform: scale(1.05);
}

.filter-item-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.filter-item-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.filter-item-title a:hover {
    color: #06b6d4;
}

.filter-item-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.filter-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

.meta-tag i {
    font-size: 0.75rem;
    color: #06b6d4;
}

.filter-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #06b6d4;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    border: 2px solid #06b6d4;
    border-radius: 6px;
    width: fit-content;
    transition: all 0.3s ease;
}

.filter-item-link:hover {
    background: #06b6d4;
    color: white;
    gap: 12px;
}

.filter-item-link i {
    font-size: 0.85rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .filter-results {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Mobile Responsive - Reduce Padding Between Sections
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .portfolio-archive-wrapper {
        padding: 60px 0 80px;
    }
    
    .portfolio-single-wrapper section {
        padding: 60px 0 !important;
    }
    
    .project-info-section,
    .seo-results-section,
    .key-achievements-section,
    .case-study-section,
    .project-overview-section {
        padding: 60px 0 !important;
    }
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
    .portfolio-archive-wrapper {
        padding: 40px 0 60px;
    }
    
    .portfolio-header {
        margin-bottom: 40px;
    }
    
    .portfolio-main-title {
        font-size: 2rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
    
    /* All portfolio sections */
    .portfolio-single-wrapper section {
        padding: 40px 0 !important;
    }
    
    .project-info-section,
    .seo-results-section,
    .key-achievements-section,
    .case-study-section,
    .project-overview-section,
    .portfolio-cta-section {
        padding: 40px 0 !important;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .portfolio-archive-wrapper {
        padding: 30px 0 40px;
    }
    
    .portfolio-header {
        margin-bottom: 30px;
    }
    
    .portfolio-main-title {
        font-size: 1.75rem;
    }
    
    .portfolio-subtitle {
        font-size: 1rem;
    }
    
    /* Reduce section padding on mobile */
    .portfolio-single-wrapper section {
        padding: 30px 0 !important;
    }
    
    .project-info-section,
    .seo-results-section,
    .key-achievements-section,
    .case-study-section,
    .project-overview-section,
    .portfolio-cta-section {
        padding: 30px 0 !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}
