/* ================================
   INSIGHTS PAGE
================================ */

/* Hero */
.insights-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.insights-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.15;
    margin: 16px 0;
}

.insights-hero p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* ================================
   FILTER TABS
================================ */
.insights-filter {
    padding: 20px 0 40px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.filter-tab.active {
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.5);
    color: #C5A059;
}

/* ================================
   FEATURED POST
================================ */
.insights-featured {
    padding: 0 0 60px;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.featured-post:hover {
    border-color: rgba(197, 160, 89, 0.25);
}

.featured-post-img {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

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

.featured-post:hover .featured-post-img img {
    transform: scale(1.03);
}

.featured-post-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.featured-post-content {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-category {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Category Color Coding */
.project-label {
    color: #C5A059;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.product-label {
    color: #7eb8f7;
    background: rgba(126, 184, 247, 0.1);
    border: 1px solid rgba(126, 184, 247, 0.2);
}

.update-label {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.post-category-tag {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.project-tag {
    background: rgba(197, 160, 89, 0.8);
    color: #000;
}

.post-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.featured-post-content h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #fff;
    line-height: 1.3;
}

.featured-post-content>p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #C5A059;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin-top: 8px;
    transition: gap 0.2s ease;
}

.post-read-more:hover {
    gap: 12px;
}

/* ================================
   POSTS GRID
================================ */
.insights-grid-section {
    padding: 0 0 80px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Post Card */
.post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateY(-4px);
}

.post-card-link {
    text-decoration: none;
    display: block;
}

.post-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

/* Text-only card image area */
.post-card-img-text {
    background: linear-gradient(135deg,
            rgba(197, 160, 89, 0.08),
            rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.text-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.text-card-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(197, 160, 89, 0.6);
    font-family: 'Montserrat', sans-serif;
}

.text-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
}

.product-inner .text-card-title {
    color: #7eb8f7;
}

.post-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    font-family: 'Montserrat', sans-serif;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Montserrat', sans-serif;
}

.post-card-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
}

.post-card-content p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

/* Hidden cards for filter */
.post-card.hidden {
    display: none;
}

/* Load More */
.load-more-wrap {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: #C5A059;
}

/* ================================
   NEWSLETTER STRIP
================================ */
.insights-newsletter {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.newsletter-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    background: rgba(197, 160, 89, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.12);
    border-radius: 20px;
    padding: 48px 56px;
}

.newsletter-strip-left h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #fff;
    margin: 10px 0 8px;
    line-height: 1.3;
}

.newsletter-strip-left p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-strip-right {
    flex-shrink: 0;
    min-width: 340px;
}

.newsletter-inline {
    display: flex;
    gap: 0;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-inline input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.newsletter-inline input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.newsletter-inline button {
    background: linear-gradient(135deg, #E1B32A, #C5A059);
    border: none;
    padding: 14px 20px;
    color: #0a0a0a;
    font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.newsletter-inline button:hover {
    opacity: 0.9;
}

.newsletter-note {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    text-align: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .featured-post-img {
        min-height: 260px;
    }

    .featured-post-content {
        padding: 28px 24px;
    }

    .newsletter-strip {
        flex-direction: column;
        padding: 36px 28px;
        text-align: center;
    }

    .newsletter-strip-right {
        min-width: unset;
        width: 100%;
    }
}

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

/* ================================
   POST / CASE STUDY PAGE
================================ */

/* Breadcrumb */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
    color: #C5A059;
}

.post-breadcrumb span {
    color: rgba(255, 255, 255, 0.15);
}

/* Post Hero */
.post-hero {
    padding: 120px 0 60px;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.post-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.post-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 24px;
}

/* Hero Image */
.post-hero-image {
    padding: 0 0 80px;
}

.hero-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    max-height: 560px;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Post Layout */
.post-body {
    padding: 0 0 100px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.post-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.8;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 16px;
}

.post-section p:last-child {
    margin-bottom: 0;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    padding-left: 4px;
}

.post-list li::before {
    content: '→';
    color: #C5A059;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Image Grid */
.post-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-img-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-img-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.post-img-item span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Full Width Image */
.post-full-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: block;
}

/* Stats Row */
.post-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.post-stat {
    background: rgba(255, 255, 255, 0.02);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #C5A059;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.tech-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.03em;
}

/* ================================
   SIDEBAR
================================ */
.post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.sidebar-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.sidebar-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.3);
}

.detail-value {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.status-live {
    color: #4ade80 !important;
}

/* Sidebar Buttons */
.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 12px;
    cursor: pointer;
}

.sidebar-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sidebar-btn-gold {
    background: linear-gradient(135deg, #E1B32A, #C5A059);
    border-color: transparent;
    color: #0a0a0a;
    font-weight: 600;
}

.sidebar-btn-gold:hover {
    opacity: 0.9;
    color: #0a0a0a;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: rgba(197, 160, 89, 0.3);
    color: #C5A059;
}

/* ================================
   MORE POSTS
================================ */
.more-posts {
    padding: 60px 0 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.more-posts-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.more-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: block;
}

.more-post-card:hover {
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateY(-3px);
}

.more-post-img {
    height: 160px;
    overflow: hidden;
}

.more-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.more-post-card:hover .more-post-img img {
    transform: scale(1.05);
}

.more-post-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.more-post-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #fff;
}

.more-post-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.04);
    border: 1px dashed rgba(197, 160, 89, 0.2);
    min-height: 220px;
}

.more-post-all:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.4);
}

.more-post-all-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #C5A059;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-image-grid {
        grid-template-columns: 1fr;
    }

    .more-posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .post-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .more-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}