/* Single Post Styles */

.veks-single-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

.veks-single-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.veks-single-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.veks-single-meta {
    font-family: var(--veks-primary-font, sans-serif);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d59a57;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.veks-single-title {
    font-family: var(--veks-heading-font, serif);
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.veks-single-categories {
    margin-top: 20px;
}

.veks-single-categories a {
    display: inline-block;
    background-color: rgba(213, 154, 87, 0.2);
    color: #d59a57;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 5px;
    transition: background 0.3s, color 0.3s;
}

.veks-single-categories a:hover {
    background-color: #d59a57;
    color: #ffffff;
}

.veks-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.veks-single-content {
    font-family: var(--veks-primary-font, sans-serif);
    font-size: 18px;
    line-height: 1.8;
    color: #cccccc;
}

.veks-single-content p {
    margin-bottom: 25px;
}

.veks-single-content h2, 
.veks-single-content h3, 
.veks-single-content h4 {
    font-family: var(--veks-heading-font, serif);
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.veks-single-content h2 { font-size: 32px; }
.veks-single-content h3 { font-size: 26px; }

.veks-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .veks-single-content > .wp-block-image,
    .veks-single-content > figure:not(.gallery-item):not(.wp-block-gallery),
    .veks-single-content > p > img,
    .veks-single-content > img {
        float: left;
        max-width: 45%;
        margin: 10px 40px 30px 0;
    }
    
    .veks-single-content::after {
        content: "";
        display: table;
        clear: both;
    }
}

.veks-single-content blockquote {
    font-family: var(--veks-heading-font, serif);
    font-size: 24px;
    font-style: italic;
    line-height: 1.6;
    color: #d59a57;
    margin: 40px 0;
    padding-left: 20px;
    border-left: 4px solid #d59a57;
}

.veks-single-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.veks-single-tags a {
    display: inline-block;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
    transition: color 0.3s;
}
.veks-single-tags a:before { content: '#'; }
.veks-single-tags a:hover { color: #d59a57; }

.veks-single-share {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aaaaaa;
    font-size: 14px;
}

.veks-single-share a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}
.veks-single-share a:hover {
    background-color: #d59a57;
}

.veks-single-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 20px;
}

.veks-single-navigation div {
    flex: 1;
}

.veks-single-navigation .nav-next {
    text-align: right;
}

.veks-single-navigation a {
    text-decoration: none;
    color: #ffffff;
    font-family: var(--veks-heading-font, serif);
    font-size: 20px;
    line-height: 1.4;
    transition: color 0.3s;
}

.veks-single-navigation a span {
    font-family: var(--veks-primary-font, sans-serif);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaaaaa;
    display: block;
    margin-bottom: 5px;
}

.veks-single-navigation a:hover {
    color: #d59a57;
}

.veks-related-posts-section {
    background-color: #030303;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.veks-related-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.veks-related-title {
    font-family: var(--veks-heading-font, serif);
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
}

.veks-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.veks-related-card {
    background-color: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.veks-related-card:hover {
    transform: translateY(-10px);
}

.veks-related-thumb {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.veks-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.veks-related-card:hover .veks-related-thumb img {
    transform: scale(1.05);
}

.veks-related-content {
    padding: 25px;
}

.veks-related-date {
    font-family: var(--veks-primary-font, sans-serif);
    font-size: 12px;
    color: #d59a57;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.veks-related-content h4 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    font-family: var(--veks-heading-font, serif);
}

.veks-related-content h4 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.veks-related-content h4 a:hover {
    color: #d59a57;
}

/* Lists Styling */
.veks-single-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}
.veks-single-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}
.veks-single-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d59a57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.veks-single-content ol {
    list-style: none;
    counter-reset: veks-counter;
    padding-left: 0;
    margin-bottom: 25px;
}
.veks-single-content ol li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
    min-height: 32px;
}
.veks-single-content ol li::before {
    counter-increment: veks-counter;
    content: counter(veks-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -2px;
    font-family: var(--veks-heading-font, serif);
    font-size: 24px;
    font-weight: 700;
    color: #d59a57;
    line-height: 1;
}

/* Native WP Gallery Styling */
.veks-single-content .wp-block-gallery .wp-block-image a,
.veks-single-content .gallery .gallery-item a {
    display: block;
    width: 100%;
}
.veks-single-content .wp-block-gallery img,
.veks-single-content .gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 4/3;
    border-radius: 8px;
    margin: 0 !important;
    cursor: zoom-in;
    transition: transform 0.4s, filter 0.4s;
    filter: brightness(0.9);
}
.veks-single-content .wp-block-gallery img:hover,
.veks-single-content .gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

/* Lightbox Styles */
.veks-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.veks-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.veks-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.veks-lightbox.is-open img {
    transform: scale(1);
}
.veks-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    z-index: 2;
}
.veks-lightbox-close:hover {
    color: #d59a57;
}
.veks-lightbox-prev, .veks-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 20px;
    transition: color 0.3s;
    user-select: none;
    z-index: 2;
}
.veks-lightbox-prev {
    left: 20px;
}
.veks-lightbox-next {
    right: 20px;
}
.veks-lightbox-prev:hover, .veks-lightbox-next:hover {
    color: #d59a57;
}

/* FAQ Accordion Styles */
.veks-faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
}
.veks-faq-title {
    padding: 20px 25px;
    font-family: var(--veks-heading-font, serif);
    font-size: 20px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    user-select: none;
}
.veks-faq-title:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.veks-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-left: 15px;
}
.veks-faq-icon::before, .veks-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #d59a57;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.veks-faq-icon::before {
    top: 6px; left: 0; width: 14px; height: 2px;
}
.veks-faq-icon::after {
    top: 0; left: 6px; width: 2px; height: 14px;
}
.veks-faq-item.is-open .veks-faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}
.veks-faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.veks-faq-item.is-open .veks-faq-content {
    padding: 0 25px 25px 25px;
}

@media (max-width: 991px) {
    .veks-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .veks-single-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .veks-related-grid {
        grid-template-columns: 1fr;
    }
    .veks-single-title {
        font-size: 28px;
    }
    .veks-single-hero {
        height: 50vh;
        min-height: 300px;
    }
    .veks-single-content {
        font-size: 16px;
    }
}
