/* =========================================================
   CASANOVA CAR RENTAL — SINGLE BLOG POST PAGE
========================================================= */

/* -----------------------------------------
   Hero (Featured Image + Title + Meta)
----------------------------------------- */
.sp-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-rich-black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 24px 50px;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.35) 0%,
        rgba(17, 17, 17, 0.9) 100%
    );
}

.sp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.sp-hero-category {
    display: inline-block;
    background-color: var(--color-amber);
    color: var(--color-rich-black);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.sp-hero-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 46px);
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 22px;
}

.sp-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.sp-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-main);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.sp-hero-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-amber);
}

/* -----------------------------------------
   Layout: Content + Sidebar
----------------------------------------- */
.single-post-page {
    background-color: var(--color-rich-black);
}

.sp-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

/* -----------------------------------------
   Post Content
----------------------------------------- */
.sp-content {
    font-family: var(--font-main);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16.5px;
    line-height: 1.9;
}

.sp-content p {
    margin-bottom: 22px;
}

.sp-content h2 {
    color: var(--color-white);
    font-weight: 700;
    font-size: 26px;
    margin: 40px 0 18px;
}

.sp-content h3 {
    color: var(--color-white);
    font-weight: 700;
    font-size: 21px;
    margin: 32px 0 14px;
}

.sp-content a {
    color: var(--color-amber);
    text-decoration: underline;
}

.sp-content img {
    border-radius: 12px;
    margin: 30px 0;
}

.sp-content ul,
.sp-content ol {
    margin: 0 0 22px 22px;
    list-style: revert;
}

.sp-content blockquote {
    border-left: 3px solid var(--color-amber);
    padding: 4px 0 4px 22px;
    margin: 30px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
}

/* -----------------------------------------
   Tags
----------------------------------------- */
.sp-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.sp-tags a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 16px;
    margin: 4px 6px 4px 0;
    font-family: var(--font-main);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sp-tags a:hover {
    border-color: var(--color-amber);
    color: var(--color-amber);
}

.sp-tags-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 6px;
}

/* -----------------------------------------
   Share
----------------------------------------- */
.sp-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-share-label {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.5);
}

.sp-share-links {
    display: flex;
    gap: 10px;
}

.sp-share-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--color-white);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.sp-share-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sp-share-links a:hover {
    background-color: var(--color-amber);
    border-color: var(--color-amber);
    color: var(--color-rich-black);
    transform: translateY(-3px);
}

/* -----------------------------------------
   Prev/Next Navigation
----------------------------------------- */
.sp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.sp-post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sp-post-nav-item:hover {
    border-color: var(--color-amber);
    background-color: rgba(255, 191, 1, 0.05);
}

.sp-post-nav-next {
    text-align: right;
}

.sp-post-nav-label {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-amber);
}

.sp-post-nav-title {
    font-family: var(--font-main);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.4;
}

/* -----------------------------------------
   Sidebar
----------------------------------------- */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 100px;
}

.sp-widget {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.sp-widget-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 16.5px;
    color: var(--color-white);
    margin-bottom: 18px;
}

.sp-widget-empty {
    font-family: var(--font-main);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
}

/* Search widget */
.sp-widget-search {
    padding: 8px;
}

.sp-search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
}

.sp-search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 18px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-white);
}

.sp-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sp-search-input:focus {
    outline: none;
}

.sp-search-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-amber);
    color: var(--color-rich-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.sp-search-btn svg {
    width: 16px;
    height: 16px;
}

/* Recent posts widget */
.sp-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sp-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-recent-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
}

.sp-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-recent-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.sp-recent-item:hover .sp-recent-title {
    color: var(--color-amber);
}

.sp-recent-date {
    font-family: var(--font-main);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
}

/* Categories widget */
.sp-category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    font-family: var(--font-main);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.sp-category-list li:last-child a {
    border-bottom: none;
}

.sp-category-list a:hover {
    color: var(--color-amber);
    padding-left: 8px;
}

.sp-category-count {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 2px 9px;
    font-size: 12px;
}

/* CTA widget */
.sp-widget-cta {
    background: linear-gradient(135deg, rgba(255, 191, 1, 0.12) 0%, rgba(255, 191, 1, 0.03) 100%);
    border-color: rgba(255, 191, 1, 0.25);
    text-align: center;
}

.sp-cta-title {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 10px;
}

.sp-cta-text {
    font-family: var(--font-main);
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.sp-cta-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 50px;
    background-color: var(--color-amber);
    color: var(--color-rich-black);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sp-cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (max-width: 992px) {
    .sp-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 60px 24px;
    }

    .sp-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .sp-hero {
        min-height: 320px;
        padding: 40px 20px 36px;
    }

    .sp-hero-meta {
        gap: 14px;
    }

    .sp-layout {
        padding: 50px 20px;
    }

    .sp-content {
        font-size: 15.5px;
    }

    .sp-post-nav {
        grid-template-columns: 1fr;
    }

    .sp-post-nav-next {
        text-align: left;
    }

    .sp-share {
        flex-wrap: wrap;
    }
}