/*
Theme Name: premierpost
Author: premier post
*/

:root {
  --ink: #124430;
  --ink-soft: #124430;
  --violet: #dd5f55;
  --violet-dark: #3c0d0b;
  --electric: #1f6549;
  --lilac: #c7f8e6;
  --cyan: #3e7764;
  --paper: #ffffff;
  --logo-bg: #fbfaff;
  --mist: #f7f5fb;
  --line: #f7bfbb;
  --muted: #9b3f38;
  --shadow: 0 18px 45px rgba(17, 18, 69, 0.12);
  --radius: 8px;
  --max: 1180px;
}


.eg-menu a:hover {
	color:  var(--violet);
}
.eg-menu a:hover {
	color:  var(--violet);
}
.eg-menu {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* .eg-menu li.top-btn a {
	padding: 10px 18px;
	background: #eda003;
	color: #fff;
	text-decoration: none;
	transition: 0.3s ease;
	width: auto;
	align-self: flex-start;
	font-weight: 600;
}
header .eg-menu li.top-btn a:hover {
	transform: translateY(-5px);
} */


.eg-menu li.top-btn a{
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet), var(--electric));
  box-shadow: 0 10px 22px rgba(84, 23, 183, 0.18); padding: 12px;border-radius: 8px;
}

.eg-menu li.top-btn a:hover,
.eg-menu li.top-btn a:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet-dark), var(--electric));
}

.nav-toggle{
    display:none;
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
}
.nav-toggle span{
    display:block;
    width: 100%;
    height:3px;
    background:#fff;
    margin:5px 0;
    border-radius:3px;
}

.hero-feature .blog-thumb, .hero-feature .blog-readmore, .recent-posts-grid .custom-blog-grid .blog-thumb, .recent-posts-grid .custom-blog-grid .blog-readmore, .content-grid.category-grid .blog-thumb, .content-grid.category-grid .blog-readmore, .article-sidebar.custom-sidebar .blog-thumb, .article-sidebar.custom-sidebar .blog-excerpt, .article-sidebar.custom-sidebar .blog-readmore, .custom-single-category .related-post-card a.post-thumb{display:none;}
.custom-single-category .related-post-content > a{
    color: var(--violet-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}
.eg-blog-hero {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 80px;
    overflow: hidden;
    margin-bottom: 30px;
}
.eg-blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.5);
    
}
.auth-blog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.15);
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
.article-header{z-index: 1;}
.eg-blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.blog-category {
    margin: 0 0 10px;
    color: var(--violet-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-feature h2, h3.blog-title {
    margin: 12px 0;
    font-size: clamp(1.45rem, 2.45vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: 0;
}


.post-card h3 {
    margin: 12px 0 10px;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: 0;
}
.article-sidebar.custom-sidebar .blog-title {
    font-size: 1rem;
    line-height: 1.6;
}
.recent-posts-grid .custom-blog-grid h3.blog-title {
    margin: 12px 0 10px;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: 0;
}
.blog-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700; padding-top:20px;
}

.recent-posts-grid .custom-blog-grid .blog-grid-item{
    border: 1px solid rgb(247, 191, 187,0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);padding: 22px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.blog-grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-content,
.blog-content-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    margin-top: auto;
}
.category-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.category-card {
    flex: 0 0 auto;
}

.category-card a {
    display: block;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}
.category-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* default = desktop (6 items visible) */
.category-card {
    flex: 0 0 calc(16.666% - 16px);
}
.category-icon{
    width:60px;
    height:60px;
    margin-bottom:15px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.category-icon img{
    width:48px;
    height:48px;
    object-fit:contain;
	filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(151deg) brightness(103%) contrast(104%);
}
.content-grid.category-grid{grid-template-columns: 1fr;}
.content-grid.category-grid .blog-grid-item{height: auto;border: 1px solid rgba(222, 216, 239, 0.9);padding: 22px;margin-bottom: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);}
.content-grid.category-grid .post-card{padding:0px;border: 0px;box-shadow: none;background: transparent;}

.recent-posts-grid .custom-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}
.custom-single-settings a {
    margin: 0 0 10px;
    color: var(--violet-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.custom-single-settings .eg-blog-meta, .related-post-meta{padding-top:20px;color: var(--muted);font-size: 0.9rem;font-weight: 700;}

.related-post-card p {
    margin: 0 0 18px;
    color: var(--muted);
}
.post-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.custom-blog-grid.author-settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.related-post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.related-post-content {
    padding: 16px;
}

.related-post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.eg-social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.eg-share-label {
    font-size: 20px;
    color: #666;
}
.eg-social-share .eg-share-facebook {
    background: #3b5998;
}
.eg-social-share .eg-share-linkedin {
    background: #0077b5;
}
.eg-social-share .eg-share-instagram {
    background: #e1306c;
}
.eg-social-share .eg-share-x {
    background: #111;
}
.eg-blog-engagement {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
}
.eg-blog-views, .eg-blog-rating {
    font-size: 14px;
    color: #666;
}
.eg-blog-engagement {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
}
.eg-social-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s ease;
    background: #111;
    color: #fff;
}
.eg-category-description p{
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 20px; min-width: fit-content;
}
.eg-blog-main.custom-blog-grid{
     display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* adjust spacing as needed */
}

.eg-blog-main.custom-blog-grid .blog-thumb, .custom-blog-grid.author-settings .blog-thumb {
    display: block;
    width: 100%;
    height: 220px; /* adjust as needed */
    overflow: hidden;
}

.eg-blog-main.custom-blog-grid .blog-thumb img, .custom-blog-grid.author-settings .blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-blog-grid .blog-grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.custom-blog-grid .blog-content{padding: 0px 16px 16px;}

.cf7-row input, .cf7-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;font-size: 16px;
}
.cf7-col-full.button-wrap input {
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet), var(--electric));
    box-shadow: 0 14px 30px rgba(84, 23, 183, 0.22);
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;font-size: 16px; font-weight: 800;cursor: pointer;
}

.cf7-col-full.button-wrap input:hover,
.cf7-col-full.button-wrap input:focus {
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet-dark), var(--electric));
}
.sitemap-wrap .eg-sidebar-box ul {
    columns: 3;
}
.sitemap-wrap .eg-sidebar-box ul li::marker {color: var(--ink-soft);}
.page-hero h1, .article-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.65rem);
}
.content-grid, .article-layout{padding-bottom: 20px;}
@media (max-width: 1024px) {
    .category-card {
        flex: 0 0 calc(33.333% - 16px);
    }
	.recent-posts-grid .custom-blog-grid  {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .category-card {
        flex: 0 0 100%;
    }
	.recent-posts-grid .custom-blog-grid, .eg-blog-main.custom-blog-grid {
        grid-template-columns:1fr;
    }
.sitemap-wrap .eg-sidebar-box ul {
    columns: 1;
}
	.site-footer p {
	max-width: 100%;
	margin: auto;
}
	.content-grid .section-heading p{max-width:100%;}
	
}
/* MOBILE */
@media(max-width:991px){
    .nav-toggle{
        display:block;background-color: var(--violet);padding: 5px;
    }
    .main-nav{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#111;
        padding:20px;
        z-index:999;
    }
    .main-nav.open{
        display:block;background: linear-gradient(180deg, #fdf9f4 0%, #fff7ee 38%, #fffaf5 100%);
    border-top: 3px solid var(--violet);
    }
    .eg-menu{
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        width:100%;
    }
    .eg-menu li{
        width:100%;
    }
    .eg-menu li a{
        display:block;
        width:100%;
        padding:14px 0;
    }
}

.home .feed-grid .feed-card:nth-child(3), .home .feed-grid .feed-card:nth-child(4) {
	display: none;
}


.bottom-bar {
	background: #fff5ff;
	padding: 10px;
	text-align: center;
	font-size: 14px;
}

#menu-footer-menu li {
	list-style: none;
	color: #3c0d0b;
}

#menu-footer-menu {
	display: flex;
	gap: 30px;
}

#menu-footer-menu li {
	list-style: none;
	color: #3c0d0b;
}
.archive.author .eg-author-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: #464646;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 25px;
	align-self: center;
}

.archive.author .eg-blog-hero {
	background-color: rgba(255,255,255,0.5);
	background-blend-mode: color;
}

.archive.author .eg-blog-title {
	margin-block-end: 0px;
}
.site-footer p {
	max-width: 850px;
	margin: auto;
}

.content-grid .section-heading p{max-width:630px;}

.content-grid .text-link {
    width: 90px !important;
}

