/* Single Post - iSpring style */

/* Inherit Enfold fonts (Open Sans + Montserrat) */
.et-single, .et-single-content, .et-single-title,
.et-single-content h2, .et-single-content h3, .et-single-content h4 {
    font-family: inherit;
}

/* Article container */
.et-single {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Header */
.et-single-header {
    text-align: center;
    padding: 2.5rem 0 2rem;
}
.et-single-cats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.et-single-cat {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e8740e !important;
    background: rgba(232, 116, 14, 0.1);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.et-single-cat:hover {
    background: rgba(232, 116, 14, 0.2);
}

/* Title */
.et-single-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

/* Meta */
.et-single-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #888;
    font-size: 0.875rem;
}
.et-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.et-single-meta-item svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* Featured image */
.et-single-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
}
.et-single-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
{0}
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}
.et-single-content p {
    margin-bottom: 1.5rem;
}
.et-single-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.et-single-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 2rem 0 0.75rem;
    line-height: 1.35;
}
.et-single-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 1.5rem 0 0.5rem;
}
.et-single-content a {
    color: #e8740e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.et-single-content a:hover {
    color: #c45f00;
}

/* Lists - arrows for ul */
.et-single-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.et-single-content ul > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.et-single-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid #e8740e;
    border-bottom: 2px solid #e8740e;
    transform: rotate(-45deg);
}
.et-single-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.et-single-content ol > li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Blockquote */
.et-single-content blockquote {
    border-left: 4px solid #e8740e;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #faf6f1;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* Images */
.et-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.et-single-content figure {
    margin: 2rem 0;
}
.et-single-content figcaption {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 0.5rem;
}

/* Tables */
.et-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.et-single-content th,
.et-single-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    text-align: left;
}
.et-single-content th {
    background: #f8f8f8;
    font-weight: 600;
    color: #111;
}

/* Embeds */
.et-single-content .wp-block-embed {
    margin: 2rem 0;
}
.et-single-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.et-single-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.et-single-content .avia-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.et-single-content .avia-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tags */
.et-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.et-single-tag {
    font-size: 0.8rem;
    color: #777 !important;
    background: #f5f5f5;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    text-decoration: none !important;
    transition: all 0.2s;
}
.et-single-tag:hover {
    background: #eee;
    color: #333 !important;
}

/* Share */
.et-single-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}
.et-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}
.et-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}
.et-share-btn:hover {
    background: #e8740e;
    color: #fff !important;
}

/* Post navigation */
.et-single-nav {
    max-width: 780px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.et-nav-prev,
.et-nav-next {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.et-nav-prev:hover,
.et-nav-next:hover {
    background: #f0f0f0;
}
.et-nav-next {
    text-align: right;
}
.et-nav-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.35rem;
}
.et-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .et-single {
        max-width: 100%;
        padding: 0 1rem 2rem;
    }
    .et-single-title {
        font-size: 1.9rem;
    }
    .et-single-nav {
        padding: 0 1rem;
    }
}
@media (max-width: 600px) {
    .et-single-title {
        font-size: 1.6rem;
    }
    .et-single-header {
        padding: 1.5rem 0;
    }
    .et-single-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .et-single-content {
        font-size: 1.1rem;
        line-height: 1.85;
    }
    .et-single-content h2 {
        font-size: 1.4rem;
    }
    .et-single-content h3 {
        font-size: 1.2rem;
    }
    .et-single-content li {
        font-size: 1.05rem;
    }
    .et-single-nav {
        grid-template-columns: 1fr;
    }
}
