/*
Posts Styles CSS
*/
html,
body,
header,
#intro {
    height: 50vh;
}

#intro {
    background: url("../img/posts/posts.jpg") no-repeat bottom center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#post-single {
    background-repeat: no-repeat;
    background-position: bottom center;
    background-attachment: fixed;
    height: 50vh;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#post-single .typed-cursor {
    color: #bce9ff;
}

.top-nav-collapse {
    background-color: #1a1c20;
}

@media (max-width: 768px) {
    .navbar:not(.top-nav-collapse) {
        background-color: #24355C;
    }
}

@media (min-width: 800px) and (max-width: 850px) {
    .navbar:not(.top-nav-collapse) {
        background-color: #24355C;
    }
}

#typed {
    color: #fff;
}

.typed-cursor {
    color: #bce9ff;
}

.contact-page-icon {
    color: #ffffff;
    background: #ffffff;
    border-style: solid;
    border-width: 0px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 500px;
    font-size: 24px;
    display: inline-block;
}

.contact-page-icon-low {
    color: #ffffff;
    border-color: #333333;
    border-width: 1px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 500px;
    font-size: 16px;
    display: inline-block;
}

/* Post Single View Styles */
.post-single {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.post-single .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.post-single .breadcrumb-item a {
    color: #1ebbf0;
    text-decoration: none;
}

.post-single .breadcrumb-item a:hover {
    color: #39dfaa;
    text-decoration: underline;
}

.post-single .breadcrumb-item.active {
    color: #85868c;
}

.post-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #85868c;
}

.post-meta span {
    display: inline-block;
    margin-right: 1rem;
}

.post-meta i {
    margin-right: 0.25rem;
    color: #1ebbf0;
}

.post-meta a {
    color: #85868c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: #1ebbf0;
    text-decoration: none;
}

.post-featured-image {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.post-description {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #1ebbf0;
    border-radius: 4px;
}

.post-description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.post-description-content p {
    margin-bottom: 1rem;
}

.post-description-content p:last-child {
    margin-bottom: 0;
}

.post-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.post-description-content a {
    color: #1ebbf0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-description-content a:hover {
    color: #39dfaa;
    text-decoration: none;
}

.post-description-content strong,
.post-description-content b {
    font-weight: 600;
    color: #333;
}

.post-description-content em,
.post-description-content i {
    font-style: italic;
}

.post-description-content ul,
.post-description-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-description-content li {
    margin-bottom: 0.5rem;
}

.post-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.post-body h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #1ebbf0;
    padding-bottom: 0.75rem;
    margin-top: 2rem;
}

.post-body h2 {
    font-size: 2rem;
    border-bottom: 2px solid #1ebbf0;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.post-body h3 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
}

.post-body h4 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.post-body h5 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
}

.post-body h6 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.post-body ul {
    list-style-type: disc;
}

.post-body ol {
    list-style-type: decimal;
}

.post-body li {
    margin-bottom: 0.75rem;
}

.post-body li ul,
.post-body li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid #1ebbf0;
    padding-left: 1.5rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.post-body blockquote p {
    margin-bottom: 0.5rem;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-body figure {
    margin: 2rem 0;
}

.post-body figure img {
    margin: 0;
}

.post-body figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.post-body a {
    color: #1ebbf0;
    text-decoration: underline;
    transition: color 0.3s ease;
    word-break: break-word;
}

.post-body a:hover {
    color: #39dfaa;
    text-decoration: none;
}

.post-body code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #e83e8c;
    font-family: 'Courier New', monospace;
}

.post-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    line-height: 1.6;
}

.post-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-body table th,
.post-body table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.post-body table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.post-body table tr:nth-child(even) {
    background: #f8f9fa;
}

.post-body hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2.5rem 0;
}

.post-body strong,
.post-body b {
    font-weight: 600;
    color: #333;
}

.post-body em,
.post-body i {
    font-style: italic;
}

.post-body mark {
    background: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.post-body del {
    text-decoration: line-through;
    color: #999;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.related-posts h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.related-posts .card {
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.related-posts .card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.related-posts .card-img-top {
    height: 150px;
    object-fit: cover;
}

.related-posts .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.related-posts .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts .card-title a:hover {
    color: #1ebbf0;
    text-decoration: none;
}

/* Sidebar Styles */
.sidebar {
    padding-left: 2rem;
}

.widget {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.widget-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1ebbf0;
}

.recent-posts-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-widget li {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts-widget h6 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.recent-posts-widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-widget a:hover {
    color: #1ebbf0;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .post-single {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .post-single {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-meta span {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .post-description {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .post-description-content {
        font-size: 1rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .post-body h1 {
        font-size: 2rem;
    }
    
    .post-body h2 {
        font-size: 1.75rem;
    }
    
    .post-body h3 {
        font-size: 1.5rem;
    }
    
    .post-body pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .related-posts .card {
        margin-bottom: 1rem;
    }
}

