/* Templates page specific styles */

.frameworks-section.playbook {
    border-bottom: 1px solid #eef0f500;
    max-width: 1200px;
    padding-bottom: 10px;
    padding-right: 0;
}

.frameworks-section.playbook.tabs {
    border-bottom-style: solid;
    margin-bottom: 0px;
    padding-bottom: 10px;
}

/* Template description truncation - limit to 3 lines */
.template-description-link {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3); /* Fallback for browsers that don't support -webkit-line-clamp */
    visibility: visible;
}

/* Remove height constraints from template description links */
.template-description-link.tile {
    min-height: unset;
    max-height: unset;
}

/* Updated bold text styling */
.bold-text-8 {
    color: var(--align-dark-grey);
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
}

/* Updated template card styling */
.new-card.list-card-view.tile {
    background-color: var(--align-transparent);
    border-bottom-style: none;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 0;
}

.new-card-text-area.list-card-view.tile {
    border: 1px solid #e1e1e1;
    background-color: #ffffff80;
    border-radius: 11px;
    width: 197px;
    margin-bottom: 0;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 0;
}

/* Icon styling for template cards */
.fr-icons.more {
    border: 1px none var(--align-very-light-grey);
    filter: drop-shadow(0 15px 15px #fff);
    border-radius: 8px;
    width: 185px;
    height: auto;
    margin-bottom: 0;
    margin-left: 3px;
    margin-right: 3px;
}

/* Modern minimalist button styles for Playbook Examples and Sessions */
.modern-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    min-width: 120px;
    margin: 4px;
    line-height: 1.4;
}

.modern-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    box-shadow: none;
    transform: none;
}

.modern-button:active {
    transform: none;
    box-shadow: none;
}

.modern-button-secondary {
    background-color: #5062ff;
    color: #ffffff;
    border-color: #5062ff;
}

.modern-button-secondary:hover {
    background-color: #3d4ac3;
    border-color: #3d4ac3;
}

/* Make dashboard button icon white */
.modern-button-secondary img {
    filter: brightness(0) invert(1);
}

/* Make plus icon lighter weight */
.modern-button img[src*="plus-icon"] {
    opacity: 0.7;
}

/* Dashboard button desktop-only right margin */
@media (min-width: 768px) {
    .dashboard-button {
        margin-right: 39px;
    }
}

/* Container for the buttons */
.modern-buttons-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Polished styling for template cards */
.templates-link-area-modern.purple {
    border-style: solid;
    border-color: #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-align: center;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 15px;
    padding-top: 25px;
    transition: all 0.2s ease;
}

.templates-link-area-modern.purple:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: #d1d5db;
}

/* Mobile view - remove min-height for template cards */
@media (max-width: 767px) {
    .templates-link-area-modern.purple {
        border-style: solid;
        border-color: #e5e7eb;
        background-color: #ffffff;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        text-align: center;
        border-radius: 12px;
        margin-left: 0;
        padding-bottom: 15px;
        margin-right: 15px;
        padding-top: 15px;
        transition: all 0.2s ease;
    }
    
    .modern-buttons-container {
        margin-bottom: 0;
    }
    
    .new-card-text-area.list-card-view.tile {
        width: 100%;
        height: auto;
        padding-bottom: 20px;
        display: block;
    }
    
    .new-card.list-card-view.tile {
        width: 100%;
        height: auto;
        padding-right: 30px;
    }
}

/* Small mobile devices (max-width: 479px) */
@media screen and (max-width: 479px) {
    .template-description-link.tile {
        min-height: auto;
        max-height: none;
        padding-right: 10px;
        line-height: 21px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .new-card-description.list-card-view.tile {
        display: block;
    }
} 