/* ================================
   Knowledge Hub Landing Page Styles - OPTIMIZED FOR 100% ZOOM
   File: knowledge-hub-landing.css
   UPDATED: Matches Collection Card Style
   ================================ */

/* ================================
   Variables (Brand Consistent)
   ================================ */
.knowledge-hub-wrapper {
    --color-blue-gray: #2B4150;
    --color-dark-teal: #207C7E;
    --color-bright-teal: #5CC2CF;
    --color-primary-blue: #1D95D1;
    --color-primary-green: #6EB510;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --spacing-xxl: 100px;
    
    --container-max: 1200px;
    --container-padding: 40px;
    
    --font-primary: 'Urbanist', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* UPDATED FOR 100% ZOOM */
    --h1-size: 52px;
    --h1-size-mobile: 40px;
    --h2-size: 36px;
    --h2-size-mobile: 28px;
    --h3-size: 20px;
    --body-size: 16px;
}

/* ================================
   Page Wrapper
   ================================ */
.knowledge-hub-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.knowledge-hub-wrapper .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding); /* INCREASED */
}

/* ================================
   Hero Section - WITH ANIMATIONS
   ================================ */
.knowledge-hub-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0; /* CHANGED to 80px */
    background: radial-gradient(ellipse at 20% 30%, #2B4150 0%, #2B4150 25%, #207C7E 55%, #1D95D1 100%) !important;
}

.knowledge-hub-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* SVG Pattern - UPDATED SIZE AND POSITIONING */
.knowledge-hub-hero-pattern {
    position: absolute;
    top: -3%;
    left: 40%; /* MOVED RIGHT from 30% */
    right: -10%; /* MOVED RIGHT from -3% */
    bottom: -3%;
    overflow: hidden;
    background-image: url('https://arrowheadprstg.wpengine.com/wp-content/uploads/2026/01/subelement.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 750px; /* FIXED SIZE */
    opacity: 1;
    z-index: 2;
}

.knowledge-hub-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding); /* INCREASED */
    width: 100%;
}

.knowledge-hub-hero-content {
    max-width: 750px;
    text-align: left;
    margin: 0;
}

/* 18px Label - REDUCED SIZE */
.knowledge-hub-hero-label {
    color: #6eb510;
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* REDUCED from 18px */
    font-weight: 700;
    letter-spacing: 2px; /* REDUCED from 2.5px */
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Title - REDUCED SIZE */
.knowledge-hub-hero-title {
    color: #FFFFFF;
    font-family: 'Urbanist', sans-serif;
    font-size: 52px; /* REDUCED from 56px */
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0; /* REDUCED from 24px */
	max-width: 650px !important;
    animation: fadeInTyping 1.2s ease-out;
}

/* Typing animation effect */
@keyframes fadeInTyping {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Description - REDUCED SIZE */
.knowledge-hub-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* REDUCED from 18px */
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ================================
   RESPONSIVE HERO PATTERN
   ================================ */

/* Small to Medium Desktop (1000px - 1400px) - Move pattern further right */
@media (min-width: 1000px) and (max-width: 1400px) {
    .knowledge-hub-hero-pattern {
        left: 45% !important;
        right: -12% !important;
        background-position: 100% center !important;
    }
}

/* Hide SVG pattern on screens less than 1000px */
@media (max-width: 999px) {
    .knowledge-hub-hero-pattern {
        display: none !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .knowledge-hub-hero-title {
        font-size: 42px; /* REDUCED from 48px */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .knowledge-hub-wrapper .container {
        padding: 0 20px; /* Mobile padding */
    }
    
    .knowledge-hub-hero {
        min-height: auto;
        padding: 80px 0; /* INCREASED from 60px */
    }
    
    .knowledge-hub-hero .container {
        padding: 0 20px;
    }
    
    .knowledge-hub-hero-label {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .knowledge-hub-hero-title {
        font-size: 40px; /* REDUCED from 36px */
    }
    
    .knowledge-hub-hero-description {
        font-size: 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .knowledge-hub-hero-title {
        font-size: 28px; /* REDUCED from 32px */
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .knowledge-hub-hero-label,
    .knowledge-hub-hero-title,
    .knowledge-hub-hero-description {
        animation: none;
    }
}

/* ================================
   Intro Section - SPLIT LAYOUT
   ================================ */
.knowledge-hub-intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* REDUCED from 80px */
    align-items: center;
}

.knowledge-hub-intro-content {
    text-align: left;
}

.knowledge-hub-intro {
    text-align: left;
    margin-bottom: 0;
    max-width: 100%;
}

/* Intro Title - REDUCED SIZE */
.knowledge-hub-intro-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 36px; /* Uses var(--h2-size) */
    font-weight: 900;
    color: #2B4150;
    margin: 0 0 20px 0; /* REDUCED from 24px */
    line-height: 1.2;
	max-width: 400px !important;
}

/* Intro Text - REDUCED SIZE */
.knowledge-hub-intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* REDUCED from 18px */
    line-height: 1.7;
    color: #666666;
    margin: 0 0 var(--spacing-lg) 0;
    max-width: 700px;
}

/* Image with Tilt Effect - MATCHING ABOUT PAGE */
.knowledge-hub-intro-image {
    position: relative;
    max-width: 500px;
    margin-left: auto;
    transform: rotate(0deg);
    transition: transform 0.4s ease;
}

.knowledge-hub-intro-image:hover {
    transform: rotate(2deg);
}

.knowledge-hub-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: block;
}

/* View All Articles Button */
.btn-view-all-articles {
    display: inline-block;
    background: #1D95D1;
    color: #FFFFFF;
    padding: 14px 36px; /* REDUCED from 16px 40px */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 149, 209, 0.3);
}

.btn-view-all-articles:hover {
    background: #6EB510;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 149, 209, 0.4);
    color: #FFFFFF;
}

/* ================================
   Pillars Section
   ================================ */
.knowledge-hub-pillars {
    padding: var(--spacing-xxl) 0; /* INCREASED */
    background: #FFFFFF;
}

.knowledge-hub-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Pillar Card - REDUCED PADDING */
.knowledge-hub-pillar-card {
    background: #F5F5F5;
    padding: 32px; /* REDUCED from 40px */
    border-radius: 4px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid transparent;
    height: 100%;
    cursor: pointer;
}

.knowledge-hub-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #5CC2CF;
    background: #FFFFFF;
}

/* Pillar Icon - REDUCED SIZE */
.pillar-icon {
    width: 54px; /* REDUCED from 60px */
    height: 54px;
    margin-bottom: 20px; /* REDUCED from 24px */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pillar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Pillar Title - REDUCED SIZE */
.pillar-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px; /* Uses var(--h3-size) */
    font-weight: 700;
    color: #2B4150;
    margin: 0 0 14px 0; /* REDUCED from 16px */
    text-align: left;
    transition: color 0.3s ease;
}

/* Change title to blue on card hover - multiple selectors for maximum compatibility */
.knowledge-hub-pillar-card:hover .pillar-title,
.knowledge-hub-pillar-card:hover .pillar-title a,
.knowledge-hub-pillar-card:hover h3.pillar-title,
.knowledge-hub-pillar-card:hover h3.pillar-title a {
    color: #1D95D1 !important;
}

/* Pillar Description - REDUCED SIZE */
.pillar-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* REDUCED from 15px */
    line-height: 1.6;
    color: #666666;
    margin: 0 0 20px 0; /* REDUCED from 24px */
    flex-grow: 1;
    text-align: left;
}

/* Featured Post Box - REDUCED PADDING */
.pillar-featured-post {
    background: rgba(92, 194, 207, 0.1);
    padding: 14px; /* REDUCED from 16px */
    border-radius: 4px;
    margin-bottom: 20px; /* REDUCED from 24px */
    width: 100%;
    text-align: left;
}

.pillar-featured-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5CC2CF;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

/* Change label to dark blue-gray on card hover */
.knowledge-hub-pillar-card:hover .pillar-featured-label {
    color: #2B4150 !important;
}

.pillar-featured-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2B4150;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pillar-featured-link:hover {
    color: #1D95D1;
}

/* Arrow - MATCHING COLLECTION STYLE */
.pillar-view-all {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1D95D1 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pillar-view-all::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 12px;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1L19 6M19 6L14 11M19 6H1' stroke='%231d95d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.pillar-view-all svg {
    display: none;
}

.pillar-view-all:hover {
    color: #1D95D1 !important;
}

/* Move arrow on card hover, not just link hover - multiple selectors */
.knowledge-hub-pillar-card:hover .pillar-view-all::after,
.knowledge-hub-pillar-card:hover a.pillar-view-all::after {
    transform: translateX(5px) !important;
}

/* ================================
   Recent Articles Section - MATCHING COLLECTION CARDS
   ================================ */
.knowledge-hub-recent {
    padding: var(--spacing-xxl) 0; /* INCREASED */
    background: #F8F8F8;
}

/* Recent Title - REDUCED SIZE */
.knowledge-hub-recent-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 36px; /* Uses var(--h2-size) */
    font-weight: 900;
    color: #2B4150;
    text-align: left;
    margin: 0 0 var(--spacing-xl) 0;
    line-height: 1.2;
}

.knowledge-hub-recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Article Card - MATCHING COLLECTION CARD EXACTLY */
.knowledge-hub-article-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

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

/* Article Card Image - REDUCED HEIGHT */
.article-card-image {
    width: 100%;
    height: 220px; /* REDUCED from 240px */
    overflow: hidden;
    background: #E5E5E5;
}

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

.knowledge-hub-article-card:hover .article-card-image img {
    transform: scale(1.05);
}

/* Article Card Content - REDUCED PADDING */
.article-card-content {
    padding: 20px; /* REDUCED from 24px */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    background: #FFFFFF;
}

.article-card-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6EB510;
    margin-bottom: 14px; /* REDUCED from 16px */
}

/* Article Card Title - REDUCED SIZE */
.article-card-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px; /* Uses var(--h3-size) */
    font-weight: 700;
    color: #2B4150;
    margin: 0 0 14px 0; /* REDUCED from 16px */
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Change title color on CARD hover, not just title hover */
.knowledge-hub-article-card:hover .article-card-title,
.knowledge-hub-article-card:hover .article-card-title a {
    color: #1D95D1;
}

/* Article Card Excerpt - REDUCED SIZE */
.article-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* REDUCED from 15px */
    line-height: 1.6;
    color: #666666;
    margin: 0 0 20px 0; /* REDUCED from 24px */
    flex-grow: 1;
}

/* Article Link Arrow - MATCHING COLLECTION STYLE */
.article-card-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1D95D1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-card-link::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 12px;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='12' viewBox='0 0 20 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1L19 6M19 6L14 11M19 6H1' stroke='%231d95d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.article-card-link:hover {
    color: #1D95D1;
}

/* Move arrow on CARD hover, not just link hover */
.knowledge-hub-article-card:hover .article-card-link::after {
    transform: translateX(5px);
}

/* No Articles Message - REDUCED SIZE */
.no-articles {
    grid-column: 1 / -1;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* REDUCED from 18px */
    color: #666666;
    padding: var(--spacing-xl) 0;
}

/* ================================
   CTA Section
   ================================ */
.knowledge-hub-cta {
    background: linear-gradient(135deg, #2B4150 0%, #207C7E 100%);
    padding: var(--spacing-xxl) 0; /* INCREASED */
    text-align: center;
}

.knowledge-hub-cta .container {
    padding: 0 var(--container-padding);
}

.knowledge-hub-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Title - REDUCED SIZE */
.knowledge-hub-cta-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 36px; /* Uses var(--h2-size) */
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 20px 0; /* REDUCED from 24px */
    line-height: 1.2;
}

/* CTA Description - REDUCED SIZE */
.knowledge-hub-cta-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px; /* REDUCED from 20px */
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 36px 0; /* REDUCED from 40px */
    line-height: 1.6;
}

/* CTA Button - REDUCED SIZE */
.btn-knowledge-hub-cta {
    display: inline-block;
    background: #5CC2CF;
    color: #FFFFFF;
    padding: 16px 42px; /* REDUCED from 18px 48px */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px; /* REDUCED from 18px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-knowledge-hub-cta:hover {
    background: #6EB510;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
}

/* ================================
   Responsive Design
   ================================ */
@media screen and (max-width: 1024px) {
    .knowledge-hub-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .knowledge-hub-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .knowledge-hub-hero-title {
        font-size: 42px;
    }
}

@media screen and (max-width: 768px) {
    .knowledge-hub-wrapper {
        --h2-size: var(--h2-size-mobile);
        --spacing-xl: 80px;
        --spacing-lg: 32px;
    }
    
    .knowledge-hub-wrapper .container {
        padding: 0 20px; /* Mobile padding */
    }
    
    .knowledge-hub-hero {
        padding: 80px 0;
    }
    
    .knowledge-hub-hero .container {
        padding: 0 20px;
    }
    
    .knowledge-hub-hero-title {
        font-size: 40px !important;
    }
    
    .knowledge-hub-hero-description {
        font-size: 16px;
    }
    
    /* Stack split layout on mobile */
    .knowledge-hub-intro-split {
        grid-template-columns: 1fr;
        gap: 36px; /* REDUCED from 40px */
    }
    
    .knowledge-hub-intro-image {
        order: -1;
    }
    
    .knowledge-hub-pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-hub-recent-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card-image {
        height: 200px;
    }
    
    .pillar-icon {
        width: 46px; /* REDUCED from 50px */
        height: 46px;
    }
    
    .knowledge-hub-cta-title {
        font-size: 28px;
    }
    
    .knowledge-hub-cta-description {
        font-size: 16px;
    }
    
    .btn-knowledge-hub-cta {
        width: 100%;
        padding: 14px 28px; /* REDUCED from 16px 32px */
    }
    
    .btn-view-all-articles {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .knowledge-hub-hero-title {
        font-size: 40px; /* REDUCED from 32px */
    }
}