/* Palette Refresh: modern greens/purples and improved spacing */
:root{
    --brand-primary:#7c3aed; /* purple */
    --brand-accent:#10b981;  /* green */
    --text-primary:#1f2937;
    --text-secondary:#4b5563;
    --border-light:#e5e7eb;
    --bg-card:#ffffff;
    --shadow-soft:0 10px 30px rgba(0,0,0,.08);
}

.free-header .page-title{color:var(--text-primary)}
.gradient-text{background:linear-gradient(135deg,var(--brand-accent),#059669);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.page-description{color:var(--text-secondary)}

.benefit-card{background:linear-gradient(135deg,#f9fafb,#fff);border:1px solid var(--border-light);border-radius:1rem;box-shadow:var(--shadow-soft);padding:1.25rem}
.benefit-icon{font-size:1.75rem}

.tab-btn.active{background:var(--brand-primary);color:#fff;border:none}
.tab-btn.tab-link{border:1px solid var(--border-light)}

.app-card-free,.course-card-free{border:1px solid var(--border-light);border-radius:1rem;box-shadow:var(--shadow-soft)}
.app-link-btn,.course-link-btn{background:var(--brand-primary);color:#fff;border:none;border-radius:.75rem;padding:.6rem 1rem}
.app-link-btn:hover,.course-link-btn:hover{opacity:.92}

.section-title{color:var(--text-primary)}
.section-description{color:var(--text-secondary)}
/* Free Page Styles */

.free-page {
    background: #fff;
}

/* Page Header */
.free-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Tabs Section */
.tabs-section {
    padding: 2rem;
    background: white;
    border-bottom: 2px solid #e5e7eb;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.tab-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 4rem 2rem;
}

.tab-content.active {
    display: block;
}

/* Free Apps */
.filters-free {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.apps-grid-free {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.app-card-free {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-card-free:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.app-image-free {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-image-free img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-content-free {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-footer-free {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Courses Grid */
.courses-grid-free {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.course-card-free {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-card-free:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.course-header-free {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-header-free img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-icon-large {
    font-size: 4rem;
}

.course-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.course-body-free {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.course-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.course-category-badge {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-footer-free {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.course-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.course-link-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateX(4px);
}

/* CTA Section */
.cta-section-free {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    text-align: center;
}

.cta-section-free .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
}

.cta-section-free .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .apps-grid-free,
    .courses-grid-free {
        grid-template-columns: 1fr;
    }
}
