main {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.page-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background:  linear-gradient(135deg, #5a67d8, #6b46c1);
    border-radius: 3px;
}

.page-header p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 30px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: 1px solid #cbd5e0;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background:  linear-gradient(135deg, #5a67d8, #6b46c1);
    color: white;
    border-color:  linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Card Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2ff;
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.card-img {
    object-fit: contain;
    padding: 15px;
    background: #f8fafc;
}

.card-content {
    padding: 18px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: #1a202c;
    font-weight: 600;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
}

.card-meta span {
    font-weight: 600;
    color: #2d3748;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-rating {
    display: flex;
    gap: 2px;
    margin: 8px 0;
        color: rgb(243, 181, 25);

}

.card-rating .filled {
    color: rgb(243, 181, 25);
}

.card-rating .empty {
    color: #e2e8f0;
}

.apply-btn {
    width: 40%;
    padding: 12px;
    background:  linear-gradient(135deg, #5a67d8, #6b46c1);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.3s;
    margin-right: 3.7rem;
  
}

.details-btn{
 width: 40%;
    padding: 12px;
background: #fff;
    color:  linear-gradient(135deg, #5a67d8, #6b46c1);
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.3s;
    text-decoration: none;
}

.apply-btn:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 799px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .filter-tabs {
        display: flex;
        justify-content: center;
    }

    .filter-tabs {
        display: flex;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .sectionpad {
        padding: 40px 15px;
    }

    .card-item {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        width: 100%;
        justify-content: space-between;
    }

    .card-img {
        width: 90%;

    }

    .cards-grid {
        grid-template-columns: repeat(2, auto);
    }
}

@media (max-width: 477px) {
    .page-header h1 {
        font-size: 1.2rem;
    }

    .page-header p {
        font-size: 0.9 rem;
    }

    .filter-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        align-items: center;
        flex-direction: row;
    }

    .card-img {
        width: 90%;
    }

    .cards-grid {
        grid-template-columns: auto;
    }
    tbody {
        width: 50px;
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}

}

@media (max-width: 477px) {

.card-content {
    padding: 0;
}
       .apply-btn {
        padding: 14px;
        margin: 1em;

    }
    .details-btn {
    margin: 1em;
}
}
