/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Description: Child theme for Hello Elementor. A lightweight and minimalist theme designed to work seamlessly with Elementor page builder. This child theme allows for safe customization while maintaining parent theme updates.
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ============================================
   Katalystng Projects Archive & Taxonomy Styles
   Matching case-study-grid widget exactly
   ============================================ */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.page-header .entry-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #073442;
    text-align: center;
}

.taxonomy-description {
    font-size: 1.1em;
    color: #4D4D4D;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Project Grid - matching widget grid */
.katalystng-csg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

@media (max-width: 1024px) {
    .katalystng-csg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .katalystng-csg-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Card */
.katalystng-csg-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(7, 52, 66, 0.08);
}

.katalystng-csg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(7, 52, 66, 0.12);
}

.ktng-project-featured {
    border: 2px solid #2D6E82;
    box-shadow: 0 8px 24px rgba(45, 110, 130, 0.15);
}

/* Media */
.katalystng-csg-media {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.katalystng-csg-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.katalystng-csg-media .katalystng-csg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.katalystng-csg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(7, 52, 66, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.katalystng-csg-card:hover .katalystng-csg-overlay {
    opacity: 1;
}

/* Featured Badge */
.ktng-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2D6E82;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(45, 110, 130, 0.3);
    z-index: 2;
}

/* Body */
.katalystng-csg-body {
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex: 1 1 auto;
}

/* Terms */
.katalystng-csg-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.katalystng-csg-term {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(45, 110, 130, 0.1);
    color: #2D6E82;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.katalystng-csg-term:hover {
    background-color: #2D6E82;
    color: #fff;
}

/* Services taxonomy special styling */
.tax-services .katalystng-csg-term {
    background: rgba(227, 24, 55, 0.0784313725);
    color: #E31837;
}

.tax-services .katalystng-csg-term:hover {
    background: #E31837;
    color: #fff;
}

/* Title */
.katalystng-csg-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.katalystng-csg-title a {
    color: #073442;
    text-decoration: none;
    transition: color 0.25s ease;
}

.katalystng-csg-title a:hover {
    color: #2D6E82;
}

/* Description */
.katalystng-csg-desc {
    margin: 0 0 16px;
    color: #4D4D4D;
    font-size: 15px;
    line-height: 1.6;
}

/* Feature list */
.katalystng-csg-features {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: #4D4D4D;
    font-size: 15px;
    line-height: 1.6;
}

.katalystng-csg-features li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.katalystng-csg-features li:last-child {
    margin-bottom: 0;
}

.katalystng-csg-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2D6E82;
    font-weight: bold;
}

/* Read More Button */
.katalystng-csg-readmore {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: #2D6E82;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    font-weight: 500;
}

.katalystng-csg-readmore:hover {
    background-color: #073442;
    color: #fff;
    transform: translateX(2px);
}

/* Pagination */
.ktng-pagination {
    margin-top: 50px;
    text-align: center;
}

.ktng-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 16px;
    background: #fff;
    color: #073442;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e6ecee;
    font-weight: 500;
}

.ktng-pagination .page-numbers:hover,
.ktng-pagination .page-numbers.current {
    background: #2D6E82;
    color: white;
    border-color: #2D6E82;
}

/* No Projects Found */
.no-projects-found {
    text-align: center;
    padding: 60px 20px;
    background: #f6f8f9;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px dashed #cbd5d8;
}

.no-projects-found h2 {
    color: #073442;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.no-projects-found p {
    color: #4D4D4D;
    margin-bottom: 25px;
    font-size: 16px;
}

.no-projects-found a {
    display: inline-block;
    background: #2D6E82;
    color: white;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.no-projects-found a:hover {
    background: #073442;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header .entry-title {
        font-size: 32px;
    }

    .katalystng-csg-media {
        height: 200px;
    }

    .katalystng-csg-body {
        padding: 20px;
    }

    .katalystng-csg-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-header .entry-title {
        font-size: 28px;
    }

    .katalystng-csg-body {
        padding: 16px;
    }

    .katalystng-csg-title {
        font-size: 16px;
    }

    .katalystng-csg-desc {
        font-size: 14px;
    }
}