@import url('common-var.css');

/* Framework Section Styles */
.framework-section {
    background: var(--white);
}

.framework-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.framework-item {
    width: 100%;
}

.framework-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px;
    border: 1px solid #DADADA;
    border-radius: 5px;
    background: var(--white);
    transition: box-shadow 0.3s ease;
}

.framework-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.framework-image {
    flex-shrink: 0;
}

.framework-image img {
    width: 232px;
    height: 230px;
    border-radius: 10px;
    object-fit: cover;
}

.framework-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 80px;
}

.framework-text {
    flex: 1;
}

.framework-date {
    font-family: var(--font-type1);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-default-color);
    margin-bottom: 15px;
}

.framework-title {
    font-family: var(--font-type2);
    font-size: 22px;
    font-weight: 700;
    line-height: 34px;
    color: var(--text-default-color);
    margin: 0;
}

.framework-action {
    flex-shrink: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download span {
    font-family: var(--font-type2);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-color);
}

.btn-download:hover {
    background: var(--primary-color);
    text-decoration: none;
}

.btn-download:hover span {
    color: var(--white);
}

/* RTL Support */

[dir="rtl"] .framework-text {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .framework-content {
        gap: 40px;
    }
    
    .framework-image img {
        width: 200px;
        height: 200px;
    }
    
    .framework-title {
        font-size: 20px;
        line-height: 30px;
    }
}

@media (max-width: 991.98px) {
    .framework-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .framework-content {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .framework-image img {
        width: 180px;
        height: 180px;
    }
    
    .framework-title {
        font-size: 18px;
        line-height: 28px;
    }
    
    .btn-download {
        padding: 15px 25px;
    }
    
    .btn-download span {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .framework-card {
        padding: 15px;
        gap: 15px;
    }
    
    .framework-content {
        gap: 15px;
    }
    
    .framework-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .framework-date {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .btn-download {
        padding: 12px 20px;
    }
    
    .btn-download span {
        font-size: 14px;
        line-height: 18px;
    }
}

@media (max-width: 575.98px) {
    .framework-items {
        gap: 15px;
    }
    
    .framework-card {
        padding: 12px;
    }
    
    .framework-title {
        font-size: 15px;
        line-height: 22px;
    }
}

/* RTL Responsive adjustments */
[dir="rtl"] .framework-card {
    direction: rtl;
}

[dir="rtl"] .framework-text {
    text-align: right;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .framework-card {
        text-align: center;
    }
    
    [dir="rtl"] .framework-text {
        text-align: center;
    }
}
