/*=========================
READING PROGRESS
=========================*/

#readingProgress{

position:fixed;

top:72px;

left:0;

height:4px;

width:0;

z-index:99999;

background:linear-gradient(
90deg,
#00d2ff,
#64ffda
);

transition:width .08s linear;

}


/*=========================
ARTICLE
=========================*/

.article-hero{

position:relative;

height:70vh;

min-height:520px;

overflow:hidden;

}

.article-hero-image{

width:100%;

height:100%;

object-fit:cover;

display:block;

}

.article-overlay{

position:absolute;

inset:0;

background:linear-gradient(
180deg,
rgba(0,0,0,.2),
rgba(0,0,0,.75)
);

display:flex;

align-items:flex-end;

padding-bottom:70px;

}

.article-category{

display:inline-block;

padding:8px 18px;

border-radius:999px;

background:var(--md-primary);

color:white;

font-size:.85rem;

margin-bottom:20px;

}

.article-title{

font-size:clamp(2.2rem,5vw,4rem);

color:white;

margin:0;

}

.article-subtitle{

margin-top:18px;

font-size:1.2rem;

color:#f5f5f5;

max-width:900px;

}

.article-meta{

margin-top:24px;

color:#ddd;

font-size:.95rem;

}

.article-layout{

display:flex;

justify-content:center;

}

.article-content{

width:100%;

max-width:850px;

font-size:1.12rem;

line-height:2;

}
.article-content>*{

opacity:0;

transform:translateY(25px);

transition:.7s;

}

.article-content>.visible{

opacity:1;

transform:none;

}

.article-content h2{

margin-top:70px;

margin-bottom:25px;

}

.article-content h3{

margin-top:50px;

}

.article-content p{

margin:22px 0;

}

.article-content img{

display:block;

max-width:100%;

margin:40px auto;

border-radius:18px;

box-shadow:0 15px 40px rgba(0,0,0,.2);

}

.article-content img{

cursor:pointer;

transition:.35s;

}

.article-content img:hover{

transform:scale(1.02);

}

.article-content pre{

overflow:auto;

padding:24px;

border-radius:16px;

background:#101318;

color:#eee;

position:relative;

}

.article-content code{

font-family:Consolas,monospace;

}

.article-content blockquote{

margin:35px 0;

padding:25px;

border-left:5px solid var(--md-primary);

background:rgba(255,255,255,.05);

font-style:italic;

}

.article-tags{

display:flex;

flex-wrap:wrap;

gap:12px;

justify-content:center;

}

.article-tags span{

padding:10px 18px;

border-radius:999px;

background:#d7b16f33;
color:#8c6d37 ;

border:1px solid #8c6d37;

}

.article-content h2{

position:relative;

margin-top:80px;

padding-bottom:15px;

}

.article-content h2::after{

content:"";

position:absolute;

left:0;

bottom:0;

width:80px;

height:3px;

background:#8C5A18;

border-radius:50px;

}

.article-content h3{

margin-top:45px;

color:var(--md-primary);

}


/*==========================
		FLOATING CONTENT
==============================*/

#toc{

position:sticky;

top:120px;

width:260px;

margin-right:50px;

align-self:flex-start;

padding:22px;

border-radius:18px;

background:var(--card);

border:1px solid var(--border);

height:max-content;

}

#toc h3{

margin-top:0;

}

#toc ul{

padding:0;

margin:0;

list-style:none;

}

#toc li{

margin:12px 0;

}

#toc a{

text-decoration:none;

color:inherit;

opacity:.7;

transition:.25s;

}

#toc a:hover{

opacity:1;

padding-left:6px;

}
@media(max-width:1000px){

#toc{

display:none;

}

}


/*============================
		DROP CAP
====================*/
.article-content p:first-of-type:first-letter{

float:left;

font-size:4.8rem;

line-height:.9;

padding-right:12px;

padding-top:10px;

font-family:"Marcellus SC",serif;

color:#8C5A18;

}


/***************************
	POLISHING
*****************************/

/*==================================================
ARTICLE RICH CONTENT
==================================================*/

/* horizontal line */

.article-content hr{
margin:50px 0;
border:none;
height:1px;
background:rgba(255,255,255,.08);
}

/* Images */

.article-content img{
display:block;
max-width:100%;
margin:30px auto;
border-radius:18px;
box-shadow:0 20px 60px rgba(0,0,0,.25);
}

/* Gallery */

.article-gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:18px;
margin:30px 0;
}

.article-gallery img{
margin:0;
height:220px;
width:100%;
object-fit:cover;
}

/* Blockquote */

.article-content blockquote{
margin:40px 0;
padding:25px 35px;
border-left:5px solid var(--md-primary);
background:rgba(255,255,255,.04);
font-style:italic;
font-size:1.1rem;
border-radius:12px;
}

/* Tables */

.article-content table{
width:100%;
border-collapse:collapse;
margin:30px 0;
overflow:hidden;
border-radius:15px;
}

.article-content th{
background:var(--md-primary);
color:#fff;
padding:14px;
text-align:left;
}

.article-content td{
padding:14px;
border-bottom:1px solid rgba(255,255,255,.08);
}

/* Lists */

.article-content ul,
.article-content ol{
padding-left:30px;
margin:20px 0;
}

.article-content li{
margin:12px 0;
}

/* Code */

.article-content pre{
background:#111827;
color:#c9f5ff;
padding:22px;
border-radius:16px;
overflow:auto;
margin:30px 0;
font-size:.95rem;
}

.article-content code{
font-family:Consolas,monospace;
}

/* Inline code */

.article-content p code,
.article-content li code{
background:rgba(0,0,0,.90);
padding:3px 7px;
border-radius:6px;
color:#00d7ff;
}

/* Audio */

.article-content audio{
width:100%;
margin:25px 0;
}

/* Video */

.article-content video{
width:100%;
border-radius:18px;
margin:25px 0;
}

/* Youtube */

.article-content iframe{
width:100%;
aspect-ratio:16/9;
border:none;
border-radius:18px;
margin:25px 0;
}

/* Download buttons */

.article-download{
display:inline-flex;
gap:10px;
align-items:center;
padding:14px 22px;
background:#d7b16f33;
color:#8c6d37;
text-decoration:none;
border-radius:40px;
margin:15px 0;
transition:.3s;
}

.article-download:hover{
transform:translateY(-3px);
}

/* Notes */

.article-note,
.article-warning,
.article-success{

padding:22px 24px;
margin:30px 0;
border-radius:18px;
font-weight:500;

}

.article-note{

background:#56b6ff;
border-left:6px solid #1f3f68;

}

.article-warning{

background:orange;
border-left:6px solid #563000;

}

.article-success{

background:#31d86a;
border-left:6px solid #0f4426;

}

/*==================================================
INFO BOX
==================================================*/

.article-info{

margin:30px 0;
padding:22px 24px;

background:#12395b;

border-left:6px solid #2db9ff;

border-radius:18px;

color:#eef8ff;

}


/*==================================================
TIP BOX
==================================================*/

.article-tip{

margin:30px 0;
padding:22px 24px;

background:#143d21;

border-left:6px solid #37d67a;

border-radius:18px;

color:#f2fff5;

}

.article-danger{

margin:30px 0;
padding:22px 24px;

background:#4d1414;

border-left:6px solid #ff4d4d;

border-radius:18px;

color:#f2fff5;

}

/* Caption */

.article-caption{

font-size:.92rem;
text-align:center;
opacity:.7;
margin-top:-10px;
margin-bottom:30px;

}

kbd{
background:#222;
color: #FFF;
padding:3px 8px;
border-radius:6px;
font-family:Consolas;
font-size:.9rem;
border:1px solid rgba(255,255,255,.15);
}

.article-card p:first-of-type:first-letter{
	all: unset;
}
.article-card{

padding:25px;
margin:30px 0;
align-items: center;
vertical-align:middle;
text-align: center;
border-radius:18px;

background:#d7b16f33;

border:1px solid #8c6d37;

}

.article-two-column{

display:grid;

grid-template-columns:1fr 1fr;

gap:30px;

margin:35px 0;

}

@media(max-width:900px){

.article-two-column{

grid-template-columns:1fr;

}

}