/* 
Template Name: Mediumish 
Copyright: Sal, WowThemes.net, https://www.wowthemes.net 
License: https://www.wowthemes.net/freebies-license/ 
*/

/* 🎨 Modern Color Variables - Orange Theme */
:root {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --secondary-color: #fb923c;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

@media screen and (min-width:1500px) {
    html { font-size:18px; } /* Increase the font size on higher resolutions */
    .container {max-width:80%;}
}
.mainheading {
    padding: 1rem 0rem;
}

a {
    color: var(--primary-color);
    transition: all var(--transition-fast);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

pre {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: #E3EDF3 1px solid;
    width: 100%;
    padding: 7px;
    font-family: monospace, sans-serif;
    font-size: .9rem;
    white-space: pre;
    overflow: auto;
    background: #fff;
    border-radius: 0px;
    line-height: 1.6;
    color: #333;
    margin-bottom: -rem;
}

.mediumnavigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.mediumnavigation.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.main-content {
    min-height: 300px;
}

.site-content {
    min-height: 60vh;
    padding-top: 1.5rem;
    margin-top: 57px;
    transition: all 0.4s;
}

section {
    margin-bottom: 20px;
}

section.recent-posts {
    margin-bottom: 0;
}

.section-title h2 {
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-title span {
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: -2px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-post ol,
.article-post ul {
    margin-bottom: 1.5rem;
}

.article-post ol ol,
.article-post ul ul {
    list-style: disc;
    margin-bottom: 0rem;
}

@media (min-width:576px) {
    .card-columns.listfeaturedtag {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}

@media (min-width:992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
    }
}

.listfeaturedtag {
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    background: var(--bg-primary);
    overflow: hidden;
}

.listfeaturedtag:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.listfeaturedtag .wrapthumbnail {
    min-height: 250px;
    max-height: 350px;
    flex: 0 0 auto;
    height: 100%;
}

.maxthumb {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    position: relative;
}

.maxthumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(249, 115, 22, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card:hover .maxthumb::after {
    opacity: 1;
}

.listfeaturedtag .card,
.card-footer {
    border: 0;
}

.listfeaturedtag .thumbnail {
    background-size: cover;
    height: 100%;
    display: block;
    background-position: 38% 22% !important;
    background-origin: border-box !important;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.listfeaturedtag .card-block {
    padding-left: 0;
}

.listfeaturedtag h2.card-title,
.listrecent h2.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
}

.listfeaturedtag h4.card-text,
.listrecent h4.card-text {
    color: rgba(0, 0, 0, .44);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.featured-box-img-cover {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listfeaturedtag .wrapthumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.25rem 0 0 0.25rem;
}

@media (max-width:991px) {
    .listfeaturedtag .wrapthumbnail {
        min-height: 200px;
        max-height: 280px;
    }
    .featured-box-img-cover {
        height: 100%;
        width: 100%;
        object-fit: contain;
    }
    .maxthumb {
        height: 200px;
    }
}

@media (max-width:576px) {
    .listfeaturedtag .wrapthumbnail {
        min-height: 180px;
        max-height: 220px;
    }
    .maxthumb {
        height: 180px;
    }
}

.wrapfooter {
    font-size: .8rem;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-thumb {
    width: 40px;
    height: 40px;
    margin-right: 13px;
    border-radius: 100%;
}

.post-top-meta {
    margin-bottom: 2rem;
}

.post-top-meta .author-thumb {
    width: 72px;
    height: 72px;
}

.post-top-meta.authorpage .author-thumb {
    margin-top: 40px;
}

.post-top-meta span {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, .44);
    display: inline-block;
}

.post-top-meta .author-description {
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 0.95rem;
}

.toc ul {
    list-style: decimal;
    font-weight: 400;
}

.author-meta {
    flex: 1 1 auto;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

span.post-name,
span.post-date,
span.author-meta {
    display: inline-block;
}

span.post-date,
span.post-read {
    color: rgba(0, 0, 0, .44);
}

span.post-read-more {
    align-items: center;
    display: inline-block;
    float: right;
    margin-top: 8px;
}

span.post-read-more a {
    color: rgba(0, 0, 0, .44);
}

span.post-name a,
span.post-read-more a:hover {
    color: rgba(0, 0, 0, .8);
}

.dot:after {
    content: "·";
    margin-left: 3px;
    margin-right: 3px;
}

.mediumnavigation .form-control {
    font-size: 0.8rem;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.09);
    min-width: 180px;
}

.mediumnavigation .form-inline {
    margin-left: 15px;
}

.mediumnavigation .form-inline .btn {
    margin-left: -50px;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
}

.mediumnavigation .form-inline .btn:hover,
.mediumnavigation .form-inline .btn:active {
    background: transparent;
    color: green;
}

.mediumnavigation .navbar-brand {
    font-weight: 500;
}

.mediumnavigation .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: .5rem 0 0;
}

.mediumnavigation .nav-item,
.dropdown-menu {
    font-size: 0.9rem;
}

.mediumnavigation .search-icon {
    margin-left: -40px;
    display: inline-block;
    margin-top: 3px;
    cursor: pointer;
}

.mediumnavigation .navbar-brand img {
    max-height: 30px;
    margin-right: 5px;
}

.mainheading h1.sitetitle {
    font-family: Righteous;
}

.mainheading h1.posttitle {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer {
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4rem;
    background: var(--bg-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 25%, 
        var(--primary-color) 50%, 
        var(--accent-color) 75%, 
        transparent 100%
    );
}

.link-dark {
    color: rgba(0, 0, 0, .8);
}

.article-post {
    font-family: Merriweather;
    font-size: 1.1rem;
    line-height: 1.84;
    color: rgba(0, 0, 0, .8);
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
}

.article-post p,
.article-post blockquote {
    margin: 0 0 1.5rem 0;
}

.featured-image {
    display: block;
    margin-bottom: 1.5rem;
}

.share {
    text-align: center;
}

.share p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.share ul li {
    display: inline-block;
    margin-bottom: 9px;
}

.share ul {
    padding-left: 0;
    margin-left: 0;
}

.share ul li i.fa {
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.svgIcon {
    vertical-align: middle;
}

.sticky-top-offset {
    top: 100px;
}

@media (min-width:1024px) {
    .share ul li {
        display: block;
    }
}

@media (max-width:999px) {
    .featured-box-img-cover {
        height: 359px;
    }

    .alertbar {
        position: relative !Important;
        margin-bottom: 20px;
        margin-top: 20px;
        box-shadow: none !Important;
        padding-right: 14px !Important;
    }

    #comments {
        margin-right: 15px;
    }

    .jumbotron.fortags {
        margin-bottom: 0 !Important;
    }

    .alertbar form {
        margin-top: 20px;
    }

    .alertbar span,
    .alertbar form {
        display: block;
    }

    .alertbar input[type="submit"] {
        border-radius: 3px !Important;
    }

    .alertbar input[type="email"] {
        margin-right: 0px !Important;
        display: block;
        border-right: 1px solid #ddd !Important;
        margin-bottom: 10px;
    }

    .jumbotron {
        margin-bottom: 0;
        border-radius: 0;
    }

    .listfeaturedtag .card {
        height: auto;
    }

    .listfeaturedtag .wrapfooter {
        position: relative;
        margin-top: 30px;
    }

    .listfeaturedtag .card-block {
        padding: 20px;
    }

    .footer {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media (max-width:1024px) {
    .post-top-meta .col-md-10 {
        text-align: center;
    }
}

@media (max-width:767px) {
    .post-top-meta.authorpage {
        text-align: center;
    }
}

.share,
.share a {
    color: rgba(0, 0, 0, .44);
    fill: rgba(0, 0, 0, .44);
}

.graybg {
    background-color: #fafafa;
    padding: 40px 0 46px;
    position: relative;
}

.listrelated .card {
    box-shadow: 0 1px 7px rgba(0, 0, 0, .05);
    border: 0;
}

ul.tags {
    list-style: none;
    padding-left: 0;
    margin: 0 0 3rem 0;
}

ul.tags li {
    display: inline-block;
    font-size: 0.9rem;
}

ul.tags li a {
    background: rgba(0, 0, 0, .05);
    color: rgba(0, 0, 0, .6);
    border-radius: 3px;
    padding: 5px 10px;
}

ul.tags li a:hover {
    background: rgba(0, 0, 0, .07);
    text-decoration: none;
}

.margtop3rem {
    margin-top: 3rem;
}

.sep {
    height: 1px;
    width: 20px;
    background: #999;
    margin: 0px auto;
    margin-bottom: 1.2rem;
}

.btn.follow {
    border-color: #02B875;
    color: #1C9963;
    padding: 3px 10px;
    text-align: center;
    border-radius: 999em;
    font-size: 0.85rem;
    display: inline-block;
}

.btn.subscribe {
    background-color: #1C9963;
    border-color: #1C9963;
    color: rgba(255, 255, 255, 1);
    fill: rgba(255, 255, 255, 1);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-top-meta .btn.follow {
    margin-left: 5px;
    margin-top: -4px;
}

.alertbar {
    box-shadow: 0 -3px 10px 0 rgba(0, 0, 0, .0785);
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    padding: 14px 0;
    z-index: 1;
    display: none;
}

.alertbar form {
    display: inline-block;
}

.alertbar input[type="email"] {
    font-size: 0.85rem;
    padding: 3px 5px 3px 10px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border: 1px solid #ddd;
    border-right: 0;
    margin-right: -10px;
    height: 34px;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.alertbar input[type="submit"] {
    background-color: #1C9963;
    border: 1px solid #1C9963;
    color: rgba(255, 255, 255, 1);
    fill: rgba(255, 255, 255, 1);
    font-size: 0.85rem;
    border-radius: 0;
    padding: 4px 10px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    font-weight: 600;
    height: 34px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.form-control::-webkit-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control:-moz-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control::-moz-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control:-ms-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

.form-control::-ms-input-placeholder {
    color: rgba(0, 0, 0, .5);
}

.authorpage h1 {
    font-weight: 700;
    font-size: 30px;
}

.post-top-meta.authorpage .author-thumb {
    float: none;
}

.authorpage .author-description {
    font-size: 1rem;
    color: rgba(0, 0, 0, .6);
}

.post-top-meta.authorpage .btn.follow {
    padding: 7px 20px;
    margin-top: 10px;
    margin-left: 0;
    font-size: 0.9rem;
}

.graybg.authorpage {
    border-top: 1px solid #f0f0f0;
}

.authorpostbox {
    width: 760px;
    margin: 0px auto;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.authorpostbox .img-thumb {
    width: 100%;
}

.sociallinks {
    margin: 1rem 0;
}

.sociallinks a {
    background: #666;
    color: #fff;
    width: 22px;
    height: 22px;
    display: inline-block;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    font-size: 12px;
}

#comments {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.article-post .h1,
.article-post .h2,
.article-post .h3,
.article-post .h4,
.article-post .h5,
.article-post .h6,
.article-post h1,
.article-post h2,
.article-post h3,
.article-post h4,
.article-post h5,
.article-post h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.article-post img.shadow {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
}

.layout-page .article-post {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
}

.layout-page .article-post p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
}

.bottompagination span.navigation {
    display: block;
    font-size: 0.93rem;
    padding: 15px 0 0 0;
    text-align: center;
    margin-bottom: 0rem;
    color: #999;
    border-top: 1px solid #ddd;
}

.pointerup {
    margin-bottom: -17px;
    margin-left: 49%;
    font-size: 30px;
}

.pointerup i.fa {
    color: #eaeaea;
}

.bottompagination span.navigation i {
    display: inline-block;
}

span.navigation {
    display: inline-block;
    font-size: 0.93rem;
    font-weight: 700;
    text-align: center;
}

.pagination {
    display: block;
}

iframe {
    max-width: 100%;
}

.transpdark {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

@media (min-width:768px) {
    .jumbotron.fortags {
        margin-bottom: -50px;
        margin-top: 3rem;
        padding: 0;
        height: 350px;
        border-radius: 0;
        background: linear-gradient(135deg, 
            rgba(249, 115, 22, 0.3) 0%, 
            rgba(251, 146, 60, 0.25) 25%, 
            rgba(251, 191, 36, 0.2) 50%, 
            rgba(234, 88, 12, 0.25) 75%, 
            rgba(255, 107, 53, 0.3) 100%
        ), 
        linear-gradient(135deg, 
            #fef3f2 0%, 
            #fef7ed 50%, 
            #fffbeb 100%
        );
        background-size: cover;
        position: relative;
        overflow: hidden;
    }
    
    .jumbotron.fortags::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }

    .jumbotron.fortags .col-md-4 {
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        position: relative;
        z-index: 2;
    }

    .jumbotron.fortags .row {
        margin: 0;
    }
}

.jumbotron.fortags {
    margin-top: 3rem;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.3) 0%, 
        rgba(251, 146, 60, 0.25) 25%, 
        rgba(251, 191, 36, 0.2) 50%, 
        rgba(234, 88, 12, 0.25) 75%, 
        rgba(255, 107, 53, 0.3) 100%
    ), 
    linear-gradient(135deg, 
        #fef3f2 0%, 
        #fef7ed 50%, 
        #fffbeb 100%
    );
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.jumbotron.fortags::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.jumbotron.fortags a {
    padding: 5px 10px 7px;
    background: rgba(34, 34, 34, 0.8);
    border-radius: 30px;
    color: #fff;
    font-weight: 500;
    text-transform: lowercase;
    font-size: 0.8rem;
    display: inline-block;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.jumbotron.fortags a:hover {
    background: rgba(249, 115, 22, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.jumbotron.fortags .col-md-8 {
    position: relative;
    z-index: 2;
}

.layout-page .jumbotron.fortags {
    display: none;
}

.mb-30px {
    margin-bottom: 30px;
}

.flex-first {
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
    -ms-flex-order: -1;
    order: -1;
}

@media (min-width: 768px) {
    .flex-md-unordered {
        -webkit-box-ordinal-group: 1;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }

    .flex-first {
        -webkit-box-ordinal-group: 0;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }
}

@media (max-width: 768px) {
    .share {
        margin-top: 30px;
    }
}

/* 🔗 Card Click Enhancement */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card .img-fluid {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
    transition: transform var(--transition-normal);
}

.card:hover .img-fluid {
    transform: scale(1.02);
}

/* 링크들이 개별적으로 작동하도록 */
.card .post-read-more a,
.card .post-name a {
    position: relative;
    z-index: 10;
}

.sticky-top-80 {
    top: 80px;
}

.spoiler {
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: all .4s;
    cursor: pointer;
    position: relative;
}

.spoiler:after {
    position: absolute;
    opacity: 0;
    content: 'Click to reveal spoiler';
    top: 45%;
    left: calc(50% - 100px);
    text-shadow: none;
    background: #222;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    padding: 2px 3px;
    width: 150px;
    font-family: Arial;
    text-align: center;
    border-radius: 3px;
    transition: all .4s;
}

.spoiler:hover:after {
    opacity: 1;
}

/** Lazy img **/
.lazyimg {
    display: block;
    border: 0 none;
    opacity: 1;
    transition: opacity .25s;
    background: #f2f2f2;
    outline: 0 none;
}

.lazyimg[data-src],
.lazyimg[data-srcset] {
    opacity: 0;
    transition: opacity .25s;
}

/* 이미지 로딩 개선 */
.maxthumb .lazyimg,
.maxthumb .img-fluid {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 120px;
}

.wrapthumbnail .featured-box-img-cover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 🌟 Modern Star Rating */
.modern-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stars-container {
    display: flex;
    gap: 0.125rem;
}

.star {
    font-size: 1.125rem;
    color: var(--border-medium);
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: none;
    position: relative;
    display: inline-block;
}

/* 정수 별점 표시 (정수와 소수점 표기 모두 지원) */
.stars-container[data-rating-value="1"] .star:nth-child(-n+1),
.stars-container[data-rating-value="1.0"] .star:nth-child(-n+1),
.stars-container[data-rating-value="2"] .star:nth-child(-n+2),
.stars-container[data-rating-value="2.0"] .star:nth-child(-n+2),
.stars-container[data-rating-value="3"] .star:nth-child(-n+3),
.stars-container[data-rating-value="3.0"] .star:nth-child(-n+3),
.stars-container[data-rating-value="4"] .star:nth-child(-n+4),
.stars-container[data-rating-value="4.0"] .star:nth-child(-n+4),
.stars-container[data-rating-value="5"] .star:nth-child(-n+5),
.stars-container[data-rating-value="5.0"] .star:nth-child(-n+5) {
    color: var(--primary-color);
    text-shadow: 0 0 4px rgba(249, 115, 22, 0.4);
}

/* 소숫점 별점 - 완전한 별들 */
.stars-container[data-rating-value="1.5"] .star:nth-child(-n+1),
.stars-container[data-rating-value="2.5"] .star:nth-child(-n+2),
.stars-container[data-rating-value="3.5"] .star:nth-child(-n+3),
.stars-container[data-rating-value="4.5"] .star:nth-child(-n+4) {
    color: var(--primary-color);
    text-shadow: 0 0 4px rgba(249, 115, 22, 0.4);
}

/* 반별 표시 - 오버레이 방식 */
.stars-container[data-rating-value="0.5"] .star:nth-child(1),
.stars-container[data-rating-value="1.5"] .star:nth-child(2),
.stars-container[data-rating-value="2.5"] .star:nth-child(3),
.stars-container[data-rating-value="3.5"] .star:nth-child(4),
.stars-container[data-rating-value="4.5"] .star:nth-child(5) {
    position: relative;
    color: var(--border-medium);
}

.stars-container[data-rating-value="0.5"] .star:nth-child(1)::before,
.stars-container[data-rating-value="1.5"] .star:nth-child(2)::before,
.stars-container[data-rating-value="2.5"] .star:nth-child(3)::before,
.stars-container[data-rating-value="3.5"] .star:nth-child(4)::before,
.stars-container[data-rating-value="4.5"] .star:nth-child(5)::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--primary-color);
    text-shadow: 0 0 4px rgba(249, 115, 22, 0.4);
}

.star:hover {
    transform: scale(1.1);
}

.rating-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
}

/* 🔍 Modern Search UI */
.modern-search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.modern-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    z-index: 2;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.modern-search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    outline: none;
}

.modern-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: var(--bg-primary);
}

.modern-search-input:focus + .search-icon {
    color: var(--primary-color);
}

.search-loading {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Results */
.modern-search-results {
    display: none;
}

.modern-search-results.show {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: none !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 10000 !important;
    overflow: hidden !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.search-result-excerpt {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-highlight {
    background: rgba(249, 115, 22, 0.2);
    padding: 0.125rem;
    border-radius: 0.125rem;
    font-weight: 600;
}

/* Mobile Search */
@media (max-width: 768px) {
    .modern-search-container {
        max-width: 250px;
    }

    .modern-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ========== Search Modal - Completely Redesigned ========== */

/* 검색 모달 컨테이너 - viewport 중앙 고정 */
#lunrsearchresults {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

#lunrsearchresults.show {
    display: block !important;
}

/* 모달 다이얼로그 - transform을 이용한 중앙 정렬 */
.search-modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    z-index: 10001 !important;
}

/* 모달 콘텐츠 */
.search-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 모달 헤더 */
.search-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.search-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.search-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 모달 바디 */
.search-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 200px);
    flex: 1 1 auto;
}

/* 스크롤바 */
.search-modal-body::-webkit-scrollbar {
    width: 8px;
}

.search-modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.search-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

.search-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 검색 결과 리스트 */
.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 검색 결과 아이템 */
.search-result-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search-result-item a {
    display: block;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.search-result-item a:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.result-body {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.375rem;
}

.result-url {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 검색어 하이라이트 */
.search-result-item mark {
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary-color);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* 검색 결과 없음 */
.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 모달 푸터 */
.search-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-close-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-close-search:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Body 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .search-modal-backdrop {
        padding: 0.5rem;
    }

    .search-modal-dialog {
        max-width: 100%;
        max-height: 95vh;
    }

    .search-modal-content {
        max-height: 95vh;
        width: 100%;
    }

    .search-modal-header {
        padding: 1rem;
    }

    .search-modal-title {
        font-size: 1.125rem;
    }

    .search-modal-body {
        padding: 1rem;
        max-height: calc(95vh - 180px);
    }

    .result-title {
        font-size: 1rem;
    }

    .result-body {
        font-size: 0.875rem;
    }

    .search-modal-footer {
        padding: 0.75rem 1rem;
    }

    .btn-close-search {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ✨ Global Animations & Improvements */

/* Smooth scrolling - disabled to prevent auto-scroll on page load */
/* html {
    scroll-behavior: smooth;
} */

/* Loading animation for images */
img {
    transition: opacity var(--transition-normal);
}

img.loading {
    opacity: 0.7;
    filter: blur(2px);
}

/* Enhanced card animations */
.card-group {
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.card-group:nth-child(1) { animation-delay: 0.1s; }
.card-group:nth-child(2) { animation-delay: 0.2s; }
.card-group:nth-child(3) { animation-delay: 0.3s; }
.card-group:nth-child(4) { animation-delay: 0.4s; }
.card-group:nth-child(5) { animation-delay: 0.5s; }
.card-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive button effects */
button, .btn {
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Enhanced link effects */
a:not(.btn):not(.card) {
    position: relative;
    transition: all var(--transition-fast);
}

/* Floating action effects */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 📱 Enhanced Mobile Experience */
@media (max-width: 768px) {
    /* Improved touch targets */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card:hover {
        transform: translateY(-4px); /* Reduced for mobile */
    }
    
    /* Better spacing on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mainheading {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .mainheading h1.sitetitle {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile-optimized search */
    .modern-search-container {
        max-width: 100%;
        margin: 1rem 0;
    }
    
    /* Enhanced mobile cards */
    .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-toggler {
        border: 2px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 0.5rem;
        transition: all var(--transition-fast);
    }
    
    .navbar-toggler:hover {
        border-color: var(--primary-color);
        background: var(--bg-secondary);
    }
    
    /* Mobile section titles */
    .section-title h2 {
        font-size: 1.25rem;
        text-align: center;
    }
}

/* 🎨 Advanced Visual Effects */

/* Gradient overlays for featured sections */
.featured-posts {
    position: relative;
}

/* Featured Posts Pagination - using existing bottom pagination style */
.featured-bottom-pagination {
    margin-top: 2rem;
}

/* Featured pagination disabled states */
.featured-bottom-pagination #featured-prev.disabled,
.featured-bottom-pagination #featured-next.disabled {
    color: #ccc !important;
    cursor: default;
    text-decoration: none;
}

.featured-bottom-pagination #featured-prev.clickable,
.featured-bottom-pagination #featured-next.clickable {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.featured-bottom-pagination #featured-prev.clickable:hover,
.featured-bottom-pagination #featured-next.clickable:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Featured card wrapper */
.featured-card-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Featured posts row - 2x2 grid layout */
#featured-posts-row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    width: calc(100% + 30px);
    align-items: stretch;
}

/* Featured post items - initially hidden beyond first 4 */
.featured-post-item {
    display: none;
    transition: all var(--transition-normal);
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.featured-post-item.active {
    display: flex;
    animation: fadeInUp 0.4s ease-out;
}

.featured-post-item .listfeaturedtag {
    height: 100%;
    min-height: 400px;
}

#featured-posts-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile responsive for featured posts */
@media (max-width: 768px) {
    .featured-post-item {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .featured-post-item .listfeaturedtag {
        min-height: 350px;
    }
    
    #featured-posts-row {
        flex-direction: column;
        margin: 0;
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Smooth state transitions */
* {
    transition-property: color, background-color, border-color, transform, box-shadow, opacity;
    transition-duration: var(--transition-fast);
    transition-timing-function: ease-out;
}

/* Dark mode preparation (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode variables here if needed in the future */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== All Products Pagination Styles ========== */

/* All Products Pagination - using existing bottom pagination style */
.all-products-bottom-pagination {
    margin-top: 2rem;
}

/* All Products pagination disabled states */
.all-products-bottom-pagination #all-products-prev.disabled,
.all-products-bottom-pagination #all-products-next.disabled {
    color: #ccc !important;
    cursor: default;
    text-decoration: none;
}

.all-products-bottom-pagination #all-products-prev.clickable,
.all-products-bottom-pagination #all-products-next.clickable {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
}

.all-products-bottom-pagination #all-products-prev.clickable:hover,
.all-products-bottom-pagination #all-products-next.clickable:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* All product items pagination styling handled by JavaScript show/hide */

/* ========== Product Meta Info Styles ========== */
.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.meta-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.meta-icon {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.meta-label {
    font-weight: 500;
    color: var(--text-primary);
}

/* Purchased Badge */
.purchased-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: badgePulse 2s ease-in-out infinite;
}

.wishlist-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

/* Enhanced Card Styling */
.card-body {
    display: flex;
    flex-direction: column;
}

.card .card-text {
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

/* Mobile responsive for product meta */
@media (max-width: 576px) {
    .product-meta-info {
        gap: 0.375rem;
    }

    .meta-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .meta-icon {
        font-size: 0.8125rem;
    }

    .purchased-badge {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Price emphasis */
.meta-item:has(.meta-icon:first-child:contains("💰")) .meta-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Improved card spacing for meta info */
.card-body .product-meta-info {
    margin-top: auto;
}

/* Enhanced star rating in cards */
.card .modern-rating {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Better visual hierarchy */
.card-title {
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.card-title .text-dark {
    display: block;
    margin-bottom: 0.5rem;
}

/* Hover effect for meta items */
.card:hover .meta-item {
    background: var(--bg-tertiary);
}

/* Featured box product meta */
.listfeaturedtag .product-meta-info {
    margin-top: 1rem;
}

/* ========== Enhanced Typography & Spacing ========== */

/* Main heading improvements */
.mainheading h1.sitetitle {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.mainheading .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 42rem;
    margin: 0 auto;
}

/* Card title improvements */
.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.listfeaturedtag h2.card-title {
    font-size: 1.375rem;
}

/* Card text improvements */
.card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Section spacing */
.featured-posts {
    margin-bottom: 3rem;
}

.recent-posts {
    margin-top: 2rem;
}

/* Better readability for article content */
.article-post {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-post h1,
.article-post h2,
.article-post h3,
.article-post h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.article-post h1 {
    font-size: 2rem;
}

.article-post h2 {
    font-size: 1.625rem;
}

.article-post h3 {
    font-size: 1.375rem;
}

.article-post h4 {
    font-size: 1.125rem;
}

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

.article-post blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}

/* Table improvements */
.article-post table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-post table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.article-post table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
}

.article-post table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.article-post table tbody tr:hover {
    background: var(--bg-secondary);
}

.article-post table tbody tr:last-child td {
    border-bottom: none;
}

/* Code blocks */
.article-post code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.article-post pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ========== Enhanced Mobile Typography ========== */
@media (max-width: 768px) {
    .mainheading h1.sitetitle {
        font-size: 1.75rem;
    }

    .mainheading .lead {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .listfeaturedtag h2.card-title {
        font-size: 1.125rem;
    }

    .card-text {
        font-size: 0.875rem;
    }

    .article-post {
        font-size: 1rem;
    }

    .article-post h1 {
        font-size: 1.625rem;
    }

    .article-post h2 {
        font-size: 1.375rem;
    }

    .article-post h3 {
        font-size: 1.125rem;
    }

    .article-post h4 {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.375rem;
    }
}

/* ========== Improved Card Layouts ========== */

/* Better card grid spacing */
.listrecent .col-lg-4 {
    margin-bottom: 2rem;
}

/* Ensure equal height cards */
.card-group .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-group .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-group .card-footer {
    margin-top: auto;
}

/* Image aspect ratio consistency - removed to prevent image clipping */
/* .maxthumb,
.wrapthumbnail {
    aspect-ratio: 4/3;
}

@media (max-width: 768px) {
    .maxthumb,
    .wrapthumbnail {
        aspect-ratio: 16/9;
    }
} */