/*==================================================
PROGRESNEWS THEME
Single Module
Version : 1.0
==================================================*/

.single-post{
    background:#fff;
    padding:20px;
}

.entry-title{
    font-size:46px;
    line-height:1.2;
    margin-bottom:15px;
    color:#111;
}

.entry-content{
    max-width:850px;
    font-size:19px;
    line-height:1.95;
    color:#222;
}

.post-tags{
    margin:25px 0;
}

.post-tags a{
    display:inline-block;
    padding:6px 12px;
    margin:4px;
    background:#0f2f97;
    color:#fff;
    border-radius:20px;
    font-size:13px;
    text-decoration:none;
    transition:.3s;
}

.post-tags a:hover{
    background:#d60000;
}

.entry-meta{
    font-size:14px;
    color:#666;
    margin-bottom:20px;
}


/*==================================================
  POST META
==================================================*/

.entry-meta .post-date {
    display: block;
    margin-bottom: 8px;

    font-size: 15px !important;
    line-height: 1.5;
    color: #777;
    font-weight: 500;
}

.post-meta-details{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;

    font-size:14px;
    line-height:1.5;
}

.post-meta-details span{
    display:inline-flex;
    align-items:center;
}

.post-meta-details strong{
    color:#444;
}

/*==================================================
ARTICLE TYPOGRAPHY
==================================================*/

.entry-content p{

    margin:0 0 1.6em;

    line-height:1.95;

}

.entry-content h2,
.entry-content h3,
.entry-content h4{

    margin:1.8em 0 .8em;

    line-height:1.35;

    color:#111;

}

.entry-content ul,
.entry-content ol{

    margin:0 0 1.6em 1.5em;

}

.entry-content li{

    margin-bottom:.6em;

}

.entry-content blockquote{

    margin:2em 0;

    padding:18px 22px;

    border-left:4px solid var(--menu-hover-color);

    background:#f8f9fb;

    font-style:italic;

}

.entry-content img{

    max-width:100%;

    height:auto;

}

/*==================================================
FEATURED IMAGE
==================================================*/
.featured-image{
    margin:20px 0 30px;
}

.featured-image img{
    width:100%;
    max-height:600px;
    object-fit:cover;
    border-radius:8px;
}

/*==================================================
AFTER ARTICLE ADS
==================================================*/
.after-article-ads{
    margin:30px 0;
    text-align:center;
}

/*==================================================
RELATED POSTS
==================================================*/
.related-posts{
    margin-top:50px;
}

.related-posts h3{
    font-size:24px;
    margin-bottom:20px;
    border-left:5px solid #1544D9;
    padding-left:10px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.related-item{
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 5px rgba(0,0,0,.08);
}

.related-item img{
    width:100%;
    height:170px;
    object-fit:cover;
}

.related-item h4{
    font-size:14px;
    line-height:1.5;
    padding:10px;
    color:#222;
}

/*==================================================*
 * SOCIAL SHARE
 *==================================================*/

.progres-share {
	margin: 35px 0;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
}


/*--------------------------------------------------*
 * SHARE TITLE
 *--------------------------------------------------*/

.progres-share-title {
	display: flex;
	align-items: center;
	gap: 8px;

	margin: 0 0 15px;

	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.progres-share-title svg {
	display: block;
	flex-shrink: 0;
}


/*--------------------------------------------------*
 * SHARE BUTTONS
 *--------------------------------------------------*/

.progres-share-buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}


/*==================================================*
 * SOCIAL SHARE
 *==================================================*/

.progres-share {
	margin: 35px 0;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
}

.progres-share-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 15px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.progres-share-title svg {
	display: block;
	flex-shrink: 0;
}

.progres-share-buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.progres-share-buttons a,
.progres-share-buttons button {
	position: relative;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 42px;
	width: 42px;
	height: 42px;

	margin: 0;
	padding: 0;

	border: 1px solid #e5e7eb;
	border-radius: 8px;

	background: #fff;

	cursor: pointer;
	text-decoration: none;

	box-sizing: border-box;

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.progres-share-buttons svg {
	display: block;
	width: 20px;
	height: 20px;
}

.progres-share-buttons a:hover,
.progres-share-buttons button:hover {
	transform: translateY(-2px);
	border-color: #d1d5db;
	background: #f8fafc;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.progres-share-buttons a:focus-visible,
.progres-share-buttons button:focus-visible {
	outline: 2px solid #4169e1;
	outline-offset: 2px;
}

.progres-share-buttons .share-copy.copied {
	border-color: #16a34a;
	background: #f0fdf4;
}

@media (max-width: 768px) {

	.progres-share {
		margin: 30px 0;
		padding: 16px;
	}

	.progres-share-buttons {
		gap: 8px;
	}

	.progres-share-buttons a,
	.progres-share-buttons button {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}

	.progres-share-buttons svg {
		width: 19px;
		height: 19px;
	}

/*--------------------------------------------------*
 * SVG
 *--------------------------------------------------*/

.progres-share-buttons svg {
	display: block;
	width: 20px;
	height: 20px;
}


/*--------------------------------------------------*
 * HOVER
 *--------------------------------------------------*/

.progres-share-buttons a:hover,
.progres-share-buttons button:hover {
	transform: translateY(-2px);

	border-color: #d1d5db;

	background: #f8fafc;

	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


/*--------------------------------------------------*
 * FOCUS
 *--------------------------------------------------*/

.progres-share-buttons a:focus-visible,
.progres-share-buttons button:focus-visible {
	outline: 2px solid #4169e1;
	outline-offset: 2px;
}


/*--------------------------------------------------*
 * TOOLTIP
 *--------------------------------------------------*/

.progres-share-buttons a::after,
.progres-share-buttons button::after {
	content: attr(aria-label);

	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);

	transform: translateX(-50%) translateY(4px);

	padding: 5px 8px;

	border-radius: 5px;

	background: #1a1a1a;
	color: #ffffff;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;

	white-space: nowrap;

	opacity: 0;
	visibility: hidden;

	pointer-events: none;

	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease;

	z-index: 10;
}


/*--------------------------------------------------*
 * TOOLTIP ARROW
 *--------------------------------------------------*/

.progres-share-buttons a::before,
.progres-share-buttons button::before {
	content: "";

	position: absolute;
	left: 50%;
	bottom: calc(100% + 3px);

	transform: translateX(-50%) translateY(4px);

	border: 4px solid transparent;
	border-top-color: #1a1a1a;

	opacity: 0;
	visibility: hidden;

	pointer-events: none;

	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease;

	z-index: 10;
}


/*--------------------------------------------------*
 * SHOW TOOLTIP
 *--------------------------------------------------*/

.progres-share-buttons a:hover::after,
.progres-share-buttons button:hover::after,
.progres-share-buttons a:hover::before,
.progres-share-buttons button:hover::before {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}


/*--------------------------------------------------*
 * COPY SUCCESS
 *--------------------------------------------------*/

.progres-share-buttons .share-copy.copied {
	border-color: #16a34a;
	background: #f0fdf4;
}


/*--------------------------------------------------*
 * MOBILE
 *--------------------------------------------------*/

@media (max-width: 768px) {

	.progres-share {
		margin: 30px 0;
		padding: 16px;
	}

	.progres-share-title {
		margin-bottom: 12px;
	}

	.progres-share-buttons {
		gap: 8px;
	}

	.progres-share-buttons a,
	.progres-share-buttons button {
		width: 40px;
		height: 40px;
	}

	.progres-share-buttons svg {
		width: 19px;
		height: 19px;
	}

}

/*==================================================
RESPONSIVE
==================================================*/

@media (max-width:768px){

    .entry-title,
    .single-title,
    .post-title,
    article h1{
        font-size:32px !important;
        line-height:1.25 !important;
        margin-bottom:15px;
    }

    .related-grid{
    grid-template-columns:repeat(2,1fr);
    }

    .single-post{
        width:100%;
        max-width:100%;
        padding:10px 0;
        margin:0;
        box-sizing:border-box;
    }

    .entry-content{
        width:100%;
        max-width:100%;
        font-size:17px;
        line-height:1.8;
    }

    .featured-image{
        width:100%;
        margin:15px 0 25px;
    }

    .featured-image img{
        width:100%;
        max-width:100%;
        height:auto;
        border-radius:6px;
    }

}

@media screen and (max-width:768px){

    .container > .site-main{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    .container > .site-main > .content{
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    .container > .site-main > .content > article.single-post{
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
    }

    .container > .site-main > .content > article.single-post .entry-content{
        width:100% !important;
        max-width:none !important;
        padding:0 !important;
        margin:0 !important;
    }

}

/* ==================================================
   SINGLE POST — MOBILE META
   ================================================== */

@media (max-width: 768px) {

    .entry-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .entry-meta > span {
        display: block;
        width: 100%;
    }

}

/* ==================================================
 * SINGLE META — MOBILE
 * ================================================== */

@media (max-width: 768px) {

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .entry-meta .meta-separator {
        display: none;
    }

}