/* Material Layout CSS
 * Styles for material taxonomy lists, generic taxonomy lists, archive templates, and single material pages
 */

/* Proyecto Taxonomy List Styles */

.archive .edgtf-title-inner {
    margin: 50px 0 10px;
}

.terlab-proyecto-list-holder {
    padding: 40px 0;
}

.terlab-proyecto-item {
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.terlab-proyecto-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.terlab-proyecto-image {
    overflow: hidden;
}

.terlab-proyecto-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terlab-proyecto-item:hover .terlab-proyecto-image img {
    transform: scale(1.05);
}

.terlab-proyecto-content {
    padding: 20px;
}

.terlab-proyecto-title {
    margin: 0 0 10px 0;
    font-family: 'Futura Bold', arial;
    font-size: 18px;
    line-height: 1.4;
}

.terlab-proyecto-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terlab-proyecto-title a:hover {
    color: var(--color-main);
}

.terlab-proyecto-excerpt {
    margin: 10px 0 15px 0;
}

.terlab-proyecto-excerpt p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.terlab-proyecto-categories {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.terlab-proyecto-categories a {
    color: var(--color-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.terlab-proyecto-categories a:hover {
    color: var(--color-black);
}

/* Generic Taxonomy List Styles */
.terlab-taxonomy-description {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.terlab-taxonomy-description p {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

.terlab-taxonomy-list-holder,
.terlab-proyecto-list-holder {
    padding: 40px 0;
}

.terlab-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.terlab-taxonomy-item,
.terlab-proyecto-item {
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.terlab-taxonomy-item:hover,
.terlab-proyecto-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.terlab-taxonomy-image,
.terlab-proyecto-image {
    overflow: hidden;
}

.terlab-taxonomy-image img,
.terlab-proyecto-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terlab-taxonomy-item:hover .terlab-taxonomy-image img,
.terlab-proyecto-item:hover .terlab-proyecto-image img {
    transform: scale(1.05);
}

.terlab-taxonomy-content,
.terlab-proyecto-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.terlab-taxonomy-title,
.terlab-proyecto-title {
    margin: 0 0 10px 0;
    font-family: 'Futura Bold', arial;
    font-size: 18px;
    line-height: 1.4;
}

.terlab-taxonomy-title a,
.terlab-proyecto-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terlab-taxonomy-title a:hover,
.terlab-proyecto-title a:hover {
    color: var(--color-main);
}

.terlab-taxonomy-excerpt,
.terlab-proyecto-excerpt {
    margin: 10px 0 15px 0;
}

.terlab-taxonomy-excerpt p,
.terlab-proyecto-excerpt p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.terlab-taxonomy-terms,
.terlab-proyecto-categories {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.terlab-taxonomy-terms a,
.terlab-proyecto-categories a {
    color: var(--color-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.terlab-taxonomy-terms a:hover,
.terlab-proyecto-categories a:hover {
    color: var(--color-black);
}

/* Archive Template Styles */
.terlab-post-type-description {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.terlab-post-type-description p {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

.terlab-archive-list-holder {
    padding: 40px 0;
}

.terlab-archive-item {
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.terlab-archive-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.terlab-archive-image {
    overflow: hidden;
}

.terlab-archive-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terlab-archive-item:hover .terlab-archive-image img {
    transform: scale(1.05);
}

.terlab-archive-content {
    padding: 20px;
}

.terlab-archive-title {
    margin: 0 0 10px 0;
    font-family: 'Futura Bold', arial;
    font-size: 18px;
    line-height: 1.4;
}

.terlab-archive-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terlab-archive-title a:hover {
    color: var(--color-main);
}

.terlab-archive-date {
    margin: 5px 0 10px 0;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

.terlab-archive-excerpt {
    margin: 10px 0 0 0;
}

.terlab-archive-excerpt p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.terlab-pagination {
    text-align: center;
    padding: 40px 0 20px 0;
}

.terlab-pagination a,
.terlab-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #f5f5f5;
    color: var(--color-black);
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.terlab-pagination a:hover,
.terlab-pagination .current {
    background: var(--color-main);
    color: var(--color-white);
    border-color: var(--color-main);
}

/* Single Material Template Styles */
.edgtf-material-single-holder {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.edgtf-material-single {
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
}

.edgtf-material-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.edgtf-material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edgtf-material-content-header {
    min-height: 200px;
}
.edgtf-material-meta {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edgtf-material-text {
    padding: 0 20px 20px;
}
.edgtf-material-text .edgtf-material-title h1 {
    line-height: 1.1;
}

.edgtf-material-text-inner {
    max-width: none;
}

.edgtf-material-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.edgtf-material-categories a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--color-main);
    color: var(--color-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.edgtf-material-categories a:hover {
    background: var(--color-black);
    transform: translateY(-1px);
}

.edgtf-material-text-inner h1,
.edgtf-material-text-inner h2,
.edgtf-material-text-inner h3,
.edgtf-material-text-inner h4,
.edgtf-material-text-inner h5,
.edgtf-material-text-inner h6 {
    font-family: 'Futura Bold', arial;
    color: var(--color-black);
    margin-bottom: 20px;
    line-height: 1.4;
}

.edgtf-material-text-inner p {
    font-family: 'Futura';
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.edgtf-material-text-inner ul,
.edgtf-material-text-inner ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.edgtf-material-text-inner li {
    font-family: 'Futura';
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
}

.edgtf-material-info-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edgtf-material-info-bottom-left {
    flex: 1;
}

.edgtf-material-info-bottom-right {
    flex: 1;
    text-align: right;
}

.edgtf-material-info-bottom a {
    color: var(--color-main);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.edgtf-material-info-bottom a:hover {
    color: var(--color-black);
}

/* Material Taxonomy List Styles */
.terlab-material-list-holder {
    padding: 40px 0;
}

.terlab-material-item {
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.terlab-material-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.terlab-material-image {
    overflow: hidden;
}

.terlab-material-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terlab-material-item:hover .terlab-material-image img {
    transform: scale(1.05);
}

.terlab-material-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.terlab-material-title {
    margin: 0 0 10px 0;
    font-family: 'Futura Bold', arial;
    font-size: 18px;
    line-height: 1.4;
}

.terlab-material-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terlab-material-title a:hover {
    color: var(--color-main);
}

.terlab-material-excerpt {
    margin: 10px 0 15px 0;
}

.terlab-material-excerpt p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.terlab-material-categories {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.terlab-material-categories a {
    color: var(--color-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.terlab-material-categories a:hover {
    color: var(--color-black);
}

/* New taxonomy containers for equal height cards */
.terlab-taxonomy-terms-all,
.terlab-material-taxonomies-all {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    font-size: 12px;
    line-height: 1.4;
}

.terlab-taxonomy-terms-all a,
.terlab-material-taxonomies-all a {
    color: var(--color-main);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.terlab-taxonomy-terms-all a:hover,
.terlab-material-taxonomies-all a:hover {
    color: var(--color-black);
}

.terlab-taxonomy-group {
    display: block;
    margin-bottom: 5px;
}

.terlab-no-terms {
    color: #999;
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .terlab-grid-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .edgtf-material-single-holder {
        padding: 20px 0;
    }

    .edgtf-material-text {
        padding: 20px;
    }

    .edgtf-material-image {
        max-height: 250px;
    }

    .edgtf-material-info-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .edgtf-material-info-bottom-right {
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .terlab-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Taxonomy Pagination Styles - Minimal Design */
.edgtf-pagination-holder {
    padding: 40px 0;
    text-align: center;
}

.edgtf-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: transparent;
}

.edgtf-pagination a,
.edgtf-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0;
    background: transparent;
    color: #666;
    text-decoration: none;
    border: none;
    font-size: 16px;
    font-weight: normal;
    transition: color 0.2s ease;
}

.edgtf-pagination a:hover {
    color: #333;
    background: transparent;
}

.edgtf-pagination .current {
    color: #333;
    font-weight: 600;
    background: transparent;
}

.edgtf-pagination .prev,
.edgtf-pagination .next {
    font-size: 18px;
    color: #666;
    padding: 8px;
}

.edgtf-pagination .prev:hover,
.edgtf-pagination .next:hover {
    color: #333;
}

/* Hide dots */
.edgtf-pagination .dots {
    background: transparent;
    border: none;
    color: #666;
}
