/* Farmer Case Study Archive Page Styles */

/* Archive Hero Section */
.case-study-archive-hero-section {
    background: #53834F;
    padding: 4rem 0 3rem;
    text-align: center;
}

.case-study-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-study-archive-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: white;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.05em;
}

.case-study-archive-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.case-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E6AE25;
}

/* Search Section */
.case-study-archive-search-section {
    background: #FBF9F4;
    padding: 3rem 0 4rem;
}

/* Search Form */
.case-search-form-figma {
    padding: 0rem !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Row */
.case-filter-row-figma {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.case-filter-group-figma {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* Filter Label */
.case-filter-label-figma {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Select Box */
.case-select-figma {
    width: 100%;
    padding: 0.8rem 3.5rem 0.8rem 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #42210b;
    background-color: white;
    background-image: none;
    border: 2px solid #5a7c56;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.case-filter-group-figma::after {
    content: '▼';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 49px;
    background: #5a7c56;
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 0 8px 8px 0;
    pointer-events: none;
    font-size: 14px;
}

.case-select-figma:hover {
    border-color: #4a6846;
    box-shadow: 0 2px 8px rgba(90, 124, 86, 0.2);
}

.case-select-figma:focus {
    outline: none;
    border-color: #5a7c56;
    box-shadow: 0 0 0 3px rgba(90, 124, 86, 0.1);
}

/* Search Button Container */
.case-search-button-container-figma {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Search Button */
.case-search-button-figma {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    outline: none !important;
    box-shadow: none !important;
}

.case-search-button-figma:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.case-search-button-figma:active {
    background: transparent !important;
    transform: translateY(0);
}

.case-search-button-figma:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Search Button Image */
.case-search-button-img {
    display: block;
    width: 300px;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.search-icon-figma {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-filter-row-figma {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .case-filter-label-figma {
        font-size: 16px;
    }

    .case-select-figma {
        padding: 0.75rem 3.5rem 0.75rem 1rem;
        font-size: 14px;
        border: 2px solid #5a7c56;
        border-radius: 8px;
    }

    .case-filter-group-figma::after {
        width: 50px;
        height: 46px;
        background: #5a7c56;
        line-height: 45px;
        border-radius: 0 8px 8px 0;
        font-size: 12px;
    }

    .case-search-button-container-figma {
        margin-top: 1.5rem;
        text-align: center;
    }

    .case-search-button-figma {
        width: 100%;
        padding: 0 !important;
        background: transparent !important;
    }

    .case-search-button-img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

.case-clear-filter-container {
    text-align: center;
    margin-top: 1.5rem;
}

.case-clear-filter-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: #53834f;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid #53834f;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.case-clear-filter-link:hover {
    background: #53834f;
    color: white;
}

/* Results Section */
.case-study-archive-results-section {
    background: #FBF9F4;
    padding: 3rem 0;
}

.case-active-filters {
    background: #e8f5e9;
    border-left: 4px solid #53834f;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.active-filters-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #42210b;
    margin: 0 0 1rem 0;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.active-filter-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #53834f;
    border-radius: 20px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #42210b;
}

.active-filter-tag strong {
    color: #53834f;
    margin-right: 0.25rem;
}

/* Results Info */
.case-results-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #6da568;
}

.results-count {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #42210b;
    font-weight: 600;
    margin: 0;
}

/* Case Study Cards - Archive Grid (3 columns) */
.case-cards-container-archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.case-card-archive {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #6da568;
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-card-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.case-card-image-archive {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.case-card-image-archive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder images */
.case-placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #6da568 0%, #7ed986 100%);
}

.case-card-content-archive {
    padding: 1.5rem;
}

.case-card-title-archive {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #42210b;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.case-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.case-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 600;
}

.product-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.region-tag {
    background: #fff3e0;
    color: #f57c00;
}

.technology-tag {
    background: #e8f5e9;
    color: #388e3c;
}

.case-card-description-archive {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* No Results */
.case-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results-message {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 24px;
    color: #42210b;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.no-results-suggestion {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 2rem 0;
}

.back-to-all-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #53834f;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-to-all-link:hover {
    background: #4a7546;
    transform: translateY(-2px);
}

/* Pagination */
.case-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.case-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.case-pagination .page-numbers li {
    list-style: none;
}

.case-pagination .page-numbers a,
.case-pagination .page-numbers span {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #6da568;
    color: #42210b;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-pagination .page-numbers a:hover {
    background: #6da568;
    color: white;
}

.case-pagination .page-numbers .current {
    background: #53834f;
    border-color: #53834f;
    color: white;
}

/* CTA Section */
.case-study-archive-cta-section {
    background: linear-gradient(135deg, #53834f 0%, #6da568 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: white;
    margin: 0 0 1rem 0;
}

.cta-description {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: white;
    line-height: 1.8;
    margin: 0 0 2rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-button {
    background: white;
    color: #53834f;
    border: 2px solid white;
}

.primary-button:hover {
    background: transparent;
    color: white;
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background: white;
    color: #53834f;
}

/* Responsive Design */
@media (max-width: 992px) {
    .case-study-archive-title {
        font-size: 32px;
    }
    
    .case-cards-container-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-study-archive-title {
        font-size: 28px;
    }
    
    .case-study-archive-description {
        font-size: 16px;
    }
    
    .case-cards-container-archive {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   Single Case Study Detail Page Styles
   ============================================ */

/* Single Case Study Header */
.single-case-header-section {
    background: linear-gradient(135deg, #6da568 0%, #7ed986 100%);
    padding: 3rem 0;
}

.case-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.case-header-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-case-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: white;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.single-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: white;
}

/* Featured Image */
.single-case-featured-image {
    padding: 2rem 0;
}

/* Main Content Section */
.single-case-content-section {
    padding: 3rem 0;
}

.single-case-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.single-case-article {
    min-width: 0;
}

.case-content {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.case-content h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #42210b;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #6da568;
}

.case-content h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #42210b;
    margin: 2rem 0 1rem 0;
}

.case-content p {
    margin: 0 0 1.5rem 0;
}

.case-content ul,
.case-content ol {
    margin: 0 0 1.5rem 2rem;
}

.case-content li {
    margin-bottom: 0.5rem;
}

.case-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Case Study Details Box */
.case-details-box {
    background: #e8f5e9;
    border: 2px solid #6da568;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

/* Share Section */
.case-share-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

/* Sidebar */
.single-case-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Related Case Studies */
.related-case-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-case-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-case-item:hover {
    background: #6da568;
    color: white;
    transform: translateX(5px);
}

.related-case-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.related-case-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-case-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6da568 0%, #7ed986 100%);
}

.related-case-info {
    flex: 1;
    min-width: 0;
}

.related-case-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #42210b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-case-item:hover .related-case-title {
    color: white;
}

.related-case-excerpt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.related-case-item:hover .related-case-excerpt {
    color: white;
}

.no-related-case {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 1rem;
}

/* Post Navigation */
.single-case-navigation {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design for Single Page */
@media (max-width: 992px) {
    .single-case-layout {
        grid-template-columns: 1fr;
    }
    
    .single-case-sidebar {
        position: static;
    }
    
    .single-case-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .single-case-title {
        font-size: 28px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-link.prev-link,
    .nav-link.next-link {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }
}

