/* ================================================================
   Blog & Portfolio — Clean Typography, Card & Layout System
   Extracted & Enhanced for Mobile & Dark Mode Optimization
   ================================================================ */

/* --- Base Body & Article Formatting --- */
.post-content,
.post-content p,
.works-item .text p,
.entry-content p,
.post-content div {
    text-align: left !important;
    word-break: break-word;
}

.post-content {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}
.dark-skin .post-content { color: #cbd5e1; }

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    text-align: left !important;
}
.dark-skin .post-content h1,
.dark-skin .post-content h2,
.dark-skin .post-content h3,
.dark-skin .post-content h4,
.dark-skin .post-content h5,
.dark-skin .post-content h6 { color: #f8fafc; }

.post-content h2 { font-size: 1.5rem; margin-top: 2.25rem; margin-bottom: 1rem; }
.post-content h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.88rem; }
.post-content h4 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }

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

.post-content a {
    color: #00bedf;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,190,223,0.3);
    transition: border-color .2s;
}
.post-content a:hover { border-bottom-color: #00bedf; }

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.post-content figure { margin: 1.5rem 0; }
.post-content figcaption {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}
.dark-skin .post-content figcaption { color: #9ca3af; }

/* Inline Code */
.post-content code:not(pre code) {
    background: rgba(0, 190, 223, 0.08);
    color: #008fa8;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'Fira Code', Consolas, monospace;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid rgba(0, 190, 223, 0.15);
}
.dark-skin .post-content code:not(pre code) {
    background: rgba(0, 190, 223, 0.18);
    color: #38bdf8;
    border-color: rgba(0, 190, 223, 0.25);
}

/* Code Blocks (pre) */
.post-content pre {
    background: #0f172a !important;
    color: #f8fafc !important;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 1.75rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.post-content pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit;
}

/* Unordered Lists (ul) */
.post-content ul {
    padding-left: 0 !important;
    list-style: none !important;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}
.post-content ul li {
    position: relative !important;
    padding-left: 1.75rem !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.75 !important;
    text-align: left !important;
}
.post-content ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0.35rem !important;
    top: 0.65rem !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #00bedf !important;
    box-shadow: 0 0 8px rgba(0, 190, 223, 0.5) !important;
}

/* Ordered Lists (ol) */
.post-content ol {
    padding-left: 0 !important;
    counter-reset: custom-ol-counter !important;
    list-style: none !important;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}
.post-content ol li {
    counter-increment: custom-ol-counter !important;
    position: relative !important;
    padding-left: 2.25rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.75 !important;
    text-align: left !important;
}
.post-content ol li::before {
    content: counter(custom-ol-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.15rem !important;
    width: 1.45rem !important;
    height: 1.45rem !important;
    border-radius: 50% !important;
    background: rgba(0, 190, 223, 0.12) !important;
    color: #00bedf !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.dark-skin .post-content ol li::before {
    background: rgba(0, 190, 223, 0.2) !important;
    color: #38bdf8 !important;
}

/* Blockquote */
.post-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 2.25rem;
    border-left: 4px solid #00bedf;
    border-radius: 0 14px 14px 0;
    background: rgba(0, 190, 223, 0.04);
}
.dark-skin .post-content blockquote { background: rgba(0, 190, 223, 0.07); }
.post-content blockquote p {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: #334155;
    margin-bottom: 0;
}
.dark-skin .post-content blockquote p { color: #e2e8f0; }

/* Tables */
.post-content table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.12);
}
.post-content th {
    background: rgba(0, 190, 223, 0.08);
    color: #0f172a;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left !important;
}
.dark-skin .post-content th { background: rgba(0, 190, 223, 0.15); color: #f8fafc; }
.post-content td {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
    color: #334155;
}
.dark-skin .post-content td { border-top-color: rgba(255, 255, 255, 0.06); color: #cbd5e1; }

/* --- Modern Portfolio Container, Filter Pills & Cards --- */
.works-box {
    margin-bottom: 2rem;
}

.filter-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding: 6px 4px 14px !important;
    margin-bottom: 2rem !important;
    scrollbar-width: none !important;
}
.filter-links::-webkit-scrollbar { display: none !important; }

.filter-links .lui-subtitle {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    background: rgba(128, 128, 128, 0.06) !important;
    border: 1px solid rgba(128, 128, 128, 0.12) !important;
    color: #64748b !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}
.dark-skin .filter-links .lui-subtitle {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}
.filter-links .lui-subtitle.active,
.filter-links .lui-subtitle:hover {
    background: linear-gradient(135deg, #00bedf 0%, #008fa8 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(0, 190, 223, 0.35) !important;
}

.works-items .works-col {
    margin-bottom: 1.75rem;
}

.works-item {
    background: #ffffff !important;
    border: 1px solid rgba(128, 128, 128, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.dark-skin .works-item {
    background: #18181b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}
.works-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0, 190, 223, 0.12) !important;
    border-color: rgba(0, 190, 223, 0.3) !important;
}

.works-item .image {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
}
.works-item .image .img {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}
.dark-skin .works-item .image .img {
    background: #09090b !important;
}
.works-item .image .img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}
.works-item:hover .image .img img {
    transform: scale(1.05) !important;
}

.works-item .desc {
    padding: 1.25rem 1.25rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.works-item .desc .category {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 0.6rem !important;
}
.works-item .desc .category a {
    display: inline-block !important;
    background: rgba(0, 190, 223, 0.08) !important;
    color: #00bedf !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.dark-skin .works-item .desc .category a {
    background: rgba(0, 190, 223, 0.15) !important;
    color: #38bdf8 !important;
}
.works-item .desc .category a:hover {
    background: #00bedf !important;
    color: #ffffff !important;
}

.works-item .desc .name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0.25rem 0 0.6rem !important;
}
.works-item .desc .name a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.dark-skin .works-item .desc .name a {
    color: #f8fafc !important;
}
.works-item:hover .desc .name a {
    color: #00bedf !important;
}

.works-item .desc .text p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    text-align: left !important;
    margin-bottom: 1.25rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.dark-skin .works-item .desc .text p {
    color: #94a3b8 !important;
    text-align: left !important;
}

.works-item .desc .lnk {
    margin-top: auto !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #00bedf !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    background: rgba(0, 190, 223, 0.08) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}
.dark-skin .works-item .desc .lnk {
    background: rgba(0, 190, 223, 0.15) !important;
    color: #38bdf8 !important;
}
.works-item .desc .lnk:hover {
    background: #00bedf !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

/* Article Hero & Layout Navigation */
.article-hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 1rem;
    color: #111827;
}
.dark-skin .article-hero-title { color: #fff; }

.hero-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(128,128,128,0.08);
}

.m-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 0.75rem;
}
.category-pill {
    background: rgba(0,190,223,0.08);
    color: #00bedf;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    display: inline-block;
}
.category-pill:hover { background: #00bedf; color: #fff; text-decoration: none; }

.share-actions-bar {
    background: rgba(0, 190, 223, 0.04);
    border: 1px solid rgba(0, 190, 223, 0.15);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin: 2.25rem 0 1.5rem;
    transition: all 0.25s ease;
}
.dark-skin .share-actions-bar {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.1);
}
.share-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dark-skin .share-label {
    color: #f8fafc;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(128,128,128,0.05);
    color: #4b5563;
    font-size: 0.9rem;
    transition: all .25s;
    text-decoration: none;
}
.dark-skin .social-btn { background: rgba(255,255,255,0.05); color: #d1d5db; }
.social-btn:hover { color: #fff; transform: translateY(-2px); text-decoration: none; }
.facebook:hover { background: #3b5998; }
.linkedin:hover { background: #0077b5; }
.twitter:hover { background: #000; }
.whatsapp:hover { background: #25d366; }
.like-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

.divider-v { width: 1px; height: 20px; background: rgba(128,128,128,0.12); margin: 0 8px; }

/* Responsive adjustments */
@media (min-width: 992px) {
    .works-items .works-col { width: 33.333333% !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .works-items .works-col { width: 50% !important; }
}
@media (max-width: 767px) {
    .works-items .works-col { width: 100% !important; }
}
@media (min-width: 768px) {
    .article-hero-title { font-size: 2.25rem; margin-top: 1.5rem; }
    .post-content { font-size: 1.08rem; }
    .post-content h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1.2rem; }
    .post-content h3 { font-size: 1.46rem; margin-top: 2.5rem; margin-bottom: 1.1rem; }
    .post-content h4 { font-size: 1.2rem; }
    .hero-featured-image { aspect-ratio: 21 / 9; border-radius: 24px; }
}
