/* Custom Home Page Styles */
/* Font: Outfit - Loaded globally via variables.css */

/* Variables defined in assets/css/variables.css */

body.page-template-home-page-template {
    background-color: #ffffff;
    /* White background for consistency */
}

.home-content-wrapper {
    font-family: var(--cb-font-main);
    color: var(--cb-text-main);
    overflow-x: hidden;
}

/* =========================================
   Hero Section
   ========================================= */
.home-hero-section {
    text-align: center;
    padding: var(--cb-spacing-20) var(--cb-spacing-5) var(--cb-spacing-15);
    background: var(--cb-gradient-hero-bg);
}

.home-hero-title {
    font-size: 2.5rem;
    /* Reduced from 3rem */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--cb-text-main);
}

.home-hero-title span {
    display: block;
    color: var(--cb-color-primary);
}

.home-hero-desc {
    font-size: 1rem;
    /* Reduced from 1.125rem */
    color: var(--cb-text-cloud);
    max-width: 700px;
    margin: 0 auto var(--cb-spacing-10);
    line-height: 1.6;
}

.home-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--cb-color-primary);
    color: #fff;
    box-shadow: var(--cb-shadow-glow-primary);
}

.btn-primary:hover {
    background: var(--cb-color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: var(--cb-text-inverse);
}

.btn-secondary {
    background: var(--cb-bg-card);
    color: var(--cb-color-primary);
    border: 2px solid var(--cb-color-primary-soft);
}

.btn-secondary:hover {
    border-color: var(--cb-color-primary);
    transform: translateY(-2px);
    background: var(--cb-bg-body);
    color: var(--cb-color-primary-dark);
}

/* =========================================
   Categories Section
   ========================================= */
.home-categories-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 1.875rem;
    /* Reduced from 2.2rem to ~30px */
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--cb-text-cloud);
    margin-bottom: 50px;
    font-size: 0.9375rem;
    /* Reduced from 1rem to ~15px */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: var(--cb-bg-card);
    border-radius: var(--cb-radius-md);
    padding: 40px 20px;
    text-decoration: none;
    color: var(--cb-text-main);
    box-shadow: var(--cb-shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--cb-border-light);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--cb-shadow-hover);
    border-color: var(--cb-border-light);
}

.cat-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #fff;
}

.cat-icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.cat-mobile .cat-icon-wrapper {
    background: var(--cb-cat-mobile);
    box-shadow: var(--cb-shadow-glow-mobile);
}

.cat-laptop .cat-icon-wrapper {
    background: var(--cb-cat-laptop);
    box-shadow: var(--cb-shadow-glow-laptop);
}

.cat-watch .cat-icon-wrapper {
    background: var(--cb-cat-watch);
    box-shadow: var(--cb-shadow-glow-watch);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* =========================================
   Purple CTA Section
   ========================================= */
.home-cta-section {
    margin: var(--cb-spacing-20) var(--cb-spacing-5);
    border-radius: 24px;
    background: var(--cb-gradient-cta-purple);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.cta-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cta-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.home-cta-section h2 {
    font-size: 2.5rem;
    font-weight: var(--cb-font-weight-bold);
    margin-bottom: var(--cb-spacing-4);
    color: var(--cb-text-inverse);
}

.home-cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-white {
    background: var(--cb-bg-card);
    color: var(--cb-color-primary);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: var(--cb-font-weight-bold);
    text-decoration: none;
    display: inline-block;
    transition: var(--cb-transition-normal);
    box-shadow: var(--cb-shadow-md);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--cb-color-primary-dark);
}

/* =========================================
   Latest Posts Section
   ========================================= */
.home-latest-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    text-align: center;
}

/* Shortcode handling */
.home-latest-section .lpg-container {
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .home-hero-section {
        padding: 40px 16px 30px;
    }

    .home-hero-title {
        font-size: 1.85rem;
        /* Better fit for mobile */
        margin-bottom: 15px;
    }

    .home-hero-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.5rem;
        /* Scaled down */
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .category-card {
        padding: 30px 20px;
        flex-direction: row;
        /* Horizontal card for better space usage on mobile if symbols allow, or keep stack but compact */
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .cat-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0;
        /* Reset for flex row */
        flex-shrink: 0;
    }

    .cat-icon-wrapper svg {
        width: 30px;
        height: 30px;
    }

    .home-cta-section {
        padding: 50px 20px;
        margin: 40px 15px;
        border-radius: 20px;
    }

    .home-cta-section h2 {
        font-size: 1.75rem;
    }

    .home-cta-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-white {
        width: 100%;
        /* Full width buttons for easier tapping */
        justify-content: center;
        display: flex;
        padding: 14px 20px;
    }

    .home-latest-section {
        padding: 0 16px;
    }
}