/* Resources Page Styles */

/* Resources Section */
.resources-section {
    padding: 0;
    background: #fff;
}
.resources-section .container-frame {
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0;
}

.resources-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.resources-intro-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
    padding-top: 80px;
}

.resources-intro-icon svg {
    width: 34.415px;
height: 38px;
aspect-ratio: 34.41/38.00;
}

.resources-intro h2 {
    color: var(--CG-colors-Grey-Black, #000);
text-align: center;

/* Head 3 */
font-family: var(--Typography-font-family-title, "Space Grotesk");
font-size: 60px;
font-style: normal;
font-weight: 500;
line-height: 60px; /* 100% */
}

.resources-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: #6c757d;
}

.resources-intro .highlight-text {
    font-weight: 600;
    color: #1a1a1a;
}

/* Filters */
.resources-filters {
    display: inline-flex;
    padding: 4px 8px;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    margin-left: 15px;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown-toggle {
    display: flex;
    height: 26px;
    padding: 4px 8px;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid var(--CG-colors-Shadows-Black-30, rgba(0, 0, 0, 0.30));
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.filter-dropdown-toggle:hover {
    border-color: #C4F222;
    background: #f8f6ff;
}

.filter-dropdown-toggle.is-open {
    border-color: #C4F222;
    background: #C4F222;
}

.filter-dropdown-toggle.is-open .filter-arrow {
    transform: rotate(180deg);
}

.filter-arrow {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    transform-origin: center center;
}

.filter-dropdown-toggle .filter-label {
    color: var(--CG-colors-Grey-Black, #000);
    /* Caption 2 - medium */
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 150% */
    display: inline-block;
}

/* Hover behaviour like team '+ Open' button */
.filter-dropdown-toggle:hover {
    background: var(--CG-colors-Lime-Lime-5, #C4F222);
    border-color: var(--CG-colors-Lime-Lime-5, #C4F222);
}

.filter-dropdown-toggle:active .filter-arrow {
    transform: rotate(360deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #C4F222;
    border-top: none;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    color: var(--CG-colors-Grey-Black, #000);
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    display: inline-block;
}

.filter-dropdown-menu.is-open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.filter-dropdown-item {
    display: block;
    padding: 4px 8px;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;    
}

.filter-dropdown-item:last-child {
    border-bottom: none;
}

.filter-dropdown-item:hover {
    background: #C4F222;
    text-decoration: none;
    color: #000;
}

.filter-dropdown-item.is-active {
    color: #000;
    font-weight: 400;
}

.filter-dropdown-item.is-active:hover {
    background: #C4F222;
}

/* Resources Grid - Single Column */
.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-width: 1440px;
    margin: 20px 0 0 0;
    padding: 0;
    width: 100%;
}

/* Resource Cards */
.resource-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    gap: 32px;
    min-height: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    position: relative;
}

.resource-card:hover {
    transform: none;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    background: var(--CG-colors-Shadows-Black-5, rgba(0, 0, 0, 0.05));
}

.resource-card:last-child {
    border-bottom: none;
}

/* Add top border only to the first resource card */
.resources-grid .resource-card:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Resource Image - 290px width */
.resource-image {
    flex-shrink: 0;
    width: 290px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

.resource-title-overlay {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}

.resource-subtitle-overlay {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Resource Content - Main content area */
.resource-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.resource-title {
    color: var(--CG-colors-Grey-Black, #000);

    /* Body 5 - medium */
    font-family: var(--Typography-font-family-body, Montserrat);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 31.2px; /* 130% */
    margin: 0 0 8px 0;
}

.resource-date {
    color: var(--CG-colors-Shadows-Black-50, rgba(0, 0, 0, 0.50));

    /* Button */
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 150% */
    margin-bottom: 12px;
}

/* Resource Tags */
.resource-tags {
    display: flex;
        width: max-content;
    height: 26px;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 342px;
}

.resource-tag {
    display: flex;
    width: max-content;
    height: 26px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid var(--CG-colors-Shadows-Black-30, rgba(0, 0, 0, 0.30));
    color: var(--CG-colors-Grey-Black, #000);
    /* Caption 2 - medium */
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 150% */
}

/* Download Section - Right side */
.resource-download-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 223px;
    justify-content: space-between;
}

.resource-file-type {
    color: var(--CG-colors-Shadows-Black-50, rgba(0, 0, 0, 0.50));

    /* Button */
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 150% */
    text-transform: none;
}

.resource-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6c757d;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: white;
}

.resource-download-icon svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    stroke-width: 1.5px;
    stroke: var(--CG-colors-Grey-Black, #000);
}

.resource-card:hover .resource-download-icon {
    border-radius: 8px;
    background: var(--CG-colors-Lime-Lime-5, #C4F222);
}

/* Empty State */
.resources-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.resources-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.line-scl{
    top: 95px !important;
}
/* Responsive Design */
@media (max-width: 768px) {
    .resources-section {
        padding: 60px 0;
    }
    
    .resources-intro {
        margin-bottom: 60px;
    }
    
    .resources-filters {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .resources-grid {
        gap: 24px;
        padding: 0 20px;
    }
    
    .resource-card {
        flex-direction: column;
        padding: 20px 0;
        gap: 16px;
    }
    
    .resource-image {
        width: 100%;
        height: 200px;
    }
    
    .resource-title {
        font-size: 20px !important;
    }
    
    .resource-download-section {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }
    
    .filter-dropdown-toggle {
        min-width: 160px;
    }

  .risorse-grid { grid-template-columns: 1fr !important; }
  .risorse-item { margin-bottom: 16px; }
}
@media (max-width: 480px) {
    .resources-grid {
        gap: 20px;
        padding: 0 16px;
    }
    
    .resources-filters {
        padding: 0 16px;
    }
    
    .resource-card {
        padding: 16px 0;
        gap: 12px;
    }
    
    .resource-image {
        height: 160px;
    }
    
    .resource-title {
        font-size: 18px;
    }
    
    .filter-dropdown-toggle {
        min-width: 140px;
        padding: 10px 16px;
    }

  .risorse-title { font-size: 15px; }
}
