/* Uniform Tier Cards Styling */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tier-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Community tier styling - match layout of other tiers but keep blue color */
.tier-card:first-child {
    border: 2px solid var(--primary);
    background-color: var(--white);
}

.tier-card:first-child .tier-header {
    background-color: var(--primary);
    color: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.tier-card:first-child h3, 
.tier-card:first-child .price,
.tier-card:first-child .annual-price {
    color: var(--white);
}

.tier-card:first-child .tier-features {
    color: var(--dark);
    background-color: var(--white);
    border-radius: 0;
    margin: 0;
}

.tier-card:first-child .tier-features li::before {
    color: var(--primary);
}

.tier-card:first-child .tier-features li {
    color: var(--dark);
}

.tier-card:hover {
    transform: translateY(-5px);
}

.tier-card.featured {
    border: 2px solid var(--secondary);
    transform: none; /* Remove scale transformation */
}

.tier-card.featured:hover {
    transform: translateY(-5px); /* Consistent hover effect */
}

.tier-card.founding {
    border: 2px solid var(--accent);
}

.tier-header {
    padding: var(--spacing-md);
    background-color: var(--light);
    border-bottom: 1px solid var(--light-gray);
}

.tier-card.featured .tier-header {
    background-color: var(--secondary);
    color: var(--white);
}

.tier-card.founding .tier-header {
    background-color: var(--accent);
}

.tier-card.featured h3, .tier-card.featured .price {
    color: var(--white);
}

.tier-card.founding h3, .tier-card.founding .price {
    color: var(--primary);
}

.tier-features {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allow this section to grow and fill available space */
}

.tier-cta {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* Make Community tier button area match other tiers */
.tier-card:first-child .tier-cta {
    background-color: var(--white);
    border-radius: 0;
    margin: 0;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* Make Community tier Learn More button blue */
.tier-card:first-child .tier-cta .btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.tier-card:first-child .tier-cta .btn-secondary:hover {
    background-color: #15305a;
    color: var(--white);
}

/* Make Premium tier Learn More button green */
.tier-card.featured .tier-cta .btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.tier-card.featured .tier-cta .btn-primary:hover {
    background-color: #238a7e;
    color: var(--white);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .tier-card.featured {
        transform: none;
    }
    
    .tier-card.featured:hover {
        transform: translateY(-5px);
    }
}
