/**
Theme Name: Spiral-Ventures-child
Author: Spiral Ventures
Author URI: https://spiral-ventures.com/
Description: Spiral Ventures Pte. Ltd.
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: spiral-ventures-child
Template: astra
*/

:root {
    --bg: var(--ast-global-color-5, #f2f2f2);
    --font: 'Plus Jakarta Sans', sans-serif;
    --primary-color: var(--sv-primary, #2563eb);
    --primary-dark: var(--sv-primary-dark, #111e2f);
    --text-color: var(--sv-text, #1f2937);
    --text-light: var(--sv-text-light, #6b7280);
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
    --radius: var(--sv-radius-card, 1rem);
    --nav-height: 200px;

    --sv-font-size-xs: .8rem;
    --sv-font-size-sm: 1rem;
    --sv-font-size-md: 1.15rem;
    --sv-font-size-lg: 1.35rem;
    --sv-font-size-xl: 2.25rem;
    --sv-content-padding: 5rem;
}

@media (max-width: 767px) {
    :root {
        --sv-content-padding: 2rem;
    }
}

html, body {
    overflow-x: hidden;
}

body {
    background: var(--bg);
    font-family: var(--font);
    color: var(--text-color);
    line-height: 1.6;
}

/* Single Post Styles */
.entry-header {
    margin-bottom: auto !important;
}

.entry-title {
    font-size: 2.25rem !important;
    font-weight: 400 !important;
    margin-bottom: 3rem !important;
    line-height: 1.3 !important;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.posted-on {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    display: inline-block;
    background: #ebebeb;
    font-weight: 400 !important;
    color: var(--text-color);
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
}

.tag-chip:hover {
    background: #e5e7eb;
    color: var(--text-color) !important;
}

.post-tags .tag-chip {
    font-size: 1rem !important;
    padding: 0.25rem 1.5rem;
}

.post-thumbnail {
    margin: 0 0 3rem;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    box-shadow: none !important;
}

.entry-content > * {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.15rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 3rem;
}

/* Social Sharing */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-share {
    display: flex;
    gap: .25rem;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-share a:hover {
    background: var(--primary-color);
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 7rem;
}

.related-posts h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .25rem;
    color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.related-post {
    background: var(--sv-bg);
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); */
    transition: var(--transition);
    contain: content;
}

.related-post:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); */
}

.related-post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.related-post-content {
    padding: 1.25rem;
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.related-post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}

.related-post-tags .tag-chip {
    padding: 0.25rem 1.25rem;
}

.see-more-news {
    margin-top: 4rem;
}

.see-more-news a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Page Styles */
.page-about {
    background: linear-gradient(to bottom, var(--primary-dark) 50%, #fff 50%);
}
.page-portfolio {
    background: linear-gradient(to bottom, #e9ecf5 var(--nav-height), #f9f9f9 var(--nav-height));
}
.page-news {
    background: linear-gradient(to bottom, #fff var(--nav-height), #f6f6f6 var(--nav-height));
}
.page-teams {
    background: #f3f7fa;
}

.page-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: calc(100vh + var(--radius));
    min-height: 600px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    overflow: hidden;
}

.site-main {
    margin: 40px auto 0 !important;
    padding: 3rem;
    max-width: 1200px;
}

/* Component Styles */
.sv-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: 1px solid var(--sv-primary-light);
    border-radius: 50px;
    padding: 0 35px 0 20px;
    font-size: var(--sv-font-size-xs);
    text-transform: uppercase;
    letter-spacing: .05rem;
    color: var(--sv-primary);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    transition: all 0.2s ease;
    width: auto;
    outline: none;
}

.sv-filter-select:hover, .sv-filter-select:focus {
    border-color: var(--sv-primary);
    background-color: transparent;
    color: var(--sv-primary);
}

/* Responsive Adjustment */
@media (max-width: 921px) {
    .site-main {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    /* .sv-single-post {
        padding: 0 10px;
    }
    .related-posts {
        padding: 0 10px;
    } */
}

@media (max-width: 767px) {
    .site-main {
        padding-left: calc(10px + var(--sv-content-padding));
        padding-right: calc(10px + var(--sv-content-padding));
    }

    /* .entry-title {
        font-size: 1.75rem !important;
    }
    
    .entry-header,
    .entry-content,
    .post-share {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .site-main {
        padding: 30px;
    } */

    h2 {
        font-size: 2rem;
    }

    .ast-container,
    .ast-custom-footer .e-con-boxed.e-parent {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 479px) {
    .entry-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .post-thumbnail {
        margin-bottom: 2rem;
    }

    .related-posts {
        margin-top: 0;
    }

    .related-posts h2 {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .related-posts-grid {
        gap: 1rem;
        margin-bottom: 0;
    }

    .see-more-news {
        display: none;
    }
}
