/* Resources Page - HubSpot Style Revamp */

:root {
    --res-bg: #FFFFFF;
    --res-text: #2C3E50;
    --res-primary: #3460C5;
    /* Guttie Blue */
    --res-secondary: #89D934;
    /* Guttie Green */
    --res-gray-light: #F1F5F9;
    --res-gray-text: #64748B;
}

body {
    background-color: var(--res-bg) !important;
    color: var(--res-text);
}

.resource-header {
    padding-top: 140px;
    /* Account for fixed nav */
    padding-bottom: 60px;
    background: white;
    border-bottom: 1px solid #E2E8F0;
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- HERO SPLIT LAYOUT --- */
.hero-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* 60/40 Split approx */
    gap: 50px;
    align-items: start;
}

/* Left: Featured Main Card */
.featured-card {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    /* No shadow, clean look like HubSpot */
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.featured-img-wrapper {
    width: 100%;
    height: 350px;
    /* Big impactful image */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-img-wrapper img {
    transform: scale(1.05);
}

.featured-cat {
    text-transform: uppercase;
    color: var(--res-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--res-text);
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--res-gray-text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Right: Sidebar List */
.sidebar-header {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--res-secondary);
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: inline-block;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.trending-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 20px;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-cat {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--res-gray-text);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.trending-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--res-text);
    line-height: 1.3;
    transition: color 0.2s;
}

.trending-item:hover .trending-title {
    color: var(--res-primary);
}

.trending-meta {
    font-size: 0.85rem;
    color: var(--res-gray-text);
    margin-top: 8px;
}

/* --- BOTTOM GRID --- */
.content-section {
    padding: 80px 0;
    background: #F8FAFC;
    /* Slight contrast for bottom section */
}

.grid-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.grid-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--res-text);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.mini-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--res-secondary);
}

.mini-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.mini-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--res-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mini-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--res-text);
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.mini-meta {
    font-size: 0.8rem;
    color: var(--res-gray-text);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Search Bar (HubSpot Feature) */
.search-wrapper {
    margin-bottom: 40px;
    position: relative;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid #CBD5E1;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--res-primary);
    box-shadow: 0 0 0 3px rgba(52, 96, 197, 0.1);
}

/* Mobile Optimization */
@media (max-width: 900px) {
    .resource-header {
        padding-top: 100px;
        /* Reduced from 140px */
        padding-bottom: 40px;
    }

    .hub-container {
        padding: 0 20px;
    }

    /* Hero Split - Stacked */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Featured Card Mobile */
    .featured-img-wrapper {
        height: 250px;
        /* Reduced height to save space */
        margin-bottom: 20px;
    }

    .featured-title {
        font-size: 1.8rem;
        /* Scaled down from 2.5rem */
    }

    /* Sidebar Mobile Separator */
    .sidebar {
        border-top: 1px solid #E2E8F0;
        padding-top: 30px;
        margin-top: 10px;
    }

    .search-wrapper {
        margin-bottom: 30px;
        width: 100%;
        max-width: none;
    }

    /* Grid Adjustments */
    .content-section {
        padding: 50px 0;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        /* Full width cards on mobile for better touch targets */
        gap: 20px;
    }

    .mini-img {
        height: 200px;
        /* Slightly larger image on mobile stack */
    }
}