/* ========================================
   Insights Page Styles
   ======================================== */

/* Header solid background for insights page */
.header-solid {
    background: #1a1a2e;
}

/* Insights Hero Section - Space/Galaxy theme */
.insights-hero {
    background: #0a0a1a;
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Nebula glow effects */
.insights-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(137, 213, 210, 0.15) 0%, transparent 60%);
    z-index: 0;
}

/* Second nebula */
.insights-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(90, 50, 138, 0.2) 0%, transparent 55%);
    z-index: 0;
}

.insights-hero .container {
    position: relative;
    z-index: 1;
}

.insights-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.1;
}

.insights-intro {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 600px;
}

/* Blog Articles Section */
.insights-articles {
    background: linear-gradient(180deg, #f8f8fa 0%, #ffffff 100%);
    padding: 60px 0 80px;
    position: relative;
}

.blog-grid {
    display: grid;
    gap: 32px;
}

/* Blog Cards */
.blog-card {
    display: block;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--color-dark);
    opacity: 0.75;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(137, 213, 210, 0.15);
    padding: 80px 0;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--color-purple);
    margin-bottom: 12px;
    line-height: 1.2;
}

.newsletter-content > p {
    color: var(--color-dark);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
    background: var(--color-white);
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--color-purple);
}

.newsletter-form input::placeholder {
    color: var(--color-dark);
    opacity: 0.5;
}

.newsletter-form .btn {
    flex-shrink: 0;
    padding: 14px 28px;
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: var(--color-dark);
    opacity: 0.6;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet and up */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .blog-card-content h2 {
        font-size: 1.35rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .insights-hero {
        padding: 160px 0 80px;
    }

    .blog-grid {
        gap: 48px;
    }

    .blog-card-content h2 {
        font-size: 1.5rem;
    }

    .blog-card-content p {
        font-size: 1.05rem;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .blog-grid {
        max-width: 1100px;
        gap: 56px;
    }

    .blog-card-content {
        padding: 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .insights-hero {
        padding: 120px 0 40px;
        text-align: center;
    }

    .insights-intro {
        margin: 0 auto;
    }

    .insights-articles {
        padding: 20px 0 60px;
    }

    .blog-grid {
        gap: 24px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}
