/* ==========================================================================
   INSIGHTS ARCHIVE STYLES
   ========================================================================== */

/* Archive Header */
.archive-insights .archive-header {
    background: linear-gradient(135deg, #051f3a 0%, #0a2f4a 50%, #1a4870 100%);
    padding: 80px 0 60px;
    color: #ffffff;
    text-align: center;
}

.archive-insights .archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #ffffff !important;
}

.archive-insights .archive-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Filter */
.insights-filter {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 10;
}

.insights-filter__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.insights-filter__button {
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    background: #ffffff;
    color: #051f3a;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.insights-filter__button:hover {
    border-color: #4d94c4;
    color: #4d94c4;
    transform: translateY(-2px);
}

.insights-filter__button.active {
    background: linear-gradient(135deg, #051f3a 0%, #0a2f4a 100%);
    color: #ffffff;
    border-color: #051f3a;
}

/* Featured Post */
.insight-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.insight-featured__image {
    position: relative;
    overflow: hidden;
}

.insight-featured__image a {
    display: block;
    height: 100%;
}

.insight-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-featured:hover .insight-featured__img {
    transform: scale(1.05);
}

.insight-featured__content {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-featured__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #666666;
}

.insight-featured__category a {
    color: #4d94c4;
    font-weight: 600;
    text-decoration: none;
}

.insight-featured__category a:hover {
    color: #051f3a;
}

.insight-featured__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #051f3a !important;
}

.insight-featured__title a {
    color: #051f3a;
    text-decoration: none;
}

.insight-featured__title a:hover {
    color: #4d94c4;
}

.insight-featured__excerpt {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1.5rem;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.insights-grid--related {
    margin-bottom: 0;
}

/* Insight Card */
.insight-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.insight-card__image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.insight-card__image a {
    display: block;
    height: 100%;
}

.insight-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-card__img {
    transform: scale(1.1);
}

.insight-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 2;
}

.insight-card__category a {
    color: #051f3a;
    text-decoration: none;
}

.insight-card__category a:hover {
    color: #4d94c4;
}

.insight-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #666666;
}

.insight-card__date,
.insight-card__reading-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.insight-card__title a {
    color: #051f3a;
    text-decoration: none;
}

.insight-card__title a:hover {
    color: #4d94c4;
}

.insight-card__excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-card__link {
    margin-top: auto;
}

/* ==========================================================================
   SINGLE INSIGHT STYLES
   ========================================================================== */

/* Hero Section with Featured Image */
.insight-single__hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.insight-single__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.insight-single__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-single__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 31, 58, 0.85) 0%, rgba(10, 47, 74, 0.75) 100%);
    z-index: 1;
}

.insight-single__hero .container {
    position: relative;
    z-index: 2;
}

.insight-single__hero-content {
    max-width: 800px;
    padding: 4rem 0;
}

/* Header without Featured Image */
.insight-single__header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 3rem;
}

.insight-single__header-content {
    max-width: 800px;
}

.insight-single__category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.insight-single__category--dark {
    background: #051f3a;
    color: #ffffff;
}

.insight-single__category a {
    color: inherit;
    text-decoration: none;
}

.insight-single__title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.insight-single__title--dark {
    color: #051f3a !important;
}

.insight-single__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9375rem;
}

.insight-single__meta--dark {
    color: #666666;
}

.insight-single__meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-single__meta svg {
    opacity: 0.8;
}

/* Content Layout */
.insight-single__content {
    padding: 4rem 0;
}

.insight-single__layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.insight-single__main {
    max-width: 800px;
}

/* Post Body */
.insight-single__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333333;
}

.insight-single__body h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #051f3a;
}

.insight-single__body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    color: #051f3a;
}

.insight-single__body p {
    margin-bottom: 1.5rem;
}

.insight-single__body ul,
.insight-single__body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.insight-single__body li {
    margin-bottom: 0.5rem;
}

.insight-single__body a {
    color: #4d94c4;
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 148, 196, 0.3);
}

.insight-single__body a:hover {
    color: #051f3a;
    border-bottom-color: #051f3a;
}

.insight-single__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.insight-single__body blockquote {
    border-left: 4px solid #4d94c4;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666666;
}

/* Tags */
.insight-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.insight-single__tags-label {
    font-weight: 600;
    color: #051f3a;
}

.insight-single__tag {
    padding: 0.375rem 0.875rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.insight-single__tag:hover {
    background: #051f3a;
    color: #ffffff;
}

/* Sidebar */
.insight-single__sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.insight-single__sidebar .card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.insight-single__sidebar h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #051f3a;
}

/* Meta Card */
.insight-single__meta-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-single__meta-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.insight-single__meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.insight-single__meta-icon {
    flex-shrink: 0;
}

.insight-single__meta-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.insight-single__meta-item strong {
    font-size: 0.875rem;
    color: #051f3a;
}

.insight-single__meta-item span {
    font-size: 0.875rem;
    color: #666666;
}

.insight-single__meta-item a {
    color: #4d94c4;
    text-decoration: none;
}

.insight-single__meta-item a:hover {
    color: #051f3a;
}

/* Search Widget */
.insight-single__search-form {
    position: relative;
    display: flex;
}

.insight-single__search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.3s ease;
}

.insight-single__search-input:focus {
    outline: none;
    border-color: #4d94c4;
}

.insight-single__search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.insight-single__search-button:hover {
    color: #051f3a;
}

/* Categories & Recent Posts */
.insight-single__categories-list,
.insight-single__recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-single__categories-list li,
.insight-single__recent-list li {
    margin-bottom: 0.75rem;
}

.insight-single__categories-list li:last-child,
.insight-single__recent-list li:last-child {
    margin-bottom: 0;
}

.insight-single__categories-list a,
.insight-single__recent-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.insight-single__categories-list a:hover,
.insight-single__recent-list a:hover {
    background: #f8f9fa;
    color: #051f3a;
    transform: translateX(5px);
}

.insight-single__categories-list .count {
    font-size: 0.875rem;
    color: #999999;
}

.insight-single__recent-list .date {
    display: block;
    font-size: 0.8125rem;
    color: #999999;
    margin-top: 0.25rem;
}

/* Related Section */
.insight-single__related-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.insight-single__related-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #051f3a;
}

.insight-single__all-link {
    text-align: center;
    margin-top: 2.5rem;
}

/* Bottom CTA */
.insight-single__bottom-cta {
    margin-top: 0;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    /* Archive */
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insight-featured {
        grid-template-columns: 1fr;
    }
    
    .insight-featured__content {
        padding: 2rem;
    }
    
    /* Single */
    .insight-single__layout {
        grid-template-columns: 1fr;
    }
    
    .insight-single__sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Archive Header */
    .archive-insights .archive-header {
        padding: 60px 0 40px;
    }
    
    .archive-insights .archive-title {
        font-size: 2rem;
    }
    
    .archive-insights .archive-description {
        font-size: 1rem;
    }
    
    /* Filter */
    .insights-filter {
        position: static;
    }
    
    .insights-filter__buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    /* Archive Grid */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .insight-featured__title {
        font-size: 1.5rem;
    }
    
    .insight-featured__excerpt {
        font-size: 1rem;
    }
    
    /* Single */
    .insight-single__hero {
        min-height: 400px;
    }
    
    .insight-single__hero-content {
        padding: 3rem 0;
    }
    
    .insight-single__title {
        font-size: 2rem;
    }
    
    .insight-single__content {
        padding: 3rem 0;
    }
    
    .insight-single__body {
        font-size: 1rem;
    }
    
    .insight-single__body h2 {
        font-size: 1.5rem;
    }
    
    .insight-single__body h3 {
        font-size: 1.25rem;
    }
    
    .insight-single__related-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .insight-card__image {
        height: 180px;
    }
    
    .insight-single__meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}
