.pam-library {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

.pam-track-card {
    /* calc(33.333% - (all gaps combined / number of columns)) */
    width: calc(33.333% - (60px / 3)); 
    box-sizing: border-box; /* Ensures padding doesn't break the width calculation */
    
    /* Website background color (Very light warm cream/off-white) */
    background: #FDF5E6;
    /* Clean subtle border matching the site's soft dividers */
    border: 1px solid #e5dfd5;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect on hover */
.pam-track-card:hover {
    border-color: #c9bca6;
    transform: translateY(-12px);
    /* Softened shadow to fit a light theme */
    box-shadow: 0 30px 60px -10px rgba(139, 126, 104, 0.15);
}

.pam-track-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    filter: brightness(0.97);
    transition: filter 0.4s ease;
}

.pam-track-card:hover img {
    filter: brightness(1.03);
}

.pam-track-card h3 {
    /* Website primary serif text color (Deep charcoal/slate) */
    color: #2b3334;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.04em;
}

.pam-track-card p {
    /* Secondary muted text */
    color: #706e69;
    font-size: 0.85rem;
    margin: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Muted Gold Premium Badge to match site headings/accents */
.pam-premium {
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 20px 0;
    color: #c09667; /* Warm brand bronze/gold */
}

.pam-free {
    color: #a39f96;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 20px 0;
}

/* Website Button Style (Dark Slate Background with White Text) */
.pam-track-card .button {
    margin-top: auto;
    width: 100%;
    padding: 18px;
    text-align: center;
    background: #7c936b; /* Matching the deep slate buttons */
    border: 1px solid #2b3334;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s ease;
}

/* Button Hover State */
.pam-track-card .button:hover {
    background: #ffffff;
    color: #2b3334;
    border-color: #2b3334;
    letter-spacing: 0.2em;
}

/* Responsive Breakpoints using Flexbox */
@media(max-width: 991px) { 
    .pam-track-card { 
        /* 2 Columns: calc(50% - (total gaps / 2)) */
        width: calc(50% - (30px / 2)); 
    } 
}

@media(max-width: 600px) { 
    .pam-track-card { 
        /* 1 Column: Full width */
        width: 100%; 
    } 
}
/*for categories*/
/* Container for Category Grid */
.pam-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

/* Category Card Styling - Matches track cards */
.pam-category-card {
    width: calc(33.333% - 20px); 
    box-sizing: border-box;
    background: #FDF5E6;
    border: 1px solid #e5dfd5;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Consistent Hover Effect */
.pam-category-card:hover {
    border-color: #c9bca6;
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -10px rgba(139, 126, 104, 0.15);
}

/* Image scaling */
.pam-category-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    filter: brightness(0.97);
    transition: filter 0.4s ease;
}

.pam-category-card:hover img {
    filter: brightness(1.03);
}

/* Typography matching site headings */
.pam-category-card h3 {
    color: #2b3334;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.04em;
}

/* Category count styling */
.pam-category-card p {
    color: #706e69;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive adjustments */
@media(max-width: 991px) {
    .pam-category-card { width: calc(50% - 15px); }
}

@media(max-width: 600px) {
    .pam-category-card { width: 100%; }
}
/*end of categories*/