

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

.insight-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.insight-card > a { text-decoration: none; }

.insight-image {
    display: block;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    background-size: cover;
    background-position: center;
    object-fit: cover;
}

.insight-content { padding: 1.5rem; }

.insight-meta {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insight-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.insight-title a { color: var(--primary-color); transition: color 0.2s; }
.insight-title a:hover { color: var(--accent-color); }

.insight-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-container {
    background: #fff;
    padding: 40px 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom: none;
    max-width: none;
    margin: 0;
    border-radius: 0;
    text-align: center;
}

.search-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.search-container p::before {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    margin: 12px auto;
}

.search-container p {
    font-style: italic;
    color: #64748b;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-highlight {
    color: #0284c7;
    font-weight: 600;
    font-style: normal;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.search-form input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 42px;
}

.search-form input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.2), 0 2px 8px rgba(0,0,0,0.08);
    outline: none;
}

.search-form button[type="submit"] {
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: none;
    transition: filter 0.15s;
}

.search-form button[type="submit"]:hover { filter: brightness(1.08); }

.search-form .btn-outline { white-space: nowrap; }

.insight-image-empty { background: #eee; }
.read-more-link { font-weight: 500; font-size: 0.9rem; }
.pagination-info { margin: 0 1rem; }

.card-author {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
    margin-bottom: 0;
}

.card-author strong { color: #374151; font-weight: 600; }

.insight-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.insight-sidebar {
    width: 210px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .insight-sidebar { position: sticky; top: 80px; }
}

.insight-main { flex: 1; min-width: 0; max-width: 1450px; }

.sort-panel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.sort-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.sort-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    display: inline-block;
}

.sort-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}

.sort-section-toggle:hover { background: #f0f9ff; }
.sort-section-toggle.has-active { color: var(--accent, #3b82f6); }
.sort-section-toggle span:first-child { flex: 1; }

.sort-chevron {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s;
    display: inline-block;
    transform: rotate(90deg);
}

.sort-section-toggle.is-collapsed .sort-chevron { transform: rotate(0deg); }

[dir="rtl"] .sort-section-toggle.is-collapsed .sort-chevron { transform: rotate(180deg); }

.sort-count-badge {
    background: var(--accent, #3b82f6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.sort-section-content {
    display: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.sort-section-content.is-open { display: block; }

.sort-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f1f5f9;
}

.sort-option-label:last-child { border-bottom: none; }
.sort-option-label:hover { background: #f0f9ff; }
.sort-option-label input { accent-color: var(--accent, #3b82f6); cursor: pointer; }

.sort-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    justify-content: center;
}

.sort-actions .btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: none;
    transition: filter 0.15s;
}

.sort-actions .btn:hover { filter: brightness(1.08); }

.sort-actions .btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    filter: none;
}

.sort-actions .btn-outline:hover {
    background: #f8fafc;
    filter: none;
}

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.82rem; }

.sort-panel-chevron { display: none; }

@media (max-width: 768px) {
    .insight-layout { flex-direction: column; align-items: stretch; }
    .insight-main { width: 100%; }

    .insight-sidebar {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .sort-panel { border-left: none; border-right: none; border-radius: 0; }

    .sort-panel-title { cursor: pointer; user-select: none; }

    .sort-panel-chevron {
        display: inline-block;
        transform: rotate(0deg);
    }

    .sort-panel.is-open .sort-panel-chevron { transform: rotate(90deg); }

    .sort-sections, .sort-actions { display: none; }
    .sort-panel.is-open .sort-sections { display: flex; align-items: flex-start; }
    .sort-panel.is-open .sort-actions  { display: flex; }

    .sort-section {
        flex: 1;
        border-inline-end: 1px solid var(--border-color, #e2e8f0);
    }

    .sort-section:last-child { border-inline-end: none; }
    .sort-section-toggle { border-bottom: none; border-top: 1px solid var(--border-color, #e2e8f0); }
    .sort-section-content { border-bottom: none; }

    
    [dir="rtl"] .sort-section-toggle.is-collapsed .sort-chevron { transform: rotate(180deg); }
    [dir="rtl"] .sort-panel-chevron                             { transform: rotate(180deg); }
    [dir="rtl"] .sort-panel.is-open .sort-panel-chevron         { transform: rotate(90deg); }
}

@media (max-width: 480px) {
    .insight-sidebar { width: calc(100% + 1.5rem); margin-left: -0.75rem; margin-right: -0.75rem; }
}

.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    background: var(--card-bg, #fff);
    margin-top: 2rem;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info { flex: 1; }
.author-label { font-size: 0.78rem; color: var(--text-secondary, #64748b); margin-bottom: 0.15rem; }
.author-name  { font-weight: 700; font-size: 1rem; color: var(--text-primary, #1e293b); }
.author-bio   { font-size: 0.88rem; color: var(--text-secondary, #64748b); margin-top: 0.25rem; line-height: 1.5; }
.author-bio-line { font-size: 0.85rem; color: var(--text-secondary, #64748b); margin-top: 0.3rem; font-style: italic; }

.coming-soon-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
    box-sizing: border-box;
    grid-column: 1 / -1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    gap: 0.85rem;
}
.coming-soon-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}
.coming-soon-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.025em;
}
.coming-soon-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: linear-gradient(135deg, #06b6d4, var(--primary-color));
    margin: 7px auto 0;
    border-radius: 2px;
}
.coming-soon-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0;
    line-height: 1.7;
}
.cs-subscribe-form {
    width: 100%;
    max-width: 380px;
    margin-top: 0.25rem;
}
.cs-form-row { display: flex; flex-direction: column; gap: 0.6rem; }
.cs-email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.cs-email-input::placeholder { color: #94a3b8; }
.cs-email-input:focus { border-color: var(--primary-color); }
.cs-subscribe-form .btn { width: 100%; display: block; box-sizing: border-box; }
.cs-subscribe-form .btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.cs-no-spam { margin: 0.45rem 0 0; font-size: 0.78rem; color: #94a3b8; }
.cs-msg { margin: 0.3rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
@media (max-width: 600px) {
    .coming-soon-state { padding: 3rem 1.5rem; }
    .coming-soon-title { font-size: 1.35rem; }
}

[dir="rtl"] .pagination-prev::before { content: '→ '; }
[dir="rtl"] .pagination-next::after  { content: ' ←'; }

.insight-main .insight-grid {
    gap: 24px;
    align-items: stretch;
}

.insight-main .insight-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.insight-main .insight-card:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
    border-color: #bae6fd;
    transform: translateY(-4px);
}

.insight-main .insight-card > a {
    display: block;
    line-height: 0;
    overflow: hidden;
}

.insight-main .insight-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
    opacity: 0.9;
    transition: opacity 0.25s ease;
    display: block;
}

.insight-main .insight-card:hover .insight-image { opacity: 1; }

.insight-main .insight-image-empty {
    height: 200px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-main .insight-content {
    padding: 16px 20px;
    background: #fff;
    display: block;
}

.insight-main .insight-meta {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0;
}

.insight-main .category-tag {
    font-size: 11px;
    color: #94a3b8;
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.insight-main .insight-title {
    font-size: 17px;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.insight-main .insight-title a { color: #0284c7; }
.insight-main .insight-title a:hover { color: #06b6d4; }

.insight-main .insight-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.insight-main .read-more-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.insight-main .read-more-link:hover { color: #06b6d4; }

@media (max-width: 1100px) and (min-width: 769px) {
    .insight-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
    .insight-grid { grid-template-columns: 1fr; }
}
