/* = Updated Post Card Styles (Orange Frame Design)
-------------------------------------------------------------- */
.posts-grid, .wd-grid-container {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.wd-post-card {
    position: relative;
    width: calc(33.333% - 14px);
    overflow: hidden;
    background-color: #ffae00; /* Theme Orange Background */
    padding: 10px; /* Frame thickness */
    border-radius: 20px; /* Rounded corners for the frame */
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .wd-post-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .wd-post-card {
        width: 100%;
    }
}

.wd-post-card .wd-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.wd-post-card .wd-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    line-height: 0;
    border-radius: 15px;
}

.wd-post-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 15px;
}

.blog .wd-grid-container img,
.blog .wd-grid-container .wd-post-card img,
.wd-grid-container .wd-post-card img {
    max-height: none !important;
}

.wd-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e9e9e9;
}

/* Hover Effect: Zoom Image */
.wd-post-card:hover img {
    transform: scale(1.1);
}

/* Overlay / Button Wrapper */
.wd-post-card .wd-overlay {
    position: absolute;
    top: 20px; /* Position at top like in screenshot */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    pointer-events: none; 
    z-index: 2;
}

/* Button style for the title */
.wd-post-card .wd-title-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #ffae00; /* Match frame color */
    color: #362b21; /* Dark text */
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700; /* Bold text */
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px; /* Slightly rounded button */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: auto;
    /* Always visible to match screenshot */
    opacity: 1; 
    transform: translateY(0); 
    border: 1px solid rgba(0,0,0,0.05);
}

/* Optional: Slight lift on hover for the button */
.wd-post-card:hover .wd-title-btn {
    background-color: #ffc133; /* Lighter orange on hover */
}

/* Force 3 columns for wd-grid-container everywhere */
.wd-grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
}

.wd-grid-container .wd-post-card {
    width: calc(33.333% - 14px) !important;
    flex: 0 0 calc(33.333% - 14px) !important;
}

@media (max-width: 900px) {
    .wd-grid-container .wd-post-card {
        width: calc(50% - 10px) !important;
        flex: 0 0 calc(50% - 10px) !important;
    }
}

@media (max-width: 560px) {
    .wd-grid-container .wd-post-card {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Override parent theme's .blog #sitemain grid */
.blog #sitemain,
.blog #sitemain.posts-grid,
#sitemain.posts-grid {
    display: block !important;
    grid-template-columns: none !important;
}

.form-allowed-tags {
    display: none;
}

.single .single-post,
.single .entry-header,
.single .entry-content {
    max-width: 100%;
    min-width: 0;
}

.single .entry-title,
.single .entry-content {
    overflow-wrap: anywhere;
}

.single .entry-content iframe,
.single .entry-content table,
.single .entry-content pre {
    max-width: 100%;
}

.wd-project-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 56px 0 24px;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 16px;
    background: #171717;
    color: rgba(255, 255, 255, 0.76);
}

.wd-project-cta,
.wd-project-cta * {
    box-sizing: border-box;
}

.wd-project-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: none;
}

.wd-project-cta p {
    max-width: 560px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
}

.wd-project-cta__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 4px;
    background: #ffae00;
    color: #1a1509;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.wd-project-cta__button:hover {
    background: #ffbe2e;
    color: #1a1509;
}

@media screen and (max-width: 767px) {
    .wd-project-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .wd-project-cta__button {
        width: 100%;
    }
}
ul.errormsg {
    background: #ffe4e4;
}
ul.errormsg li {
    padding: 5px;
}
.entry-content table,
.comment-body table {
    border-collapse: collapse;
    margin: 10px 0;
}
.entry-content table td,
.entry-content table th,
.comment-body table td,
.comment-body table th {
    padding: 10px 5px;
    text-align: left;
}
.entry-content table th,
.comment-body table th {
    color: #676767;
    font: normal 18px Oswald;
    border-bottom: 1px #888 solid;
}
.entry-content table td,
.comment-body table td {
    border-bottom: 1px #ccc solid;
}
.fvch-codeblock:hover .comment-form-url {
    display: block !important;
}
footer.entry-meta {
    clear: left;
}

.contact-column {
    flex-basis: calc(30% - 16px);
}

.contact-map {
    flex-basis: calc(70% - 16px);
}

.n2-section-smartslider {
    margin-bottom: 30px;
}

/* ================================================
   NETFLIX STYLE GRID - Posts Archive
   ================================================ */

/* Netflix section dark background */
.netflix-posts-section {
    background-color: #fff;
    padding: 0;
}

.netflix-posts-section .content-area {
    background: transparent;
    max-width: 1400px;
    width: 100%;
    padding: 40px 20px;
}

.wd-archive-header {
    max-width: 760px;
    margin-bottom: 32px;
}

.wd-archive-header__eyebrow {
    margin: 0 0 10px;
    color: #b97800;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wd-archive-header h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
    text-transform: none;
}

.wd-archive-header__lead {
    max-width: 680px;
    margin: 16px 0 0;
    color: #625d55;
    font-size: 1rem;
    line-height: 1.7;
}

.wd-results-status {
    margin: 16px 0 0;
    color: #625d55;
    font-size: 0.9rem;
    font-weight: 600;
}

.netflix-posts-section .middle-align {
    max-width: 100%;
}

/* Grid container - disabled grid for #sitemain, let .wd-grid-container handle layout */
#sitemain.posts-grid {
    display: block;
    padding: 20px 0;
}

.posts-category-shortcode {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 0;
}

/* Netflix Card Base */
.netflix-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        z-index 0s 0.3s,
        box-shadow 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.netflix-card article {
    height: 100%;
}

.netflix-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image container */
.netflix-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #222;
}

.netflix-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.netflix-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

/* Overlay - hidden by default */
.netflix-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Category badge */
.netflix-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: #fcb900;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* Title */
.netflix-card-title {
    margin: 0 0 10px 0;
    padding: 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

/* Meta info */
.netflix-card-meta {
    margin-bottom: 8px;
}

.netflix-card-date {
    color: #999;
    font-size: 11px;
}

/* Excerpt */
.netflix-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button */
.netflix-card-button {
    display: inline-block;
    padding: 8px 16px;
    background: #fcb900;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

/* ================================================
   NETFLIX HOVER EFFECTS - Desktop Only
   ================================================ */
@media (hover: hover) and (min-width: 768px) {
    .netflix-card:hover {
        transform: scale(1.15);
        z-index: 10;
        transition:
            transform 0.3s ease,
            z-index 0s,
            box-shadow 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }

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

    .netflix-card:hover .netflix-card-overlay {
        transform: translateY(0);
    }

    .netflix-card:hover .netflix-card-button:hover {
        background: #e5a800;
        transform: translateY(-2px);
    }
}

/* Static title visible always on desktop */
@media (min-width: 768px) {
    .netflix-card::after {
        content: attr(data-title);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 40px 15px 15px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9) 0%,
            transparent 100%
        );
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .netflix-card:hover::after {
        opacity: 0;
    }
}

/* ================================================
   NETFLIX MOBILE STYLES - Always visible info
   ================================================ */
@media screen and (max-width: 767px) {
    #sitemain.posts-grid,
    .posts-category-shortcode {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .netflix-card {
        border-radius: 4px;
    }

    .netflix-card-image {
        aspect-ratio: 4/3;
    }

    .netflix-card-overlay {
        position: relative;
        transform: none;
        opacity: 1;
        padding: 12px;
        background: #1a1a1a;
    }

    .netflix-card-category {
        font-size: 9px;
        padding: 3px 8px;
        margin-bottom: 6px;
    }

    .netflix-card-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .netflix-card-meta {
        margin-bottom: 6px;
    }

    .netflix-card-date {
        font-size: 10px;
    }

    .netflix-card-excerpt {
        display: none;
    }

    .netflix-card-button {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 11px;
    }
}

@media screen and (max-width: 479px) {
    #sitemain.posts-grid,
    .posts-category-shortcode {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .netflix-card-image {
        aspect-ratio: 16/9;
    }

    .netflix-card-title {
        font-size: 15px;
    }

    .netflix-card-excerpt {
        display: block;
        -webkit-line-clamp: 2;
    }
}

/* Pagination styling - Netflix theme */
.netflix-posts-section .nav-links {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

.netflix-posts-section .nav-links a,
.netflix-posts-section .nav-links .page-numbers {
    background: #333;
    color: #fff;
    border: none;
}

.netflix-posts-section .nav-links .current,
.netflix-posts-section .nav-links a:hover {
    background: #fcb900;
    color: #000;
}

/* Archive page header in grid */
.page-header {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.netflix-posts-section .page-header h1 {
    color: #fff;
}

/* ================================================
   END NETFLIX STYLE GRID
   ================================================ */

/* own styles */

.entry-title a {
    font-size: 25px;
}
.entry-summary p,
.entry-content {
    font-size: 14px;
}

.contact-column p {
    font-size: 16px;
}

.contact-column a {
    color: #fd7f20;
}

.contact-column a:hover {
    color: #666;
}

.sitenav {
    display: flex;
}

/* ================================================
   CATEGORY TABS STYLES - Netflix Theme
   ================================================ */

.category-tabs-wrapper {
    margin-bottom: 20px;
    padding: 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #eee;
}

.category-tab {
    margin: 0;
    padding: 0;
}

.category-tab-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab-btn:hover {
    background-color: rgba(252, 185, 0, 0.2);
    border-color: #fcb900;
    color: #fcb900;
}

.category-tab.active .category-tab-btn {
    background-color: #fcb900;
    border-color: #fcb900;
    color: #000;
}

.category-tab-btn:focus {
    outline: 2px solid #fcb900;
    outline-offset: 2px;
}

/* Loading state */
.posts-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
    min-height: 300px;
}

.posts-grid.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid #333;
    border-top: 3px solid #fcb900;
    border-radius: 50%;
    animation: netflix-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .posts-grid.loading::after {
        animation: none;
    }
}

/* No posts found */
.posts-category-shortcode .no-posts-found,
.posts-grid .no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive tabs */
@media screen and (max-width: 767px) {
    .wd-archive-header {
        margin-bottom: 24px;
    }

    .category-tabs-wrapper {
        position: relative;
    }

    .category-tabs-wrapper::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 12px;
        width: 34px;
        pointer-events: none;
        background: linear-gradient(to right, transparent, #fff);
        content: "";
    }

    .category-tabs {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        flex-shrink: 0;
    }

    .category-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media screen and (max-width: 479px) {
    .category-tab-btn {
        padding: 6px 14px;
        font-size: 11px;
        border-radius: 15px;
    }
}

/* ================================================
   END CATEGORY TABS STYLES
   ================================================ */
