/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.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
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Air Sound Specialist Scoped Blog Styling */

:root {
    --as-navy: 238 52% 38%;
    --as-navy-light: 238 48% 50%;
    --as-amber: 38 92% 50%;
    --as-amber-hover: 38 92% 45%;
    --as-amber-bg: rgba(245, 158, 11, 0.1);
    --as-foreground: 216 50% 10%;
    --as-muted: 216 15% 45%;
    --as-bg: 210 20% 98%;
    --as-card: #ffffff;
    --as-border: #e2e8f0;
}

/* Base Font Override inside scoped wrapper */
.as-blog-page, .as-single-post-page {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    color: hsl(var(--as-foreground));
    background-color: hsl(var(--as-bg));
    line-height: 1.6;
}

.as-blog-page h1, .as-blog-page h2, .as-blog-page h3,
.as-single-post-page h1, .as-single-post-page h2, .as-single-post-page h3 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout Containers */
.as-blog-hero {
    background: linear-gradient(135deg, hsl(var(--as-navy)) 0%, hsl(var(--as-navy-light)) 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.as-blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.as-hero-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.as-hero-title {
    font-size: 2.75rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.as-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin: 0;
}

.as-blog-grid-container {
    max-width: 1120px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Card Styling */
.as-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.as-post-card {
    background: var(--as-card);
    border-radius: 8px;
    border: 1px solid var(--as-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.as-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.as-post-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.as-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.as-category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--as-amber)) !important;
    background: var(--as-amber-bg);
    padding: 4px 12px;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.as-category-badge:hover {
    background: rgba(245, 158, 11, 0.2) !important;
}

.as-post-date {
    font-size: 0.75rem;
    color: hsl(var(--as-muted));
}

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

.as-post-title a {
    color: hsl(var(--as-foreground));
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.as-post-card:hover .as-post-title a {
    color: hsl(var(--as-amber));
}

.as-post-excerpt {
    font-size: 0.875rem;
    color: hsl(var(--as-muted));
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.as-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--as-amber)) !important;
    text-decoration: none !important;
    transition: gap 0.25s ease, color 0.2s ease;
}

.as-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.as-post-card:hover .as-read-more {
    color: hsl(var(--as-amber-hover)) !important;
}

.as-post-card:hover .as-read-more svg {
    transform: translateX(4px);
}

/* Pagination */
.as-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.as-pagination .page-numbers {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--as-border);
    color: hsl(var(--as-foreground));
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.as-pagination .page-numbers.current,
.as-pagination .page-numbers:hover {
    background: hsl(var(--as-amber)) !important;
    color: #ffffff !important;
    border-color: hsl(var(--as-amber)) !important;
}

/* ========================================== */
/* Single Post Layout                         */
/* ========================================== */
.as-single-hero {
    background: linear-gradient(135deg, hsl(var(--as-navy)) 0%, hsl(var(--as-navy-light)) 100%);
    padding: 100px 20px 80px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.as-single-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
}

.as-single-hero-content {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.as-single-title {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.as-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.as-single-meta .as-category-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.as-single-meta .as-category-badge:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.as-article-container {
    max-width: 768px;
    margin: 60px auto;
    padding: 0 20px;
}

.as-post-body {
    background: #ffffff;
    border: 1px solid var(--as-border);
    border-radius: 8px;
    padding: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.as-post-body p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #1e293b;
    margin-bottom: 25px;
}

.as-post-body h2 {
    font-size: 1.75rem;
    margin: 40px 0 20px 0;
    color: hsl(var(--as-foreground));
    font-weight: 700;
}

.as-post-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    color: hsl(var(--as-foreground));
    font-weight: 700;
}

.as-post-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #fafaf9;
    border-left: 4px solid hsl(var(--as-amber));
    font-style: italic;
    font-size: 1.2rem;
    color: #475569;
    border-radius: 0 6px 6px 0;
}

.as-post-body ul, .as-post-body ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.as-post-body ul li {
    list-style-type: square;
    margin-bottom: 10px;
    color: #1e293b;
}

.as-post-body ol li {
    margin-bottom: 10px;
    color: #1e293b;
}

.as-post-body a {
    color: hsl(var(--as-amber)) !important;
    text-decoration: underline !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.as-post-body a:hover {
    color: hsl(var(--as-amber-hover)) !important;
}

.as-post-body figure img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    width: 100%;
    height: auto;
}

.as-post-body figcaption {
    font-size: 0.875rem;
    text-align: center;
    color: hsl(var(--as-muted));
    font-style: italic;
    margin-bottom: 30px;
}

/* Share & Footer Section */
.as-post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--as-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as-share-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: hsl(var(--as-muted));
}

/* Related Section */
.as-related-section {
    max-width: 1120px;
    margin: 80px auto;
    padding: 0 20px;
}

.as-related-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: hsl(var(--as-foreground));
    text-align: center;
}

@media(max-width: 768px) {
    .as-hero-title {
        font-size: 2.25rem;
    }
    .as-single-title {
        font-size: 2rem;
    }
    .as-post-body {
        padding: 30px 20px;
    }
}
