/* Single Post Styles */
.post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--primary-dark);
    overflow: hidden;
}

.post-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    z-index: 0;
}

.post-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.1) 0%, transparent 30%),
                      radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.1) 0%, transparent 30%);
    z-index: 1;
}

.post-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-hero__category a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.post-hero__category a:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.post-hero__date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.post-hero__date i {
    margin-left: 5px;
}

.post-hero__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.3;
}

.post-hero__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: right;
}

.author-name {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
}

.author-title {
    display: block;
    color: var(--secondary);
    font-size: 14px;
}

/* Breadcrumb */
.breadcrumb-section {
    background: rgba(0, 43, 92, 0.05);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 43, 92, 0.1);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

.breadcrumb-link:hover {
    color: var(--secondary);
}

.breadcrumb-separator {
    color: rgba(0, 43, 92, 0.4);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--secondary);
    font-weight: 600;
}

/* Main Content */
.single-post {
    padding: 60px 0;
    background: var(--bg-light);
}

.post-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-thumbnail__caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Post Body Typography */
.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--primary);
}

.post-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--primary);
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-right: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    position: relative;
    padding: 30px 40px;
    margin: 30px 0;
    background: rgba(0, 43, 92, 0.05);
    border-right: 4px solid var(--secondary);
    font-style: italic;
    font-size: 20px;
}

.post-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 60px;
    color: var(--secondary);
    opacity: 0.3;
}

/* Post Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 43, 92, 0.1);
}

.tags-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 43, 92, 0.05);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
}

.tag-link:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

/* Share Section */
.post-share {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 43, 92, 0.05);
    border-radius: 10px;
    text-align: center;
}

.share-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-linkedin {
    background: #0077b5;
}

.share-copy {
    background: var(--primary);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Author Box */
.author-box {
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 43, 92, 0.05);
    border-radius: 10px;
    display: flex;
    gap: 30px;
}

.author-box__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--secondary);
}

.author-box__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box__content {
    flex-grow: 1;
}

.author-box__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.author-box__bio {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-box__social {
    display: flex;
    gap: 10px;
}

.author-box__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.author-box__social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

.related-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition);
    height: 100%;
}

.related-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-post__image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: block;
}

.related-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition);
}

.related-post:hover .related-post__image img {
    transform: scale(1.1);
}

.related-post__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 92, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}

.related-post:hover .related-post__overlay {
    opacity: 1;
}

.related-post__overlay i {
    font-size: 30px;
    color: white;
}

.related-post__content {
    padding: 20px;
}

.related-post__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-post__title a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

.related-post__title a:hover {
    color: var(--secondary);
}

.related-post__date {
    font-size: 14px;
    color: #666;
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 43, 92, 0.1);
}

.nav-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(0, 43, 92, 0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-link:hover * {
    color: white;
}

.nav-prev {
    text-align: right;
}

.nav-next {
    text-align: left;
}

.nav-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.nav-link i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--secondary);
}

.nav-prev i {
    right: 20px;
}

.nav-next i {
    left: 20px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

/* Widgets */
.widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
    position: relative;
}

.widget-title i {
    margin-left: 10px;
    color: var(--secondary);
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid rgba(0, 43, 92, 0.1);
    border-radius: 50px;
    font-size: 16px;
    transition: all var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-submit {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--secondary);
    color: var(--primary-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.search-submit:hover {
    background: var(--secondary-light);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 43, 92, 0.05);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

.categories-list a:hover {
    background: var(--primary);
    color: white;
    padding-right: 20px;
}

.categories-list .count {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 43, 92, 0.1);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post__image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition);
}

.recent-post:hover .recent-post__image img {
    transform: scale(1.1);
}

.recent-post__content {
    flex-grow: 1;
}

.recent-post__title {
    font-size: 16px;
    margin-bottom: 5px;
}

.recent-post__title a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

.recent-post__title a:hover {
    color: var(--secondary);
}

.recent-post__date {
    font-size: 13px;
    color: #666;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 43, 92, 0.05);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
}

.tag-cloud-link:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--primary);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: var(--secondary);
}

.newsletter-widget .widget-title i {
    color: var(--secondary);
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    transition: all var(--transition);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.newsletter-submit:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 43, 92, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .post-hero__title {
        font-size: 36px;
    }

    .sidebar {
        margin-top: 40px;
        position: static;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box__social {
        justify-content: center;
    }

    .post-content {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .post-hero {
        min-height: 400px;
        padding: 100px 0 60px;
    }

    .post-hero__title {
        font-size: 28px;
    }

    .post-hero__meta {
        gap: 10px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 20px;
    }

    .related-posts__title {
        font-size: 24px;
    }

    .nav-link {
        padding: 15px;
    }

    .widget {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .post-hero__title {
        font-size: 24px;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .recent-post {
        flex-direction: column;
    }

    .recent-post__image {
        width: 100%;
        height: 200px;
    }
}
