/* 
  QuickBiz Custom Design System 
  Restored and Optimized for Premium Feel
*/

:root {
    --primary-font: 'Outfit', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --dark: #111827;
    --gray-600: #4b5563;
    --gray-400: #9ca3af;
    --gray-100: #f3f4f6;
    --logo-gradient: linear-gradient(135deg, #2f2f2f 0%, #666 20%, #7d7d7d 30%, #e9e9e9 70%, #faf1da 100%);
}

.text-gradient {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Global Font Overrides */
body {
    font-family: var(--body-font) !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--primary-font) !important;
}

/* Blog Grid Layout - 3 Columns */
.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

@media (max-width: 1024px) {
    .blog-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .blog-grid-home {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Premium Blog Card */
.blog-card-premium {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.blog-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #000;
}

.blog-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.blog-card-link:hover {
    gap: 12px;
}

/* Blog Detail Page Styles */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: var(--dark);
    z-index: 99999;
}

.blog-post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Related Posts / Continue Reading */
.related-posts-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #f3f4f6;
}

.related-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: var(--dark);
    font-family: var(--primary-font);
}

/* Button & Badge Fixes - Removing Blue */
.store-badge-large {
    background: #111827 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: transform 0.2s, background 0.2s !important;
    text-decoration: none !important;
}

.store-badge-large:hover {
    background: #000000 !important;
    transform: translateY(-2px);
}

.store-badge-large svg,
.store-badge-large span {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.pull-quote {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    border-left: 6px solid var(--dark);
    padding: 10px 0 10px 40px;
    margin: 4rem 0;
    line-height: 1.4;
    font-family: var(--primary-font);
}

/* FAQ Section - Removing Purple/Blue */
.faq-question {
    color: var(--dark) !important;
    font-weight: 700 !important;
    font-family: var(--primary-font) !important;
}

/* Footer Link Fix */
.footer-email-link {
    color: #4b5563 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-email-link:hover {
    color: var(--dark) !important;
}

/* Section Spacing Fix */
.section-spacing-premium {
    padding: 100px 0;
}

/* Dark Section Background Fix */
.bg-dark-premium {
    background-color: #111827 !important;
    color: #ffffff !important;
}

#closing-cta {
    background-color: #000000 !important;
}

#cta {
    background-color: #ffffff !important;
}

#closing-cta h2,
#closing-cta h4 {
    color: #ffffff !important;
}

#cta h2 {
    color: #000000 !important;
}

/* Essential Utility Classes */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-12 {
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--dark);
    color: #fff;
    transform: translateY(-3px);
}

/* Icon Box Fix (Pure White for Premium Contrast) */
#closing-cta .icon-box {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#closing-cta .icon-box svg {
    stroke: #ffffff !important;
}

#closing-cta .icon-box svg path,
#closing-cta .icon-box svg circle,
#closing-cta .icon-box svg polyline,
#closing-cta .icon-box svg rect {
    stroke: #ffffff !important;
}



/* Logo Gradient Button - The Premium Standard */
.btn-logo-gradient,
.submit-btn-gradient,
.download-btn-gradient {
    background: var(--logo-gradient) !important;
    color: #111827 !important;
    border-radius: 15px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 14px 48px !important;
    text-align: center !important;
}

.btn-logo-gradient:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.view-all-guides-btn {
    background: var(--logo-gradient) !important;
    color: #111827 !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.view-all-guides-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Official Store Buttons - Compliance First */
.btn-store-official {
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-decoration: none !important;
    width: 190px !important;
    /* Standard Width */
    height: 60px !important;
    /* Standard Height */
    flex-shrink: 0 !important;
}

.btn-store-official .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.btn-store-official .top-txt {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn-store-official .main-txt {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    /* Force 1 line */
}

/* Official Store Buttons - Transparent PNG Assets */
.btn-store-png {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-store-png:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-store-png img {
    height: 60px;
    /* Standard size for high-end look */
    width: auto;
    display: block;
}

/* Side by side layout for store buttons */
.store-buttons-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Section sizing fix for laptop screens */
@media (min-width: 1024px) {
    #home {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    #home .wow {
        margin-bottom: 0px !important;
    }

    #home h1 {
        font-size: 3rem !important;
        /* Slightly smaller for laptop */
        margin-bottom: 1.5rem !important;
    }
}

.btn-store-official:hover {
    background: #1a1a1a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.btn-store-official svg {
    fill: currentColor;
}

/* Sub-page Banner Fixes */
.sub-page-banner {
    background: #f9fafb;
    padding: 160px 0 80px;
    text-align: center;
}

.download-section-gradient {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}