/* Research Focus Areas Page Styles */
.cn-research-area {
    background-color: #f5f7fa;
    font-family: IRANSans, Tahoma, sans-serif;
    color: #333;
}

.cn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Section */
.cn-research-header {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.cn-research-header h1 {
    font-size: 32px;
    color: #1a1a1a;
    font-weight: bold;
    margin-bottom: 15px;
}

.cn-research-header p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.cn-research-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.cn-research-search .search-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.cn-research-search .search-field:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 10px rgba(211,47,47,0.1);
}

.cn-research-search .search-submit {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

/* Filter Tabs */
.cn-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

.cn-tab-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cn-tab-btn:hover {
    background-color: #f9f9f9;
    color: #d32f2f;
    border-color: #d32f2f;
}

.cn-tab-btn.active {
    background-color: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
    box-shadow: 0 4px 10px rgba(211,47,47,0.3);
}

/* Advanced Filters */
.cn-advanced-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.cn-filter-dropdown {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.cn-filter-dropdown i {
    position: absolute;
    right: 15px;
    color: #888;
}

.cn-filter-dropdown select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 15px 12px 40px;
    appearance: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

/* Featured Post */
.cn-featured-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cn-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(15,32,60,0.95) 0%, rgba(15,32,60,0.6) 50%, rgba(15,32,60,0.1) 100%);
}

.cn-featured-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 60%;
    color: #fff;
}

.cn-featured-top {
    margin-bottom: 20px;
}

.cn-badge-star {
    background-color: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(5px);
}

.cn-badge-star i {
    color: #ffd700;
    margin-left: 5px;
}

.cn-badge-red {
    background-color: #d32f2f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
}

.cn-featured-date {
    font-size: 13px;
    color: #ccc;
}

.cn-featured-body h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 15px 0;
    line-height: 1.4;
}

.cn-featured-body h2 a {
    color: #fff;
    text-decoration: none;
}

.cn-featured-body h2 a:hover {
    color: #eee;
}

.cn-featured-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.cn-featured-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.cn-featured-tags span {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.cn-btn-view {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.cn-btn-view:hover {
    background-color: #fff;
    color: #0f203c;
}

.cn-btn-view i {
    margin-right: 8px;
}

/* Sort and View Toggle */
.cn-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.cn-view-toggles {
    display: flex;
    gap: 10px;
}

.cn-view-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #888;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cn-view-btn.active {
    color: #d32f2f;
    border-color: #d32f2f;
    background-color: rgba(211,47,47,0.05);
}

.cn-sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cn-sort-dropdown span {
    font-size: 14px;
    color: #666;
}

.cn-sort-dropdown select {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

/* Post Grid */
.cn-post-grid {
    display: grid;
    gap: 30px;
}

.cn-grid-view {
    grid-template-columns: repeat(3, 1fr);
}

.cn-list-view {
    grid-template-columns: 1fr;
}

.cn-research-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cn-list-view .cn-research-card {
    flex-direction: row;
}

.cn-research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cn-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.cn-list-view .cn-card-img {
    width: 300px;
    height: auto;
    flex-shrink: 0;
}

.cn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cn-research-card:hover .cn-card-img img {
    transform: scale(1.05);
}

.cn-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

.cn-card-badge.red {
    background-color: #d32f2f;
}

.cn-card-badge.blue {
    background-color: #0d8aab;
}

.cn-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cn-card-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.cn-card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.4;
}

.cn-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.cn-card-title a:hover {
    color: #d32f2f;
}

.cn-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cn-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.cn-card-tags span {
    background: #f5f5f5;
    color: #555;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Pagination */
.cn-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.cn-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.cn-pagination .page-numbers:hover {
    background: #f9f9f9;
    color: #d32f2f;
    border-color: #d32f2f;
}

.cn-pagination .page-numbers.current {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Promo Banners */
.cn-promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.cn-promo-banner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #fceceb;
}

.cn-academy-promo {
    background-color: #e6f0f9;
}

.cn-promo-content {
    padding: 40px;
    width: 60%;
    z-index: 2;
}

.cn-promo-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.cn-promo-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cn-btn-white {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.cn-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.cn-btn-white i {
    margin-right: 8px;
}

.cn-promo-banner img {
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: 45%;
    object-fit: contain;
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .cn-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
    .cn-featured-content {
        width: 80%;
    }
    .cn-promo-banners {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cn-grid-view {
        grid-template-columns: 1fr;
    }
    .cn-list-view .cn-research-card {
        flex-direction: column;
    }
    .cn-list-view .cn-card-img {
        width: 100%;
        height: 220px;
    }
    .cn-featured-content {
        width: 100%;
        padding: 30px 20px;
    }
    .cn-featured-body h2 {
        font-size: 22px;
    }
    .cn-advanced-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .cn-filter-dropdown {
        width: 100%;
    }
    .cn-promo-banner {
        flex-direction: column;
    }
    .cn-promo-content {
        width: 100%;
    }
    .cn-promo-banner img {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 200px;
        object-position: left bottom;
    }
}
