.custom-content-area {        
    border-top: 1px solid #8d8d8d40;
    border-bottom: 1px solid #8d8d8d40;
    padding: 80px 0;
}

.cca-fourth {              
    border-bottom: none;
    padding-bottom: 0;
}

#after-hero .card-grids .post-preview {
    border-radius: 2px;
    padding: 0 40px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    color: white;
}

#after-hero .card-grids .post-preview a {
    color: white;
    text-decoration: none
}

#after-hero .card-grids .post-preview a:hover {
    text-decoration: underline 1px
}

#after-hero .card-grids .post-preview .post-title {
    margin: 0;
    font-size: calc(var(--h3-font-size-desktop) / 1.364);
    line-height: 1.1;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3)
}

#after-hero .card-grids .post-preview .post-meta {
    font-size: 0.83rem
}

#after-hero .card-grids {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
    height: 1200px; /* (255px per row × 4) + (20px gap × 3) */
}

/* FIRST GROUP (rows 1-2) */
/* Center - Post 1 */
#after-hero .card-grids .post-preview:nth-child(1) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

#after-hero .card-grids .post-preview:nth-child(1) .post-title {    
    font-size: calc(var(--h3-font-size-desktop) / 1.07);
}

#after-hero .card-grids .post-preview:nth-child(1) .post-meta {
    font-size: 0.88rem;
}

/* Left - Posts 2, 3 */
#after-hero .card-grids .post-preview:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

#after-hero .card-grids .post-preview:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

/* Right - Posts 4, 5 */
#after-hero .card-grids .post-preview:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

#after-hero .card-grids .post-preview:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* SECOND GROUP (rows 3-4) */
/* Center - Post 6 */
#after-hero .card-grids .post-preview:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 3 / 5;
}

#after-hero .card-grids .post-preview:nth-child(6) .post-title {    
    font-size: 28px;
}

#after-hero .card-grids .post-preview:nth-child(6) .post-meta {
    font-size: 15px;
}

/* Left - Posts 7, 8 */
#after-hero .card-grids .post-preview:nth-child(7) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

#after-hero .card-grids .post-preview:nth-child(8) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

/* Right - Posts 9, 10 */
#after-hero .card-grids .post-preview:nth-child(9) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

#after-hero .card-grids .post-preview:nth-child(10) {
    grid-column: 3 / 4;
    grid-row: 4 / 5;
}

#home-hero .post-card .post-content h3 {
    margin: 10px 0;
    line-height: 1.2;
}

#home-hero .post-cards .post-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center
}

#home-hero .post-card a {
    color: inherit;
    text-decoration: none
}

#home-hero .post-card a:hover {
    color: var(--link-color);
    text-decoration: underline 1px
}

#home-hero .post-cards .featured-image {
    height: 570px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px
}

#home-hero .post-cards .post-content {
    background-color: var(--site-background-color);
    width: 70%;
    padding: 40px 40px 10px;
    position: relative;
    z-index: 2;
    margin: -75px auto 0;
    text-align: center;
    border-radius: 10px;
}

#news .post-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

#news .preview-post {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#news .mag .post-meta {
    font-size: 0.76rem;
    opacity: 0.7;
    line-height: 1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

#news .mag .post-title {
    font-size: calc(var(--h3-font-size-desktop) / 1.36);
    line-height: 1.2;
    font-weight: 500;
    margin: 8px 0 4px;
}

#news .mag a {
    color: inherit;
    text-decoration: none
}

#news .mag a:hover {
    color: var(--link-color);
}

#news .mag .featured-image {
    height: 160px;
    border-radius: 4px
}

#news .mag .post-content {
    display: flex;
    flex-direction: column;
    flex: 1.2;
}

#news .mag .post-excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#panel .aurora-edit-section {
    position: absolute;
    top: -45px;
}

#panel .bold {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    position: relative;
}

#panel .featured-image {
    background-size: cover;
    background-position: center;
    height: 300px;
    flex: 1;
}
#panel .featured-post {
    display: flex;
    gap: 10px;
    background-color: #fff;
    box-shadow: 0 3px 15px #00000009
}
#panel  .featured-post a {
    text-decoration: none;
}
#panel .post-content * {
    margin: 0 
}
#panel .post-title {
    font-size: calc(var(--h3-font-size-desktop) / 1.4);
    line-height: 1.2;
}
#panel .post-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    justify-content: center;
    flex: 1
}

#panel .post-meta {
    font-size: 0.83rem;
    display: flex;
    flex-wrap: wrap;
    gap: 13px
}

#panel .excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
}

#panel .read-more {
    font-size: 0.83rem;
}

#panel a.read-more:hover {
    text-decoration: underline 1px
}

#swap {
    display: flex;
    gap: 80px
}

#swap .swap-1 {
    flex: 1
}

#swap .swap-2 {
    flex: 2.5
}

.swap-2 .compress {
    display: flex;
    flex-direction: column
}

.compress .featured-post {
    display: flex;
}

.compress .featured-post:nth-child(2n) {
    flex-direction: row-reverse
}

.compress .featured-post a {
    text-decoration: none;
    color: inherit
}

.compress .featured-post a:hover {
    color: var(--link-hover-color)
}

.compress p {
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 90%
}

.compress h3 {
    margin: 0 auto;
    font-size: calc(var(--h3-font-size-desktop) / 1.15);
    line-height: 1.1;
    max-width: 90%
}

.post-content a:hover > h3 {
    color: var(--link-hover-color)
}

.compress .post-meta {
    gap: 15px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.compress .featured-image {
    flex: 1;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
}

.compress .post-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;    
    align-items: center;
    justify-content: center;
    flex: 1;
    aspect-ratio: 1;
}

.compress .post-content a:hover {
    text-decoration: underline 1px;
}

.compress .post-author::before, .compress .post-date::before {        
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: relative;
    top: -2px;
    margin-right: 3px;
    display: inline-block;
    font-size: 70%;
    color: inherit
}

.compress .post-author::before {
    content: "\f007";
}

.compress .post-date::before {
    content: "\f133";
}

.compress .read-more {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    border: solid 1px;
    font-size: 0.8rem;
    margin-top: 10px
}

.compress a.read-more:hover {
    text-decoration: none
}

.plain-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

.plain-post .post-title {
    margin: 0;
    font-size: calc(var(--h3-font-size-desktop) / 1.25);
    line-height: 1.2
}

.plain-post a {
    color: inherit;
    text-decoration: none
}

.plain-post a:hover {
    color: var(--link-color);
    text-decoration: underline 1px
}

.plain-post .post-meta {
    font-size: 0.83rem;
    opacity: 0.8
}

.plain-post .post-excerpt {
    margin: 6px 0 10px;
    line-height: 1.4;
}

.poster-section .poster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.card-poster {
    height: 400px;
    padding: 15px;
    border-radius: 10px;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-poster .post-category {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 3px 5px;
    background-color: #0000009f;
}

.card-poster .metas {
    opacity: 0.85;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
    align-items: center
}

.card-poster .post-details {        
    display: flex;
    flex-direction: column;
    gap: 10px
}

.card-poster a {
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.card-poster a:hover {
    text-decoration: underline 0.5px
}

.card-poster h3 {
    margin: 0;
    font-size: calc(var(--h3-font-size-desktop) / 1.25);
}

.card-poster .post-author::before,.card-poster .post-date::before {        
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: relative;
    top: -2px;
    margin-right: 3px;
    display: inline-block;
    font-size: 70%;
    color: inherit
}

.card-poster .post-author::before {
    content: "\f007";
}


.card-poster .post-date::before {
    content: "\f133";
}

@media (max-width: 768px) {
    .custom-content-area {        
        padding: 40px 0;
    }

    .cca-fourth {
        padding-bottom: 0;
    }

    #home-hero .post-cards .post-content {
        width: 85%
    }

    #after-hero .card-grids {
        height: 950px
    }

    #after-hero .card-grids .post-preview {
        padding: 10px
    }

    #after-hero .card-grids .post-preview .post-title, #news .mag .post-title, #panel .post-title {
        font-size: calc(var(--h3-font-size-tablet) / 1.25);
    }

    #after-hero .card-grids .post-preview:nth-child(1) .post-title,
    #after-hero .card-grids .post-preview:nth-child(6) .post-title {
        font-size: calc(var(--h3-font-size-tablet) / 1.05);
    }

    #news .post-list {
        grid-template-columns: repeat(3, 1fr);
    }

    #news .post-list, #panel .bold {
        gap: 30px
    }

    #panel .bold {
        grid-template-columns: 1fr;
    }

    #swap {
        flex-direction: column-reverse;
    }

    .compress h3, .compress p {
        max-width: 75%
    }

    .compress h3 {
        font-size: var(--h3-font-size-tablet);
    }

    .plain-posts, .poster-section .poster {
        grid-template-columns: repeat(2,1fr);
    }

    .card-poster h3 {
        font-size: calc(var(--h3-font-size-tablet) / 1.1);
    }
}

@media (max-width: 480px) {
    .custom-content-area {        
        padding: 20px 0;
    }
    .cca-fourth {
        padding-bottom: 0;
    }

    #home-hero .post-cards .featured-image {
        height: 400px;
    }

    #home-hero .post-card .post-content h3 {
        font-size: 18px
    }

    #home-hero .post-cards .post-content {
        width: 85%;
        padding: 25px 10px 10px
    }

    #after-hero .card-grids {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 20px;
    }

    #after-hero .card-grids .post-preview:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
}

/* Reset featured typography */
    #after-hero .card-grids .post-preview .post-title,
    #after-hero .card-grids .post-preview:nth-child(1) .post-title,
    #after-hero .card-grids .post-preview:nth-child(6) .post-title {
        font-size: calc(var(--h3-font-size-mobile) / 1.1);
    }

    #after-hero .card-grids .post-preview .post-meta {
        font-size: 0.88rem;
    }

    #after-hero .card {
        height: 350px
    }

    #news .post-list, #panel .bold, .plain-posts, .poster-section .poster {
        grid-template-columns: 1fr
    }

    #news .mag .post-title {
        font-size: calc(var(--h3-font-size-mobile) / 1.1);
    }

    #swap {
        gap: 20px
    }

    #panel .featured-post, .compress .featured-post, .compress .featured-post:nth-child(2n) {
        flex-direction: column
    }

    #panel .featured-image {
        flex: initial;
        height: 180px
    }

    #panel .post-title {
        font-size: calc(var(--h3-font-size-mobile) / 1.1);
    }

    #news .mag .featured-image {
        height: 200px;
    }

    .compress .featured-image {
        aspect-ratio: unset;
        flex: initial;
        height: 200px
    }

    .plain-posts {
        padding: 20px
    }

    .plain-post .post-title {
        font-size: calc(var(--h3-font-size-mobile) / 1.1);
    }

    .card-poster {
        height: 350px
    }

    .compress .post-content {
        aspect-ratio: revert;
        flex: initial;
        padding: 20px 10px
    }

    .compress h3, .compress p {
        max-width: 100%
    }

    .card-poster h3 {
        font-size: calc(var(--h3-font-size-mobile) / 1.1);
    }
}