/*
 Theme Name:   GeneratePress Child - KFZ Gutachter
 Theme URI:    https://kfz-gutachter-bi.de
 Description:  Custom Child Theme für KFZ Gutachter Bielefeld
 Author:       DS Sachverständigenbüro
 Author URI:   https://kfz-gutachter-bi.de
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/

/* ==========================================================================
   CUSTOM NEWS/BLOG STYLES
   ========================================================================== */

/* News Page Styles */
.ds-news-page {
    padding: 60px 20px 80px !important;
    background: #f8f9fa !important;
    min-height: 100vh !important;
}

.ds-news-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Header Section */
.ds-news-header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.ds-news-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(230, 126, 34, 0.1) !important;
    color: #e67e22 !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.ds-news-header h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 15px !important;
}

.ds-news-header h1 span {
    color: #e67e22 !important;
}

.ds-news-header p {
    font-size: 18px !important;
    color: #555 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

/* Category Navigation */
.ds-news-categories {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 50px !important;
    padding: 0 20px !important;
}

.ds-news-category-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    color: #555 !important;
    border: 2px solid #e0e0e0 !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.ds-news-category-btn:hover {
    border-color: #e67e22 !important;
    color: #e67e22 !important;
}

.ds-news-category-btn.active {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    color: #ffffff !important;
    border-color: #e67e22 !important;
}

/* Article Grid */
.ds-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.ds-news-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

.ds-news-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.ds-news-card-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.ds-news-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ds-news-card-image svg {
    width: 60px !important;
    height: 60px !important;
    fill: rgba(255,255,255,0.5) !important;
}

.ds-news-card-content {
    padding: 25px !important;
}

.ds-news-card-meta {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    flex-wrap: wrap !important;
}

.ds-news-card-category {
    background: rgba(230, 126, 34, 0.1) !important;
    color: #e67e22 !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.ds-news-card-category:hover {
    background: #e67e22 !important;
    color: #fff !important;
}

.ds-news-card-date {
    color: #888 !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ds-news-card h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

.ds-news-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.ds-news-card h3 a:hover {
    color: #e67e22 !important;
}

.ds-news-card p {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.ds-news-card-read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #e67e22 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: gap 0.3s ease !important;
}

.ds-news-card-read-more:hover {
    gap: 12px !important;
}

/* Pagination */
.ds-news-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 50px !important;
}

.ds-news-pagination a,
.ds-news-pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    height: 45px !important;
    padding: 0 15px !important;
    background: #fff !important;
    color: #1a1a2e !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.ds-news-pagination a:hover {
    border-color: #e67e22 !important;
    color: #e67e22 !important;
}

.ds-news-pagination .current {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    color: #fff !important;
    border-color: #e67e22 !important;
}

/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

.ds-single-post {
    background: #f8f9fa !important;
    min-height: 100vh !important;
}

/* Hero Section */
.ds-single-hero {
    position: relative !important;
    height: 50vh !important;
    min-height: 400px !important;
    max-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important;
}

.ds-single-hero-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.ds-single-hero-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ds-single-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%) !important;
    z-index: 2 !important;
}

.ds-single-hero-content {
    position: relative !important;
    z-index: 3 !important;
    text-align: center !important;
    padding: 0 20px !important;
    max-width: 900px !important;
}

.ds-single-back-btn {
    position: absolute !important;
    top: 30px !important;
    left: 30px !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255,255,255,0.95) !important;
    color: #1a1a2e !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.ds-single-back-btn:hover {
    background: #ffffff !important;
    transform: translateX(-5px) !important;
    color: #1a1a2e !important;
}

.ds-single-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.ds-single-category {
    background: rgba(230, 126, 34, 0.2) !important;
    border: 1px solid #e67e22 !important;
    color: #e67e22 !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.ds-single-category:hover {
    background: #e67e22 !important;
    color: #fff !important;
}

.ds-single-date {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px !important;
}

.ds-single-hero h1 {
    color: #fff !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

/* Post Content */
.ds-single-content {
    max-width: 800px !important;
    margin: -60px auto 0 !important;
    padding: 60px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    position: relative !important;
    z-index: 5 !important;
}

.ds-single-content h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 40px 0 20px !important;
}

.ds-single-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin: 30px 0 15px !important;
}

.ds-single-content p {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #444 !important;
    margin-bottom: 20px !important;
}

.ds-single-content ul,
.ds-single-content ol {
    margin: 20px 0 !important;
    padding-left: 25px !important;
}

.ds-single-content li {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #444 !important;
    margin-bottom: 10px !important;
}

.ds-single-content strong {
    color: #1a1a2e !important;
}

.ds-single-content blockquote {
    border-left: 4px solid #e67e22 !important;
    padding: 20px 30px !important;
    margin: 30px 0 !important;
    background: #f8f9fa !important;
    border-radius: 0 10px 10px 0 !important;
    font-style: italic !important;
    color: #555 !important;
}

.ds-single-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
}

.ds-single-content a {
    color: #e67e22 !important;
}

.ds-single-content a:hover {
    text-decoration: underline !important;
}

/* Post Footer */
.ds-single-footer {
    max-width: 800px !important;
    margin: 40px auto 80px !important;
    padding: 0 20px !important;
}

/* CTA Box */
.ds-single-cta {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    text-align: center !important;
    margin-bottom: 40px !important;
}

.ds-single-cta h3 {
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.ds-single-cta p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 18px !important;
    margin-bottom: 25px !important;
}

.ds-single-cta-buttons {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.ds-single-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 30px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.ds-single-cta-btn-white {
    background: #fff !important;
    color: #e67e22 !important;
}

.ds-single-cta-btn-white:hover {
    background: #1a1a2e !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.ds-single-cta-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #fff !important;
}

.ds-single-cta-btn-whatsapp:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4) !important;
    color: #fff !important;
}

/* Related Posts */
.ds-related-posts {
    margin-top: 40px !important;
}

.ds-related-posts h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 25px !important;
    text-align: center !important;
}

.ds-related-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
}

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

@media (max-width: 992px) {
    .ds-news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .ds-news-header h1 {
        font-size: 32px !important;
    }

    .ds-news-grid {
        grid-template-columns: 1fr !important;
    }

    .ds-single-hero {
        height: auto !important;
        min-height: 350px !important;
        padding: 100px 20px 60px !important;
    }

    .ds-single-hero h1 {
        font-size: 28px !important;
    }

    .ds-single-content {
        margin: -40px 20px 0 !important;
        padding: 30px 25px !important;
    }

    .ds-single-cta {
        padding: 30px 20px !important;
    }

    .ds-related-grid {
        grid-template-columns: 1fr !important;
    }

    .ds-single-back-btn {
        top: 20px !important;
        left: 20px !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}
