:root {
    --primary-color: #1b73d8;
    --header-title-color: #2c3e50;
    --secondary-color: #e74c3c;
    --tertiary-color: #3498db;
    --bg-color: #f9f9f9;
    --blog-text-color: #2c3e50;
    --desc-color: #6c757d;
    --border-radius: 12px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.blog-listing {
    padding-top: 30px;
    padding-bottom: 30px;
}

.blog-container {
    margin: 100px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}



/* Blog Sidebar
-------------------*/
.blog-aside .widget {
    box-shadow: var(--card-shadow);
    border-radius: 5px;
    overflow: visible;
    background: #ffffff;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    display: inline-block;
    vertical-align: top;
}

.blog-aside .widget-body {
    padding: 15px;
}

.blog-aside .widget-title {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.blog-aside .widget-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fc5356;
    margin: 0;
}

.blog-aside .widget-author .media {
    margin-bottom: 15px;
}

.blog-aside .widget-author p {
    font-size: 14px;
    margin: 0;
}

.blog-aside .widget-author .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.blog-aside .widget-author h6 {
    font-weight: 600;
    color: #20247b;
    font-size: 22px;
    margin: 0;
    padding-left: 20px;
}

.blog-aside .post-aside {
    margin-bottom: 15px;
}

.blog-aside .post-aside .post-aside-title h5 {
    margin: 0;
}

.blog-aside .post-aside .post-aside-title a {
    font-size: 18px;
    color: #20247b;
    font-weight: 600;
}

.blog-aside .post-aside .post-aside-meta {
    padding-bottom: 10px;
}

.blog-aside .post-aside .post-aside-meta a {
    color: #6F8BA4;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 10px;
}

.blog-aside .latest-post-aside+.latest-post-aside {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.blog-aside .latest-post-aside .lpa-right {
    width: 90px;
}

.blog-aside .latest-post-aside .lpa-right img {
    width: 100%; /* Or a max-width like 400px if needed */
    height: 50px;
    border-radius: 3px;
    object-fit: cover; /* or 'cover' depending on your layout goal */
    max-width: 400px;
}

.blog-aside .latest-post-aside .lpa-left {
    padding-right: 15px;
}

.blog-aside .latest-post-aside .lpa-title h5 {
    margin: 0;
    font-size: 15px;
}

.blog-aside .latest-post-aside .lpa-title a {
    color: var(--header-title-color);
    font-weight: 600;
}

.blog-aside .latest-post-aside .lpa-meta a {
    color: var(--desc-color);
    font-size: 12px;
    display: inline-block;
    margin-right: 10px;
}

.widget-trending-post{
    position: sticky;
    top: 500px; /* distance from top when sticking begins */
}

.tag-cloud a {
    padding: 4px 15px;
    font-size: 13px;
    color: #ffffff;
    background: #20247b;
    border-radius: 3px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.tag-cloud a:hover {
    background: #fc5356;
}

.article {
    box-shadow: var(--card-shadow);
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    padding: 15px;
    margin: 15px 0 30px;
}

.article .article-title {
    padding: 15px 0 20px;
}

.article .article-title h2 {
    
    font-weight: 700;
    line-height: 1.3;
    color: var(--header-title-color);
}

.article .article-title .media {
    padding-top: 15px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
}

.article .article-title .media .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.article .article-title .media .media-body {
    padding-left: 8px;
}

.article .article-title .media .media-body label {
    font-weight: 600;
    color: #fc5356;
    margin: 0;
}

.article .article-title .media .media-body span {
    display: block;
    font-size: 12px;
}

.stats {
    font-size: 13px;
    color: var(--desc-color);
    display: flex;
    align-items: center;
}

.stats-author-name {
    font-weight: bold;
    color: inherit;
    margin-left: 4px;
    margin-right: 8px;
}

.article .article-content h1,
.article .article-content h2,
.article .article-content h3,
.article .article-content h4,
.article .article-content h5,
.article .article-content h6 {
    color: var(--header-title-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.article .article-numbering {
    counter-reset: feature;
}

.article .article-numbering > h5 {
    counter-increment: feature;
    position: relative;
}

.article .article-numbering > h5::before {
    content: counter(feature) ". ";
    font-weight: bold;
    margin-right: 4px;
}

.article .blog-tags {
    padding-top: 10px;
}

.blog-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-right: 4px;
    margin-bottom: 4px;
}

.code-block {
    background-color: #f4f4f4;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 14px;
    padding: 4px 6px;
    white-space: pre-wrap; /* respects line breaks and indentation */
    overflow-x: auto;
  }

img {
    max-width: 100%;
}

img {
    vertical-align: middle;
    border-style: none;
}

.article-img img {
    width: 100%;
    height: auto; /* maintains aspect ratio */
    display: block;
}

.image-credit {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    margin-top: 4px;
    border-bottom: 1px dashed #ddd;
    display: block;
    padding-bottom: 2px;
}

.article-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
  
.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Us
---------------------*/
.contact-name {
    margin-bottom: 30px;
}

.contact-name h5 {
    font-size: 22px;
    color: #20247b;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-name p {
    font-size: 18px;
    margin: 0;
}

.section-title h2 {
    font-weight: 700;
    color: #20247b;
    font-size: 45px;
    margin: 0 0 15px;
    border-left: 5px solid #fc5356;
    padding-left: 15px;
}

.section-title {
    padding-bottom: 45px;
}

.px-btn {
    padding: 0 50px 0 20px;
    line-height: 60px;
    position: relative;
    display: inline-block;
    color: #20247b;
    background: none;
    border: none;
}

.px-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(252, 83, 86, 0.6);
    border-right: 1px solid transparent;
    -moz-transition: ease all 0.35s;
    -o-transition: ease all 0.35s;
    -webkit-transition: ease all 0.35s;
    transition: ease all 0.35s;
    width: 60px;
    height: 60px;
}

.px-btn .arrow {
    width: 13px;
    height: 2px;
    background: currentColor;
    display: inline-block;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: 25px;
}

.px-btn .arrow:after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    display: inline-block;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}