/* Post Filter Container - Match Original Layout */
.post-filter-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    text-align: left;
    font-size: 11.2px;
    color: #fff;
    font-family: Montserrat;
}

/* Category Filters - Match Original Style */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.filter-btn {
    border-radius: 100px;
    background-color: rgba(129, 117, 219, 0.35);
    border: 1px solid #8175db;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 11px 21px;
    position: relative;
    letter-spacing: 1px;
    line-height: 14.56px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #8175db;
    color: white;
}

/* Posts Grid - First row 2 columns, then 3 columns */
.posts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
}

/* First row - 2 columns (big hero + normal) */
.posts-grid .post-card:nth-child(1) {
    grid-column: 1;
    width: 100%;
    max-width: none;
}

.posts-grid .post-card:nth-child(2) {
    grid-column: 2;
}

/* From 3rd post onwards - 3 columns */
.posts-grid .post-card:nth-child(n+3) {
    grid-column: span 1;
}

/* Update grid for 3 columns from 3rd post */
.posts-grid:has(.post-card:nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
}

.posts-grid:has(.post-card:nth-child(3)) .post-card:nth-child(1) {
    grid-column: 1 / 3;
}

.posts-grid:has(.post-card:nth-child(3)) .post-card:nth-child(2) {
    grid-column: 3;
}

/* Fallback for browsers without :has() support */
.posts-grid.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.posts-grid.three-columns .post-card:nth-child(1) {
    grid-column: 1 / 3;
}

.posts-grid.three-columns .post-card:nth-child(2) {
    grid-column: 3;
}

/* Post Card - Match Original Background Style */
.post-card {
    position: relative;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0px 10px;
    box-sizing: border-box;
    background-color: #fff;
    min-height: 400px;
    height: auto;
    width: 100%;
}

/* Hero Post Card - Special styling for first post */
.post-card.hero-post {
    padding: 0px 30px;
    position: relative;
    min-height: 491px;
    height: 491px;
    overflow: hidden;
    border-radius: 20px;
}

/* Hero Background Image */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('Background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    border-radius: 20px;
}

/* Gradient Overlay */
.gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), #000);
    opacity: 0.85;
    z-index: 2;
    border-radius: 20px;
}

/* Content Layer - On top of everything */
.container3 {
    position: relative;
    z-index: 3;
    color: #fff;
}

/* Post Image - Better responsive design */
.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8175db, #ff0f8a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

.post-thumbnail-placeholder::before {
    content: '📄';
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.post-thumbnail-placeholder span {
    font-size: 14px;
    opacity: 0.9;
}

/* Post Content - Match Original Structure */
.post-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    gap: 20px;
    font-size: 27.23px;
    color: #272727;
    font-family: Inter;
}

.post-card.hero-post .post-content {
    height: 468px;
    padding: 27px 0px 30px;
    gap: 260px;
    font-size: 45.38px;
    color: #fff;
}

/* Post Categories - Match Original Overlay Border */
.post-categories {
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}

.post-category {
    align-self: stretch;
    border-radius: 100px;
    background-color: rgba(129, 117, 219, 0.35);
    border: 1px solid #8175db;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 11px 21px;
    position: relative;
    letter-spacing: 1px;
    line-height: 14.56px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11.2px;
}

/* Post Title - Match Original Typography */
.post-title {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.chatgpt-copy-editing-container {
    align-self: stretch;
    position: relative;
    letter-spacing: -1px;
    line-height: 43.2px;
    font-weight: 800;
}

.chatgpt-copy-editing {
    margin: 0;
}

.post-card:not(.hero-post) .chatgpt-copy-editing-container {
    letter-spacing: -0.55px;
    line-height: 25.92px;
    font-size: 27.23px;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

/* Read More Button - Match Original Link Style */
.post-read-more {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    font-size: 12.8px;
    color: #fff;
}

.read-more-btn {
    border-radius: 100px;
    background-color: #ff0f8a;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 30px;
    text-decoration: none;
    color: #fff;
}

.container6 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.container7 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.read {
    position: relative;
    letter-spacing: 1px;
    line-height: 16.64px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 16.64px;
}

.container-icon {
    align-self: stretch;
    width: 17px;
    max-height: 100%;
}

/* Additional Original Classes */
.gradient {
    width: 100%;
    position: absolute;
    margin: 0 !important;
    top: 0px;
    left: 0px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), #000);
    height: 490.3px;
    opacity: 0.85;
}

.container3 {
    align-self: stretch;
    height: 468px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 27px 0px 30px;
    box-sizing: border-box;
    gap: 220px;
}

.overlayborder {
    position: relative;
    border-radius: 100px;
    background-color: var(--color-mediumpurple-200);
    border: 1px solid var(--color-mediumpurple-100);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 11px 21px;
    text-align: left;
    font-size: 11.2px;
    color: var(--color-white);
    font-family: var(--font-montserrat);
}

.copywriting {
    position: relative;
    letter-spacing: 1px;
    line-height: 14.56px;
    text-transform: uppercase;
    font-weight: 600;
}

body {
    margin: 0;
    line-height: normal;
}

:root {
    /* Color */
    --color-mediumpurple-100: #8175db;
    --color-mediumpurple-200: rgba(129, 117, 219, 0.35);
    --color-white: #fff;

    /* Font */
    --font-montserrat: Montserrat, sans-serif;
}

.container4 {
    width: 547.4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    font-size: 45.38px;
    font-family: Inter;
}

.heading-1 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.chatgpt-copy-editing-container {
    align-self: stretch;
    position: relative;
    letter-spacing: -1px;
    line-height: 43.2px;
    font-weight: 800;
}

.chatgpt-copy-editing {
    margin: 0;
}

.container5 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    font-size: 12.8px;
}

.link {
    border-radius: 100px;
    background-color: #ff0f8a;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 30px;
}

.container8 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 0px 61.8px;
    gap: 20px;
}

.background3 {
    align-self: stretch;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    background-image: url('Background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    min-height: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Post Featured Image */
.post-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.post-featured-image .post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.post-featured-image .post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8175db, #ff0f8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
}

/* Category overlay on top of image */
.container9 {
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.overlayborder2 {
    position: relative;
    border-radius: 100px;
    background-color: var(--color-mediumpurple-200);
    border: 1px solid var(--color-mediumpurple-100);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 11px 21px;
    text-align: left;
    font-size: 11.2px;
    color: var(--color-white);
    font-family: var(--font-montserrat);
}

.container10 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    gap: 20px;
    font-size: 27.23px;
    color: #272727;
    font-family: Inter;
}

.viral-hook-templates-container {
    align-self: stretch;
    position: relative;
    letter-spacing: -0.55px;
    line-height: 25.92px;
    font-weight: 800;
}

.container11 {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    font-size: 12.8px;
    color: #fff;
}

/* Load More Button Wrapper - Centers the button */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px 0;
}

/* Load More Button - Centered, not full width */
.container50 {
    width: auto;
    height: auto;
    padding-top: 9.25px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background: #FF0F8A;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.container50:hover {
    background: #e00e7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 15, 138, 0.3);
}

.container51 {
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    display: flex;
}

.container52 {
    height: 18.72px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    display: inline-flex;
}

.load-more {
    max-height: 18.72px;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 14.40px;
    font-family: Inter;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 18.72px;
    letter-spacing: 1px;
    word-wrap: break-word;
}

.container53 {
    align-self: stretch;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
}

.container54 {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    display: inline-flex;
}

.symbol {
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 14.40px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    text-transform: uppercase;
    line-height: 14.40px;
    letter-spacing: 1px;
    word-wrap: break-word;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    margin: 20px 0;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0f8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Posts Message */
.no-posts {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin: 40px 0;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .posts-grid:has(.post-card:nth-child(3)) {
        grid-template-columns: 1fr 1fr;
    }
    
    .posts-grid .post-card:nth-child(1) {
        grid-column: 1 / -1;
    }
    
    .posts-grid .post-card:nth-child(2) {
        grid-column: 1;
    }
    
    .posts-grid .post-card:nth-child(n+3) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .post-filter-container {
        padding: 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .posts-grid .post-card:nth-child(1),
    .posts-grid .post-card:nth-child(2),
    .posts-grid .post-card:nth-child(n+3) {
        grid-column: 1;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .post-card {
        min-height: 350px;
    }
    
    .post-card.hero-post {
        min-height: 400px;
        height: 400px;
    }
    
    .background3 {
        min-height: 150px;
        height: 150px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .post-filter-container {
        padding: 10px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .read-more-btn,
    .load-more-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Animation for new posts */
.post-card.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Filter animation */
.post-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.post-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}




/* ===== Brand Palette Overrides (append after current CSS) ===== */
:root {
    --brand-deep-red: #77181f;
    --brand-gold: #b79f61;
}

/* Base text & card backgrounds */
.post-filter-container,
.post-filter-container p,
.post-filter-container .copywriting,
.post-filter-container .chatgpt-copy-editing {
    color: #fff;
}

.post-card {
    background: #0e0e0e;
}

/* dark card so white text stays readable */
.post-content,
.container10 {
    color: #fff;
}

/* normal cards body text */

/* Headings */
.post-filter-container h1,
.post-filter-container h2,
.post-filter-container h3,
.post-filter-container h4,
.post-filter-container h5,
.post-filter-container h6,
.heading-1,
.heading-1 .chatgpt-copy-editing-container,
.viral-hook-templates-container,
.post-title {
    color: var(--brand-gold);
}

/* Category chips (filters at top) */
.category-filters .filter-btn {
    background-color: var(--brand-deep-red);
    border: 1px solid var(--brand-deep-red);
    color: #fff;
}

.category-filters .filter-btn:hover,
.category-filters .filter-btn.active {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
}

/* Category chips on images */
.overlayborder,
.overlayborder2 {
    background-color: rgba(183, 159, 97, 0.25);
    /* gold tint */
    border: 1px solid var(--brand-gold);
    color: #fff;
}

/* “Read” pill + any CTA buttons in cards */
.link,
.read-more-btn,
.post-card .read {
    background-color: var(--brand-deep-red);
    color: #fff;
}

.link:hover,
.read-more-btn:hover,
.post-card .read:hover {
    background-color: var(--brand-gold);
    color: #fff;
}

/* Load More button */
.load-more-wrapper .container50 {
    background: var(--brand-deep-red);
}

.load-more-wrapper .container50:hover {
    background: var(--brand-gold);
    box-shadow: 0 4px 12px rgba(183, 159, 97, 0.3);
}

/* Spinner accent */
.spinner {
    border-top-color: var(--brand-gold);
}

/* Placeholders & gradients (keep text legible) */
.post-thumbnail-placeholder,
.post-featured-image .post-thumbnail-placeholder {
    background: linear-gradient(135deg, var(--brand-deep-red), var(--brand-gold));
}

.gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), #000);
    /* keep strong contrast on hero */
}

/* Small tidy-ups to beat earlier hard-coded colors */
.post-title a {
    color: var(--brand-gold);
}

.post-title a:hover {
    opacity: 0.9;
}

/* Ensure grids still look clean on dark cards */
.background3 {
    background-image: none;
    background: #151515;
}